Go to the documentation of this file.
112 const word& modelType,
126 const word& modelType,
201 inline bool active()
const;
virtual void correct(volScalarField &field)
declareRunTimeSelectionTable(autoPtr, option, dictionary,(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh),(name, modelType, dict, mesh))
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A class for handling words, derived from string.
autoPtr< option > clone() const
Return clone.
const word & name() const
Return const access to the source name.
virtual void checkApplied() const
Check that the source has been applied.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
autoPtr< option > operator()(Istream &is) const
const dictionary & coeffs() const
Return dictionary.
bool active() const
Return const access to the source active flag.
Forward declarations of fvMatrix specializations.
const word name_
Source name.
const fvMesh & mesh_
Reference to the mesh database.
virtual void writeData(Ostream &) const
Write the source properties.
virtual label applyToField(const word &fieldName) const
Return index of field name if found in fieldNames list.
option(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
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.
Finite volume options abtract base class. Provides a base set of controls, e.g.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Switch active_
Source active flag.
dictionary coeffs_
Dictionary containing source coefficients.
TypeName("option")
Runtime type information.
wordList fieldNames_
Field names to apply source to - populated by derived models.
virtual void addSup(fvMatrix< scalar > &eqn, const label fieldI)
Return pointer to new fvOption object created.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void constrain(fvMatrix< scalar > &eqn, const label fieldI)
virtual void writeHeader(Ostream &) const
Write the source header information.
Mesh data needed to do the Finite Volume discretisation.
static autoPtr< option > New(const word &name, const dictionary &dict, const fvMesh &mesh)
Return a reference to the selected fvOption model.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual bool isActive()
Is the source active?
const word modelType_
Model type.
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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const fvMesh & mesh() const
Return const access to the mesh database.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
dictionary dict_
Top level source dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
List< bool > applied_
Applied flag list - corresponds to each fieldNames_ entry.
Generic GeometricField class.
const fvMesh & mesh_
Reference to the mesh.
void setApplied(const label fieldI)
Set the applied flag to true for field index fieldI.
iNew(const fvMesh &mesh, const word &name)
virtual void writeFooter(Ostream &) const
Write the source footer information.