Go to the documentation of this file.
39 const word& fieldName,
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
320 const label fieldi =
source.applyToField(eqn.
psi().name());
326 source.setApplied(fieldi);
328 const bool ok =
source.isActive();
338 Info<<
"(Inactive constrain)";
341 <<
" for field " << eqn.
psi().name() <<
endl;
346 source.constrain(eqn, fieldi);
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;
int debug
Static debugging option.
virtual void correct(volScalarField &field)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return const access to the source name.
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.
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, which can be used to implement rigorous dimension checking for alge...
tmp< fvMatrix< Type > > d2dt2(GeometricField< Type, fvPatchField, volMesh > &field)
Return source for equation with second time derivative.
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)
Base abstract class for handling finite volume options (i.e. fvOption).
Generic templated field type.
messageStream Info
Information stream (stdout output on master, null elsewhere)
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.
const GeometricField< Type, fvPatchField, volMesh > & psi(const label i=0) const
Return psi.
void postProcessSens(Field< Type > &sensField, const word &fieldName=word::null, const word &designVariablesName=word::null)
Post process sensitivity field related to the fvOption.
virtual void postProcessSens(scalarField &sensField, const word &fieldName=word::null, const word &designVariablesName=word::null)
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))
const dimensionSet dimless
Dimensionless.