38#ifndef Foam_faOptionList_H
39#define Foam_faOptionList_H
60Ostream&
operator<<(Ostream&
os,
const fa::optionList& options);
104 const word& fieldName,
121 const word& defaultAreaName =
word()
130 const word& defaultAreaName =
word()
172 const word& fieldName
191 const word& fieldName
217 const word& fieldName
260 #include "faOptionList.txx"
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 area solutions of scalar equations....
List of finite-area options.
void reset(const dictionary &dict)
Reset the source list.
virtual bool read(const dictionary &dict)
Read dictionary.
word areaName_
The finite-area mesh name.
const fvMesh & mesh_
Reference to the mesh database.
void correct(GeometricField< Type, faPatchField, areaMesh > &field)
Apply correction to field.
virtual ~optionList()=default
Destructor.
optionList(const fvMesh &mesh, const word &defaultAreaName=word())
Default construct from mesh.
void checkApplied() const
Check that all sources have been applied.
const word & areaName() const noexcept
The finite-area mesh name.
void constrain(faMatrix< Type > &eqn)
Apply constraints to equation.
bool readOptions(const dictionary &dict)
Read options dictionary.
tmp< faMatrix< Type > > d2dt2(GeometricField< Type, faPatchField, areaMesh > &field, const word &fieldName)
Return source for equation with second time derivative.
virtual bool writeData(Ostream &os) const
Write data to Ostream.
tmp< faMatrix< Type > > source(GeometricField< Type, faPatchField, areaMesh > &field, const areaScalarField &h, const word &fieldName, const dimensionSet &ds)
Return source for equation with specified name and dimensions.
tmp< faMatrix< Type > > d2dt2(GeometricField< Type, faPatchField, areaMesh > &field)
Return source for equation with second time derivative.
void operator=(const optionList &)=delete
No copy assignment.
TypeName("optionList")
Runtime type information.
label checkTimeIndex_
Time index to check that all defined sources have been applied.
optionList(const optionList &)=delete
No copy construct.
optionList(const fvMesh &mesh, const dictionary &dict, const word &defaultAreaName=word())
Construct from mesh and dictionary.
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-area options, which is an IOdictionary of values and a fa::optionList.
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Namespace for finite-area.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
GeometricField< scalar, faPatchField, areaMesh > areaScalarField
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.