Memosa-FVM  0.2
UMesh Class Reference

#include <UMesh.h>

Inheritance diagram for UMesh:
Collaboration diagram for UMesh:

Public Member Functions

 UMesh (const Args &args)
 
virtual ~UMesh ()
 
 DECLARE_HT ("UMesh")
 
const CRConnectivity & getConnectivity (const StorageSite &from, const StorageSite &to) const
 
const CRConnectivity & getAllFaceCells () const
 
const CRConnectivity & getFaceCells (const StorageSite &site) const
 
const Array< int > & getCellTypes () const
 
const Array< int > & getCellTypeCount () const
 
 DECLARE_METHOD (maskCellsOfType)
 
 DECLARE_METHOD (getCellTypeCount)
 
 DECLARE_METHOD (getCellTypes)
 
- Public Member Functions inherited from Mesh
 Mesh (const int dimension)
 
 Mesh (const int dimension, const Array< VecD3 > &faceNodesCoord)
 
 Mesh (const int dimension, const int nCells, const Array< VecD3 > &nodesCoord, const Array< int > &faceCellIndices, const Array< int > &faceNodeIndices, const Array< int > &faceNodeCount, const Array< int > &faceGroupSize)
 
 ~Mesh ()
 
 DEFINE_TYPENAME ("Mesh")
 
int getDimension () const
 
int getID () const
 
const StorageSite & getFaces () const
 
const StorageSite & getCells () const
 
const StorageSite & getNodes () const
 
const StorageSite & getIBFaces () const
 
const StorageSite * getGhostCellSiteScatter (const PartIDMeshIDPair &id) const
 
const GhostCellSiteMap & getGhostCellSiteScatterMap () const
 
GhostCellSiteMap & getGhostCellSiteScatterMap ()
 
const StorageSite * getGhostCellSiteGather (const PartIDMeshIDPair &id) const
 
GhostCellSiteMap & getGhostCellSiteGatherMap ()
 
const GhostCellSiteMap & getGhostCellSiteGatherMap () const
 
const StorageSite * getGhostCellSiteScatterLevel1 (const PartIDMeshIDPair &id) const
 
const GhostCellSiteMap & getGhostCellSiteScatterMapLevel1 () const
 
GhostCellSiteMap & getGhostCellSiteScatterMapLevel1 ()
 
const StorageSite * getGhostCellSiteGatherLevel1 (const PartIDMeshIDPair &id) const
 
GhostCellSiteMap & getGhostCellSiteGatherMapLevel1 ()
 
const GhostCellSiteMap & getGhostCellSiteGatherMapLevel1 () const
 
StorageSite & getFaces ()
 
StorageSite & getCells ()
 
StorageSite & getNodes ()
 
StorageSite & getIBFaces ()
 
const CRConnectivity & getConnectivity (const StorageSite &from, const StorageSite &to) const
 
const CRConnectivity & getAllFaceNodes () const
 
const CRConnectivity & getAllFaceCells () const
 
const CRConnectivity & getCellNodes () const
 
const CRConnectivity & getFaceCells (const StorageSite &site) const
 
const CRConnectivity & getFaceNodes (const StorageSite &site) const
 
const CRConnectivity & getCellFaces () const
 
const CRConnectivity & getCellCells () const
 
const CRConnectivity & getCellCells2 () const
 
const CRConnectivity & getFaceCells2 () const
 
CRConnectivity & getAllFaceCells ()
 
const FaceGroup & getInteriorFaceGroup () const
 
int getFaceGroupCount () const
 
int getBoundaryGroupCount () const
 
int getInterfaceGroupCount () const
 
const FaceGroupList & getBoundaryFaceGroups () const
 
const FaceGroupList & getInterfaceGroups () const
 
const FaceGroupList & getAllFaceGroups () const
 
const FaceGroup & getFaceGroup (const int fgId) const
 
const StorageSite & createInteriorFaceGroup (const int size)
 
const StorageSite & createInterfaceGroup (const int size, const int offset, const int id)
 
const StorageSite & createBoundaryFaceGroup (const int size, const int offset, const int id, const string &boundaryType)
 
void setCoordinates (shared_ptr< Array< VecD3 > > x)
 
void setFaceNodes (shared_ptr< CRConnectivity > faceNodes)
 
void setFaceCells (shared_ptr< CRConnectivity > faceCells)
 
void setConnectivity (const StorageSite &rowSite, const StorageSite &colSite, shared_ptr< CRConnectivity > conn)
 
void eraseConnectivity (const StorageSite &rowSite, const StorageSite &colSite) const
 
shared_ptr< Array< int > > createAndGetBNglobalToLocal () const
 
const ArrayBase & getBNglobalToLocal () const
 
const StorageSite & getBoundaryNodes () const
 
const Array< VecD3 > & getNodeCoordinates () const
 
Array< VecD3 > & getNodeCoordinates ()
 
shared_ptr< ArrayBase > getNodeCoordinatesPtr ()
 
