Go to the documentation of this file.
37 const word& fieldName,
48 option& source = this->operator[](i);
62 Info<<
"Applying source " << source.
name() <<
" to field "
116 const word& fieldName
131 option& source = this->operator[](i);
145 Info<<
"Applying source " << source.
name() <<
" to field "
146 << fieldName <<
endl;
175 option& source = this->operator[](i);
189 Info<<
"Applying source " << source.
name() <<
" to field "
216 const word& fieldName
232 label fieldi =
source.applyToField(eqn.
psi().name());
238 source.setApplied(fieldi);
244 Info<<
"Applying constraint " <<
source.name()
245 <<
" to field " << eqn.
psi().name() <<
endl;
248 source.constrain(eqn, fieldi);
265 option& source = this->operator[](i);
279 Info<<
"Correcting source " << source.
name()
280 <<
" 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....
tmp< GeometricField< Type, faPatchField, areaMesh > > d2dt2(const dimensioned< Type > dt, const faMesh &mesh)
A class for handling words, derived from Foam::string.
const word & name() const
Return const access to the source name.
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.
#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)
const dimensionSet dimArea(sqr(dimLength))
const dimensionedScalar h
Planck constant.
messageStream Info
Information stream (uses stdout - output is on the master only)
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.