38 const word& fieldName,
49 const label fieldi =
source.applyToField(fieldName);
57 const bool ok =
source.isActive();
70 <<
" for field " << fieldName <<
endl;
100 const word& fieldName
125 const word& fieldName
161 <<
" for field " << fieldName <<
endl;
213 <<
" for field " <<
field.name() <<
endl;
241 const word& fieldName
273 Info<<
"(Inactive constrain)";
276 <<
" for field " << eqn.
psi().name() <<
endl;
316 Info<<
"(Inactive correct)";
319 <<
" for field " << fieldName <<
endl;
Generic GeometricField class.
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...
A special matrix type and solver, designed for finite area solutions of scalar equations....
const GeometricField< Type, faPatchField, areaMesh > & psi() const
friend Ostream & operator(Ostream &, const faMatrix< Type > &)
Field< Type > & source() noexcept
void checkApplied() const
Check that all sources have been applied.
void constrain(faMatrix< Type > &eqn)
Apply constraints to equation.
tmp< faMatrix< Type > > source(GeometricField< Type, faPatchField, areaMesh > &field, const areaScalarField &h, const word &fieldName, const dimensionSet &ds)
Return source for equation with specified name and dimensions.
tmp< faMatrix< Type > > d2dt2(GeometricField< Type, faPatchField, areaMesh > &field)
Return source for equation with second time derivative.
Base abstract class for handling finite area options (i.e. faOption).
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 correct(areaScalarField &field)
virtual void addSup(const areaScalarField &h, faMatrix< scalar > &eqn, const label fieldi)
virtual label applyToField(const word &fieldName) const
Return index of field name if found in fieldNames list.
virtual bool isActive()
Is the source active?
virtual void constrain(faMatrix< scalar > &eqn, const label fieldi)
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
const dimensionSet dimArea(sqr(dimLength))
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define addProfiling(name, descr)
Define profiling trigger with specified name and description string.