MeshRead::MeshFileImporter Class Reference

#include <MeshFileImporter.h>

Inheritance diagram for MeshRead::MeshFileImporter:
Inheritance graph
[legend]
Collaboration diagram for MeshRead::MeshFileImporter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MeshFileImporter (void)
 MeshFileImporter (const std::string &file_name)
virtual ~MeshFileImporter (void)
bool Init (const std::string &file_name)
bool Init ()
std::string Name () const
void Free ()
bool doRead (hHybridMesh *mesh)=0
int GetCoordinatesDimension () const
int GetVerticesCount ()
bool GetNextVertex (double coords[])
void GetElementCount (int element_type[])
bool GetNextElement (Tind vertices[], Tind neighbours[], Tind faces[], Tind &element_type, Tind &father, int8_t &material, int8_t &ref)
bool GetBoundaryConditions (double **bc, int &bcCount)

Protected Member Functions

int getPos ()
void setPos (const int newPos)

Protected Attributes

std::string _file_name
std::fstream _file
int _vert_count
int _vert_readed
int _elem_count
int _elem_readed
int gridPos_
int elemPos_
int facePos_

Constructor & Destructor Documentation

MeshRead::MeshFileImporter::MeshFileImporter ( void   ) 
MeshRead::MeshFileImporter::MeshFileImporter ( const std::string &  file_name  ) 
MeshRead::MeshFileImporter::~MeshFileImporter ( void   )  [virtual]

Here is the call graph for this function:


Member Function Documentation

bool MeshRead::MeshFileImporter::doRead ( hHybridMesh mesh  )  [pure virtual]
void MeshRead::MeshFileImporter::Free (  )  [virtual]

Frees resources used by builder.

Implements MeshRead::IMeshReader.

Reimplemented in MeshRead::InFileImporter, and MeshRead::MshFileImporter.

Here is the caller graph for this function:

bool MeshRead::MeshFileImporter::GetBoundaryConditions ( double **  bc,
int &  bcCount 
) [virtual]

/param bc array for boundary condition parameters bc[0] - Dirichlet BC bc[1] - Neumann BC bc[2] - Cauchy BC par1 bc[3] - Cauchy BC par2

Reimplemented from MeshRead::IMeshReader.

Reimplemented in MeshRead::AdinaDatImporter, MeshRead::DmpFileImporter, MeshRead::KazFileImporter, MeshRead::NasFileImporter, and MeshRead::SimplePointReader.

int MeshRead::MeshFileImporter::GetCoordinatesDimension (  )  const [virtual]
void MeshRead::MeshFileImporter::GetElementCount ( int  element_type[]  )  [virtual]

/return no. of elements in inintial mesh

Reimplemented from MeshRead::IMeshReader.

Reimplemented in MeshRead::DmpFileImporter, MeshRead::KazFileImporter, MeshRead::NasFileImporter, and MeshRead::SimplePointReader.

bool MeshRead::MeshFileImporter::GetNextElement ( Tind  vertices[],
Tind  neighbours[],
Tind  faces[],
Tind element_type,
Tind father,
int8_t &  material,
int8_t &  ref 
) [virtual]

/param vertices array for current element vertices numbers /param neighbours array for current element neighoubrs(other elements) numbers. /param bc number of boundary condition at this element /return true if there is next element and false if this is last element.

Reimplemented from MeshRead::IMeshReader.

Reimplemented in MeshRead::DmpFileImporter, MeshRead::KazFileImporter, MeshRead::NasFileImporter, and MeshRead::SimplePointReader.

bool MeshRead::MeshFileImporter::GetNextVertex ( double  coords[]  )  [virtual]

/param coords array for coordinates of vertex /return true if there is next vertex and false if there isn't.

Reimplemented from MeshRead::IMeshReader.

Reimplemented in MeshRead::AdinaDatImporter, MeshRead::DmpFileImporter, MeshRead::KazFileImporter, MeshRead::NasFileImporter, and MeshRead::SimplePointReader.

int MeshRead::MeshFileImporter::getPos (  )  [protected]

Here is the caller graph for this function:

int MeshRead::MeshFileImporter::GetVerticesCount (  )  [virtual]
bool MeshRead::MeshFileImporter::Init (  )  [virtual]

/return true if MeshBuilder initialized successfully, otherwise returns false.

Implements MeshRead::IMeshReader.

Reimplemented in MeshRead::DmpFileImporter, MeshRead::InFileImporter, MeshRead::KazFileImporter, MeshRead::MshFileImporter, MeshRead::NasFileImporter, and MeshRead::SimplePointReader.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MeshRead::MeshFileImporter::Init ( const std::string &  file_name  )  [virtual]

/return true if MeshBuilder initialized successfully, otherwise returns false.

Implements MeshRead::IMeshReader.

Reimplemented in MeshRead::AdinaDatImporter, MeshRead::InFileImporter, MeshRead::MshFileImporter, MeshRead::NasFileImporter, and MeshRead::SimplePointReader.

Here is the call graph for this function:

std::string MeshRead::MeshFileImporter::Name (  )  const [virtual]

/return name of mesh source

Implements MeshRead::IMeshReader.

void MeshRead::MeshFileImporter::setPos ( const int  newPos  )  [protected]

Here is the caller graph for this function:


Member Data Documentation

std::fstream MeshRead::MeshFileImporter::_file [protected]
std::string MeshRead::MeshFileImporter::_file_name [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1