35 maxGlobalCells_(dict.
lookup<
label>(
"maxGlobalCells")),
36 maxLocalCells_(dict.
lookup<
label>(
"maxLocalCells")),
37 minRefineCells_(dict.
lookup<
label>(
"minRefinementCells")),
43 dict.
lookup<scalar>(
"resolveFeatureAngle")
46 nBufferLayers_(dict.
lookup<
label>(
"nCellsBetweenLevels")),
48 allowFreeStandingZoneFaces_(dict.
lookup(
"allowFreeStandingZoneFaces")),
49 useTopologicalSnapDetection_
51 dict.lookupOrDefault<bool>(
"useTopologicalSnapDetection", true)
53 maxLoadUnbalance_(dict.lookupOrDefault<scalar>(
"maxLoadUnbalance", 0)),
56 dict.lookupOrDefault<
Switch>(
"handleSnapProblems", true)
59 scalar featAngle(dict.
lookup<scalar>(
"resolveFeatureAngle"));
61 if (featAngle < 0 || featAngle > 180)
88 const point& keepPoint = keepPoints_[i];
92 label globalCelli = -1;
96 globalCelli = globalCells.toGlobal(localCelli);
101 if (globalCelli == -1)
104 <<
"Point " << keepPoint
105 <<
" is not inside the mesh or on a face or edge." <<
nl 106 <<
"Bounding box of the mesh:" << mesh.
bounds()
111 label proci = globalCells.whichProcID(globalCelli);
112 label procCelli = globalCells.toLocal(proci, globalCelli);
114 Info<<
"Found point " << keepPoint <<
" in cell " << procCelli
115 <<
" on processor " << proci <<
endl;
118 if (globalCells.isLocal(globalCelli))
120 cellLabels[i] = localCelli;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const labelIOList & tetBasePtIs() const
Return the tetBasePtIs.
Unit conversion functions.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
scalar degToRad(const scalar deg)
Conversion from degrees to radians.
labelList findCells(const polyMesh &) const
Checks that cells are in mesh. Returns cells they are in.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
stressControl lookup("compactNormalStress") >> compactNormalStress
dimensionedScalar cos(const dimensionedScalar &ds)
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
refinementParameters(const dictionary &dict)
Construct from dictionary - new syntax.
const boundBox & bounds() const
Return mesh bounding box.
label findCell(const point &p, const cellDecomposition=CELL_TETS) const
Find cell enclosing this location and return index.
Mesh consisting of general polyhedral cells.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.