113 const word& modelType,
117 (name, modelType, dict, mesh)
127 const word& modelType,
202 inline bool active()
const;
Switch active_
Source active flag.
virtual void correct(volScalarField &field)
virtual ~option()
Destructor.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
wordList fieldNames_
Field names to apply source to - populated by derived models.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const fvMesh & mesh_
Reference to the mesh database.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
void setApplied(const label fieldi)
Set the applied flag to true for field index fieldi.
dictionary dict_
Top level source dictionary.
const fvMesh & mesh() const
Return const access to the mesh database.
static autoPtr< option > New(const word &name, const dictionary &dict, const fvMesh &mesh)
Return a reference to the selected fvOption model.
virtual void addSup(fvMatrix< scalar > &eqn, const label fieldi)
iNew(const fvMesh &mesh, const word &name)
const word name_
Source name.
autoPtr< option > clone() const
Return clone.
A class for handling words, derived from string.
const word modelType_
Model type.
virtual void writeFooter(Ostream &) const
Write the source footer information.
virtual void checkApplied() const
Check that the source has been applied.
virtual bool read(const dictionary &dict)
Read source dictionary.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
const word & name() const
Return const access to the source name.
declareRunTimeSelectionTable(autoPtr, option, dictionary,(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh),(name, modelType, dict, mesh))
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool active() const
Return const access to the source active flag.
const dictionary & coeffs() const
Return dictionary.
virtual void writeData(Ostream &) const
Write the source properties.
Forward declarations of fvMatrix specializations.
virtual void constrain(fvMatrix< scalar > &eqn, const label fieldi)
Return pointer to new fvOption object created.
Mesh data needed to do the Finite Volume discretisation.
virtual void writeHeader(Ostream &) const
Write the source header information.
autoPtr< option > operator()(Istream &is) const
option(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
List< bool > applied_
Applied flag list - corresponds to each fieldNames_ entry.
virtual bool isActive()
Is the source active?
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
virtual label applyToField(const word &fieldName) const
Return index of field name if found in fieldNames list.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
dictionary coeffs_
Dictionary containing source coefficients.
TypeName("option")
Runtime type information.
Finite volume options abstract base class. Provides a base set of controls, e.g.: ...