Go to the documentation of this file.
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;
356 GeometricField<Type, fvPatchField, volMesh>&
field
359 const word& fieldName =
field.name();
361 for (fv::option& source : *
this)
363 const label fieldi = source.applyToField(fieldName);
367 addProfiling(fvopt,
"fvOption::correct." + source.name());
369 source.setApplied(fieldi);
371 const bool ok = source.isActive();
381 Info<<
"(Inactive correct)";
383 Info<<
" source " << source.name()
384 <<
" for field " << fieldName <<
endl;
389 source.correct(
field);
399 Field<Type>& sensField,
400 const word& fieldName,
401 const word& designVariablesName
404 for (fv::option& source : *
this)
406 const label fieldi = source.applyToField(fieldName);
410 addProfiling(fvopt,
"fvOption::postProcessSens." + source.name());
412 const bool ok = source.isActive();
416 Info<<
"Post processing sensitivity source "
417 << source.name() <<
" for field " << fieldName <<
endl;
422 source.postProcessSens
virtual void correct(volScalarField &field)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
tmp< GeometricField< Type, faPatchField, areaMesh > > d2dt2(const dimensioned< Type > dt, const faMesh &mesh)
void setApplied(const label fieldi)
A class for handling words, derived from Foam::string.
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
A class for managing temporary objects.
void constrain(fvMatrix< Type > &eqn)
const dimensionedScalar alpha
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)
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)
virtual label applyToField(const word &fieldName) const
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).
void checkApplied() const
virtual void constrain(fvMatrix< scalar > &eqn, const label fieldi)
#define addProfiling(name, descr)
const GeometricField< Type, fvPatchField, volMesh > & psi(const label i=0) const
Generic dimensioned Type class.
void postProcessSens(Field< Type > &sensField, const word &fieldName=word::null, const word &designVariablesName=word::null)
virtual void postProcessSens(scalarField &sensField, const word &fieldName=word::null, const word &designVariablesName=word::null)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< fvMatrix< Type > > source(GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName, const dimensionSet &ds)
const dimensionSet & dimensions() const
const dimensionSet dimVolume(pow3(dimLength))
Generic GeometricField class.
const dimensionSet dimless