Go to the documentation of this file.
39 const word& fieldName,
50 option& source = this->operator[](i);
64 Info<<
"Applying source " << source.
name() <<
" to field "
68 source.
addSup(mtx, fieldi);
114 const word& fieldName
129 option& source = this->operator[](i);
143 Info<<
"Applying source " << source.
name() <<
" to field "
144 << fieldName <<
endl;
174 const word& fieldName
190 option& source = this->operator[](i);
204 Info<<
"Applying source " << source.
name() <<
" to field "
205 << fieldName <<
endl;
242 this->mesh_.time().timeName(),
282 const word& fieldName
298 label fieldi =
source.applyToField(eqn.
psi().name());
304 source.setApplied(fieldi);
310 Info<<
"Applying constraint " <<
source.name()
311 <<
" to field " << eqn.
psi().name() <<
endl;
314 source.constrain(eqn, fieldi);
331 option& source = this->operator[](i);
345 Info<<
"Correcting source " << source.
name()
346 <<
" for field " << fieldName <<
endl;
360 const word& fieldName,
361 const word& designVariablesName
366 option& source = this->operator[](i);
378 Info<<
"Post processing sensitivity from source "
380 <<
" 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.
const word & name() const
Return const access to the source name.
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
void setApplied(const label fieldi)
Set the applied flag to true for field index fieldi.
A class for managing temporary objects.
virtual void addSup(const areaScalarField &h, faMatrix< scalar > &eqn, const label fieldi)
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.
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)
Base abstract class for handling finite volume options (i.e. fvOption).
Generic templated field type.
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.
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?
virtual bool isActive()
Is the source active?
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Base abstract class for handling finite area options (i.e. faOption).
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))