Go to the documentation of this file.
37 const word& fieldName,
48 option& source = this->operator[](i);
62 Info<<
"Applying source " << source.
name() <<
" to field "
66 source.
addSup(mtx, fieldi);
112 const word& fieldName
127 option& source = this->operator[](i);
141 Info<<
"Applying source " << source.
name() <<
" to field "
142 << fieldName <<
endl;
172 const word& fieldName
188 option& source = this->operator[](i);
202 Info<<
"Applying source " << source.
name() <<
" to field "
203 << fieldName <<
endl;
240 this->mesh_.time().timeName(),
280 const word& fieldName
296 label fieldi =
source.applyToField(eqn.
psi().name());
302 source.setApplied(fieldi);
308 Info<<
"Applying constraint " <<
source.name()
309 <<
" to field " << eqn.
psi().name() <<
endl;
312 source.constrain(eqn, fieldi);
329 option& source = this->operator[](i);
343 Info<<
"Correcting source " << source.
name()
344 <<
" for field " << fieldName <<
endl;
int debug
Static debugging option.
virtual void correct(volScalarField &field)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
tmp< GeometricField< Type, faPatchField, areaMesh > > d2dt2(const dimensioned< Type > dt, const faMesh &mesh)
void setApplied(const label fieldi)
Set the applied flag to true for field index fieldi.
A class for handling words, derived from Foam::string.
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
A class for managing temporary objects.
const word & name() const
Return const access to the source name.
void constrain(fvMatrix< Type > &eqn)
Apply constraints to equation.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
Ostream & endl(Ostream &os)
Add newline and flush stream.
Dimension set for the base types.
tmp< fvMatrix< Type > > d2dt2(GeometricField< Type, fvPatchField, volMesh > &field)
Return source for equation with second time derivative.
const GeometricField< Type, fvPatchField, volMesh > & psi() const
#define forAll(list, i)
Loop across all elements in list.
virtual label applyToField(const word &fieldName) const
Return index of field name if found in fieldNames list.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual void addSup(fvMatrix< scalar > &eqn, const label fieldi)
Finite volume options abstract base class. Provides a base set of controls, e.g.:
messageStream Info
Information stream (uses stdout - output is on the master only)
void checkApplied() const
Check that all sources have been applied.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
#define addProfiling(name, descr)
Define profiling trigger with specified name and description string.
virtual bool isActive()
Is the source active?
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< fvMatrix< Type > > source(GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName, const dimensionSet &ds)
Return source for equation with specified name and dimensions.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
const dimensionSet & dimensions() const
Return const reference to dimensions.
const dimensionSet dimVolume(pow3(dimLength))