Helper class which maintains intersections of (changing) mesh with (static) surfaces. More...
Public Types | |
enum | debugType { MESH = (1 << 0), OBJINTERSECTIONS = (1 << 1), FEATURESEEDS = (1 << 2), ATTRACTION = (1 << 3), LAYERINFO = (1 << 4) } |
enum | writeType { WRITEMESH = (1 << 0), NOWRITEREFINEMENT = (1 << 1), WRITELEVELS = (1 << 2), WRITELAYERSETS = (1 << 3), WRITELAYERFIELDS = (1 << 4) } |
enum | mapType { MASTERONLY = 1, KEEPALL = 2, REMOVE = 4 } |
enum | FaceMergeType { NONE, GEOMETRIC, IGNOREPATCH } |
Public Member Functions | |
ClassName ("meshRefinement") | |
meshRefinement (fvMesh &mesh, const scalar mergeDistance, const bool overwrite, const refinementSurfaces &, const refinementFeatures &, const shellSurfaces &, const shellSurfaces &, const labelUList &checkFaces, const bool dryRun) | |
const fvMesh & | mesh () const |
fvMesh & | mesh () |
scalar | mergeDistance () const |
bool | overwrite () const |
const word & | oldInstance () const |
const refinementSurfaces & | surfaces () const |
const refinementFeatures & | features () const |
const shellSurfaces & | shells () const |
const shellSurfaces & | limitShells () const |
const hexRef8 & | meshCutter () const |
const labelList & | surfaceIndex () const |
labelList & | surfaceIndex () |
const Map< label > & | faceToCoupledPatch () const |
const List< Tuple2< mapType, labelList > > & | userFaceData () const |
List< Tuple2< mapType, labelList > > & | userFaceData () |
label | countHits () const |
autoPtr< mapDistributePolyMesh > | balance (const bool keepZoneFaces, const bool keepBaffles, const scalarField &cellWeights, decompositionMethod &decomposer, fvMeshDistribute &distributor) |
labelList | intersectedFaces () const |
labelList | intersectedPoints () const |
bool | isGap (const scalar, const vector &, const vector &, const vector &, const vector &) const |
bool | isNormalGap (const scalar planarCos, const label level0, const vector &point0, const vector &normal0, const label level1, const vector &point1, const vector &normal1) const |
labelList | refineCandidates (const pointField &keepPoints, const scalar curvature, const scalar planarAngle, const bool featureRefinement, const bool featureDistanceRefinement, const bool internalRefinement, const bool surfaceRefinement, const bool curvatureRefinement, const bool smallFeatureRefinement, const bool gapRefinement, const bool bigGapRefinement, const bool spreadGapSize, const label maxGlobalCells, const label maxLocalCells) const |
void | markOutsideFaces (const labelList &cellLevel, const labelList &neiLevel, const labelList &refineCell, bitSet &isOutsideFace) const |
label | countFaceDirs (const bitSet &isOutsideFace, const label celli) const |
void | growSet (const labelList &neiLevel, const bitSet &isOutsideFace, labelList &refineCell, label &nRefine) const |
autoPtr< mapPolyMesh > | removeGapCells (const scalar planarAngle, const labelList &minSurfaceLevel, const labelList &globalToMasterPatch, const label growIter) |
autoPtr< mapPolyMesh > | refine (const labelList &cellsToRefine) |
autoPtr< mapDistributePolyMesh > | refineAndBalance (const string &msg, decompositionMethod &decomposer, fvMeshDistribute &distributor, const labelList &cellsToRefine, const scalar maxLoadUnbalance) |
autoPtr< mapDistributePolyMesh > | balanceAndRefine (const string &msg, decompositionMethod &decomposer, fvMeshDistribute &distributor, const labelList &cellsToRefine, const scalar maxLoadUnbalance) |
labelList | directionalRefineCandidates (const label maxGlobalCells, const label maxLocalCells, const labelList ¤tLevel, const direction dir) const |
autoPtr< mapPolyMesh > | directionalRefine (const string &msg, const direction cmpt, const labelList &cellsToRefine) |
void | baffleAndSplitMesh (const bool handleSnapProblems, const snapParameters &snapParams, const bool useTopologicalSnapDetection, const bool removeEdgeConnectedCells, const scalarField &perpendicularAngle, const label nErodeCellZones, const dictionary &motionDict, Time &runTime, const labelList &globalToMasterPatch, const labelList &globalToSlavePatch, const pointField &locationsInMesh, const wordList ®ionsInMesh, const pointField &locationsOutsideMesh, const writer< scalar > &leakPathFormatter) |
void | mergeFreeStandingBaffles (const snapParameters &snapParams, const bool useTopologicalSnapDetection, const bool removeEdgeConnectedCells, const scalarField &perpendicularAngle, const scalar planarAngle, const dictionary &motionDict, Time &runTime, const labelList &globalToMasterPatch, const labelList &globalToSlavePatch, const pointField &locationsInMesh, const pointField &locationsOutsideMesh, const writer< scalar > &leakPathFormatter) |
autoPtr< mapPolyMesh > | splitMesh (const label nBufferLayers, const label nErodeCellZones, const labelList &globalToMasterPatch, const labelList &globalToSlavePatch, const pointField &locationsInMesh, const wordList ®ionsInMesh, const pointField &locationsOutsideMesh, const writer< scalar > &leakPathFormatter) |
autoPtr< mapPolyMesh > | removeLimitShells (const label nBufferLayers, const label nErodeCellZones, const labelList &globalToMasterPatch, const labelList &globalToSlavePatch, const pointField &locationsInMesh, const wordList ®ionsInMesh) |
autoPtr< mapPolyMesh > | dupNonManifoldPoints (const localPointRegion &) |
autoPtr< mapPolyMesh > | dupNonManifoldPoints () |
autoPtr< mapPolyMesh > | dupNonManifoldBoundaryPoints () |
autoPtr< mapPolyMesh > | mergePoints (const labelList &pointToDuplicate) |
autoPtr< mapPolyMesh > | createBaffles (const labelList &ownPatch, const labelList &neiPatch) |
labelList | getZones (const List< surfaceZonesInfo::faceZoneType > &fzTypes) const |
void | getZoneFaces (const labelList &zoneIDs, labelList &faceZoneID, labelList &ownPatch, labelList &neiPatch, labelList &nBaffles) const |
autoPtr< mapPolyMesh > | createZoneBaffles (const labelList &zoneIDs, List< labelPair > &baffles, labelList &originatingFaceZone) |
autoPtr< mapPolyMesh > | mergeBaffles (const List< labelPair > &, const Map< label > &faceToPatch) |
autoPtr< mapPolyMesh > | mergeZoneBaffles (const bool doInternalZones, const bool doBaffleZones) |
autoPtr< mapPolyMesh > | zonify (const bool allowFreeStandingZoneFaces, const label nErodeCellZones, const pointField &locationsInMesh, const wordList ®ionsInMesh, wordPairHashTable &zonesToFaceZone) |
label | addMeshedPatch (const word &name, const dictionary &) |
labelList | meshedPatches () const |
label | addFaceZone (const word &fzName, const word &masterPatch, const word &slavePatch, const surfaceZonesInfo::faceZoneType &fzType) |
bool | getFaceZoneInfo (const word &fzName, label &masterPatchID, label &slavePatchID, surfaceZonesInfo::faceZoneType &fzType) const |
void | selectSeparatedCoupledFaces (boolList &) const |
void | updateIntersections (const labelList &changedFaces) |
autoPtr< mapPolyMesh > | splitMeshRegions (const labelList &globalToMasterPatch, const labelList &globalToSlavePatch, const pointField &locationsInMesh, const pointField &locationsOutsideMesh, const bool exitIfLeakPath, const writer< scalar > &leakPathFormatter) |
autoPtr< mapPolyMesh > | doRemoveCells (const labelList &cellsToRemove, const labelList &exposedFaces, const labelList &exposedPatchIDs, removeCells &cellRemover) |
void | doSplitFaces (const labelList &splitFaces, const labelPairList &splits, polyTopoChange &meshMod) const |
label | splitFacesUndo (const labelList &splitFaces, const labelPairList &splits, const dictionary &motionDict, labelList &duplicateFace, List< labelPair > &baffles) |
void | distribute (const mapDistributePolyMesh &) |
void | updateMesh (const mapPolyMesh &, const labelList &changedFaces) |
void | storeData (const labelList &pointsToStore, const labelList &facesToStore, const labelList &cellsToStore) |
void | updateMesh (const mapPolyMesh &, const labelList &changedFaces, const Map< label > &pointsToRestore, const Map< label > &facesToRestore, const Map< label > &cellsToRestore) |
label | mergePatchFaces (const scalar minCos, const scalar concaveCos, const label mergeSize, const labelList &patchIDs, const meshRefinement::FaceMergeType mergeType) |
label | mergePatchFacesUndo (const scalar minCos, const scalar concaveCos, const labelList &patchIDs, const dictionary &motionDict, const labelList &preserveFaces, const meshRefinement::FaceMergeType mergeType) |
autoPtr< mapPolyMesh > | doRemovePoints (removePoints &pointRemover, const boolList &pointCanBeDeleted) |
autoPtr< mapPolyMesh > | doRestorePoints (removePoints &pointRemover, const labelList &facesToRestore) |
labelList | collectFaces (const labelList &candidateFaces, const labelHashSet &set) const |
labelList | growFaceCellFace (const labelUList &set) const |
labelList | growFaceCellFace (const labelHashSet &set) const |
label | mergeEdgesUndo (const scalar minCos, const dictionary &motionDict) |
void | checkData () |
template<class T > | |
void | testSyncBoundaryFaceList (const scalar mergeDistance, const string &, const UList< T > &, const UList< T > &) const |
void | printMeshInfo (const bool, const string &) const |
word | timeName () const |
void | setInstance (const fileName &) |
bool | write () const |
void | dumpRefinementLevel () const |
void | dumpIntersections (const fileName &prefix) const |
void | write (const debugType debugFlags, const writeType writeFlags, const fileName &) const |
Static Public Member Functions | |
static autoPtr< indirectPrimitivePatch > | makePatch (const polyMesh &, const labelList &) |
static tmp< pointVectorField > | makeDisplacementField (const pointMesh &pMesh, const labelList &adaptPatchIDs) |
static void | checkCoupledFaceZones (const polyMesh &) |
static void | calculateEdgeWeights (const polyMesh &mesh, const bitSet &isMasterEdge, const labelList &meshPoints, const edgeList &edges, scalarField &edgeWeights, scalarField &invSumWeight) |
template<class Type > | |
static void | weightedSum (const polyMesh &mesh, const bitSet &isMasterEdge, const labelList &meshPoints, const edgeList &edges, const scalarField &edgeWeights, const Field< Type > &data, Field< Type > &sum) |
static List< labelPair > | subsetBaffles (const polyMesh &mesh, const labelList &zoneIDs, const List< labelPair > &baffles) |
static label | appendPatch (fvMesh &, const label insertPatchi, const word &, const dictionary &) |
static label | addPatch (fvMesh &, const word &name, const dictionary &) |
static label | findRegion (const polyMesh &, const labelList &cellRegion, const vector &perturbVec, const point &p) |
static label | findRegions (const polyMesh &, const vector &perturbVec, const pointField &locationsInMesh, const pointField &locationsOutsideMesh, const bool exitIfLeakPath, const writer< scalar > &leakPathFormatter, const label nRegions, labelList &cellRegion, const boolList &blockedFace) |
template<class T > | |
static void | updateList (const labelList &newToOld, const T &nullValue, List< T > &elems) |
static void | testSyncPointList (const string &msg, const polyMesh &mesh, const List< scalar > &fld) |
static void | testSyncPointList (const string &msg, const polyMesh &mesh, const List< point > &fld) |
template<class T > | |
static void | collectAndPrint (const UList< point > &points, const UList< T > &data) |
static bitSet | getMasterPoints (const polyMesh &mesh, const labelList &meshPoints) |
static bitSet | getMasterEdges (const polyMesh &mesh, const labelList &meshEdges) |
static void | removeFiles (const polyMesh &) |
template<class T > | |
static T | gAverage (const bitSet &isMasterElem, const UList< T > &values) |
static writeType | writeLevel () |
static void | writeLevel (const writeType) |
template<class EnumContainer > | |
static int | readFlags (const EnumContainer &namedEnum, const wordList &words) |
template<class Type > | |
static Type | get (const dictionary &dict, const word &keyword, const bool noExit, enum keyType::option matchOpt=keyType::REGEX, const Type &deflt=Zero) |
static const dictionary & | subDict (const dictionary &dict, const word &keyword, const bool noExit, enum keyType::option matchOpt=keyType::REGEX) |
static ITstream & | lookup (const dictionary &dict, const word &keyword, const bool noExit, enum keyType::option matchOpt=keyType::REGEX) |
Static Public Attributes | |
static const Enum< debugType > | debugTypeNames |
static const Enum< writeType > | writeTypeNames |
Helper class which maintains intersections of (changing) mesh with (static) surfaces.
Definition at line 81 of file meshRefinement.H.
enum debugType |
Enumerator | |
---|---|
MESH | |
OBJINTERSECTIONS | |
FEATURESEEDS | |
ATTRACTION | |
LAYERINFO |
Definition at line 88 of file meshRefinement.H.
enum writeType |
Enumerator | |
---|---|
WRITEMESH | |
NOWRITEREFINEMENT | |
WRITELEVELS | |
WRITELAYERSETS | |
WRITELAYERFIELDS |
Definition at line 108 of file meshRefinement.H.
enum mapType |
Enumerator | |
---|---|
MASTERONLY | maintain master only |
KEEPALL | have slaves (upon refinement) from master |
REMOVE | set value to -1 any face that was refined |
Definition at line 120 of file meshRefinement.H.
enum FaceMergeType |
Enumerator | |
---|---|
NONE | |
GEOMETRIC | |
IGNOREPATCH |
Definition at line 129 of file meshRefinement.H.
meshRefinement | ( | fvMesh & | mesh, |
const scalar | mergeDistance, | ||
const bool | overwrite, | ||
const refinementSurfaces & | surfaces, | ||
const refinementFeatures & | features, | ||
const shellSurfaces & | shells, | ||
const shellSurfaces & | limitShells, | ||
const labelUList & | checkFaces, | ||
const bool | dryRun | ||
) |
Definition at line 1449 of file meshRefinement.C.
ClassName | ( | "meshRefinement" | ) |
|
inline |
Definition at line 940 of file meshRefinement.H.
Referenced by snappyRefineDriver::addFaceZones(), snappySnapDriver::calcNearestSurface(), and snappySnapDriver::preSmoothPatch().
|
inline |
Definition at line 944 of file meshRefinement.H.
|
inline |
Definition at line 949 of file meshRefinement.H.
|
inline |
Definition at line 955 of file meshRefinement.H.
|
inline |
Definition at line 961 of file meshRefinement.H.
|
inline |
Definition at line 967 of file meshRefinement.H.
Referenced by snappySnapDriver::calcNearestSurface().
|
inline |
Definition at line 973 of file meshRefinement.H.
|
inline |
Definition at line 979 of file meshRefinement.H.
|
inline |
Definition at line 985 of file meshRefinement.H.
|
inline |
Definition at line 991 of file meshRefinement.H.
Foam::labelList & surfaceIndex | ( | ) | const |
Definition at line 1498 of file meshRefinement.C.
References Foam::identity(), and meshRefinement::updateIntersections().
labelList& surfaceIndex | ( | ) |
|
inline |
Definition at line 1003 of file meshRefinement.H.
Definition at line 1012 of file meshRefinement.H.
Definition at line 1017 of file meshRefinement.H.
Foam::label countHits | ( | ) | const |
Definition at line 1521 of file meshRefinement.C.
References forAll, syncTools::getMasterFaces(), and bitSet::test().
Foam::autoPtr< Foam::mapDistributePolyMesh > balance | ( | const bool | keepZoneFaces, |
const bool | keepBaffles, | ||
const scalarField & | cellWeights, | ||
decompositionMethod & | decomposer, | ||
fvMeshDistribute & | distributor | ||
) |
Definition at line 1542 of file meshRefinement.C.
References fvMeshDistribute::countCells(), coupled(), Foam::expressions::patchExpr::debug, decompositionMethod::decompose(), fvMeshDistribute::distribute(), Foam::endl(), localPointRegion::findDuplicateFacePairs(), forAll, Foam::Info, Pstream::listCombineGather(), Pstream::listCombineScatter(), zoneIdentifier::name(), IOobject::name(), UPstream::parRun(), Foam::Pout, Foam::reduce(), Foam::returnReduce(), Pair::second(), decompositionMethod::setConstraints(), List::setSize(), syncTools::syncFaceList(), timeName, WarningInFunction, and polyBoundaryMesh::whichPatch().
Foam::labelList intersectedFaces | ( | ) | const |
Definition at line 1792 of file meshRefinement.C.
References forAll.
Foam::labelList intersectedPoints | ( | ) | const |
Definition at line 1820 of file meshRefinement.C.
References f(), forAll, bitSet::set(), and bitSet::test().
|
static |
Definition at line 1893 of file meshRefinement.C.
References polyMesh::boundaryMesh(), polyMesh::faces(), forAll, mesh, autoPtr::New(), patches, polyMesh::points(), and polyPatch::start().
Referenced by snappyLayerDriver::addLayers(), snappySnapDriver::doSnap(), and snappySnapDriver::repatchToSurface().
|
static |
Definition at line 1935 of file meshRefinement.C.
References IOobject::AUTO_WRITE, pointMesh::boundary(), Foam::dimLength, forAll, mesh, tmp::New(), IOobject::NO_READ, fvMesh::time(), Time::timeName(), and Foam::Zero.
Referenced by snappySnapDriver::doSnap().
|
static |
Definition at line 1988 of file meshRefinement.C.
References Foam::abort(), Foam::exit(), polyMesh::faceZones(), Foam::FatalError, FatalErrorInFunction, forAll, Pstream::gatherList(), mesh, UPstream::myProcNo(), zoneIdentifier::name(), ZoneMesh::names(), primitiveMesh::nBoundaryFaces(), primitiveMesh::nInternalFaces(), Foam::nl, UPstream::nProcs(), Pstream::scatterList(), and syncTools::swapBoundaryFaceList().
|
static |
Definition at line 2076 of file meshRefinement.C.
References Foam::constant::electromagnetic::e, forAll, Foam::mag(), Foam::max(), mesh, polyMesh::points(), and PackedList::size().
Referenced by fieldSmoother::smoothLambdaMuDisplacement(), fieldSmoother::smoothNormals(), and fieldSmoother::smoothPatchNormals().
|
static |
Definition at line 264 of file meshRefinementTemplates.C.
References Foam::abort(), Foam::constant::electromagnetic::e, Foam::FatalError, FatalErrorInFunction, forAll, mesh, PackedList::size(), Foam::sum(), syncTools::syncPointList(), bitSet::test(), and Foam::Zero.
Referenced by fieldSmoother::smoothLambdaMuDisplacement(), fieldSmoother::smoothNormals(), and fieldSmoother::smoothPatchNormals().
bool isGap | ( | const scalar | planarCos, |
const vector & | point0, | ||
const vector & | normal0, | ||
const vector & | point1, | ||
const vector & | normal1 | ||
) | const |
Definition at line 1521 of file meshRefinementRefine.C.
References Foam::mag(), VectorSpace< Vector< scalar >, scalar, 3 >::zero, and Foam::Zero.
bool isNormalGap | ( | const scalar | planarCos, |
const label | level0, | ||
const vector & | point0, | ||
const vector & | normal0, | ||
const label | level1, | ||
const vector & | point1, | ||
const vector & | normal1 | ||
) | const |
Definition at line 1568 of file meshRefinementRefine.C.
References Foam::cos(), Foam::degToRad(), Foam::mag(), VectorSpace< Vector< scalar >, scalar, 3 >::zero, and Foam::Zero.
Foam::labelList refineCandidates | ( | const pointField & | keepPoints, |
const scalar | curvature, | ||
const scalar | planarAngle, | ||
const bool | featureRefinement, | ||
const bool | featureDistanceRefinement, | ||
const bool | internalRefinement, | ||
const bool | surfaceRefinement, | ||
const bool | curvatureRefinement, | ||
const bool | smallFeatureRefinement, | ||
const bool | gapRefinement, | ||
const bool | bigGapRefinement, | ||
const bool | spreadGapSize, | ||
const label | maxGlobalCells, | ||
const label | maxLocalCells | ||
) | const |
Definition at line 2025 of file meshRefinementRefine.C.
References Foam::cos(), Foam::degToRad(), Foam::endl(), forAll, Foam::Info, Foam::labelMax, Foam::max(), UPstream::nProcs(), and List::setSize().
void markOutsideFaces | ( | const labelList & | cellLevel, |
const labelList & | neiLevel, | ||
const labelList & | refineCell, | ||
bitSet & | isOutsideFace | ||
) | const |
Definition at line 157 of file meshRefinementBlock.C.
References forAll, bitSet::set(), PackedList::setSize(), and Foam::Zero.
Foam::label countFaceDirs | ( | const bitSet & | isOutsideFace, |
const label | celli | ||
) | const |
Definition at line 215 of file meshRefinementBlock.C.
References forAll, Foam::magSqr(), n, and Foam::sqr().
void growSet | ( | const labelList & | neiLevel, |
const bitSet & | isOutsideFace, | ||
labelList & | refineCell, | ||
label & | nRefine | ||
) | const |
Definition at line 266 of file meshRefinementBlock.C.
Foam::autoPtr< Foam::mapPolyMesh > removeGapCells | ( | const scalar | planarAngle, |
const labelList & | minSurfaceLevel, | ||
const labelList & | globalToMasterPatch, | ||
const label | growIter | ||
) |
Definition at line 940 of file meshRefinementBlock.C.
References Foam::cos(), Foam::degToRad(), Foam::endl(), forAll, removeCells::getExposedFaces(), surfaceZonesInfo::getUnnamedSurfaces(), Foam::Info, Foam::labelMax, Foam::min(), UPstream::nProcs(), Foam::returnReduce(), and s.
Foam::autoPtr< Foam::mapPolyMesh > refine | ( | const labelList & | cellsToRefine | ) |
Definition at line 2333 of file meshRefinementRefine.C.
References polyTopoChange::changeMesh(), mapPolyMesh::hasMotionPoints(), mapPolyMesh::preMotionPoints(), and timeName.
Foam::autoPtr< Foam::mapDistributePolyMesh > refineAndBalance | ( | const string & | msg, |
decompositionMethod & | decomposer, | ||
fvMeshDistribute & | distributor, | ||
const labelList & | cellsToRefine, | ||
const scalar | maxLoadUnbalance | ||
) |
Definition at line 2375 of file meshRefinementRefine.C.
References Foam::checkData(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Info, Foam::mag(), meshRefinement::MESH, UPstream::nProcs(), Foam::Pout, Foam::returnReduce(), timeName, and Foam::vtk::write().
Foam::autoPtr< Foam::mapDistributePolyMesh > balanceAndRefine | ( | const string & | msg, |
decompositionMethod & | decomposer, | ||
fvMeshDistribute & | distributor, | ||
const labelList & | cellsToRefine, | ||
const scalar | maxLoadUnbalance | ||
) |
Definition at line 2476 of file meshRefinementRefine.C.
References Foam::checkData(), Foam::expressions::patchExpr::debug, Foam::endl(), forAll, Foam::Info, Foam::mag(), meshRefinement::MESH, UPstream::nProcs(), Foam::Pout, Foam::returnReduce(), timeName, and Foam::vtk::write().
Foam::labelList directionalRefineCandidates | ( | const label | maxGlobalCells, |
const label | maxLocalCells, | ||
const labelList & | currentLevel, | ||
const direction | dir | ||
) | const |
Definition at line 2636 of file meshRefinementRefine.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), forAll, Foam::Info, Foam::labelMax, UPstream::nProcs(), Foam::Pout, and List::setSize().
Foam::autoPtr< Foam::mapPolyMesh > directionalRefine | ( | const string & | msg, |
const direction | cmpt, | ||
const labelList & | cellsToRefine | ||
) |
Definition at line 2736 of file meshRefinementRefine.C.
References polyTopoChange::changeMesh(), forAll, meshCutter::setRefinement(), timeName, meshCutter::updateMesh(), and Foam::Zero.
void baffleAndSplitMesh | ( | const bool | handleSnapProblems, |
const snapParameters & | snapParams, | ||
const bool | useTopologicalSnapDetection, | ||
const bool | removeEdgeConnectedCells, | ||
const scalarField & | perpendicularAngle, | ||
const label | nErodeCellZones, | ||
const dictionary & | motionDict, | ||
Time & | runTime, | ||
const labelList & | globalToMasterPatch, | ||
const labelList & | globalToSlavePatch, | ||
const pointField & | locationsInMesh, | ||
const wordList & | regionsInMesh, | ||
const pointField & | locationsOutsideMesh, | ||
const writer< scalar > & | leakPathFormatter | ||
) |
Definition at line 4128 of file meshRefinementBaffles.C.
References Foam::checkData(), cpuTimePosix::cpuTimeIncrement(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Info, Foam::nl, Time::path(), Foam::Pout, Foam::returnReduce(), runTime, List::setSize(), timeName, and Foam::vtk::write().
void mergeFreeStandingBaffles | ( | const snapParameters & | snapParams, |
const bool | useTopologicalSnapDetection, | ||
const bool | removeEdgeConnectedCells, | ||
const scalarField & | perpendicularAngle, | ||
const scalar | planarAngle, | ||
const dictionary & | motionDict, | ||
Time & | runTime, | ||
const labelList & | globalToMasterPatch, | ||
const labelList & | globalToSlavePatch, | ||
const pointField & | locationsInMesh, | ||
const pointField & | locationsOutsideMesh, | ||
const writer< scalar > & | leakPathFormatter | ||
) |
Definition at line 4311 of file meshRefinementBaffles.C.
References Foam::checkData(), cpuTimePosix::cpuTimeIncrement(), Foam::expressions::patchExpr::debug, Foam::endl(), localPointRegion::findDuplicateFacePairs(), Foam::Info, Foam::nl, Foam::reduce(), and runTime.
Foam::autoPtr< Foam::mapPolyMesh > splitMesh | ( | const label | nBufferLayers, |
const label | nErodeCellZones, | ||
const labelList & | globalToMasterPatch, | ||
const labelList & | globalToSlavePatch, | ||
const pointField & | locationsInMesh, | ||
const wordList & | regionsInMesh, | ||
const pointField & | locationsOutsideMesh, | ||
const writer< scalar > & | leakPathFormatter | ||
) |
Definition at line 4407 of file meshRefinementBaffles.C.
References forAll, regionSplit::nRegions(), VectorSpace< Vector< scalar >, scalar, 3 >::one, and syncTools::syncFaceList().
Foam::autoPtr< Foam::mapPolyMesh > removeLimitShells | ( | const label | nBufferLayers, |
const label | nErodeCellZones, | ||
const labelList & | globalToMasterPatch, | ||
const labelList & | globalToSlavePatch, | ||
const pointField & | locationsInMesh, | ||
const wordList & | regionsInMesh | ||
) |
Definition at line 4715 of file meshRefinementBaffles.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), forAll, meshRefinement::MESH, Foam::Pout, timeName, Foam::vtk::write(), and Foam::Zero.
Foam::autoPtr< Foam::mapPolyMesh > dupNonManifoldPoints | ( | const localPointRegion & | regionSide | ) |
Definition at line 4799 of file meshRefinementBaffles.C.
References polyTopoChange::changeMesh(), Foam::endl(), mapPolyMesh::hasMotionPoints(), Foam::Info, mapPolyMesh::preMotionPoints(), Foam::returnReduce(), duplicatePoints::setRefinement(), and timeName.
Foam::autoPtr< Foam::mapPolyMesh > dupNonManifoldPoints | ( | ) |
Definition at line 4858 of file meshRefinementBaffles.C.
Foam::autoPtr< Foam::mapPolyMesh > dupNonManifoldBoundaryPoints | ( | ) |
Definition at line 4937 of file meshRefinementBaffles.C.
References surfaceZonesInfo::BAFFLE, surfaceZonesInfo::BOUNDARY, Foam::endl(), f(), surfaceZonesInfo::faceZoneTypeNames, forAll, Foam::Info, surfaceZonesInfo::INTERNAL, Foam::max(), n, Foam::returnReduce(), and syncTools::syncPointList().
Foam::autoPtr< Foam::mapPolyMesh > mergePoints | ( | const labelList & | pointToDuplicate | ) |
Definition at line 4868 of file meshRefinementBaffles.C.
References polyTopoChange::changeMesh(), forAll, mapPolyMesh::hasMotionPoints(), polyMeshAdder::mergePoints(), mapPolyMesh::preMotionPoints(), Foam::returnReduce(), and timeName.
Foam::autoPtr< Foam::mapPolyMesh > createBaffles | ( | const labelList & | ownPatch, |
const labelList & | neiPatch | ||
) |
Definition at line 477 of file meshRefinementBaffles.C.
References Foam::abort(), polyTopoChange::changeMesh(), polyPatch::coupled(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::faceMap(), mapPolyMesh::faceMap(), Foam::FatalError, FatalErrorInFunction, forAll, mapPolyMesh::hasMotionPoints(), HashSet::insert(), mapPolyMesh::preMotionPoints(), Foam::returnReduce(), mapPolyMesh::reverseFaceMap(), polyPatch::start(), faceSet::sync(), syncTools::syncFaceList(), and timeName.
Foam::labelList getZones | ( | const List< surfaceZonesInfo::faceZoneType > & | fzTypes | ) | const |
Definition at line 652 of file meshRefinementBaffles.C.
References List::append(), forAll, zoneIdentifier::name(), and zoneIDs.
|
static |
Definition at line 679 of file meshRefinementBaffles.C.
References DynamicList::append(), polyMesh::faceZones(), forAll, mesh, primitiveMesh::nFaces(), p, zoneID, and zoneIDs.
Referenced by snappyLayerDriver::addLayers().
void getZoneFaces | ( | const labelList & | zoneIDs, |
labelList & | faceZoneID, | ||
labelList & | ownPatch, | ||
labelList & | neiPatch, | ||
labelList & | nBaffles | ||
) | const |
Definition at line 712 of file meshRefinementBaffles.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), forAll, zoneIdentifier::name(), List::setSize(), Foam::Zero, and zoneIDs.
Foam::autoPtr< Foam::mapPolyMesh > createZoneBaffles | ( | const labelList & | zoneIDs, |
List< labelPair > & | baffles, | ||
labelList & | originatingFaceZone | ||
) |
Definition at line 773 of file meshRefinementBaffles.C.
References Foam::abort(), List::clear(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::faceMap(), surfaceZonesInfo::faceZoneTypeNames, Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, Pstream::listCombineGather(), Pstream::listCombineScatter(), zoneIdentifier::name(), Foam::nl, Foam::Pout, Foam::returnReduce(), Foam::setf(), List::setSize(), Foam::setw(), Foam::sum(), timeName, Foam::vtk::write(), and zoneIDs.
Foam::autoPtr< Foam::mapPolyMesh > mergeBaffles | ( | const List< labelPair > & | couples, |
const Map< label > & | faceToPatch | ||
) |
Definition at line 1167 of file meshRefinementBaffles.C.
References polyTopoChange::changeMesh(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), forAll, forAllConstIters(), mapPolyMesh::hasMotionPoints(), mapPolyMesh::preMotionPoints(), Foam::returnReduce(), mapPolyMesh::reverseFaceMap(), polyTopoChange::setAction(), List::setSize(), timeName, faceZone::whichFace(), ZoneMesh::whichZone(), and zoneID.
Foam::autoPtr< Foam::mapPolyMesh > mergeZoneBaffles | ( | const bool | doInternalZones, |
const bool | doBaffleZones | ||
) |
Definition at line 1347 of file meshRefinementBaffles.C.
References DynamicList::append(), surfaceZonesInfo::BAFFLE, localPointRegion::findDuplicateFacePairs(), surfaceZonesInfo::INTERNAL, Foam::returnReduce(), and zoneIDs.
Foam::autoPtr< Foam::mapPolyMesh > zonify | ( | const bool | allowFreeStandingZoneFaces, |
const label | nErodeCellZones, | ||
const pointField & | locationsInMesh, | ||
const wordList & | regionsInMesh, | ||
wordPairHashTable & | zonesToFaceZone | ||
) |
Definition at line 5036 of file meshRefinementBaffles.C.
References Foam::abort(), surfaceZonesInfo::addCellZonesToMesh(), surfaceZonesInfo::addFaceZone(), surfaceZonesInfo::addFaceZonesToMesh(), polyTopoChange::changeMesh(), polyPatch::coupled(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, ZoneMesh::findZoneID(), forAll, syncTools::getMasterFaces(), surfaceZonesInfo::getNamedSurfaces(), Foam::indent(), Foam::Info, HashTable::insert(), Foam::glTF::key(), Pstream::mapCombineGather(), Pstream::mapCombineScatter(), n, zoneIdentifier::name(), Foam::nl, nZones, Foam::foamVersion::patch, patches, Foam::returnReduce(), Pair::second(), HashTable::size(), HashTable::sortedToc(), polyPatch::start(), syncTools::swapBoundaryCellList(), bitSet::test(), timeName, and OBJstream::write().
|
static |
Definition at line 2132 of file meshRefinement.C.
References fvMesh::boundary(), polyMesh::boundaryMesh(), fvMesh::clearOut(), mesh, fvPatch::New(), polyPatch::New(), PtrList::set(), and PtrList::setSize().
|
static |
Definition at line 2230 of file meshRefinement.C.
References fvMesh::boundary(), polyMesh::boundaryMesh(), polyBoundaryMesh::findPatchID(), forAll, mesh, primitiveMesh::nFaces(), polyBoundaryMesh::reorder(), dictionary::set(), and polyPatch::start().
Foam::label addMeshedPatch | ( | const word & | name, |
const dictionary & | patchInfo | ||
) |
Definition at line 2308 of file meshRefinement.C.
References Foam::name().
Referenced by snappyRefineDriver::addFaceZones().
Foam::labelList meshedPatches | ( | ) | const |
Definition at line 2358 of file meshRefinement.C.
References DynamicList::append(), polyPatch::constraintType(), Foam::endl(), polyBoundaryMesh::findPatchID(), forAll, polyBoundaryMesh::names(), patches, Foam::type(), and WarningInFunction.
Foam::label addFaceZone | ( | const word & | fzName, |
const word & | masterPatch, | ||
const word & | slavePatch, | ||
const surfaceZonesInfo::faceZoneType & | fzType | ||
) |
Definition at line 2385 of file meshRefinement.C.
References surfaceZonesInfo::addFaceZone().
Referenced by snappyRefineDriver::addFaceZones().
bool getFaceZoneInfo | ( | const word & | fzName, |
label & | masterPatchID, | ||
label & | slavePatchID, | ||
surfaceZonesInfo::faceZoneType & | fzType | ||
) | const |
Definition at line 2409 of file meshRefinement.C.
References polyBoundaryMesh::findPatchID().
void selectSeparatedCoupledFaces | ( | boolList & | selected | ) | const |
Definition at line 2437 of file meshRefinement.C.
References polyPatch::boundaryMesh().
void updateIntersections | ( | const labelList & | changedFaces | ) |
Definition at line 291 of file meshRefinement.C.
References bitSet::count(), stdFoam::end(), Foam::endl(), forAll, syncTools::getMasterFaces(), Foam::Info, Foam::nl, Foam::reduce(), Foam::returnReduce(), syncTools::syncFaceList(), and bitSet::test().
Referenced by meshRefinement::surfaceIndex().
|
static |
Definition at line 2453 of file meshRefinement.C.
References polyMesh::findCell(), findCellMode(), mesh, p, Foam::reduce(), and polyMesh::tetBasePtIs().
|
static |
Definition at line 2490 of file meshRefinement.C.
References coordSet::axis(), polyMesh::boundaryMesh(), fileName::clean(), coordSet::coordFormatNames, coordSet::curveDist(), coordSet::DISTANCE, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Pstream::gatherList(), writer< Type >::getFileName(), TimePaths::globalPath(), polyBoundaryMesh::groupPatchIDs(), UPstream::master(), Foam::max(), mesh, Foam::mkDir(), UPstream::myProcNo(), n, coordSet::name(), primitiveMesh::nCells(), Foam::nl, UPstream::nProcs(), IOstream::opened(), functionObject::outputPrefix, points, polyMesh::pointsInstance(), Foam::reduce(), Pstream::scatter(), sampledSet::segments(), PtrList::set(), bitSet::set(), List::setSize(), Foam::sortedOrder(), bitSet::test(), fvMesh::time(), WarningInFunction, writer< Type >::write(), and Foam::Zero.
Foam::autoPtr< Foam::mapPolyMesh > splitMeshRegions | ( | const labelList & | globalToMasterPatch, |
const labelList & | globalToSlavePatch, | ||
const pointField & | locationsInMesh, | ||
const pointField & | locationsOutsideMesh, | ||
const bool | exitIfLeakPath, | ||
const writer< scalar > & | leakPathFormatter | ||
) |
Definition at line 2755 of file meshRefinement.C.
References DynamicList::append(), Foam::endl(), forAll, removeCells::getExposedFaces(), Foam::Info, regionSplit::nRegions(), VectorSpace< Vector< scalar >, scalar, 3 >::one, Foam::returnReduce(), List::setSize(), DynamicList::shrink(), and WarningInFunction.
Foam::autoPtr< Foam::mapPolyMesh > doRemoveCells | ( | const labelList & | cellsToRemove, |
const labelList & | exposedFaces, | ||
const labelList & | exposedPatchIDs, | ||
removeCells & | cellRemover | ||
) |
Definition at line 902 of file meshRefinement.C.
References polyTopoChange::changeMesh(), mapPolyMesh::hasMotionPoints(), mapPolyMesh::preMotionPoints(), Foam::renumber(), mapPolyMesh::reverseFaceMap(), removeCells::setRefinement(), timeName, and removeCells::updateMesh().
void doSplitFaces | ( | const labelList & | splitFaces, |
const labelPairList & | splits, | ||
polyTopoChange & | meshMod | ||
) | const |
Definition at line 962 of file meshRefinement.C.
References polyTopoChange::addFace(), Foam::expressions::patchExpr::debug, Foam::endl(), f(), faceZone::flipMap(), forAll, polyTopoChange::modifyFace(), Foam::Pout, split(), and faceZone::whichFace().
Foam::label splitFacesUndo | ( | const labelList & | splitFaces, |
const labelPairList & | splits, | ||
const dictionary & | motionDict, | ||
labelList & | duplicateFace, | ||
List< labelPair > & | baffles | ||
) |
Definition at line 1081 of file meshRefinement.C.
References DynamicList::append(), polyTopoChange::changeMesh(), motionSmootherAlgo::checkMesh(), Foam::endl(), Foam::exit(), mapPolyMesh::faceMap(), polyTopoChange::faces(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), forAll, topoSet::found(), mapPolyMesh::hasMotionPoints(), Foam::Info, Foam::inplaceRenumber(), HashSet::insert(), polyTopoChange::modifyFace(), n, Foam::nl, polyTopoChange::points(), mapPolyMesh::preMotionPoints(), polyTopoChange::removeFace(), Foam::renumber(), Foam::returnReduce(), mapPolyMesh::reverseFaceMap(), mapPolyMesh::reversePointMap(), Pair::second(), polyTopoChange::setCapacity(), List::setSize(), timeName, meshRefinement::updateList(), and faceZone::whichFace().
void distribute | ( | const mapDistributePolyMesh & | map | ) |
Definition at line 2862 of file meshRefinement.C.
References autoPtr::clear(), mapDistributePolyMesh::distributeFaceData(), Foam::constant::electromagnetic::e, treeBoundBox::extend(), Foam::faceMap(), forAll, meshBb(), and rndGen.
void updateMesh | ( | const mapPolyMesh & | map, |
const labelList & | changedFaces | ||
) |
Definition at line 2924 of file meshRefinement.C.
Definition at line 31 of file meshRefinementTemplates.C.
References forAll, and List::transfer().
Referenced by snappyLayerDriver::addLayers(), and meshRefinement::splitFacesUndo().
void storeData | ( | const labelList & | pointsToStore, |
const labelList & | facesToStore, | ||
const labelList & | cellsToStore | ||
) |
Definition at line 2936 of file meshRefinement.C.
void updateMesh | ( | const mapPolyMesh & | map, |
const labelList & | changedFaces, | ||
const Map< label > & | pointsToRestore, | ||
const Map< label > & | facesToRestore, | ||
const Map< label > & | cellsToRestore | ||
) |
Definition at line 2953 of file meshRefinement.C.
References mapPolyMesh::faceMap(), forAll, forAllConstIters(), mapPolyMesh::reverseFaceMap(), and dictionary::transfer().
Foam::label mergePatchFaces | ( | const scalar | minCos, |
const scalar | concaveCos, | ||
const label | mergeSize, | ||
const labelList & | patchIDs, | ||
const meshRefinement::FaceMergeType | mergeType | ||
) |
Definition at line 35 of file meshRefinementMerge.C.
References polyTopoChange::changeMesh(), Foam::endl(), forAll, combineFaces::getMergeSets(), mapPolyMesh::hasMotionPoints(), Foam::Info, HashSet::insert(), Foam::nl, Foam::foamVersion::patch, patches, mapPolyMesh::preMotionPoints(), Foam::returnReduce(), mapPolyMesh::reverseFaceMap(), combineFaces::setRefinement(), List::setSize(), timeName, and combineFaces::updateMesh().
Foam::label mergePatchFacesUndo | ( | const scalar | minCos, |
const scalar | concaveCos, | ||
const labelList & | patchIDs, | ||
const dictionary & | motionDict, | ||
const labelList & | preserveFaces, | ||
const meshRefinement::FaceMergeType | mergeType | ||
) |
Definition at line 243 of file meshRefinementMerge.C.
References DynamicList::append(), polyTopoChange::changeMesh(), Foam::checkData(), Foam::expressions::patchExpr::debug, Foam::endl(), forAll, forAllConstIters(), topoSet::found(), combineFaces::getMergeSets(), Foam::Info, Foam::inplaceMapKey(), HashSet::insert(), IOobject::instance(), combineFaces::masterFace(), Foam::nl, IOobject::objectPath(), Foam::foamVersion::patch, patches, Foam::Pout, Foam::returnReduce(), combineFaces::savedPointLabels(), Foam::BitOps::set(), combineFaces::setRefinement(), List::setSize(), combineFaces::setUnrefinement(), DynamicList::shrink(), timeName, combineFaces::updateMesh(), Foam::vtk::write(), and regIOobject::write().
Foam::autoPtr< Foam::mapPolyMesh > doRemovePoints | ( | removePoints & | pointRemover, |
const boolList & | pointCanBeDeleted | ||
) |
Definition at line 615 of file meshRefinementMerge.C.
References polyTopoChange::changeMesh(), Foam::checkData(), Foam::expressions::patchExpr::debug, Foam::endl(), mapPolyMesh::hasMotionPoints(), HashSet::insert(), Foam::Pout, mapPolyMesh::preMotionPoints(), removePoints::savedFaceLabels(), removePoints::setRefinement(), timeName, and removePoints::updateMesh().
Foam::autoPtr< Foam::mapPolyMesh > doRestorePoints | ( | removePoints & | pointRemover, |
const labelList & | facesToRestore | ||
) |
Definition at line 673 of file meshRefinementMerge.C.
References polyTopoChange::changeMesh(), Foam::checkData(), Foam::expressions::patchExpr::debug, Foam::endl(), forAll, removePoints::getUnrefimentSet(), mapPolyMesh::hasMotionPoints(), HashSet::insert(), Foam::Pout, mapPolyMesh::preMotionPoints(), mapPolyMesh::reverseFaceMap(), removePoints::setUnrefinement(), timeName, and removePoints::updateMesh().
Foam::labelList collectFaces | ( | const labelList & | candidateFaces, |
const labelHashSet & | set | ||
) | const |
Definition at line 747 of file meshRefinementMerge.C.
References Foam::findIndices(), and Foam::BitOps::set().
Foam::labelList growFaceCellFace | ( | const labelUList & | set | ) | const |
Definition at line 810 of file meshRefinementMerge.C.
References Foam::findIndices(), Foam::markGrowFaceCellFace(), and Foam::BitOps::set().
Foam::labelList growFaceCellFace | ( | const labelHashSet & | set | ) | const |
Definition at line 833 of file meshRefinementMerge.C.
References Foam::findIndices(), Foam::markGrowFaceCellFace(), and Foam::BitOps::set().
Foam::label mergeEdgesUndo | ( | const scalar | minCos, |
const dictionary & | motionDict | ||
) |
Definition at line 857 of file meshRefinementMerge.C.
References removePoints::countPointUsage(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Info, IOobject::instance(), n, Foam::nl, IOobject::objectPath(), Foam::Pout, Foam::returnReduce(), removePoints::savedFaceLabels(), timeName, Foam::vtk::write(), and regIOobject::write().
void checkData | ( | ) |
Definition at line 687 of file meshRefinement.C.
References stdFoam::end(), Foam::endl(), localPointRegion::findDuplicateFaces(), forAll, Foam::identity(), Foam::Pout, syncTools::swapBoundaryFaceList(), syncTools::syncBoundaryFacePositions(), and WarningInFunction.
|
static |
Definition at line 594 of file meshRefinement.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, fld, forAll, Foam::mag(), mesh, Foam::nl, primitiveMesh::nPoints(), polyMesh::points(), Foam::Pout, and syncTools::syncPointList().
|
static |
Definition at line 641 of file meshRefinement.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, fld, forAll, Foam::mag(), mesh, Foam::nl, primitiveMesh::nPoints(), polyMesh::points(), Foam::Pout, syncTools::syncPointList(), and VectorSpace< Vector< scalar >, scalar, 3 >::zero.
void testSyncBoundaryFaceList | ( | const scalar | mergeDistance, |
const string & | msg, | ||
const UList< T > & | faceData, | ||
const UList< T > & | syncedFaceData | ||
) | const |
Definition at line 98 of file meshRefinementTemplates.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::mag(), patchIdentifier::name(), patches, UList::size(), polyPatch::start(), and T.
Definition at line 155 of file meshRefinementTemplates.C.
References Foam::DelaunayMeshTools::allPoints(), Foam::endl(), Foam::Info, Foam::mag(), points, and Foam::sortedOrder().
|
static |
Definition at line 3099 of file meshRefinement.C.
References forAll, Foam::identity(), Foam::labelMax, mesh, bitSet::set(), and syncTools::syncPointList().
Referenced by snappySnapDriver::calcNearestSurface(), snappySnapDriver::detectNearSurfaces(), and displacementMotionSolverMeshMover::move().
|
static |
Definition at line 3135 of file meshRefinement.C.
References forAll, Foam::identity(), Foam::labelMax, globalIndex::localSize(), globalIndex::localStart(), mesh, bitSet::set(), syncTools::syncEdgeList(), and globalIndex::toGlobal().
Referenced by displacementMotionSolverMeshMover::move().
Definition at line 3170 of file meshRefinement.C.
References bitSet::count(), Foam::expressions::patchExpr::debug, Foam::endl(), forAll, syncTools::getMasterFaces(), syncTools::getMasterPoints(), Foam::gMax(), Foam::Info, Pstream::listCombineGather(), Pstream::listCombineScatter(), globalMeshData::nTotalCells(), Foam::Pout, Foam::returnReduce(), and Foam::Zero.
Foam::word timeName | ( | ) | const |
Definition at line 3223 of file meshRefinement.C.
Referenced by snappySnapDriver::preSmoothPatch().
void setInstance | ( | const fileName & | inst | ) |
Definition at line 894 of file meshRefinement.C.
bool write | ( | ) | const |
Definition at line 3063 of file meshRefinement.C.
Referenced by snappySnapDriver::preSmoothPatch().
void dumpRefinementLevel | ( | ) | const |
Definition at line 3234 of file meshRefinement.C.
References IOobject::AUTO_WRITE, Foam::dimless, forAll, MeshObject< polyMesh, UpdateableMeshObject, pointMesh >::New(), IOobject::NO_READ, IOobject::NO_WRITE, and Foam::Zero.
void dumpIntersections | ( | const fileName & | prefix | ) | const |
Definition at line 3296 of file meshRefinement.C.
References stdFoam::end(), Foam::endl(), forAll, OFstream::name(), Foam::nl, Foam::Pout, and Foam::meshTools::writeOBJ().
void write | ( | const debugType | debugFlags, |
const writeType | writeFlags, | ||
const fileName & | prefix | ||
) | const |
Definition at line 3365 of file meshRefinement.C.
References Foam::vtk::write().
|
static |
Definition at line 3397 of file meshRefinement.C.
References Foam::expressions::patchExpr::debug, DebugVar, Foam::exists(), polyMesh::facesInstance(), mesh, polyMesh::meshSubDir, IOobject::path(), hexRef8::removeFiles(), and Foam::rm().
Definition at line 55 of file meshRefinementTemplates.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, n, reduce(), PackedList::size(), Foam::sum(), T, bitSet::test(), Foam::HashTableOps::values(), and Foam::Zero.
Referenced by snappySnapDriver::calcNearestSurface(), fieldSmoother::smoothLambdaMuDisplacement(), fieldSmoother::smoothNormals(), and fieldSmoother::smoothPatchNormals().
|
static |
Definition at line 3421 of file meshRefinement.C.
Referenced by snappyLayerDriver::addLayers(), snappySnapDriver::doSnap(), snappySnapDriver::preSmoothPatch(), and snappySnapDriver::smoothDisplacement().
|
static |
Definition at line 3427 of file meshRefinement.C.
|
static |
Definition at line 246 of file meshRefinementTemplates.C.
|
static |
Definition at line 323 of file meshRefinementTemplates.C.
References dict, FatalIOErrorInFunction, dictionary::name(), Foam::nl, and dictionary::readEntry().
|
static |
Definition at line 3446 of file meshRefinement.C.
References dictionary::csearch(), dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::name(), Foam::nl, and dictionary::null.
Referenced by layerParameters::layerParameters().
|
static |
Definition at line 3477 of file meshRefinement.C.
References dictionary::csearch(), dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::name(), and Foam::nl.
|
static |
Definition at line 97 of file meshRefinement.H.
|
static |
Definition at line 117 of file meshRefinement.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.