#include <MEDMEM_PorflowMeshDriver.hxx>

Public Member Functions | |
| PORFLOW_MESH_DRIVER () | |
| PORFLOW_MESH_DRIVER (const string &fileName, GMESH *ptrMesh, MED_EN::med_mode_acces accessMode) | |
| PORFLOW_MESH_DRIVER (const PORFLOW_MESH_DRIVER &driver) | |
| virtual | ~PORFLOW_MESH_DRIVER () |
| void | open () throw (MEDEXCEPTION) |
| void | close () throw (MEDEXCEPTION) |
| virtual void | write (void) const =0 |
| virtual void | read (void)=0 |
| void | setMeshName (const string &meshName) |
| string | getMeshName () const |
Protected Types | |
| enum | { nb_geometrie_porflow = 6, nb_nodes_max = 8, nb_nodes2_max = 4, nb_faces_max = 6 } |
Static Protected Member Functions | |
| static int | geomMEDtoPorflow (MED_EN::medGeometryElement medGeo) |
Protected Attributes | |
| MESH * | _ptrMesh |
| string | _meshName |
| ifstream | _porflow |
Static Protected Attributes | |
| static const MED_EN::medGeometryElement | geomPORFLOWtoMED [nb_geometrie_porflow] |
| static const int | numPORFLOWtoMED [nb_geometrie_porflow][nb_nodes_max] |
| static const int | connectivityPORFLOW [nb_geometrie_porflow][nb_faces_max][nb_nodes2_max] |
Private Member Functions | |
| virtual GENDRIVER * | copy (void) const =0 |
| PORFLOW_MESH_DRIVER::PORFLOW_MESH_DRIVER | ( | ) |
Constructor.
| PORFLOW_MESH_DRIVER::PORFLOW_MESH_DRIVER | ( | const string & | fileName, |
| GMESH * | ptrMesh, | ||
| MED_EN::med_mode_acces | accessMode | ||
| ) |
Constructor.
References MEDMEM.PORFLOW_MESH_DRIVER._meshName, MEDMEM.PORFLOW_MESH_DRIVER._ptrMesh, MEDMEM.GMESH.convertInMESH(), and SCRUTE_MED.
| PORFLOW_MESH_DRIVER::PORFLOW_MESH_DRIVER | ( | const PORFLOW_MESH_DRIVER & | driver | ) |
Copy constructor.
References MEDMEM.PORFLOW_MESH_DRIVER._ptrMesh, and MEDMEM.RCBASE.addReference().
| PORFLOW_MESH_DRIVER::~PORFLOW_MESH_DRIVER | ( | ) | [virtual] |
Destructor.
References MEDMEM.PORFLOW_MESH_DRIVER._ptrMesh, and MEDMEM.RCBASE.removeReference().
| int PORFLOW_MESH_DRIVER::geomMEDtoPorflow | ( | MED_EN::medGeometryElement | medGeo | ) | [static, protected] |
| void PORFLOW_MESH_DRIVER::open | ( | void | ) | throw (MEDEXCEPTION) [virtual] |
Implements MEDMEM.GENDRIVER.
References MEDMEM.GENDRIVER._fileName, MEDMEM.PORFLOW_MESH_DRIVER._porflow, MEDMEM.GENDRIVER._status, BEGIN_OF_MED, END_OF_MED, LOCALIZED, MED_EN.MED_CLOSED, and MED_EN.MED_OPENED.
| void PORFLOW_MESH_DRIVER::close | ( | void | ) | throw (MEDEXCEPTION) [virtual] |
Implements MEDMEM.GENDRIVER.
References MEDMEM.PORFLOW_MESH_DRIVER._porflow, MEDMEM.GENDRIVER._status, BEGIN_OF_MED, END_OF_MED, MED_EN.MED_CLOSED, and MED_EN.MED_OPENED.
| virtual void MEDMEM.PORFLOW_MESH_DRIVER.write | ( | void | ) | const [pure virtual] |
Implements MEDMEM.GENDRIVER.
Implemented in MEDMEM.PORFLOW_MESH_RDONLY_DRIVER, MEDMEM.PORFLOW_MESH_WRONLY_DRIVER, and MEDMEM.PORFLOW_MESH_RDWR_DRIVER.
| virtual void MEDMEM.PORFLOW_MESH_DRIVER.read | ( | void | ) | [pure virtual] |
Implements MEDMEM.GENDRIVER.
Implemented in MEDMEM.PORFLOW_MESH_RDONLY_DRIVER, MEDMEM.PORFLOW_MESH_WRONLY_DRIVER, and MEDMEM.PORFLOW_MESH_RDWR_DRIVER.
| void PORFLOW_MESH_DRIVER::setMeshName | ( | const string & | meshName | ) | [virtual] |
Set the name of the MESH asked in file.
It could be different than the name of the MESH object.
Reimplemented from MEDMEM.GENDRIVER.
References MEDMEM.PORFLOW_MESH_DRIVER._meshName, and Med_Gen_test.meshName.
| string PORFLOW_MESH_DRIVER::getMeshName | ( | ) | const [virtual] |
Get the name of the MESH asked in file.
Reimplemented from MEDMEM.GENDRIVER.
References MEDMEM.PORFLOW_MESH_DRIVER._meshName.
| virtual GENDRIVER* MEDMEM.PORFLOW_MESH_DRIVER.copy | ( | void | ) | const [private, pure virtual] |
Implements MEDMEM.GENDRIVER.
Implemented in MEDMEM.PORFLOW_MESH_RDONLY_DRIVER, MEDMEM.PORFLOW_MESH_WRONLY_DRIVER, and MEDMEM.PORFLOW_MESH_RDWR_DRIVER.
MESH* MEDMEM.PORFLOW_MESH_DRIVER._ptrMesh [protected] |
string MEDMEM.PORFLOW_MESH_DRIVER._meshName [protected] |
ifstream MEDMEM.PORFLOW_MESH_DRIVER._porflow [protected] |
const medGeometryElement PORFLOW_MESH_DRIVER::geomPORFLOWtoMED [static, protected] |
{ MED_TRIA3 , MED_QUAD4 , MED_TETRA4 , MED_PYRA5 ,
MED_PENTA6 , MED_HEXA8 }
const int PORFLOW_MESH_DRIVER::numPORFLOWtoMED [static, protected] |
{
{ 1, 3, 2 },
{ 1, 4, 3, 2 },
{ 1, 4, 3, 2 },
{ 1, 4, 3, 2, 5 },
{ 1, 3, 2, 4, 6, 5 },
{ 1, 4, 3, 2, 5, 8, 7, 6 } }
const int PORFLOW_MESH_DRIVER::connectivityPORFLOW [static, protected] |
{
{ {1,3,0,0}, {2,1,0,0}, {3,2,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
{ {1,4,0,0}, {3,2,0,0}, {2,1,0,0}, {4,3,0,0}, {0,0,0,0}, {0,0,0,0} },
{ {1,3,4,0}, {1,4,2,0}, {4,3,2,0}, {1,2,3,0}, {0,0,0,0}, {0,0,0,0} },
{ {1,4,5,0}, {1,5,2,0}, {3,2,5,0}, {4,3,5,0}, {1,2,3,4}, {0,0,0,0} },
{ {1,3,6,4}, {2,1,4,5}, {3,2,5,6}, {1,2,3,0}, {4,6,5,0}, {0,0,0,0} },
{ {1,4,8,5}, {3,2,6,7}, {2,1,5,6}, {4,3,7,8}, {1,2,3,4}, {5,8,7,6} },
}