44 #ifndef Foam_resolutionIndexModel_H 45 #define Foam_resolutionIndexModel_H 78 template<
class GeoFieldType>
165 virtual bool write() = 0;
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const word & resultName() const noexcept
Return const reference to the result name.
TypeName("resolutionIndexModel")
Runtime type information.
GeoFieldType & getOrReadField(const word &fieldName) const
Return requested field from the object registry or read+register the field to the object registry...
virtual bool write()=0
Write the result field.
declareRunTimeSelectionTable(autoPtr, resolutionIndexModel, dictionary,(const word &name, const fvMesh &mesh, const dictionary &dict),(name, mesh, dict))
resolutionIndexModel(const word &name, const fvMesh &mesh, const dictionary &dict)
Construct from components.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
A base class for resolutionIndex models.
static autoPtr< resolutionIndexModel > New(const word &name, const fvMesh &mesh, const dictionary &dict)
Return a reference to the selected resolutionIndex model.
virtual bool execute()=0
Calculate the result field.
Mesh data needed to do the Finite Volume discretisation.
void operator=(const resolutionIndexModel &)=delete
No copy assignment.
tmp< volScalarField > V() const
Return cell volume field.
const fvMesh & mesh() const noexcept
Return const reference to the mesh.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
A class for managing temporary objects.
virtual ~resolutionIndexModel()=default
Destructor.
virtual bool read(const dictionary &dict)
Read top-level dictionary.