34 return this->operator()(field, field.
name());
54 option& source = this->operator[](i);
66 Info<<
"Applying source " << source.
name() <<
" to field " 70 source.
addSup(mtx, fieldi);
86 return this->operator()(rho, field, field.
name());
110 option& source = this->operator[](i);
122 Info<<
"Applying source " << source.
name() <<
" to field " 123 << fieldName <<
endl;
126 source.
addSup(rho, mtx, fieldi);
143 return this->operator()(alpha, rho, field, field.
name());
153 const word& fieldName
169 option& source = this->operator[](i);
181 Info<<
"Applying source " << source.
name() <<
" to field " 182 << fieldName <<
endl;
185 source.
addSup(alpha, rho, mtx, fieldi);
202 return this->operator()(field, field.
name());
219 this->mesh_.time().timeName(),
229 return this->operator()(alpha,
one, field, field.
name());
241 return this->operator()(rho, field, field.
name());
264 Info<<
"Applying constraint " << source.
name()
265 <<
" to field " << eqn.
psi().name() <<
endl;
281 const word& fieldName = field.
name();
297 Info<<
"Correcting source " << source.
name()
298 <<
" for field " << fieldName <<
endl;
#define forAll(list, i)
Loop across all elements in list.
virtual void correct(volScalarField &field)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word & name() const
Return name.
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
T & ref() const
Return non-const reference or generate a fatal error.
const GeometricField< Type, fvPatchField, volMesh > & psi() const
const T & operator[](const label) const
Return element const reference.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Generic GeometricField class.
void setApplied(const label fieldi)
Set the applied flag to true for field index fieldi.
friend Ostream & operator(Ostream &, const UPtrList< T > &)
Write UPtrList to Ostream.
const dimensionSet dimVolume(pow3(dimLength))
const dimensionSet & dimensions() const
Return dimensions.
Dimension set for the base types.
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
virtual void addSup(fvMatrix< scalar > &eqn, const label fieldi)
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.
const word & name() const
Return const access to the source name.
void constrain(fvMatrix< Type > &eqn)
Apply constraints to equation.
void checkApplied() const
Check that all sources have been applied.
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
virtual void constrain(fvMatrix< scalar > &eqn, const label fieldi)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual bool isActive()
Is the source active?
virtual label applyToField(const word &fieldName) const
Return index of field name if found in fieldNames list.
A class for managing temporary objects.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class representing the concept of 1 (scalar(1)) used to avoid unnecessary manipulations for objects...
Finite volume options abstract base class. Provides a base set of controls, e.g.: ...