Go to the documentation of this file.
36 fieldNames_.setSize(
dict.toc().size());
37 injectionRate_.setSize(fieldNames_.size());
39 applied_.setSize(fieldNames_.size(),
false);
44 fieldNames_[i] = iter().keyword();
45 dict.lookup(iter().keyword()) >> injectionRate_[i];
57 const word& modelType,
81 <<
">::constrain for source " << name_ <<
endl;
84 List<Type> values(cells_.size(), injectionRate_[fieldI]);
A class for handling words, derived from string.
Cell-set options abtract base class. Provides a base set of controls, e.g.
bool read(const char *, int32_t &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
A special matrix type and solver, designed for finite volume solutions of scalar equations.
void setValues(const labelUList &cells, const UList< Type > &values)
Set solution in given cells to the specified values.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void constrain(fvMatrix< Type > &eqn, const label fieldI)
Set value on field.
void setFieldData(const dictionary &dict)
Set the local field data.
A list of keyword definitions, which are a keyword followed by any number of values (e....
ExplicitSetValue(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
Mesh data needed to do the Finite Volume discretisation.
Traits class for primitives.
word name(const complex &)
Return a string representation of a complex.