Memosa-FVM
0.2
|
#include <FluentReader.h>
Public Types | |
typedef Vector< double, 3 > | Vec3 |
Public Member Functions | |
FluentReader (const string &fileName) | |
virtual | ~FluentReader () |
void | readMesh () |
MeshList | getMeshList () |
int | getNumCells () |
string | getVars () |
FaceZonesMap & | getFaceZones () |
CellZonesMap & | getCellZones () |
![]() | |
SchemeReader (const string &fileName) | |
virtual | ~SchemeReader () |
![]() | |
Reader (const string &fileName) | |
virtual | ~Reader () |
void | resetFilePtr () |
string | readLine () |
void | close () |
Protected Member Functions | |
void | read (const int pass) |
void | readNodes (const int pass, const bool isBinary, const bool isDP, const int id) |
void | readCells (const int pass, const bool isBinary, const int id) |
void | readFaces (const int pass, const bool isBinary, const int id) |
void | readFacePairs (const int pass, const bool isBinary, const int id) |
void | readVectorData (Array< Vec3 > &a, const int iBeg, const int iEnd, const bool isBinary, const bool isDP) |
void | buildZones () |
const CRConnectivity & | getCellFaces () |
const CRConnectivity & | getCellNodes () |
const CRConnectivity & | getNodeCells () |
int | getCellZoneID (const int c) const |
shared_ptr< OneToOneIndexMap > | getGhostCellMap (const FluentCellZone &cz, const Array< int > &indices) |
shared_ptr< OneToOneIndexMap > | getCommonNodeMap (const FluentCellZone &cz0, const FluentCellZone &cz1) |
Mesh * | createMesh (const int cellZoneID, Array< int > &) |
![]() | |
int | getNextSection () |
void | closeSection () |
int | closeSectionBinary (const int currentId) |
int | readInt (const bool isBinary) |
void | skipInt (const int n, const bool isBinary) |
char | getNextChar () |
int | moveToListOpen () |
void | moveToListClose () |
void | moveToListCloseBinary () |
void | readHeader (int &i1, int &i2, int &i3, int &i4, int &i5) |
int | readListLength () |
void | readList (char *buffer) |
Protected Attributes | |
int | _dimension |
int | _numCells |
int | _numFaces |
int | _numNodes |
int | _numBoundaryFaces |
StorageSite | _cells |
StorageSite | _faces |
StorageSite | _nodes |
shared_ptr< CRConnectivity > | _faceNodes |
shared_ptr< CRConnectivity > | _faceCells |
shared_ptr< CRConnectivity > | _cellFaces |
shared_ptr< CRConnectivity > | _cellNodes |
shared_ptr< CRConnectivity > | _nodeCells |
FaceZonesMap | _faceZones |
CellZonesMap | _cellZones |
FacePairsMap | _facePairs |
Array< Vec3 > | _coords |
int | _rpVarStringLength |
string | _rpVars |
map< int, int > | _zoneVarStringLength |
![]() | |
const string | _fileName |
FILE * | _fp |
Definition at line 74 of file FluentReader.h.
typedef Vector<double,3> FluentReader::Vec3 |
Definition at line 78 of file FluentReader.h.
FluentReader::FluentReader | ( | const string & | fileName | ) |
Definition at line 30 of file FluentReader.cpp.
|
virtual |
Definition at line 51 of file FluentReader.cpp.
|
protected |
Definition at line 657 of file FluentReader.cpp.
References _cellZones, _faceCells, _faceZones, FluentCellZone::boundaryZoneIds, getCellZoneID(), FluentZone::iBeg, FluentZone::ID, FluentCellZone::interfaceZoneIds, FluentCellZone::interiorZoneIds, FluentFaceZone::leftCellZoneId, PERIODIC_SHADOW, FluentFaceZone::rightCellZoneId, FluentZone::threadType, and FluentZone::zoneType.
Referenced by readMesh().
|
protected |
Definition at line 696 of file FluentReader.cpp.
References _cellZones, _coords, _dimension, _faceCells, _faceNodes, _facePairs, _faceZones, _numCells, FluentCellZone::boundaryZoneIds, FluentFacePairs::count, Mesh::createBoundaryFaceGroup(), Mesh::createInterfaceGroup(), Mesh::createInteriorFaceGroup(), Mesh::getAllFaceCells(), getCellNodes(), Mesh::getCells(), CRConnectivity::getCol(), Mesh::getFaceGroup(), Mesh::getFaces(), StorageSite::getGatherMap(), getGhostCellMap(), Array< T >::getLength(), getNodeCells(), Mesh::getNodes(), StorageSite::getOffset(), Mesh::getPeriodicFacePairs(), CRConnectivity::getRow(), StorageSite::getScatterMap(), FluentCellZone::ghostCellMaps, FluentCellZone::globalToLocalNodeMap, FluentZone::iBeg, FluentZone::ID, FluentZone::iEnd, FluentCellZone::interfaceZoneIds, FluentCellZone::interiorZoneIds, FluentFacePairs::leftFaces, FluentCellZone::mesh, FluentZone::partnerId, FluentFacePairs::rightFaces, FluentFacePairs::rightID, Mesh::setCellZoneID(), Mesh::setCoordinates(), StorageSite::setCount(), Mesh::setFaceCells(), Mesh::setFaceNodes(), FaceGroup::site, and FluentZone::zoneType.
Referenced by getMeshList().
|
protected |
Definition at line 625 of file FluentReader.cpp.
References _cellFaces, and _faceCells.
Referenced by getCellNodes().
|
protected |
Definition at line 635 of file FluentReader.cpp.
References _cellNodes, _faceNodes, getCellFaces(), and CRConnectivity::multiply().
Referenced by createMesh(), and getNodeCells().
|
protected |
Definition at line 611 of file FluentReader.cpp.
References _cellZones, _numBoundaryFaces, _numCells, FluentZone::iBeg, FluentZone::ID, and FluentZone::iEnd.
Referenced by buildZones().
|
inline |
Definition at line 96 of file FluentReader.h.
References _cellZones.
Referenced by FluentDataExporter< T >::writeScalarField(), and FluentDataExporter< T >::writeVectorField().
|
protected |
Definition at line 1099 of file FluentReader.cpp.
References Array< T >::getLength(), and FluentCellZone::globalToLocalNodeMap.
Referenced by getMeshList().
|
inline |
Definition at line 95 of file FluentReader.h.
References _faceZones.
Referenced by FluentDataExporter< T >::writeScalarField(), and FluentDataExporter< T >::writeVectorField().
|
protected |
Definition at line 1062 of file FluentReader.cpp.
References Array< T >::getLength(), FluentZone::iBeg, and FluentZone::iEnd.
Referenced by createMesh().
MeshList FluentReader::getMeshList | ( | ) |
Definition at line 954 of file FluentReader.cpp.
References _cellZones, _faceCells, _facePairs, _faceZones, _numBoundaryFaces, _numCells, FluentFacePairs::count, createMesh(), Mesh::getCells(), getCommonNodeMap(), StorageSite::getGatherMap(), Mesh::getNodes(), StorageSite::getScatterMap(), FluentCellZone::ghostCellMaps, FluentZone::ID, FluentFaceZone::leftCellZoneId, FluentFacePairs::leftFaces, FluentFacePairs::leftID, FluentCellZone::mesh, FluentFacePairs::rightFaces, and FluentFacePairs::rightID.
Referenced by main().
|
protected |
Definition at line 646 of file FluentReader.cpp.
References _nodeCells, getCellNodes(), and CRConnectivity::getTranspose().
Referenced by createMesh().
|
inline |
|
inline |
|
protected |
Definition at line 423 of file FluentReader.cpp.
References _cellZones, _dimension, _faceZones, Reader::_fp, _rpVars, _rpVarStringLength, _zoneVarStringLength, SchemeReader::closeSection(), SchemeReader::closeSectionBinary(), SchemeReader::getNextSection(), SchemeReader::moveToListClose(), SchemeReader::moveToListOpen(), READ_COUNTS, READ_SIZES, readCells(), readFacePairs(), readFaces(), SchemeReader::readList(), SchemeReader::readListLength(), readNodes(), FluentZone::zoneName, FluentZone::zoneType, and FluentZone::zoneVars.
Referenced by readMesh().
|
protected |
Definition at line 169 of file FluentReader.cpp.
References _cellZones, _numCells, SchemeReader::closeSection(), SchemeReader::closeSectionBinary(), FluentZone::iBeg, FluentZone::ID, FluentZone::iEnd, READ_SIZES, SchemeReader::readHeader(), and FluentZone::threadType.
Referenced by read().
|
protected |
Definition at line 375 of file FluentReader.cpp.
References _facePairs, _faceZones, SchemeReader::closeSection(), SchemeReader::closeSectionBinary(), SchemeReader::moveToListOpen(), READ_COUNTS, READ_MESH, READ_SIZES, SchemeReader::readHeader(), and SchemeReader::readInt().
Referenced by read().
|
protected |
Definition at line 206 of file FluentReader.cpp.
References _dimension, _faceCells, _faceNodes, _faceZones, _numBoundaryFaces, _numCells, _numFaces, CRConnectivity::add(), CRConnectivity::addCount(), SchemeReader::closeSection(), SchemeReader::closeSectionBinary(), FluentZone::iBeg, FluentZone::ID, FluentZone::iEnd, SchemeReader::moveToListOpen(), FluentZone::partnerId, READ_COUNTS, READ_MESH, READ_SIZES, SchemeReader::readHeader(), SchemeReader::readInt(), SchemeReader::skipInt(), and FluentZone::threadType.
Referenced by read().
void FluentReader::readMesh | ( | ) |
Definition at line 572 of file FluentReader.cpp.
References _cells, _coords, _faceCells, _faceNodes, _faces, _nodes, _numBoundaryFaces, _numCells, _numFaces, _numNodes, buildZones(), read(), READ_COUNTS, READ_MESH, READ_SIZES, Reader::resetFilePtr(), and StorageSite::setCount().
Referenced by main().
|
protected |
Definition at line 122 of file FluentReader.cpp.
References _coords, _numNodes, SchemeReader::closeSection(), SchemeReader::closeSectionBinary(), SchemeReader::moveToListOpen(), READ_COUNTS, READ_MESH, READ_SIZES, SchemeReader::readHeader(), and readVectorData().
Referenced by read().
|
protected |
Definition at line 54 of file FluentReader.cpp.
References _dimension, Reader::_fp, Array< T >::getData(), and SchemeReader::moveToListOpen().
Referenced by readNodes().
|
protected |
Definition at line 111 of file FluentReader.h.
Referenced by getCellFaces().
|
protected |
Definition at line 112 of file FluentReader.h.
Referenced by getCellNodes().
|
protected |
Definition at line 105 of file FluentReader.h.
Referenced by readMesh().
|
protected |
Definition at line 116 of file FluentReader.h.
Referenced by buildZones(), createMesh(), getCellZoneID(), getCellZones(), getMeshList(), read(), and readCells().
Definition at line 119 of file FluentReader.h.
Referenced by createMesh(), readMesh(), and readNodes().
|
protected |
Definition at line 99 of file FluentReader.h.
Referenced by createMesh(), read(), readFaces(), and readVectorData().
|
protected |
Definition at line 110 of file FluentReader.h.
Referenced by buildZones(), createMesh(), getCellFaces(), getMeshList(), readFaces(), and readMesh().
|
protected |
Definition at line 109 of file FluentReader.h.
Referenced by createMesh(), getCellNodes(), readFaces(), and readMesh().
|
protected |
Definition at line 117 of file FluentReader.h.
Referenced by createMesh(), getMeshList(), and readFacePairs().
|
protected |
Definition at line 106 of file FluentReader.h.
Referenced by readMesh().
|
protected |
Definition at line 115 of file FluentReader.h.
Referenced by buildZones(), createMesh(), getFaceZones(), getMeshList(), read(), readFacePairs(), and readFaces().
|
protected |
Definition at line 113 of file FluentReader.h.
Referenced by getNodeCells().
|
protected |
Definition at line 107 of file FluentReader.h.
Referenced by readMesh().
|
protected |
Definition at line 103 of file FluentReader.h.
Referenced by getCellZoneID(), getMeshList(), readFaces(), and readMesh().
|
protected |
Definition at line 100 of file FluentReader.h.
Referenced by createMesh(), getCellZoneID(), getMeshList(), getNumCells(), readCells(), readFaces(), and readMesh().
|
protected |
Definition at line 101 of file FluentReader.h.
Referenced by readFaces(), and readMesh().
|
protected |
Definition at line 102 of file FluentReader.h.
Referenced by readMesh(), and readNodes().
|
protected |
Definition at line 121 of file FluentReader.h.
|
protected |
Definition at line 120 of file FluentReader.h.
Referenced by read().
|
protected |
Definition at line 122 of file FluentReader.h.
Referenced by read().