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 CRConnectivitygetConnectivity (const StorageSite &from, const StorageSite &to) const
 
const CRConnectivitygetAllFaceCells () const
 
const CRConnectivitygetFaceCells (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 StorageSitegetFaces () const
 
const StorageSitegetCells () const
 
const StorageSitegetNodes () const
 
const StorageSitegetIBFaces () const
 
const StorageSitegetGhostCellSiteScatter (const PartIDMeshIDPair &id) const
 
const GhostCellSiteMapgetGhostCellSiteScatterMap () const
 
GhostCellSiteMapgetGhostCellSiteScatterMap ()
 
const StorageSitegetGhostCellSiteGather (const PartIDMeshIDPair &id) const
 
GhostCellSiteMapgetGhostCellSiteGatherMap ()
 
const GhostCellSiteMapgetGhostCellSiteGatherMap () const
 
const StorageSitegetGhostCellSiteScatterLevel1 (const PartIDMeshIDPair &id) const
 
const GhostCellSiteMapgetGhostCellSiteScatterMapLevel1 () const
 
GhostCellSiteMapgetGhostCellSiteScatterMapLevel1 ()
 
const StorageSitegetGhostCellSiteGatherLevel1 (const PartIDMeshIDPair &id) const
 
GhostCellSiteMapgetGhostCellSiteGatherMapLevel1 ()
 
const GhostCellSiteMapgetGhostCellSiteGatherMapLevel1 () const
 
StorageSitegetFaces ()
 
StorageSitegetCells ()
 
StorageSitegetNodes ()
 
StorageSitegetIBFaces ()
 
const CRConnectivitygetConnectivity (const StorageSite &from, const StorageSite &to) const
 
const CRConnectivitygetAllFaceNodes () const
 
const CRConnectivitygetAllFaceCells () const
 
const CRConnectivitygetCellNodes () const
 
const CRConnectivitygetFaceCells (const StorageSite &site) const
 
const CRConnectivitygetFaceNodes (const StorageSite &site) const
 
const CRConnectivitygetCellFaces () const
 
const CRConnectivitygetCellCells () const
 
const CRConnectivitygetCellCells2 () const
 
const CRConnectivitygetFaceCells2 () const
 
CRConnectivitygetAllFaceCells ()
 
const FaceGroupgetInteriorFaceGroup () const
 
int getFaceGroupCount () const
 
int getBoundaryGroupCount () const
 
int getInterfaceGroupCount () const
 
const FaceGroupListgetBoundaryFaceGroups () const
 
const FaceGroupListgetInterfaceGroups () const
 
const FaceGroupListgetAllFaceGroups () const
 
const FaceGroupgetFaceGroup (const int fgId) const
 
const StorageSitecreateInteriorFaceGroup (const int size)
 
const StorageSitecreateInterfaceGroup (const int size, const int offset, const int id)
 
const StorageSitecreateBoundaryFaceGroup (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 ArrayBasegetBNglobalToLocal () const
 
const StorageSitegetBoundaryNodes () const
 
const Array< VecD3 > & getNodeCoordinates () const
 
Array< VecD3 > & getNodeCoordinates ()
 
shared_ptr< ArrayBasegetNodeCoordinatesPtr ()
 
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< ArrayBasegetLocalToGlobalPtr ()
 
Array< int > & getLocalToGlobal ()
 
const Array< int > & getLocalToGlobal () const
 
map< int, int > & getGlobalToLocal ()
 
const map< int, int > & getGlobalToLocal () const
 
multiMapgetCellCellsGlobal ()
 
const multiMapgetCellCellsGlobal () 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 CRConnectivitygetCellCellsGhostExt () const
 
const ArrayBasegetSendCounts (const EntryIndex &e) const
 
const ArrayBasegetSendIndices (const EntryIndex &e) const
 
const ArrayBasegetRecvCounts (const EntryIndex &e) const
 
const ArrayBasegetRecvIndices (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< ArrayBasegetUpdatedNodesCoordCoupling (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)
 
MeshextractBoundaryMesh ()
 
Meshextrude (int nz, double zmax, bool boundaryOnly=false)
 
MeshcreateShell (const int fgId, Mesh &otherMesh, const int otherFgId)
 
MeshcreateDoubleShell (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 StorageSitegetParentFaceGroupSite () const
 
const StorageSitegetOtherFaceGroupSite () const
 
ConnectivityMapgetConnectivityMap ()
 
PeriodicFacePairsgetPeriodicFacePairs ()
 
const PeriodicFacePairsgetPeriodicFacePairs () 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: