#include <MeshFileImporter.h>
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_ |
MeshRead::MeshFileImporter::MeshFileImporter | ( | void | ) |
MeshRead::MeshFileImporter::MeshFileImporter | ( | const std::string & | file_name | ) |
MeshRead::MeshFileImporter::~MeshFileImporter | ( | void | ) | [virtual] |
bool MeshRead::MeshFileImporter::doRead | ( | hHybridMesh * | mesh | ) | [pure virtual] |
Implements MeshRead::IMeshReader.
Implemented in MeshRead::DmpFileImporter, MeshRead::InFileImporter, MeshRead::KazFileImporter, MeshRead::MshFileImporter, MeshRead::NasFileImporter, and MeshRead::SimplePointReader.
void MeshRead::MeshFileImporter::Free | ( | ) | [virtual] |
Frees resources used by builder.
Implements MeshRead::IMeshReader.
Reimplemented in MeshRead::InFileImporter, and MeshRead::MshFileImporter.
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] |
returns number of mesh dimensions: 1D/2D/3D
Reimplemented from MeshRead::IMeshReader.
Reimplemented in MeshRead::AdinaDatImporter, MeshRead::DmpFileImporter, MeshRead::KazFileImporter, MeshRead::NasFileImporter, and MeshRead::SimplePointReader.
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] |
int MeshRead::MeshFileImporter::GetVerticesCount | ( | ) | [virtual] |
/return no. of vertices in initial mesh.
Reimplemented from MeshRead::IMeshReader.
Reimplemented in MeshRead::AdinaDatImporter, MeshRead::DmpFileImporter, MeshRead::KazFileImporter, MeshRead::NasFileImporter, and MeshRead::SimplePointReader.
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.
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.
std::string MeshRead::MeshFileImporter::Name | ( | ) | const [virtual] |
/return name of mesh source
Implements MeshRead::IMeshReader.
void MeshRead::MeshFileImporter::setPos | ( | const int | newPos | ) | [protected] |
int MeshRead::MeshFileImporter::_elem_count [protected] |
int MeshRead::MeshFileImporter::_elem_readed [protected] |
std::fstream MeshRead::MeshFileImporter::_file [protected] |
std::string MeshRead::MeshFileImporter::_file_name [protected] |
int MeshRead::MeshFileImporter::_vert_count [protected] |
int MeshRead::MeshFileImporter::_vert_readed [protected] |
int MeshRead::MeshFileImporter::elemPos_ [protected] |
int MeshRead::MeshFileImporter::facePos_ [protected] |
int MeshRead::MeshFileImporter::gridPos_ [protected] |