48 const dictionary& controlFunctionDict,
49 const conformationSurfaces& geometryToConformTo,
50 const scalar& defaultCellSize
54 defaultCellSize_(defaultCellSize),
55 forceInitialPointInsertion_
57 controlFunctionDict.lookupOrDefault<Switch>
59 "forceInitialPointInsertion",
74 const dictionary& controlFunctionDict,
75 const conformationSurfaces& geometryToConformTo,
76 const scalar& defaultCellSize
79 word cellSizeAndAlignmentControlTypeName
81 controlFunctionDict.lookup(
"type")
84 Info<<
indent <<
"Selecting cellSizeAndAlignmentControl " 85 << cellSizeAndAlignmentControlTypeName <<
endl;
87 dictionaryConstructorTable::iterator cstrIter =
88 dictionaryConstructorTablePtr_->find
90 cellSizeAndAlignmentControlTypeName
93 if (cstrIter == dictionaryConstructorTablePtr_->end())
96 <<
"Unknown cellSizeAndAlignmentControl type " 97 << cellSizeAndAlignmentControlTypeName
99 <<
"Valid cellSizeAndAlignmentControl types are :" << endl
100 << dictionaryConstructorTablePtr_->toc()
104 return autoPtr<cellSizeAndAlignmentControl>
Ostream & indent(Ostream &os)
Indent stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< cellSizeAndAlignmentControl > New(const Time &runTime, const word &name, const dictionary &controlFunctionDict, const conformationSurfaces &geometryToConformTo, const scalar &defaultCellSize)
Return a reference to the selected cellShapeControl.
cellSizeAndAlignmentControl(const Time &runTime, const word &name, const dictionary &controlFunctionDict, const conformationSurfaces &geometryToConformTo, const scalar &defaultCellSize)
Construct from dictionary and references to conformalVoronoiMesh and.
Macros for easy insertion into run-time selection tables.
virtual ~cellSizeAndAlignmentControl()
Destructor.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...