32 const word& fieldName,
43 option& source = this->operator[](i);
55 Info<<
"Applying source " << source.
name() <<
" to field " 59 source.
addSup(mtx, fieldi);
74 return this->operator()(field, field.
name());
96 return this->operator()(rho, field, field.
name());
105 const word& fieldName
120 option& source = this->operator[](i);
132 Info<<
"Applying source " << source.
name() <<
" to field " 133 << fieldName <<
endl;
136 source.
addSup(rho, mtx, fieldi);
153 return this->operator()(alpha, rho, field, field.
name());
163 const word& fieldName
179 option& source = this->operator[](i);
191 Info<<
"Applying source " << source.
name() <<
" to field " 192 << fieldName <<
endl;
195 source.
addSup(alpha, rho, mtx, fieldi);
212 return this->operator()(field, field.
name());
229 this->mesh_.time().timeName(),
239 return this->operator()(alpha,
one, field, field.
name());
251 return this->operator()(rho, field, field.
name());
269 const word& fieldName
295 Info<<
"Applying constraint " << source.
name()
296 <<
" to field " << eqn.
psi().name() <<
endl;
312 const word& fieldName = field.
name();
328 Info<<
"Correcting source " << source.
name()
329 <<
" for field " << fieldName <<
endl;
#define forAll(list, i)
Loop across all elements in list.
tmp< GeometricField< Type, fvPatchField, volMesh > > d2dt2(const GeometricField< Type, fvPatchField, volMesh > &vf)
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
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const T & operator[](const label) const
Return element const reference.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Generic GeometricField class.
tmp< fvMatrix< Type > > source(GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName, const dimensionSet &ds)
Return source for equation with specified name and dimensions.
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: [].
tmp< fvMatrix< Type > > d2dt2(GeometricField< Type, fvPatchField, volMesh > &field)
Return source for equation with second time derivative.
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.: ...