Go to the source code of this file.
Namespaces | |
Foam | |
Namespace for OpenFOAM. | |
Functions | |
defineTemplateTypeNameAndDebug (IOPtrList< dictionary >, 0) | |
void | changePatchID (const polyMesh &mesh, const label faceID, const label patchID, polyTopoChange &meshMod) |
void | filterPatches (polyMesh &mesh, const HashSet< word > &addedPatchNames) |
void | dumpCyclicMatch (const fileName &prefix, const polyMesh &mesh) |
void | separateList (const vectorField &separation, UList< vector > &field) |
template<class CombineOp > | |
void | syncPoints (const polyMesh &mesh, pointField &points, const CombineOp &cop, const point &nullValue) |
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[]) |
void changePatchID | ( | const polyMesh & | mesh, |
const label | faceID, | ||
const label | patchID, | ||
polyTopoChange & | meshMod | ||
) |
Definition at line 63 of file createPatch.C.
References polyMesh::faceOwner(), polyMesh::faces(), polyMesh::faceZones(), faceZone::flipMap(), mesh, polyTopoChange::setAction(), faceZone::whichFace(), and ZoneMesh::whichZone().
Referenced by main().
Definition at line 100 of file createPatch.C.
References polyMesh::addPatches(), DynamicList::append(), polyMesh::boundaryMesh(), polyPatch::clone(), Foam::endl(), forAll, HashTable< nil, word, string::hash >::found(), Foam::Info, mesh, patchIdentifier::name(), patches, polyMesh::removeBoundary(), Foam::returnReduce(), DynamicList::shrink(), and polyPatch::start().
Referenced by main().
Definition at line 198 of file createPatch.C.
References polyMesh::boundaryMesh(), Foam::endl(), primitiveMesh::faceCentres(), forAll, mesh, patchIdentifier::name(), OFstream::name(), cyclicPolyPatch::neighbPatch(), Foam::nl, patches, PrimitivePatch< Face, FaceList, PointField, PointType >::points(), Foam::Pout, polyPatch::start(), and Foam::meshTools::writeOBJ().
Referenced by main().
void separateList | ( | const vectorField & | separation, |
UList< vector > & | field | ||
) |
Definition at line 264 of file createPatch.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, and UList::size().
Referenced by syncPoints().
void syncPoints | ( | const polyMesh & | mesh, |
pointField & | points, | ||
const CombineOp & | cop, | ||
const point & | nullValue | ||
) |
Note: hasTransformation is only used for warning messages so
reduction not strictly nessecary. reduce(hasTransformation, orOp<bool>());
Definition at line 298 of file createPatch.C.
References Foam::abort(), UPstream::blocking, polyMesh::boundaryMesh(), cyclicPolyPatch::coupledPoints(), Foam::e, Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, coupledPolyPatch::forwardT(), polyMesh::globalData(), Pstream::listCombineGather(), Pstream::listCombineScatter(), mesh, PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), cyclicPolyPatch::neighbPatch(), processorPolyPatch::neighbPoints(), processorPolyPatch::neighbProcNo(), globalMeshData::nGlobalPoints(), PrimitivePatch< Face, FaceList, PointField, PointType >::nPoints(), primitiveMesh::nPoints(), coupledPolyPatch::parallel(), UPstream::parRun(), patches, points, coupledPolyPatch::reverseT(), coupledPolyPatch::separated(), separateList(), coupledPolyPatch::separation(), globalMeshData::sharedPointAddr(), globalMeshData::sharedPointLabels(), List::size(), Foam::transformList(), and WarningInFunction.
Referenced by main().
std::string trim | ( | std::string | s | ) |
Definition at line 508 of file createPatch.C.
References s().
Referenced by splitstring().
std::vector<std::string> splitstring | ( | std::string | SourceString, |
std::string | strSplit = " " , |
||
int | nSkip = 0 |
||
) |
Definition at line 523 of file createPatch.C.
References trim().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 561 of file createPatch.C.
References Foam::abort(), dictionary::add(), argList::addBoolOption(), polyMesh::addPatches(), List::append(), DynamicList::append(), PtrList::append(), args, polyMesh::boundaryMesh(), polyTopoChange::changeMesh(), changePatchID(), polyPatch::clone(), IOstream::defaultPrecision(), polyMesh::defaultRegion, dict, Foam::diff(), dumpCyclicMatch(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, filterPatches(), forAll, forAllConstIter(), coupledPolyPatch::forwardT(), Foam::gAverage(), Foam::gMax(), Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), dictionary::lookup(), Foam::mag(), Foam::max(), mesh, fvMesh::movePoints(), patchIdentifier::name(), IOobject::name(), cyclicPolyPatch::neighbPatch(), polyPatch::New(), primitiveMesh::nInternalFaces(), Foam::nl, argList::optionFound(), argList::optionReadIfPresent(), coupledPolyPatch::parallel(), patches, patchFaces(), polyMesh::points(), polyMesh::pointsInstance(), polyMesh::removeBoundary(), Foam::returnReduce(), coupledPolyPatch::reverseT(), coupledPolyPatch::separated(), coupledPolyPatch::separation(), cyclicPolyPatch::separationVector(), dictionary::set(), polyMesh::setInstance(), setSize(), DynamicList::shrink(), PtrList::size(), HashTable::size(), splitstring(), polyPatch::start(), syncPoints(), HashTable::toc(), coupledPolyPatch::transform(), coupledPolyPatch::TRANSLATIONAL, fvMesh::write(), and writeObj().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.