void setNumOfAssembleMesh (int nmesh)
 
const Array< int > & getIBFaceList () const
 
Array< int > & getCellColors ()
 
const Array< int > & getCellColors () const
 
Array< int > & getCellColorsOther ()
 
const Array< int > & getCellColorsOther () const
 
shared_ptr< Array< int > > getLocalToGlobalNodesPtr ()
 
const map< int, int > getGlobalToLocalNodes () const
 
map< int, int > getGlobalToLocalNodes ()
 
shared_ptr< ArrayBase > getLocalToGlobalPtr ()
 
Array< int > & getLocalToGlobal ()
 
const Array< int > & getLocalToGlobal () const
 
map< int, int > & getGlobalToLocal ()
 
const map< int, int > & getGlobalToLocal () const
 
multiMap & getCellCellsGlobal ()
 
const multiMap & getCellCellsGlobal () const
 
bool isMergedMesh () const
 
int getNumOfAssembleMesh () const
 
const set< int > & getBoundaryNodesSet () const
 
set< int > & getBoundaryNodesSet ()
 
const map< int, int > & getCommonFacesMap () const
 
const map< int, int > & getCommonFacesMapOther () const
 
void createScatterGatherCountsBuffer ()
 
void recvScatterGatherCountsBufferLocal ()
 
void syncCounts ()
 
void createScatterGatherIndicesBuffer ()
 
void recvScatterGatherIndicesBufferLocal ()
 
void syncIndices ()
 
const CRConnectivity & getCellCellsGhostExt () const
 
const ArrayBase & getSendCounts (const EntryIndex &e) const
 
const ArrayBase & getSendIndices (const EntryIndex &e) const
 
const ArrayBase & getRecvCounts (const EntryIndex &e) const
 
const ArrayBase & getRecvIndices (const EntryIndex &e) const
 
void createCellCellsGhostExt ()
 
void uniqueFaceCells ()
 
void setIBFaces (shared_ptr< Array< int > > faceList)
 
void createGhostCellSiteScatter (const PartIDMeshIDPair &id, shared_ptr< StorageSite > site)
 
void createGhostCellSiteGather (const PartIDMeshIDPair &id, shared_ptr< StorageSite > site)
 
void createGhostCellSiteScatterLevel1 (const PartIDMeshIDPair &id, shared_ptr< StorageSite > site)
 
void createGhostCellSiteGatherLevel1 (const PartIDMeshIDPair &id, shared_ptr< StorageSite > site)
 
void createCellColor ()
 
void createLocalGlobalArray ()
 
void createLocalToGlobalNodesArray ()
 
void setNodeRepeationArrayCoupling (const Mesh &bMesh)
 
shared_ptr< ArrayBase > getUpdatedNodesCoordCoupling (const GeomFields &geomField, const Mesh &bMesh)
 
void setCommonFacesMap (const Mesh &bMesh)
 
void findCommonNodes (Mesh &other)
 
void findCommonFaces (StorageSite &faces, StorageSite &otherFaces, const GeomFields &geomFields)
 
bool COMETfindCommonFaces (StorageSite &faces, StorageSite &otherFaces, const GeomFields &geomFields)
 
Mesh * extractBoundaryMesh ()
 
Mesh * extrude (int nz, double zmax, bool boundaryOnly=false)
 
Mesh * createShell (const int fgId, Mesh &otherMesh, const int otherFgId)
 
Mesh * createDoubleShell (const int fgId, Mesh &otherMesh, const int otherFgId, const bool connectedShell)
 
int getCellZoneID () const
 
void setCellZoneID (const int id)
 
void setID (const int id)
 
bool isShell () const
 
bool isDoubleShell () const
 
bool isConnectedShell () const
 
int getParentMeshID () const
 
int getOtherMeshID () const
 
const StorageSite & getParentFaceGroupSite () const
 
const StorageSite & getOtherFaceGroupSite () const
 
ConnectivityMap & getConnectivityMap ()
 
PeriodicFacePairs & getPeriodicFacePairs ()
 
const PeriodicFacePairs & getPeriodicFacePairs () const
 
void CRConnectivityPrint (const CRConnectivity &conn, int procID, const string &name)
 
void CRConnectivityPrintFile (const CRConnectivity &conn, const string &name, const int procID) const
 
void InterfaceToBoundary ()
 

Private Attributes

const CRConnectivity & _allFaceCells
 
map< const StorageSite
*, const CRConnectivity * > 
_faceCellsMap
 
Array< int > * _cellTypes
 
Array< int > * _cellTypeCount
 

Additional Inherited Members

- Public Types inherited from Mesh
enum  {
  CELL_BAR2, CELL_TRI3, CELL_QUAD4, CELL_TETRA4,
  CELL_HEX8, CELL_PYRAMID, CELL_PRISM, CELL_TYPE_MAX
}
 
