Go to the documentation of this file.
38 const word& fieldName,
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
255 const label fieldi =
source.applyToField(eqn.
psi().name());
261 source.setApplied(fieldi);
263 const bool ok =
source.isActive();
273 Info<<
"(Inactive constrain)";
276 <<
" for field " << eqn.
psi().name() <<
endl;
281 source.constrain(eqn, fieldi);
316 Info<<
"(Inactive correct)";
319 <<
" for field " << fieldName <<
endl;
int debug
Static debugging option.
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.
A special matrix type and solver, designed for finite area solutions of scalar equations....
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)
A class for handling words, derived from Foam::string.
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)
tmp< faMatrix< Type > > d2dt2(GeometricField< Type, faPatchField, areaMesh > &field)
Return source for equation with second time derivative.
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...
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)
const dimensionSet dimArea(sqr(dimLength))
const dimensionedScalar h
Planck constant.
messageStream Info
Information stream (stdout output on master, null elsewhere)
void constrain(faMatrix< Type > &eqn)
Apply constraints to equation.
#define addProfiling(name, descr)
Define profiling trigger with specified name and description string.
virtual bool isActive()
Is the source active?
virtual void correct(areaScalarField &field)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const GeometricField< Type, faPatchField, areaMesh > & psi() const
Base abstract class for handling finite area options (i.e. faOption).
void checkApplied() const
Check that all sources have been applied.
Generic GeometricField class.
void correct(GeometricField< Type, faPatchField, areaMesh > &field)
Apply correction to field.