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 ®ionName) |
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 |
enum ExtrudeMode |
Enumerator | |
---|---|
MESH | |
PATCH | |
SURFACE | |
MESH | |
PATCH | |
SURFACE | |
MESH | |
PATCH | |
SURFACE |
Definition at line 62 of file extrudeMesh.C.
Definition at line 83 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().
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.
labelList patchFaces | ( | const polyBoundaryMesh & | patches, |
const wordList & | names | ||
) |
Definition at line 152 of file extrudeMesh.C.
References findPatchID(), forAll, n, patches, and polyPatch::start().
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().
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().
void changeFrontBackPatches | ( | polyMesh & | mesh, |
const word & | frontPatchName, | ||
const word & | backPatchName | ||
) |
Definition at line 220 of file extrudeMesh.C.
References polyMesh::addPatches(), DynamicList::append(), polyMesh::boundaryMesh(), polyPatch::clone(), findPatchID(), forAll, patchIdentifier::index(), mesh, patchIdentifier::name(), patches, polyMesh::removeBoundary(), and polyPatch::start().
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().
std::string trim | ( | std::string | s | ) |
Definition at line 308 of file extrudeMesh.C.
References s().
std::vector<std::string> splitstring | ( | std::string | SourceString, |
std::string | strSplit = " " , |
||
int | nSkip = 0 |
||
) |
Definition at line 323 of file extrudeMesh.C.
References trim().
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().
|
static |
Definition at line 80 of file extrudeMesh.C.
Referenced by main().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.