enum  {
  IBTYPE_FLUID =-1, IBTYPE_BOUNDARY =-2, IBTYPE_SOLID =-3, IBTYPE_REALBOUNDARY =-4,
  IBTYPE_UNKNOWN =-5
}
 
typedef Vector< double, 3 > VecD3
 
typedef Array< int > IntArray
 
typedef vector< int > vecList
 
typedef multimap< int, int > multiMap
 
typedef map< int, int > mapInt
 
typedef pair< const
StorageSite *, const
StorageSite * > 
SSPair
 
typedef map< SSPair,
shared_ptr< CRConnectivity > > 
ConnectivityMap
 
typedef pair< int, int > PartIDMeshIDPair
 
typedef map< PartIDMeshIDPair,
shared_ptr< StorageSite > > 
GhostCellSiteMap
 
typedef pair< const
StorageSite *, const
StorageSite * > 
EntryIndex
 
typedef map< EntryIndex,
shared_ptr< ArrayBase > > 
GhostArrayMap
 
typedef map< int, int > PeriodicFacePairs
 
- Public Attributes inherited from Mesh
enum Mesh:: { ... }  CellType
 
- Protected Attributes inherited from Mesh
const int _dimension
 
int _id
 
int _cellZoneID
 
StorageSite _cells
 
StorageSite _faces
 
StorageSite _nodes
 
StorageSite _ibFaces
 
StorageSite * _boundaryNodes
 
shared_ptr< FaceGroup > _interiorFaceGroup
 
FaceGroupList _faceGroups
 
FaceGroupList _boundaryGroups
 
FaceGroupList _interfaceGroups
 
ConnectivityMap _connectivityMap
 
shared_ptr< Array< VecD3 > > _coordinates
 
shared_ptr< Array< int > > _boundaryNodeGlobalToLocalPtr
 
shared_ptr< Array< int > > _ibFaceList
 
shared_ptr< Array< int > > _cellColor
 
shared_ptr< Array< int > > _cellColorOther
 
int _numOfAssembleMesh
 
bool _isAssembleMesh
 
GhostCellSiteMap _ghostCellSiteScatterMap
 
GhostCellSiteMap _ghostCellSiteGatherMap
 
GhostCellSiteMap _ghostCellSiteScatterMapLevel1
 
GhostCellSiteMap _ghostCellSiteGatherMapLevel1
 
GhostArrayMap _sendCounts
 
GhostArrayMap _recvCounts
 
GhostArrayMap _sendIndices
 
GhostArrayMap _recvIndices
 
shared_ptr< StorageSite > _cellSiteGhostExt
 
shared_ptr< CRConnectivity > _cellCellsGhostExt
 
map< int, int > _commonFacesMap
 
map< int, int > _commonFacesMapOther
 
set< int > _boundaryNodesSet
 
shared_ptr< Array< int > > _repeatNodes
 
shared_ptr< Array< int > > _localToGlobalNodes
 
shared_ptr< Array< int > > _localToGlobal
 
map< int, int > _globalToLocal
 
map< int, int > _globalToLocalNodes
 
multiMap _cellCellsGlobal
 
shared_ptr< CRConnectivity > _cellCells2
 
shared_ptr< CRConnectivity > _faceCells2
 
bool _isShell
 
bool _isDoubleShell
 
bool _isConnectedShell
 
const StorageSite * _parentFaceGroupSite
 
const StorageSite * _otherFaceGroupSite
 
int _parentMeshID
 
int _otherMeshID
 
PeriodicFacePairs _periodicFacePairs
 
- Static Protected Attributes inherited from Mesh
static int _lastID = 0
 

Detailed Description

Definition at line 17 of file UMesh.h.

Constructor & Destructor Documentation

UMesh::UMesh ( const Args &  args)
virtual UMesh::~UMesh ( )
virtual

Member Function Documentation

UMesh::DECLARE_HT ( "UMesh"  )
UMesh::DECLARE_METHOD ( maskCellsOfType  )
UMesh::DECLARE_METHOD ( getCellTypeCount  )
UMesh::DECLARE_METHOD ( getCellTypes  )
const CRConnectivity& UMesh::getAllFaceCells ( ) const
const Array<int>& UMesh::getCellTypeCount ( ) const
const Array<int>& UMesh::getCellTypes ( ) const
const CRConnectivity& UMesh::getConnectivity ( const StorageSite &  from,
const StorageSite &  to 
) const
const CRConnectivity& UMesh::getFaceCells ( const StorageSite &  site) const

Member Data Documentation

const CRConnectivity& UMesh::_allFaceCells
private

Definition at line 41 of file UMesh.h.

Array<int>* UMesh::_cellTypeCount
mutableprivate

Definition at line 44 of file UMesh.h.

Array<int>* UMesh::_cellTypes
mutableprivate

Definition at line 43 of file UMesh.h.

map<const StorageSite*,const CRConnectivity*> UMesh::_faceCellsMap
private

Definition at line 42 of file UMesh.h.


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