Extrude mesh from existing patch (by default outwards facing normals; optional flips faces) or from patch read from file. More...
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) |
int | main (int argc, char *argv[]) |
Variables | |
static const NamedEnum< ExtrudeMode, 3 > | ExtrudeModeNames |
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.
enum ExtrudeMode |
Enumerator | |
---|---|
MESH | |
PATCH | |
SURFACE | |
MESH | |
PATCH | |
SURFACE | |
MESH | |
PATCH | |
SURFACE |
Definition at line 58 of file extrudeMesh.C.
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().
label findPatchID | ( | const polyBoundaryMesh & | patches, |
const word & | name | ||
) |
Definition at line 132 of file extrudeMesh.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::name(), and patches.
Referenced by changeFrontBackPatches(), boundaryMesh::changePatchType(), boundaryMesh::deletePatch(), polyBoundaryMesh::groupPatchIDs(), main(), fvBoundaryMesh::operator[](), polyBoundaryMesh::operator[](), patchFaces(), and boundaryMesh::patchify().
labelList patchFaces | ( | const polyBoundaryMesh & | patches, |
const wordList & | names | ||
) |
Definition at line 148 of file extrudeMesh.C.
References findPatchID(), forAll, n, patches, and polyPatch::start().
Referenced by globalPoints::addToSend(), singleCellFvMesh::agglomerateMesh(), pairPatchAgglomeration::agglomeratePatch(), polyDualMesh::calcDual(), mappedPatchBase::calcMapping(), patchCloudSet::calcSamples(), patchSeedSet::calcSamples(), mappedPatchBase::collectSamples(), meshStructure::correct(), blockMesh::createPatchFaces(), cartesianMeshExtractor::createPolyMesh(), structuredDecomp::decompose(), polyMesh::facePatchFaceCells(), mappedPatchBase::findSamples(), boundaryMesh::getNPoints(), main(), faceCoupleInfo::matchPointsThroughFaces(), Foam::help::mergePatchFaces(), nearestPatch(), meshRefinement::nearestPatch(), boundaryMesh::patchify(), blockMesh::patchLabelsOK(), globalPoints::receivePatchPoints(), structuredRenumber::renumber(), globalPoints::sendPatchPoints(), polyMesh::setTopology(), boundaryMesh::triangulateLocal(), and externalCoupledFunctionObject::writeGeometry().
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().
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().
void changeFrontBackPatches | ( | polyMesh & | mesh, |
const word & | frontPatchName, | ||
const word & | backPatchName | ||
) |
Definition at line 216 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().
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().
|
static |
Definition at line 76 of file extrudeMesh.C.
Referenced by main().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.