43 const dictionary& cellSizeCalculationTypeDict,
44 const triSurfaceMesh& surface,
45 const scalar& defaultCellSize
48 cellSizeCalculationTypeDict_(cellSizeCalculationTypeDict),
50 defaultCellSize_(defaultCellSize)
58 const dictionary& cellSizeCalculationTypeDict,
59 const triSurfaceMesh& surface,
60 const scalar& defaultCellSize
63 word cellSizeCalculationTypeTypeName
65 cellSizeCalculationTypeDict.lookup(
"cellSizeCalculationType")
68 Info<<
indent <<
"Selecting cellSizeCalculationType " 69 << cellSizeCalculationTypeTypeName <<
endl;
71 dictionaryConstructorTable::iterator cstrIter =
72 dictionaryConstructorTablePtr_->find(cellSizeCalculationTypeTypeName);
74 if (cstrIter == dictionaryConstructorTablePtr_->end())
77 <<
"Unknown cellSizeCalculationType type " 78 << cellSizeCalculationTypeTypeName
80 <<
"Valid cellSizeCalculationType types are :" << endl
81 << dictionaryConstructorTablePtr_->toc()
85 return autoPtr<cellSizeCalculationType>
87 cstrIter()(cellSizeCalculationTypeDict, surface, defaultCellSize)
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.
cellSizeCalculationType(const word &type, const dictionary &cellSizeCalculationTypeDict, const triSurfaceMesh &surface, const scalar &defaultCellSize)
Construct from components.
Macros for easy insertion into run-time selection tables.
virtual ~cellSizeCalculationType()
Destructor.
static autoPtr< cellSizeCalculationType > New(const dictionary &cellSizeCalculationTypeDict, const triSurfaceMesh &surface, const scalar &defaultCellSize)
Return a reference to the selected cellSizeCalculationType.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.