MDAL
|
This driver can be used to read FLO-2D mesh (1D, 2D) The required file for this format are : More...
#include <mdal_flo2d.hpp>
Public Member Functions | |
DriverFlo2D * | create () override |
bool | canReadMesh (const std::string &uri) override |
bool | canReadDatasets (const std::string &uri) override |
std::string | buildUri (const std::string &meshFile) override |
std::unique_ptr< Mesh > | load (const std::string &resultsFile, const std::string &meshName="") override |
void | load (const std::string &uri, Mesh *mesh) override |
bool | persist (DatasetGroup *group) override |
![]() | |
Driver (const std::string &name, const std::string &longName, const std::string &filters, int capabilityFlags) | |
std::string | name () const |
std::string | longName () const |
std::string | filters () const |
bool | hasCapability (Capability capability) const |
bool | hasWriteDatasetCapability (MDAL_DataLocation location) const |
virtual std::string | writeDatasetOnFileSuffix () const |
virtual std::string | saveMeshOnFileSuffix () const |
virtual int | faceVerticesMaximumCount () const |
returns the maximum vertices per face | |
virtual void | save (const std::string &fileName, const std::string &meshName, Mesh *mesh) |
virtual void | createDatasetGroup (Mesh *mesh, const std::string &groupName, MDAL_DataLocation dataLocation, bool hasScalarData, const std::string &datasetGroupFile) |
virtual void | createDataset (DatasetGroup *group, RelativeTimestamp time, const double *values, const int *active) |
virtual void | createDataset (DatasetGroup *group, RelativeTimestamp time, const double *values, const int *verticalLevelCount, const double *verticalExtrusion) |
This driver can be used to read FLO-2D mesh (1D, 2D) The required file for this format are :
The 2D mesh is composed of cells which centres are contained in CADPTS.DAT files. FPLAIN.DAT defines the neighboring of the cells. 2D mesh datasets file are not required but can be :
hdf5 format extra datasets can also be read, and this driver supports persisting dataset with this format.
For 1D mesh, the cell centres are also defined in CADPTS.DAT file. Each vertex is linked to a cell from CADPTS.DAT that represents the position of the left bank, and each cell can be linked only with one left bank. So the topology of the 1D mesh is defined by the id of the left bank of each vertex. Vertices can also have (but not required) a right bank represented by another cell. For the right bank, one cell can be linked to several right banks of vertex, so to several vertices. When a vertex hasn't a right bank, its position is defined by the cell link to the left bank. When vertex has a right bank, the vertex position is the middle of the segment between the right and the left bank.
1D mesh datasets file is not required but is HYCHAN.OUT