40#ifndef Foam_fvOptionList_H
41#define Foam_fvOptionList_H
101 const word& fieldName,
154 const word& fieldName
171 const word& fieldName
190 const word& fieldName
232 const word& fieldName
248 class Type,
template<
class>
class PatchField,
class GeoMesh
263 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Generic GeometricField class.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
constexpr PtrList() noexcept
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
List of finite volume options.
void reset(const dictionary &dict)
Reset the source list.
const fvMesh & mesh_
Reference to the mesh database.
virtual ~optionList()=default
Destructor.
virtual bool writeData(Ostream &os) const
Write data to Ostream.
void checkApplied() const
Check that all sources have been applied.
tmp< fvMatrix< Type > > d2dt2(GeometricField< Type, fvPatchField, volMesh > &field)
Return source for equation with second time derivative.
bool readOptions(const dictionary &dict)
Read options dictionary.
virtual bool read(const dictionary &dict)
Read dictionary.
void postProcessAuxSens(const GeometricField< Type, PatchField, GeoMesh > &primal, const GeometricField< Type, PatchField, GeoMesh > &adjoint, scalarField &sensField, const word &fieldName=word::null)
Post process auxiliary sensitivity field related to the fvOption.
void operator=(const optionList &)=delete
No copy assignment.
TypeName("optionList")
Runtime type information.
tmp< fvMatrix< Type > > d2dt2(GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName)
Return source for equation with second time derivative.
label checkTimeIndex_
Time index to check that all defined sources have been applied.
void constrain(fvMatrix< Type > &eqn)
Apply constraints to equation.
optionList(const optionList &)=delete
No copy construct.
void postProcessSens(Field< Type > &sensField, const word &fieldName=word::null, const word &designVariablesName=word::null)
Post process sensitivity field related to the fvOption.
tmp< fvMatrix< Type > > source(GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName, const dimensionSet &ds)
Return source for equation with specified name and dimensions.
bool appliesToField(const word &fieldName) const
Return whether there is something to apply to the field.
static const dictionary & optionsDict(const dictionary &dict)
Return "options" sub-dictionary (if present) or return dict.
Finite-volume options, which is an IOdictionary of values and a fv::optionList.
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
OBJstream os(runTime.globalPath()/outputName)
Namespace for finite-volume.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.