Namespaces | Enumerations | Functions | Variables
extrudeMesh.C File Reference
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)
 
std::string replaceChar (std::string &SourceString, const std::string &strsrc, const std::string &strdst)
 
std::string trim (std::string s)
 
std::vector< std::string > splitstring (std::string SourceString, std::string strSplit=" ", int nSkip=0)
 
int main (int argc, char *argv[])
 

Variables

static const NamedEnum< ExtrudeMode, 3 > ExtrudeModeNames
 

Enumeration Type Documentation

◆ ExtrudeMode

Enumerator
MESH 
PATCH 
SURFACE 
MESH 
PATCH 
SURFACE 
MESH 
PATCH 
SURFACE 

Definition at line 62 of file extrudeMesh.C.

Function Documentation

◆ createDummyFvMeshFiles()

void createDummyFvMeshFiles ( const polyMesh mesh,
const word regionName 
)

◆ findPatchID()

label findPatchID ( const polyBoundaryMesh patches,
const word name 
)

Definition at line 136 of file extrudeMesh.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::name(), and patches.

Here is the call graph for this function:

◆ patchFaces()

labelList patchFaces ( const polyBoundaryMesh patches,
const wordList names 
)

Definition at line 152 of file extrudeMesh.C.

References findPatchID(), forAll, n, patches, and polyPatch::start().

Here is the call graph for this function:

◆ updateFaceLabels()

void updateFaceLabels ( const mapPolyMesh map,
labelList faceLabels 
)

Definition at line 178 of file extrudeMesh.C.

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

Here is the call graph for this function:

◆ updateCellSet()

void updateCellSet ( const mapPolyMesh map,
labelHashSet cellLabels 
)

Definition at line 199 of file extrudeMesh.C.

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

Here is the call graph for this function:

◆ changeFrontBackPatches()

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

◆ replaceChar()

std::string replaceChar ( std::string &  SourceString,
const std::string &  strsrc,
const std::string &  strdst 
)

Definition at line 289 of file extrudeMesh.C.

References Foam::pos().

Here is the call graph for this function:

◆ trim()

std::string trim ( std::string  s)

Definition at line 308 of file extrudeMesh.C.

References s().

Here is the call graph for this function:

◆ splitstring()

std::vector<std::string> splitstring ( std::string  SourceString,
std::string  strSplit = " ",
int  nSkip = 0 
)

Definition at line 323 of file extrudeMesh.C.

References trim().

Here is the call graph for this function:

◆ main()

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

Definition at line 361 of file extrudeMesh.C.

References dictionary::add(), 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, dictPath, 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(), 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::optionFound(), argList::optionReadIfPresent(), UPstream::parRun(), PATCH, patches, patchFaces(), patchNames(), fileName::path(), primitiveMesh::pointEdges(), PatchTools::pointNormals(), points, polyMesh::points(), Foam::Pout, Foam::reduce(), regionName, fvMesh::removeFvBoundary(), Foam::renumber(), replaceChar(), 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(), splitstring(), dictionary::subDict(), 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 80 of file extrudeMesh.C.

Referenced by main().