53 const triSurfaceMesh& surface,
54 const scalar& defaultCellSize
57 cellSizeCalculationType
64 coeffsDict_(cellSizeCalcTypeDict.optionalSubDict(typeName +
"Coeffs")),
67 cellSizeCalcTypeDict.optionalSubDict
70 ).
get<word>(
"fieldFile")
72 cellSizeMultipleCoeff_
74 coeffsDict_.getOrDefault<scalar>(
"cellSizeMultipleCoeff", 1)
85 tmp<triSurfacePointScalarField> pointCellSize
92 surface_.searchableSurface::time().constant(),
104 pointCellSize.ref() *= cellSizeMultipleCoeff_;
106 return pointCellSize;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Abstract base class for specifying target cell sizes.
const triSurfaceMesh & surface_
Reference to the triSurfaceMesh.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
fieldFromFile(const dictionary &cellSizeCalcTypeDict, const triSurfaceMesh &surface, const scalar &defaultCellSize)
Construct from components.
virtual tmp< triSurfacePointScalarField > load()
Load the cell size field.
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
const wordList surface
Standard surface field types (scalar, vector, tensor, etc).
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indent(Ostream &os)
Indent stream.
DimensionedField< scalar, triSurfacePointGeoMesh > triSurfacePointScalarField