35 namespace functionObjects
53 fieldType_(
word::null),
54 fieldName_(
word::null),
73 fieldType_ =
dict.lookup<
word>(
"fieldType");
74 fieldName_ =
dict.lookupBackwardsCompatible<
word>({
"field",
"name"});
78 #define readValueType(Type, GeoField) \
79 if (GeoField<Type>::typeName == fieldType_) \
82 Type##Value_ = dict.lookup<Type>("value"); \
92 <<
"Field type " << fieldType_ <<
" not recognised" <<
endl <<
endl;
95 #define getFieldType(Type, GeoField) \
96 fieldTypes.append(GeoField<Type>::typeName);
103 <<
"Available field types are : " <<
endl
114 #define calcType(Type, GeoField) \
115 if (GeoField<Type>::typeName == fieldType_) \
120 GeoField<Type>::New \
124 dimensioned<Type>(dimensions_, Type##Value_) \
139 return writeObject(fieldName_);
145 return clearObject(fieldName_);
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Dimension set for the base types.
Abstract base-class for Time/database functionObjects.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual bool read(const dictionary &)
Read optional controls.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimless
typename VolField< Type >::Internal VolInternalField
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)