40 const word& modelType,
60 label count = fieldValuesDict.size();
62 fieldNames_.resize(count);
63 fieldValues_.resize(count);
68 for (
const entry& dEntry : fieldValuesDict)
70 fieldNames_[count] = dEntry.keyword();
71 dEntry.readEntry(fieldValues_[count]);
91 <<
"FixedValueConstraint<"
93 <<
">::constrain for source " << name_ <<
endl;
95 eqn.
setValues(cells_, fieldValues_[fieldi]);
virtual bool read()
Re-read model coefficients if they have changed.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
A keyword and a list of tokens is an 'entry'.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
void setValues(const labelUList &cellLabels, const Type &value)
Mesh data needed to do the Finite Volume discretisation.
Constrain values of given fields of Type with a given maximum value within a specified region,...
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual void constrain(fvMatrix< Type > &eqn, const label fieldi)
Set value on field.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
A traits class, which is primarily used for primitives.
A class for handling words, derived from Foam::string.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
#define DebugInfo
Report an information message using Foam::Info.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.