42 Foam::initialPointsMethod::initialPointsMethod
45 const dictionary& initialPointsDict,
48 const conformationSurfaces& geometryToConformTo,
49 const cellShapeControl& cellShapeControls,
50 const autoPtr<backgroundMeshDecomposition>& decomposition
56 geometryToConformTo_(geometryToConformTo),
57 cellShapeControls_(cellShapeControls),
58 decomposition_(decomposition),
59 detailsDict_(optionalSubDict(
type +
"Coeffs")),
60 minimumSurfaceDistanceCoeffSqr_
64 initialPointsDict.
get<scalar>(
"minimumSurfaceDistanceCoeff")
67 fixInitialPoints_(initialPointsDict.
get<bool>(
"fixInitialPoints"))
75 const dictionary&
dict,
78 const conformationSurfaces& geometryToConformTo,
79 const cellShapeControl& cellShapeControls,
80 const autoPtr<backgroundMeshDecomposition>& decomposition
83 const word modelType(
dict.
get<word>(
"initialPointsMethod"));
85 Info<<
nl <<
"Selecting initialPointsMethod " << modelType <<
endl;
87 auto* ctorPtr = dictionaryConstructorTable(modelType);
94 "initialPointsMethod",
96 *dictionaryConstructorTablePtr_
101 autoPtr<initialPointsMethod>
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
static autoPtr< initialPointsMethod > New(const dictionary &initialPointsDict, const Time &runTime, Random &rndGen, const conformationSurfaces &geometryToConformTo, const cellShapeControl &cellShapeControls, const autoPtr< backgroundMeshDecomposition > &decomposition)
Return a reference to the selected initialPointsMethod.
Macros for easy insertion into run-time selection tables.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
messageStream Info
Information stream (stdout output on master, null elsewhere)
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...