37 const word& modelType,
57 fieldNames_.setSize(fieldValuesDict.
size());
58 fieldValues_.setSize(fieldNames_.size());
63 fieldNames_[i] = iter().keyword();
64 fieldValuesDict.
lookup(iter().keyword()) >> fieldValues_[i];
68 applied_.
setSize(fieldNames_.size(),
false);
87 <<
"FixedValueConstraint<" 89 <<
">::constrain for source " << name_ <<
endl;
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
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.
Traits class for primitives.
virtual void constrain(fvMatrix< Type > &eqn, const label fieldi)
Set value on field.
label size() const
Return number of elements in list.
bool read(const char *, int32_t &)
A class for handling words, derived from string.
void setValues(const labelUList &cells, const UList< Type > &values)
Set solution in given cells to the specified values.
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.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
#define DebugInfo
Report an information message using Foam::Info.
void setSize(const label)
Reset size of List.
Mesh data needed to do the Finite Volume discretisation.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
Cell-set options abtract base class. Provides a base set of controls, e.g.:
virtual bool read(const dictionary &dict)
Read source dictionary.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.