Namespaces | Enumerations | Functions | Variables
extrudeMesh.C File Reference

Extrude mesh from existing patch (by default outwards facing normals; optional flips faces) or from patch read from file. More...

Include dependency graph for extrudeMesh.C:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Enumerations

enum  ExtrudeMode {
  MESH, PATCH, SURFACE, MESH,
  PATCH, SURFACE, MESH, PATCH,
  SURFACE
}
 

Functions

void createDummyFvMeshFiles (const polyMesh &mesh, const word &regionName)
 
label findPatchID (const polyBoundaryMesh &patches, const word &name)
 
labelList patchFaces (const polyBoundaryMesh &patches, const wordList &names)
 
void updateFaceLabels (const mapPolyMesh &map, labelList &faceLabels)
 
void updateCellSet (const mapPolyMesh &map, labelHashSet &cellLabels)
 
template<class PatchType >
void changeFrontBackPatches (polyMesh &mesh, const word &frontPatchName, const word &backPatchName)
 
int main (int argc, char *argv[])
 

Variables

static const NamedEnum< ExtrudeMode, 3 > ExtrudeModeNames
 

Detailed Description

Extrude mesh from existing patch (by default outwards facing normals; optional flips faces) or from patch read from file.

Original source file extrudeMesh.C

Note: Merges close points so be careful.

Type of extrusion prescribed by run-time selectable model.

Definition in file extrudeMesh.C.

Enumeration Type Documentation

◆ ExtrudeMode

Enumerator
MESH 
PATCH 
SURFACE 
MESH 
PATCH 
SURFACE 
MESH 
PATCH 
SURFACE 

Definition at line 58 of file extrudeMesh.C.

Function Documentation

◆ createDummyFvMeshFiles()

void createDummyFvMeshFiles ( const polyMesh mesh,
const word regionName 
)

Definition at line 79 of file extrudeMesh.C.

References dictionary::add(), Foam::endl(), IOobject::headerOk(), Foam::Info, mesh, IOobject::name(), IOobject::NO_READ, IOobject::NO_WRITE, IOobject::objectPath(), regionName, TimePaths::system(), and fvMesh::time().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findPatchID()

label findPatchID ( const polyBoundaryMesh patches,
const word name 
)

◆ patchFaces()

labelList patchFaces ( const polyBoundaryMesh patches,
const wordList names 
)

◆ updateFaceLabels()

void updateFaceLabels ( const mapPolyMesh map,
labelList faceLabels 
)

Definition at line 174 of file extrudeMesh.C.

References forAll, mapPolyMesh::reverseFaceMap(), List::setSize(), List::size(), and List::transfer().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateCellSet()

void updateCellSet ( const mapPolyMesh map,
labelHashSet cellLabels 
)

Definition at line 195 of file extrudeMesh.C.

References forAll, HashSet< Key, Hash >::insert(), mapPolyMesh::reverseCellMap(), HashTable::size(), and HashTable::transfer().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ changeFrontBackPatches()

void changeFrontBackPatches ( polyMesh mesh,
const word frontPatchName,
const word backPatchName 
)

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 260 of file extrudeMesh.C.

References addPatchCellLayer::addedCells(), addPatchCellLayer::addedPoints(), fvMesh::addFvPatches(), polyMesh::addZones(), DynamicList::append(), args, IOobject::AUTO_WRITE, polyMesh::boundaryMesh(), polyMesh::bounds(), addPatchCellLayer::calcExtrudeInfo(), polyTopoChange::changeMesh(), IOobject::clone(), collapseEdge(), edgeCollapser::consistentCollapse(), Time::controlDictName, createDummyFvMeshFiles(), polyMesh::defaultRegion, dict, Foam::e, primitiveMesh::edges(), Foam::endl(), Foam::exit(), string::expand(), ExtrudeModeNames, polyMesh::faceNeighbour(), polyMesh::faceOwner(), MeshedSurface::faces(), polyMesh::faces(), polyMesh::faceZones(), Foam::FatalError, FatalErrorInFunction, findPatchID(), forAll, addPatchCellLayer::globalEdgeFaces(), Foam::gMax(), Foam::identity(), Foam::Info, HashSet< Key, Hash >::insert(), addPatchCellLayer::layerFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::localPoints(), dictionary::lookup(), dictionary::lookupOrDefault(), Foam::mag(), mesh, MESH, PrimitivePatch< Face, FaceList, PointField, PointType >::meshEdges(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), boundBox::minDim(), Foam::mode(), polyTopoChange::modifyFace(), fvMesh::movePoints(), IOobject::MUST_READ_IF_MODIFIED, UPstream::myProcNo(), fileName::name(), Foam::name(), IOobject::name(), primitiveMesh::nEdges(), extrudeModel::New(), primitiveMesh::nFaces(), Foam::nl, IOobject::NO_READ, nPatches, PrimitivePatch< Face, FaceList, PointField, PointType >::nPoints(), primitiveMesh::nPoints(), word::null, IOobject::objectPath(), argList::optionReadIfPresent(), UPstream::parRun(), PATCH, patches, patchFaces(), fileName::path(), primitiveMesh::pointEdges(), PatchTools::pointNormals(), points, polyMesh::points(), Foam::Pout, Foam::reduce(), regionName, fvMesh::removeFvBoundary(), Foam::renumber(), autoPtr::reset(), Foam::returnReduce(), polyMesh::setInstance(), perfectInterface::setRefinement(), edgeCollapser::setRefinement(), addPatchCellLayer::setRefinement(), List::setSize(), PtrList::setSize(), List::size(), PtrList::size(), HashTable::size(), MeshedSurface::size(), boundBox::span(), updateCellSet(), updateFaceLabels(), fvMesh::updateMesh(), addPatchCellLayer::updateMesh(), autoPtr::valid(), ZoneMesh::whichZone(), regIOobject::write(), and fvMesh::write().

Variable Documentation

◆ ExtrudeModeNames

const NamedEnum<ExtrudeMode, 3> ExtrudeModeNames
static

Definition at line 76 of file extrudeMesh.C.

Referenced by main().