LifeV
|
Namespaces | |
MeshStatistics | |
Mesh statistics. | |
Data Structures | |
class | EnquireBEdge |
class | EnquireBFace |
Functor to check if a Face is on the boundary. More... | |
class | EnquireBPoint |
class | GetCoordComponent |
This functor is used to do some geometry checks. More... | |
class | GetOnes |
class | MeshTransformer |
Class to transform a mesh. More... | |
Typedefs | |
typedef std::map< BareFace, std::pair< ID, ID >, cmpBareItem< BareFace > > | temporaryFaceContainer_Type |
A locally used structure, not meant for general use. More... | |
typedef std::map< BareEdge, std::pair< ID, ID >, cmpBareItem< BareEdge > > | temporaryEdgeContainer_Type |
A locally used structure, not meant for general use. More... | |
Functions | |
template<typename MeshType > | |
UInt | findFaces (const MeshType &mesh, temporaryFaceContainer_Type &boundaryFaceContainer, UInt &numInternalFaces, temporaryFaceContainer_Type &internalFaces, bool buildAllFaces=false) |
Finds mesh faces. More... | |
template<typename MeshType > | |
UInt | findBoundaryFaces (const MeshType &mesh, temporaryFaceContainer_Type &boundaryFaceContainer, UInt &numInternalFaces) |
Finds boundary faces. More... | |
template<typename MeshType > | |
UInt | findBoundaryEdges (const MeshType &mesh, temporaryEdgeContainer_Type &boundaryEdgeContainer) |
Finds boundary edges. More... | |
template<typename MeshType > | |
UInt | findInternalEdges (const MeshType &mesh, const temporaryEdgeContainer_Type &boundaryEdgeContainer, temporaryEdgeContainer_Type &internalEdgeContainer) |
Finds internal edges. More... | |
template<typename MeshElementMarkedType > | |
markerID_Type | inheritPointsStrongerMarker (MeshElementMarkedType &geoElement) |
template<typename MeshElementMarkedType > | |
markerID_Type | inheritPointsWeakerMarker (MeshElementMarkedType &geoElement) |
Sets the marker ID of a MeshElementMarked of dimension greater one. More... | |
template<typename MeshType > | |
UInt | testDomainTopology (MeshType const &mesh, UInt &numBoundaryEdges) |
template<typename MeshEntityListType > | |
bool | checkIsMarkerSet (const MeshEntityListType &meshEntityList) |
Check whether all markers of a the geometry entities stored in a list are set. More... | |
template<typename MeshType > | |
void | setBoundaryEdgesMarker (MeshType &mesh, std::ostream &logStream=std::cout, std::ostream &=std::cerr, bool verbose=true) |
Sets the marker id for all boundary edges by inheriting them from boundary points. More... | |
template<typename MeshType > | |
void | setBoundaryFacesMarker (MeshType &mesh, std::ostream &logStream=std::cout, std::ostream &=std::cerr, bool verbose=true) |
Sets the marker ID for all boundary faces by inheriting them from boundary points. More... | |
template<typename MeshType > | |
void | setBoundaryPointsMarker (MeshType &mesh, std::ostream &logStream=std::cout, std::ostream &=std::cerr, bool verbose=false) |
It sets the marker ID for Points, by inheriting it from facets. More... | |
template<typename MeshEntityListType > | |
bool | checkId (const MeshEntityListType &meshEntityList) |
Verifies if a list of mesh entities have the ID properly set. More... | |
template<typename MeshEntityListType > | |
void | fixId (MeshEntityListType &meshEntityList) |
Fixes a a list of mesh entities so that the ID is properly set. More... | |
template<typename MeshType > | |
void | setBoundaryPointsCounters (MeshType &mesh) |
Fixes boundary points counter It fix the boundary points counter by counting how many points have the boundary flag set. It also resets the boundary points list. More... | |
template<typename MeshType > | |
void | fixBoundaryPoints (MeshType &mesh, std::ostream &logStream=std::cout, std::ostream &=std::cerr, bool verbose=true) |
It fixes boundary flag on points laying on boundary faces. More... | |
template<class MeshType > | |
bool | rearrangeFaces (MeshType &mesh, std::ostream &logStream, std::ostream &errorStream, Switch &sw, UInt &numFaces, UInt &numBoundaryFaces, bool verbose=false, temporaryFaceContainer_Type *externalFaceContainer=0) |
It rearranges the faces stored in the mesh. More... | |
template<class MeshType > | |
bool | fixBoundaryFaces (MeshType &mesh, std::ostream &logStream, std::ostream &errorStream, Switch &sw, UInt &numFaces, UInt &numBoundaryFaces, bool=false, bool verbose=false, temporaryFaceContainer_Type *externalFaceContainer=0) |
It fixes boundary faces so that they are consistently numbered with volumes. More... | |
template<class MeshType > | |
bool | buildFaces (MeshType &mesh, std::ostream &logStream, std::ostream &errorStream, UInt &numBoundaryFaces, UInt &numInternalFaces, bool buildBoundaryFaces=true, bool buildInternalFaces=false, bool verbose=false, temporaryFaceContainer_Type *externalFaceContainer=0) |
Builds faces. More... | |
template<typename MeshType > | |
bool | buildEdges (MeshType &mesh, std::ostream &logStream, std::ostream &errorStream, UInt &numBoundaryEdgesFound, UInt &numInternalEdgesFound, bool buildBoundaryEdges=true, bool buildInternalEdges=false, bool verbose=false, temporaryEdgeContainer_Type *externalEdgeContainer=0) |
It builds edges. More... | |
template<typename MeshType > | |
void | p2MeshFromP1Data (MeshType &mesh, std::ostream &logStream=std::cout) |
It builds a P2 mesh from P1 data. More... | |
template<typename RegionMeshType , typename RegionFunctorType > | |
void | assignRegionMarkerID (RegionMeshType &mesh, const RegionFunctorType &fun) |
template<typename RegionMeshType > | |
void | printMeshInfos (std::shared_ptr< RegionMeshType > mesh) |
Print informations about the mesh. More... | |
MeshData | getMeshData (const std::string &meshName, const std::string &resourcesPath="./", const std::string &meshOrder="P1") |
setup and get the mesh data More... | |
template<typename RegionMeshType > | |
void | loadMesh (std::shared_ptr< RegionMeshType > &meshLocal, std::shared_ptr< RegionMeshType > &meshFull, const std::string &meshName, const std::string &resourcesPath, const std::string &meshOrder) |
Read and partitioned a *.mesh file. More... | |
template<typename RegionMeshType > | |
void | loadPartitionedMesh (std::shared_ptr< RegionMeshType > &meshLocal, const std::string &meshName, const std::string &resourcesPath) |
Read and partitioned a *.mesh file. More... | |
template<typename RegionMeshType > | |
void | loadMesh (std::shared_ptr< RegionMeshType > &meshLocal, std::shared_ptr< RegionMeshType > &meshFull, const std::string &meshName, const std::string &resourcesPath="./", bool isPartitioned=false, const std::string &meshOrder="P1") |
Read and partitioned a *.mesh file. More... | |
template<typename RegionMeshType > | |
void | loadMesh (std::shared_ptr< RegionMeshType > &meshLocal, const std::string &meshName, const std::string &resourcesPath="./", bool isPartitioned=false, const std::string &meshOrder="P1") |
Read and partitioned a *.mesh file. More... | |
template<typename RegionMeshType > | |
void | loadStructuredMesh (std::shared_ptr< RegionMeshType > &mesh, std::shared_ptr< RegionMeshType > &meshFull, markerID_Type regionFlag, const std::vector< UInt > &m, bool verbose=false, const std::vector< Real > &l=std::vector< Real >(3, 1), const std::vector< Real > &t=std::vector< Real >(3, 0)) |
Build a mesh from a partitioned mesh. More... | |
template<typename RegionMeshType > | |
void | loadStructuredMesh (std::shared_ptr< RegionMeshType > &mesh, markerID_Type regionFlag, const std::vector< UInt > m, bool verbose=false, const std::vector< Real > &l=std::vector< Real >(3, 1), const std::vector< Real > &t=std::vector< Real >(3, 0)) |
Build a mesh from a partitioned mesh. More... | |
typedef std::map< BareFace, std::pair<ID, ID >, cmpBareItem<BareFace> > temporaryFaceContainer_Type |
A locally used structure, not meant for general use.
Definition at line 72 of file MeshUtility.hpp.
typedef std::map< BareEdge, std::pair<ID, ID>, cmpBareItem<BareEdge> > temporaryEdgeContainer_Type |
A locally used structure, not meant for general use.
Definition at line 76 of file MeshUtility.hpp.
UInt LifeV::MeshUtility::findFaces | ( | const MeshType & | mesh, |
temporaryFaceContainer_Type & | boundaryFaceContainer, | ||
UInt & | numInternalFaces, | ||
temporaryFaceContainer_Type & | internalFaces, | ||
bool | buildAllFaces = false |
||
) |
Finds mesh faces.
A low level routine, not meant to be called directly. It creates a container with all the information needed to set up properly the boundary faces connectivities.
mesh | A 3D mesh. | |
boundaryFaceContainer[out] | This container will eventually contain a map whose key are the BareFaces corresponding to the boundary faces; the map data are pairs of IDs: the ID of the adjacent element and the relative position of the face in the element. The search of boundary faces does not rely on the proper setting of boundary nodes. | |
NumInternalFaces[out] | A reference to an integer returning the number of internal faces found. | |
[out] | internalFaces | A container that will possibly contain a map whose keys are the BareFaces corresponding to internal faces and whose data are pairs of IDs: the ID of the two elements adjacent to the face. |
buildAllFaces | When this bool is set true the function will also construct the set of internal faces, stored in internalFaces. |
Definition at line 446 of file MeshUtility.hpp.
UInt LifeV::MeshUtility::findBoundaryFaces | ( | const MeshType & | mesh, |
temporaryFaceContainer_Type & | boundaryFaceContainer, | ||
UInt & | numInternalFaces | ||
) |
Finds boundary faces.
A low level routine, not meant to be called directly. It creates a container with all the information needed to set up properly the boundary face connectivities.
mesh | A 3D mesh. |
boundaryFaceContainer[out] | This container will eventually contain a map whose key are the BareFaces corresponding to the boundary faces; the map data are pairs of IDs: the ID of the adjacent element and the relative position of the face in the element. The search of boundary faces does not rely on the proper setting of boundary nodes. |
numInternalFaces[out] | A reference to an integer returning the number of internal faces found. |
Definition at line 528 of file MeshUtility.hpp.
UInt LifeV::MeshUtility::findBoundaryEdges | ( | const MeshType & | mesh, |
temporaryEdgeContainer_Type & | boundaryEdgeContainer | ||
) |
Finds boundary edges.
A low level routine, not meant to be called directly. It creates a container with all the information needed to set up properly the boundary edges connectivities.
mesh | A mesh. |
boundaryEdgeContainer[out] | This container will eventually contain a map whose key are the BareEdges corresponding to the boundary edges; the map data are pairs of IDs: the ID of the adjacent face and the relative position of the edge in the element. The search of boundary edges does not rely on the proper setting of boundary nodes. |
Definition at line 555 of file MeshUtility.hpp.
UInt LifeV::MeshUtility::findInternalEdges | ( | const MeshType & | mesh, |
const temporaryEdgeContainer_Type & | boundaryEdgeContainer, | ||
temporaryEdgeContainer_Type & | internalEdgeContainer | ||
) |
Finds internal edges.
A low level routine, not meant to be called directly. It creates a container with all the information needed to set up properly the edge connectivities.
mesh | A 3D mesh. |
boundaryEdgeContainer[in] | This container contains a map whose key are the BareEdges corresponding to the boundary edges; the map data are pairs of IDs (if generated from findBoundaryEdges(), those pairs will contain be the ID of the adjacent mesh element and the relative position of the edge in the element). |
internalEdgeContainer[out] | This container contains a map whose key are the BareEdges corresponding to the boundary edges; the map data are pairs of IDs: the ID of the adjacent element and the relative position of the edge in the element. |
Definition at line 613 of file MeshUtility.hpp.
This routine tests if the topological description of boundary face is sane. In particular all boundary edges must be adjacent to only 2 surface elements and the orientation must be correct.
mesh | a mesh |
numBoundaryEdges | The function also returns the number of boundary edges in numBoundaryEdges. |
Definition at line 730 of file MeshUtility.hpp.
bool LifeV::MeshUtility::checkIsMarkerSet | ( | const MeshEntityListType & | meshEntityList | ) |
Check whether all markers of a the geometry entities stored in a list are set.
Definition at line 785 of file MeshUtility.hpp.
void LifeV::MeshUtility::setBoundaryEdgesMarker | ( | MeshType & | mesh, |
std::ostream & | logStream = std::cout , |
||
std::ostream & | = std::cerr , |
||
bool | verbose = true |
||
) |
Sets the marker id for all boundary edges by inheriting them from boundary points.
The paradigm is that an edge WHOSE MARKER HAS NOT ALREADY BEEN SET will get the WEAKER marker ID among its VERTICES. For instance if a vertex is assigned to an Essential BC and the other to a Natural BC the edge will get the marker ID related to the Natural B.C.
What is a weaker marker is set in the MarkerPolicy passed through the markers.
mesh | A mesh |
logStream | stream to which a map edgeId -> TimeAdvanceNewmarker will be output |
errorStream | stream to which error messages will be sent |
verbose | if false, no messages will be sent to the logStream |
it should take the way to handle missing marker ids as policy
errorStream is unused
Definition at line 817 of file MeshUtility.hpp.
void LifeV::MeshUtility::setBoundaryFacesMarker | ( | MeshType & | mesh, |
std::ostream & | logStream = std::cout , |
||
std::ostream & | = std::cerr , |
||
bool | verbose = true |
||
) |
Sets the marker ID for all boundary faces by inheriting them from boundary points.
The paradigm is that a face WHOSE MARKER ID HAS NOT ALREADY BEEN SET will get the WEAKER marker ID among its VERTICES. For instance if a vertex is assigned to a Natural BC and the others to a Natural BC the face will get the marker ID related to the Natural BC
mesh | A mesh |
logStream | stream to which a map faceId -> TimeAdvanceNewmarker will be output |
errorStream | stream to which error messages will be sent |
verbose | if false, no messages will be sent to the logStream |
Definition at line 869 of file MeshUtility.hpp.
void LifeV::MeshUtility::setBoundaryPointsMarker | ( | MeshType & | mesh, |
std::ostream & | logStream = std::cout , |
||
std::ostream & | = std::cerr , |
||
bool | verbose = false |
||
) |
It sets the marker ID for Points, by inheriting it from facets.
The paradigm is that a point whose marker ID is unset will inherit the strongest marker ID of the surrounding facets, with the convention that if the marker ID of one of the surrounding facets is null, it is ignored.
mesh | A mesh |
logStream | stream to which a map PointId -> MarkerId will be output |
errorStream | stream to which error messages will be sent |
verbose | if false, no messages will be sent to the logStream |
Definition at line 923 of file MeshUtility.hpp.
bool LifeV::MeshUtility::checkId | ( | const MeshEntityListType & | meshEntityList | ) |
Verifies if a list of mesh entities have the ID properly set.
Definition at line 1004 of file MeshUtility.hpp.
void LifeV::MeshUtility::fixId | ( | MeshEntityListType & | meshEntityList | ) |
Fixes a a list of mesh entities so that the ID is properly set.
Definition at line 1026 of file MeshUtility.hpp.
void LifeV::MeshUtility::setBoundaryPointsCounters | ( | MeshType & | mesh | ) |
Fixes boundary points counter It fix the boundary points counter by counting how many points have the boundary flag set. It also resets the boundary points list.
Definition at line 1047 of file MeshUtility.hpp.
void LifeV::MeshUtility::fixBoundaryPoints | ( | MeshType & | mesh, |
std::ostream & | logStream = std::cout , |
||
std::ostream & | = std::cerr , |
||
bool | verbose = true |
||
) |
It fixes boundary flag on points laying on boundary faces.
mesh | a mesh |
logStream | logging stream |
errorStream | error stream |
verbose | If true you have a verbose output |
Definition at line 1103 of file MeshUtility.hpp.
bool LifeV::MeshUtility::rearrangeFaces | ( | MeshType & | mesh, |
std::ostream & | logStream, | ||
std::ostream & | errorStream, | ||
Switch & | sw, | ||
UInt & | numFaces, | ||
UInt & | numBoundaryFaces, | ||
bool | verbose = false , |
||
temporaryFaceContainer_Type * | externalFaceContainer = 0 |
||
) |
It rearranges the faces stored in the mesh.
It makes sure that
It uses the information given by findBoundaryFaces, so it relies ONLY on the mesh topology
It works on a mesh where faces have already been found! So it is not meant to be used for finding the boundary faces. Use the general utility BuildFaces for that purpose. Its main role, as the name says, is to make sure that faces are well ordered. It does not verify the consitency of the face-to-adjacentVolume information. Use fixBoundaryFaces for this purpose
[out] | mesh | a mesh |
[out] | logStream | stream that will receive all information regarding the markers |
[out] | errorStream | stream for error messages |
[out] | sw | A switch that will contain information on what has been done Possible values are
|
numFaces[out] | It returns the number of faces found by the function | |
numBoundaryFaces[out] | It returns the number of boundary faces found by the function | |
[in] | verbose | if false nothing is written to logStream |
[out] | externalFaceContainer. | If not NULL it is a pointer to an external map of boundary faces, already produced by a call to findBoundaryFaces(). This parameter may be used to save a lot of computational work, since findBoundaryFaces() is rather expensive. |
Definition at line 1202 of file MeshUtility.hpp.
bool LifeV::MeshUtility::fixBoundaryFaces | ( | MeshType & | mesh, |
std::ostream & | logStream, | ||
std::ostream & | errorStream, | ||
Switch & | sw, | ||
UInt & | numFaces, | ||
UInt & | numBoundaryFaces, | ||
bool | = false , |
||
bool | verbose = false , |
||
temporaryFaceContainer_Type * | externalFaceContainer = 0 |
||
) |
It fixes boundary faces so that they are consistently numbered with volumes.
An important step for building degrees of freedom on faces. It also fixes other face related data. It works on a mesh where boundary faces have already been found! So it is not meant to be used for finding the boundary faces. Use the general utility BuildFaces for that purpose. Its main role, as the name says, is to fix a partially broken mesh. In particular, it assures that the boundary faces are correctly set w.r.t. the adjacent volumes
[out] | mesh | a mesh |
[out] | logStream | stream that will receive all information regarding the markers |
[out] | errorStream | stream for error messages |
[out] | sw | A switch that will contain information on what has been done Possible values are
|
numFaces[out] | It returns the number of faces found by the function | |
numBoundaryFaces[out] | It returns the number of boundary faces found by the function | |
fixMarker[in] | If set to the true value, all faces without a markerFlag set will inherit it from the points. todo remove this parameter (unused) | |
[in] | verbose | if false nothing is written to logStream |
[out] | externalFaceContainer. | If not NULL it is a pointer to an external map of boundary faces, already produced by a call to findBoundaryFaces(). This parameter may be used to save a lot of computational work, since findBoundaryFaces() is rather expensive. |
Definition at line 1357 of file MeshUtility.hpp.
bool LifeV::MeshUtility::buildFaces | ( | MeshType & | mesh, |
std::ostream & | logStream, | ||
std::ostream & | errorStream, | ||
UInt & | numBoundaryFaces, | ||
UInt & | numInternalFaces, | ||
bool | buildBoundaryFaces = true , |
||
bool | buildInternalFaces = false , |
||
bool | verbose = false , |
||
temporaryFaceContainer_Type * | externalFaceContainer = 0 |
||
) |
Builds faces.
This is a major function. It may be used to build or partially build faces. So it may operate also on a mesh where not all boundary faces are set. Function may alternatively be used to build the compulsory boundary faces, all the mesh faces, or just add to an existing list of just boundary faces the internal ones. It will not destroy the basic info (marker id, etc) contained in the faces list already stored in the meash. So if you want to build everything from scratch you need to clear it first. It (re)build the adjacent volume info, sets the boundary flags and ensures that boundary faces are stored first.
mesh | A mesh |
logStream | Log stream for information on the newly created markers |
errorStream | Error stream |
numBoundaryFaces | It returns the number of boundary faces |
numInternalFaces | It returns the number of internal faces (only if externalFaceContainer is not provided!) |
buildBoundaryFaces | if true the function builds boundary faces |
buildInternalFaces | if true the function builds internal faces |
verbose | If true markerFlags info is written on logStream. |
externalFaceContainer. | If not NULL it is a pointer to an external map of boundary faces, already produced by a call to findBoundaryFaces(). This parameter may be used to save a lot of computational work, since findBoundaryFaces() is rather expensive. |
Definition at line 1588 of file MeshUtility.hpp.
bool LifeV::MeshUtility::buildEdges | ( | MeshType & | mesh, |
std::ostream & | logStream, | ||
std::ostream & | errorStream, | ||
UInt & | numBoundaryEdgesFound, | ||
UInt & | numInternalEdgesFound, | ||
bool | buildBoundaryEdges = true , |
||
bool | buildInternalEdges = false , |
||
bool | verbose = false , |
||
temporaryEdgeContainer_Type * | externalEdgeContainer = 0 |
||
) |
It builds edges.
This function may alternatively be used to build the boundary edges, all the mesh edges, or just add the internal edges to an existing list of just boundary edges.
mesh | A mesh |
logStream | Log stream for information on the newly created markers for boundary edges |
errorStream | Error stream |
numBoundaryEdgesFound | Returns the number of boundary edges |
numInternalEdgesFound | Returns the number of internal edges |
buildBoundaryEdges | if true the function builds boundary edges |
buildInternalEdges | if true the function builds internal edges |
verbose. | If true markerFlags info is written on logStream. |
externalEdgeContainer. | If not NULL it is a pointer to an external map of bondary edges, already produced by a call to findBoundaryEdges(). This parameter may be used to save al lot of computational work, since findBoundaryEdges() is rather expensive. |
Definition at line 1956 of file MeshUtility.hpp.
void LifeV::MeshUtility::p2MeshFromP1Data | ( | MeshType & | mesh, |
std::ostream & | logStream = std::cout |
||
) |
It builds a P2 mesh from P1 data.
mesh[out] | A mesh |
logStream[out] | Log stream for information on the newly created markers for boundary edges |
Definition at line 2197 of file MeshUtility.hpp.
void LifeV::MeshUtility::assignRegionMarkerID | ( | RegionMeshType & | mesh, |
const RegionFunctorType & | fun | ||
) |
Definition at line 2715 of file MeshUtility.hpp.
void LifeV::MeshUtility::printMeshInfos | ( | std::shared_ptr< RegionMeshType > | mesh | ) |
Print informations about the mesh.
Definition at line 76 of file MeshLoadingUtility.hpp.
|
inline |
setup and get the mesh data
meshName | name of the mesh file |
resourcesPath | path to the mesh folder |
meshOrder | order of the mesh elements |
Definition at line 100 of file MeshLoadingUtility.hpp.
void LifeV::MeshUtility::loadMesh | ( | std::shared_ptr< RegionMeshType > & | meshLocal, |
std::shared_ptr< RegionMeshType > & | meshFull, | ||
const std::string & | meshName, | ||
const std::string & | resourcesPath, | ||
const std::string & | meshOrder | ||
) |
Read and partitioned a *.mesh file.
meshLocal | The partitioned mesh that we want to generate |
meshFull | The non partitioned mesh that we want to keep |
meshName | name of the mesh file |
resourcesPath | path to the mesh folder |
meshOrder | order of the mesh |
Definition at line 126 of file MeshLoadingUtility.hpp.
void LifeV::MeshUtility::loadPartitionedMesh | ( | std::shared_ptr< RegionMeshType > & | meshLocal, |
const std::string & | meshName, | ||
const std::string & | resourcesPath | ||
) |
Read and partitioned a *.mesh file.
meshLocal | The partitioned mesh that we want to generate |
meshName | name of the mesh file |
resourcesPath | path to the mesh folder |
Definition at line 173 of file MeshLoadingUtility.hpp.
void LifeV::MeshUtility::loadMesh | ( | std::shared_ptr< RegionMeshType > & | meshLocal, |
std::shared_ptr< RegionMeshType > & | meshFull, | ||
const std::string & | meshName, | ||
const std::string & | resourcesPath = "./" , |
||
bool | isPartitioned = false , |
||
const std::string & | meshOrder = "P1" |
||
) |
Read and partitioned a *.mesh file.
meshLocal | The partitioned mesh that we want to generate |
meshFull | The non partitioned mesh that we want to keep |
isPartitioned | boolean to say if the mesh should be partitioned or just loaded |
meshName | name of the mesh file |
resourcesPath | path to the mesh folder |
meshOrder | order of the mesh |
Definition at line 209 of file MeshLoadingUtility.hpp.
void LifeV::MeshUtility::loadMesh | ( | std::shared_ptr< RegionMeshType > & | meshLocal, |
const std::string & | meshName, | ||
const std::string & | resourcesPath = "./" , |
||
bool | isPartitioned = false , |
||
const std::string & | meshOrder = "P1" |
||
) |
Read and partitioned a *.mesh file.
meshLocal | The partitioned mesh that we want to generate |
isPartitioned | boolean to say if the mesh should be partitioned or just loaded |
meshName | name of the mesh file |
resourcesPath | path to the mesh folder |
meshOrder | order of the mesh |
Definition at line 239 of file MeshLoadingUtility.hpp.
void LifeV::MeshUtility::loadStructuredMesh | ( | std::shared_ptr< RegionMeshType > & | mesh, |
std::shared_ptr< RegionMeshType > & | meshFull, | ||
markerID_Type | regionFlag, | ||
const std::vector< UInt > & | m, | ||
bool | verbose = false , |
||
const std::vector< Real > & | l = std::vector<Real> (3, 1) , |
||
const std::vector< Real > & | t = std::vector<Real> (3, 0) |
||
) |
Build a mesh from a partitioned mesh.
mesh | The mesh that we want to generate |
regionFlag | Flag of the region |
m | Number of elements along the ( length, width, height ) |
l | length of the mesh ( length, width, height ) |
t | translation of the mesh along the (x,y,z)-axis |
verbose | Verbose mode enabled/disabled |
Definition at line 262 of file MeshLoadingUtility.hpp.
void LifeV::MeshUtility::loadStructuredMesh | ( | std::shared_ptr< RegionMeshType > & | mesh, |
markerID_Type | regionFlag, | ||
const std::vector< UInt > | m, | ||
bool | verbose = false , |
||
const std::vector< Real > & | l = std::vector<Real> (3, 1) , |
||
const std::vector< Real > & | t = std::vector<Real> (3, 0) |
||
) |
Build a mesh from a partitioned mesh.
mesh | The mesh that we want to generate |
regionFlag | Flag of the region |
m | Number of elements along the ( length, width, height ) |
l | length of the mesh ( length, width, height ) |
t | translation of the mesh along the (x,y,z)-axis |
verbose | Verbose mode enabled/disabled |
Definition at line 330 of file MeshLoadingUtility.hpp.