Go to the documentation of this file.
38 const word& fieldName =
fld.name();
54 Info<<
"Correcting source " << source.
name()
55 <<
" for field " << fieldName <<
endl;
71 return this->operator()(
fld,
fld.name());
103 Info<<
"Applying source " << source.
name() <<
" to field "
104 << fieldName <<
endl;
107 source.
addSup(mtx, fieldI);
123 return this->operator()(
rho,
fld,
fld.name());
132 const word& fieldName
156 Info<<
"Applying source " << source.
name() <<
" to field "
157 << fieldName <<
endl;
187 const word& fieldName
212 Info<<
"Applying source " << source.
name() <<
" to field "
213 << fieldName <<
endl;
244 Info<<
"Applying constraint " << source.
name()
245 <<
" to field " << eqn.
psi().name() <<
endl;
int debug
Static debugging option.
virtual void correct(volScalarField &field)
void setApplied(const label fieldi)
Set the applied flag to true for field index fieldi.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
const word & name() const
Return const access to the source name.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Ostream & endl(Ostream &os)
Add newline and flush stream.
Dimension set for the base types.
void correct(GeometricField< Type, fvPatchField, volMesh > &fld)
Correct.
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)
messageStream Info
Information stream (uses stdout - output is on the master only)
void checkApplied() const
Check that all sources have been applied.
Similar to fv::option but with additional functionality to contribute to the sensitivity deriavtives.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
virtual void constrain(fvMatrix< scalar > &eqn, const label fieldi)
virtual bool isActive()
Is the source active?
A special matrix type and solver, designed for finite volume solutions of scalar equations....
void constrain(fvMatrix< Type > &eqn)
Apply constraints to equation.
const dimensionSet & dimensions() const
Return const reference to dimensions.
const dimensionSet dimVolume(pow3(dimLength))