35 bool constrained =
false;
43 constrainedFields_[i].insert(eqn.
psi().name());
47 Info<<
"Applying constraint " << constraint.
name()
48 <<
" to field " << eqn.
psi().name() <<
endl;
52 constraint.constrain(eqn, eqn.
psi().name()) || constrained;
66 const word& fieldName = field.
name();
70 bool constrained =
false;
78 constrainedFields_[i].
insert(fieldName);
82 Info<<
"Applying constraint " << constraint.
name()
83 <<
" for field " << fieldName <<
endl;
87 constraint.constrain(field) || constrained;
#define forAll(list, i)
Loop across all elements in list.
void insert(const word &, T *)
Add at head of dictionary.
Generic GeometricField class.
const word & name() const
Return name.
Finite volume options abstract base class.
virtual bool constrainsField(const word &fieldName) const
Return true if the given field is constrained.
const word & name() const
Return const access to the source name.
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
A class for handling words, derived from string.
Ostream & endl(Ostream &os)
Add newline and flush stream.