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();
78 constrainedFields_[i].insert(fieldName);
82 Info<<
"Applying constraint " << constraint.
name()
83 <<
" for field " << fieldName <<
endl;
#define forAll(list, i)
Loop across all elements in list.
const word & name() const
Return name.
const GeometricField< Type, fvPatchField, volMesh > & psi() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
Generic GeometricField 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.
A class for handling words, derived from 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.
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
Finite volume options abstract base class.