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]);
A list of keyword definitions, which are a keyword followed by a number of values (eg...
FixedValueConstraint(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A traits class, which is primarily used for primitives.
virtual void constrain(fvMatrix< Type > &eqn, const label fieldi)
Set value on field.
virtual bool read(const dictionary &dict)
Read source dictionary.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
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.
#define DebugInfo
Report an information message using Foam::Info.
Mesh data needed to do the Finite Volume discretisation.
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
virtual bool read(const dictionary &dict)
Read source dictionary.
void setValues(const labelUList &cellLabels, const Type &value)
Set solution in given cells to the specified value and eliminate the corresponding equations from the...
A keyword and a list of tokens is an 'entry'.