45 const dictionary& initialPointsDict,
48 const conformationSurfaces& geometryToConformTo,
49 const cellShapeControl& cellShapeControls,
50 const autoPtr<backgroundMeshDecomposition>& decomposition
53 dictionary(initialPointsDict),
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>
Macros for easy insertion into run-time selection tables.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Abstract base class for generating initial points for a conformalVoronoiMesh.
const conformationSurfaces & geometryToConformTo() const
const cellShapeControl & cellShapeControls() const
const backgroundMeshDecomposition & decomposition() const
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.