Go to the documentation of this file.
48 const dictionary& cellSizeFunctionDict,
49 const searchableSurface& surface,
50 const scalar& defaultCellSize,
54 dictionary(cellSizeFunctionDict),
56 surfaceCellSizeFunction_
58 surfaceCellSizeFunction::
New
65 coeffsDict_(optionalSubDict(
type +
"Coeffs")),
66 defaultCellSize_(defaultCellSize),
67 regionIndices_(regionIndices),
71 cellSizeFunctionDict.
get<label>(
"priority", keyType::REGEX_RECURSIVE)
77 if (surface_.hasVolumeType())
83 else if (
mode ==
"outside")
85 sideMode_ = smOutside;
87 else if (
mode ==
"bothSides")
89 sideMode_ = rmBothsides;
94 <<
"Unknown mode, expected: inside, outside or bothSides" <<
nl
100 if (
mode !=
"bothSides")
103 <<
"surface does not support volumeType, defaulting mode to "
108 sideMode_ = rmBothsides;
114 <<
"Cell size function for surface " << surface.name()
116 <<
", priority = " << priority_
117 <<
", regions = " << regionIndices_
127 const dictionary&
dict,
128 const searchableSurface& surface,
129 const scalar& defaultCellSize,
133 const word modelType(
dict.
get<word>(
"cellSizeFunction"));
135 Info<<
indent <<
"Selecting cellSizeFunction " << modelType <<
endl;
137 auto* ctorPtr = dictionaryConstructorTable(modelType);
146 *dictionaryConstructorTablePtr_
150 return autoPtr<cellSizeFunction>
List< label > labelList
A List of labels.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
Ostream & endl(Ostream &os)
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
mode_t mode(const fileName &name, const bool followLink=true)
cellSizeFunction(const cellSizeFunction &)=delete
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
static scalar snapToSurfaceTol_
Macros for easy insertion into run-time selection tables.
virtual ~cellSizeFunction()
static autoPtr< cellSizeFunction > New(const dictionary &cellSizeFunctionDict, const searchableSurface &surface, const scalar &defaultCellSize, const labelList regionIndices)
Ostream & indent(Ostream &os)
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
#define FatalErrorInFunction
const dimensionedScalar e
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction