List of all members.
Public Member Functions |
| NetCdfWriter (const std::string &i_fileName, const Float2D &i_b, const BoundarySize &i_boundarySize, int i_nX, int i_nY, float i_dX, float i_dY, float i_originX=0., float i_originY=0., unsigned int i_flush=0) |
virtual | ~NetCdfWriter () |
void | writeTimeStep (const Float2D &i_h, const Float2D &i_hu, const Float2D &i_hv, float i_time) |
Constructor & Destructor Documentation
Create a netCdf-file Any existing file will be replaced.
- Parameters:
-
i_baseName | base name of the netCDF-file to which the data will be written to. |
i_nX | number of cells in the horizontal direction. |
i_nY | number of cells in the vertical direction. |
i_dX | cell size in x-direction. |
i_dY | cell size in y-direction. |
i_originX | |
i_originY | |
i_flush | If > 0, flush data to disk every i_flush write operation |
i_dynamicBathymetry | |
Destructor of a netCDF-writer.
Member Function Documentation
Writes the unknwons to a netCDF-file (-> constructor) with respect to the boundary sizes.
boundarySize[0] == left boundarySize[1] == right boundarySize[2] == bottom boundarySize[3] == top
- Parameters:
-
i_h | water heights at a given time step. |
i_hu | momentums in x-direction at a given time step. |
i_hv | momentums in y-direction at a given time step. |
i_boundarySize | size of the boundaries. |
i_time | simulation time of the time step. |
Implements io::Writer.
The documentation for this class was generated from the following files: