LifeV
Importer Class Reference

Importer General interface for read different types of mesh. More...

#include <Importer.hpp>

+ Collaboration diagram for Importer:

Private Attributes

std::string M_fileName
 Name of the file to import. More...
 
MeshFormat M_format
 Format of the file to import. More...
 

Constructor & Destructor

 Importer ()
 Empty constructor, use GMSH as default mesh format. More...
 
 Importer (std::string const &fileName, MeshFormat const &format)
 Constructor with name and format. More...
 
 Importer (const Importer &importer)
 Copy constructor. More...
 

Operators

Importeroperator= (const Importer &importer)
 Assign opertor overloading. More...
 

Methods

void import (RegionMesh< LinearTetra > &mesh, markerID_Type regionFlag)
 Import mesh with tetrahedras. More...
 
void import (RegionMesh< LinearHexa > &mesh, markerID_Type regionFlag)
 Import mesh with linear hexahedras. More...
 
void import (RegionMesh< LinearTriangle > &mesh, markerID_Type regionFlag)
 Import mesh with linear triangles. More...
 
void import (RegionMesh< LinearQuad > &mesh, markerID_Type regionFlag)
 Import mesh with linear quadrangles. More...
 
void showMe (std::ostream &output=std::cout) const
 Print attributes of the class. More...
 

Set Methods

void setFileName (std::string const &fileName)
 Set the file name. More...
 
void setFormat (MeshFormat const &format)
 Set the format of the mesh file. More...
 

Detailed Description

Importer General interface for read different types of mesh.

Author
Christophe Prud'homme chris.nosp@m.toph.nosp@m.e.pru.nosp@m.dhom.nosp@m.me@ep.nosp@m.fl.c.nosp@m.h

Import different type of mesh data formats into Life mesh data structure.

Definition at line 126 of file Importer.hpp.

Constructor & Destructor Documentation

◆ Importer() [1/3]

Importer ( )
inline

Empty constructor, use GMSH as default mesh format.

Definition at line 134 of file Importer.hpp.

◆ Importer() [2/3]

Importer ( std::string const &  fileName,
MeshFormat const &  format 
)
inline

Constructor with name and format.

Parameters
filenamemesh filename to import
formatformat of the file

Definition at line 144 of file Importer.hpp.

◆ Importer() [3/3]

Importer ( const Importer importer)
inline

Copy constructor.

Parameters
importImporter object to be copied

Definition at line 153 of file Importer.hpp.

Member Function Documentation

◆ operator=()

Importer & operator= ( const Importer importer)

Assign opertor overloading.

Parameters
importImporter object to be copied

Definition at line 50 of file Importer.cpp.

◆ import() [1/4]

void import ( RegionMesh< LinearTetra > &  mesh,
markerID_Type  regionFlag 
)

Import mesh with tetrahedras.

Parameters
meshmesh data structure to fill in
regionFlagmarker for the region to load

Definition at line 68 of file Importer.cpp.

◆ import() [2/4]

void import ( RegionMesh< LinearHexa > &  mesh,
markerID_Type  regionFlag 
)

Import mesh with linear hexahedras.

Parameters
meshmesh data structure to fill in
regionFlagmarker for the region to load

Definition at line 76 of file Importer.cpp.

◆ import() [3/4]

void import ( RegionMesh< LinearTriangle > &  mesh,
markerID_Type  regionFlag 
)

Import mesh with linear triangles.

Parameters
meshmesh data structure to fill in
regionFlagmarker for the region to load

Definition at line 84 of file Importer.cpp.

◆ import() [4/4]

void import ( RegionMesh< LinearQuad > &  mesh,
markerID_Type  regionFlag 
)

Import mesh with linear quadrangles.

Parameters
meshmesh data structure to fill in
regionFlagmarker for the region to load

Definition at line 92 of file Importer.cpp.

◆ showMe()

void showMe ( std::ostream &  output = std::cout) const

Print attributes of the class.

Parameters
outputStream to put the output

Definition at line 99 of file Importer.cpp.

◆ setFileName()

void setFileName ( std::string const &  fileName)
inline

Set the file name.

Parameters
fileNameof the mesh file

Definition at line 219 of file Importer.hpp.

◆ setFormat()

void setFormat ( MeshFormat const &  format)
inline

Set the format of the mesh file.

Parameters
formatformat of the mesh file

Definition at line 228 of file Importer.hpp.

Field Documentation

◆ M_fileName

std::string M_fileName
private

Name of the file to import.

Definition at line 238 of file Importer.hpp.

◆ M_format

MeshFormat M_format
private

Format of the file to import.

Definition at line 241 of file Importer.hpp.


The documentation for this class was generated from the following files: