39 const word& fieldName,
50 const label fieldi =
source.applyToField(fieldName);
58 const bool ok =
source.isActive();
71 <<
" for field " << fieldName <<
endl;
76 source.addSup(mtx, fieldi);
122 const word& fieldName
158 <<
" for field " << fieldName <<
endl;
190 const word& fieldName
227 <<
" for field " << fieldName <<
endl;
266 this->mesh_.time().timeName(),
306 const word& fieldName
338 Info<<
"(Inactive constrain)";
341 <<
" for field " << eqn.
psi().name() <<
endl;
381 Info<<
"(Inactive correct)";
384 <<
" for field " << fieldName <<
endl;
400 const word& fieldName,
401 const word& designVariablesName
416 Info<<
"Post processing sensitivity source "
417 << source.
name() <<
" for field " << fieldName <<
endl;
Generic templated field type.
Generic GeometricField class.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
friend Ostream & operator(Ostream &, const faMatrix< Type > &)
Field< Type > & source() noexcept
A special matrix type and solver, designed for finite volume solutions of scalar equations....
const GeometricField< Type, fvPatchField, volMesh > & psi(const label i=0) const
Return psi.
void checkApplied() const
Check that all sources have been applied.
tmp< fvMatrix< Type > > d2dt2(GeometricField< Type, fvPatchField, volMesh > &field)
Return source for equation with second time derivative.
void constrain(fvMatrix< Type > &eqn)
Apply constraints to equation.
void postProcessSens(Field< Type > &sensField, const word &fieldName=word::null, const word &designVariablesName=word::null)
Post process sensitivity field related to the fvOption.
tmp< fvMatrix< Type > > source(GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName, const dimensionSet &ds)
Return source for equation with specified name and dimensions.
Base abstract class for handling finite volume options (i.e. fvOption).
const word & name() const noexcept
Return const access to the source name.
void setApplied(const label fieldi)
Set the applied flag to true for field index fieldi.
virtual void postProcessSens(scalarField &sensField, const word &fieldName=word::null, const word &designVariablesName=word::null)
virtual label applyToField(const word &fieldName) const
Return index of field name if found in fieldNames list.
virtual void addSup(fvMatrix< scalar > &eqn, const label fieldi)
virtual void constrain(fvMatrix< scalar > &eqn, const label fieldi)
virtual bool isActive()
Is the source active?
virtual void correct(volScalarField &field)
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...
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
const dimensionSet dimless
Dimensionless.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimVolume(pow3(dimLength))
#define addProfiling(name, descr)
Define profiling trigger with specified name and description string.