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_
62 sqr( initialPointsDict.
lookup<scalar>(
"minimumSurfaceDistanceCoeff"))
64 fixInitialPoints_(Switch(initialPointsDict.
lookup(
"fixInitialPoints")))
75 const conformationSurfaces& geometryToConformTo,
76 const cellShapeControl& cellShapeControls,
77 const autoPtr<backgroundMeshDecomposition>& decomposition
80 word initialPointsMethodTypeName
82 initialPointsDict.lookup(
"initialPointsMethod")
85 Info<<
nl <<
"Selecting initialPointsMethod " 86 << initialPointsMethodTypeName <<
endl;
88 dictionaryConstructorTable::iterator cstrIter =
89 dictionaryConstructorTablePtr_->find(initialPointsMethodTypeName);
91 if (cstrIter == dictionaryConstructorTablePtr_->end())
94 <<
"Unknown initialPointsMethod type " 95 << initialPointsMethodTypeName
97 <<
"Valid initialPointsMethod types are :" << endl
98 << dictionaryConstructorTablePtr_->toc()
103 autoPtr<initialPointsMethod>
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual ~initialPointsMethod()
Destructor.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
const cellShapeControl & cellShapeControls() const
Macros for easy insertion into run-time selection tables.
dictionary()
Construct top-level dictionary null.
stressControl lookup("compactNormalStress") >> compactNormalStress
initialPointsMethod(const word &type, const dictionary &initialPointsDict, const Time &runTime, Random &rndGen, const conformationSurfaces &geometryToConformTo, const cellShapeControl &cellShapeControls, const autoPtr< backgroundMeshDecomposition > &decomposition)
Construct from components.
const backgroundMeshDecomposition & decomposition() const
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
const conformationSurfaces & geometryToConformTo() const
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.