List of finite volume options. More...
Public Member Functions | |
TypeName ("optionList") | |
Runtime type information. More... | |
optionList (const fvPatch &p) | |
Default construct from patch. More... | |
optionList (const fvPatch &p, const dictionary &) | |
Construct from patch and dictionary. More... | |
virtual | ~optionList ()=default |
Destructor. More... | |
void | reset (const dictionary &dict) |
Reset the source list. More... | |
bool | appliesToField (const word &fieldName) const |
Return whether there is something to apply to the field. More... | |
template<class Type > | |
tmp< faMatrix< Type > > | operator() (const areaScalarField &h, GeometricField< Type, faPatchField, areaMesh > &field) |
Return source for equation. More... | |
template<class Type > | |
tmp< faMatrix< Type > > | operator() (const areaScalarField &h, GeometricField< Type, faPatchField, areaMesh > &field, const word &fieldName) |
Return source for equation with specified name. More... | |
template<class Type > | |
tmp< faMatrix< Type > > | operator() (const areaScalarField &h, const areaScalarField &rho, GeometricField< Type, faPatchField, areaMesh > &field) |
Return source for equation. More... | |
template<class Type > | |
tmp< faMatrix< Type > > | operator() (const areaScalarField &h, const areaScalarField &rho, GeometricField< Type, faPatchField, areaMesh > &field, const word &fieldName) |
Return source for equation with specified name. More... | |
template<class Type > | |
tmp< faMatrix< Type > > | operator() (const areaScalarField &rho, GeometricField< Type, faPatchField, areaMesh > &field, const dimensionSet &ds) |
Return source for equation with specified name and dimensios. More... | |
template<class Type > | |
tmp< faMatrix< Type > > | d2dt2 (GeometricField< Type, faPatchField, areaMesh > &field) |
Return source for equation with second time derivative. More... | |
template<class Type > | |
tmp< faMatrix< Type > > | d2dt2 (GeometricField< Type, faPatchField, areaMesh > &field, const word &fieldName) |
Return source for equation with second time derivative. More... | |
template<class Type > | |
void | constrain (faMatrix< Type > &eqn) |
Apply constraints to equation. More... | |
template<class Type > | |
void | correct (GeometricField< Type, faPatchField, areaMesh > &field) |
Apply correction to field. More... | |
virtual bool | read (const dictionary &dict) |
Read dictionary. More... | |
virtual bool | writeData (Ostream &os) const |
Write data to Ostream. More... | |
template<class Type > | |
Foam::tmp< Foam::faMatrix< Type > > | source (GeometricField< Type, faPatchField, areaMesh > &field, const areaScalarField &h, const word &fieldName, const dimensionSet &ds) |
template<class Type > | |
Foam::tmp< Foam::faMatrix< Type > > | operator() (const areaScalarField &h, GeometricField< Type, faPatchField, areaMesh > &field) |
template<class Type > | |
Foam::tmp< Foam::faMatrix< Type > > | operator() (const areaScalarField &h, GeometricField< Type, faPatchField, areaMesh > &field, const word &fieldName) |
template<class Type > | |
Foam::tmp< Foam::faMatrix< Type > > | operator() (const areaScalarField &h, const areaScalarField &rho, GeometricField< Type, faPatchField, areaMesh > &field) |
template<class Type > | |
Foam::tmp< Foam::faMatrix< Type > > | operator() (const areaScalarField &h, const areaScalarField &rho, GeometricField< Type, faPatchField, areaMesh > &field, const word &fieldName) |
template<class Type > | |
Foam::tmp< Foam::faMatrix< Type > > | operator() (const areaScalarField &rho, GeometricField< Type, faPatchField, areaMesh > &field, const dimensionSet &ds) |
template<class Type > | |
Foam::tmp< Foam::faMatrix< Type > > | d2dt2 (GeometricField< Type, faPatchField, areaMesh > &field) |
template<class Type > | |
Foam::tmp< Foam::faMatrix< Type > > | d2dt2 (GeometricField< Type, faPatchField, areaMesh > &field, const word &fieldName) |
template<class Type > | |
Foam::tmp< Foam::fvMatrix< Type > > | source (GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName, const dimensionSet &ds) |
template<class Type > | |
Foam::tmp< Foam::fvMatrix< Type > > | operator() (GeometricField< Type, fvPatchField, volMesh > &field) |
template<class Type > | |
Foam::tmp< Foam::fvMatrix< Type > > | operator() (GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName) |
template<class Type > | |
Foam::tmp< Foam::fvMatrix< Type > > | operator() (const volScalarField &rho, GeometricField< Type, fvPatchField, volMesh > &field) |
template<class Type > | |
Foam::tmp< Foam::fvMatrix< Type > > | operator() (const volScalarField &rho, GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName) |
template<class Type > | |
Foam::tmp< Foam::fvMatrix< Type > > | operator() (const volScalarField &alpha, const volScalarField &rho, GeometricField< Type, fvPatchField, volMesh > &field) |
template<class Type > | |
Foam::tmp< Foam::fvMatrix< Type > > | operator() (const volScalarField &alpha, const volScalarField &rho, GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName) |
template<class Type > | |
Foam::tmp< Foam::fvMatrix< Type > > | operator() (const geometricOneField &alpha, const geometricOneField &rho, GeometricField< Type, fvPatchField, volMesh > &field) |
template<class Type > | |
Foam::tmp< Foam::fvMatrix< Type > > | operator() (const volScalarField &alpha, const geometricOneField &rho, GeometricField< Type, fvPatchField, volMesh > &field) |
template<class Type > | |
Foam::tmp< Foam::fvMatrix< Type > > | operator() (const geometricOneField &alpha, const volScalarField &rho, GeometricField< Type, fvPatchField, volMesh > &field) |
template<class Type > | |
Foam::tmp< Foam::fvMatrix< Type > > | d2dt2 (GeometricField< Type, fvPatchField, volMesh > &field) |
template<class Type > | |
Foam::tmp< Foam::fvMatrix< Type > > | d2dt2 (GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName) |
![]() | |
constexpr | PtrList () noexcept |
Default construct. More... | |
PtrList (const label len) | |
Construct with specified size, each element initialized to nullptr. More... | |
PtrList (const PtrList< fa::option > &list) | |
Copy construct using 'clone()' method on each element. More... | |
PtrList (PtrList< fa::option > &&list) | |
Move construct. More... | |
PtrList (UList< fa::option * > &list) | |
Take ownership of pointers in the list, set old pointers to null. More... | |
PtrList (const PtrList< fa::option > &list, const CloneArg &cloneArgs) | |
Copy construct using 'clone()' method on each element. More... | |
PtrList (PtrList< fa::option > &list, bool reuse) | |
Construct as copy or re-use as specified. More... | |
PtrList (const SLPtrList< fa::option > &list) | |
Copy construct using 'clone()' on each element of SLPtrList<T> More... | |
PtrList (Istream &is, const INew &inew) | |
Construct from Istream using given Istream constructor class. More... | |
PtrList (Istream &is) | |
Construct from Istream using default Istream constructor class. More... | |
~PtrList () | |
Destructor. More... | |
PtrList< fa::option > | clone (Args &&... args) const |
Make a copy by cloning each of the list elements. More... | |
Foam::PtrList< fa::option > | clone (Args &&... args) const |
const fa::option * | set (const label i) const |
Return const pointer to element (can be nullptr),. More... | |
autoPtr< fa::option > | set (const label i, fa::option *ptr) |
Set element to given pointer and return old element (can be null) More... | |
autoPtr< fa::option > | set (const label i, autoPtr< fa::option > &ptr) |
Set element to given autoPtr and return old element. More... | |
autoPtr< fa::option > | set (const label i, autoPtr< fa::option > &&ptr) |
Set element to given autoPtr and return old element. More... | |
autoPtr< fa::option > | set (const label i, std::unique_ptr< fa::option > &&ptr) |
Set element to given unique_ptr and return old element. More... | |
autoPtr< fa::option > | set (const label i, const refPtr< fa::option > &ptr) |
Set element to given refPtr and return old element. More... | |
autoPtr< fa::option > | set (const label i, const tmp< fa::option > &ptr) |
Set element to given tmp and return old element. More... | |
void | clear () |
Clear the PtrList. Delete allocated entries and set size to zero. More... | |
void | resize (const label newLen) |
Adjust size of PtrList. More... | |
void | setSize (const label newLen) |
Same as resize() More... | |
void | emplace_append (Args &&... args) |
Construct and append an element to the end of the list. More... | |
void | append (fa::option *ptr) |
Append an element to the end of the list. More... | |
void | append (autoPtr< fa::option > &ptr) |
Move append an element to the end of the list. More... | |
void | append (autoPtr< fa::option > &&ptr) |
Move append an element to the end of the list. More... | |
void | append (std::unique_ptr< fa::option > &&ptr) |
Move append an element to the end of the list. More... | |
void | append (const refPtr< fa::option > &ptr) |
Move or clone append a refPtr to the end of the list. More... | |
void | append (const tmp< fa::option > &ptr) |
Move or clone append a tmp to the end of the list. More... | |
autoPtr< fa::option > | emplace (const label i, Args &&... args) |
Construct and set an element. More... | |
Foam::autoPtr< fa::option > | emplace (const label i, Args &&... args) |
autoPtr< fa::option > | release (const label i) |
Release ownership of the pointer at the given position. More... | |
void | transfer (PtrList< fa::option > &list) |
Transfer into this list and annul the argument list. More... | |
void | operator= (const PtrList< fa::option > &list) |
Copy assignment. More... | |
void | operator= (PtrList< fa::option > &&list) |
Move assignment. More... | |
Protected Member Functions | |
bool | readOptions (const dictionary &dict) |
Read options dictionary. More... | |
void | checkApplied () const |
Check that all sources have been applied. More... | |
template<class Type > | |
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. More... | |
optionList (const optionList &)=delete | |
No copy construct. More... | |
void | operator= (const optionList &)=delete |
No copy assignment. More... | |
![]() | |
void | readIstream (Istream &is, const INew &inew) |
Read from Istream using Istream constructor class. More... | |
void | free () |
Delete the allocated entries, but retain the list size. More... | |
Static Protected Member Functions | |
static const dictionary & | optionsDict (const dictionary &dict) |
Return "options" sub-dictionary (if present) or return dict. More... | |
Protected Attributes | |
const fvMesh & | mesh_ |
Reference to the mesh database. More... | |
const fvPatch & | patch_ |
Reference to the patch. More... | |
label | checkTimeIndex_ |
Time index to check that all defined sources have been applied. More... | |
Friends | |
Ostream & | operator<< (Ostream &os, const optionList &options) |
Ostream operator. More... | |
List of finite volume options.
Definition at line 65 of file faOptionList.H.
|
protecteddelete |
No copy construct.
|
explicit |
Default construct from patch.
Definition at line 97 of file faOptionList.C.
optionList | ( | const fvPatch & | p, |
const dictionary & | dict | ||
) |
Construct from patch and dictionary.
Definition at line 83 of file faOptionList.C.
|
virtualdefault |
Destructor.
|
staticprotected |
Return "options" sub-dictionary (if present) or return dict.
Definition at line 44 of file faOptionList.C.
References dict.
|
protected |
Read options dictionary.
Definition at line 54 of file faOptionList.C.
References optionList::checkTimeIndex_, dict, optionList::mesh_, option::name(), option::read(), fvMesh::time(), and TimeState::timeIndex().
|
protected |
Check that all sources have been applied.
Definition at line 68 of file faOptionList.C.
References option::checkApplied().
Referenced by optionList::constrain().
|
protected |
Return source for equation with specified name and dimensions.
Referenced by optionList::constrain().
|
protecteddelete |
No copy assignment.
TypeName | ( | "optionList" | ) |
Runtime type information.
void reset | ( | const dictionary & | dict | ) |
Reset the source list.
Definition at line 108 of file faOptionList.C.
References Foam::BitOps::count(), dict, Foam::name(), option::New(), resize(), and Foam::BitOps::set().
Return whether there is something to apply to the field.
Definition at line 140 of file faOptionList.C.
References option::applyToField().
tmp<faMatrix<Type> > operator() | ( | const areaScalarField & | h, |
GeometricField< Type, faPatchField, areaMesh > & | field | ||
) |
Return source for equation.
tmp<faMatrix<Type> > operator() | ( | const areaScalarField & | h, |
GeometricField< Type, faPatchField, areaMesh > & | field, | ||
const word & | fieldName | ||
) |
Return source for equation with specified name.
tmp<faMatrix<Type> > operator() | ( | const areaScalarField & | h, |
const areaScalarField & | rho, | ||
GeometricField< Type, faPatchField, areaMesh > & | field | ||
) |
Return source for equation.
tmp<faMatrix<Type> > operator() | ( | const areaScalarField & | h, |
const areaScalarField & | rho, | ||
GeometricField< Type, faPatchField, areaMesh > & | field, | ||
const word & | fieldName | ||
) |
Return source for equation with specified name.
tmp<faMatrix<Type> > operator() | ( | const areaScalarField & | rho, |
GeometricField< Type, faPatchField, areaMesh > & | field, | ||
const dimensionSet & | ds | ||
) |
Return source for equation with specified name and dimensios.
tmp<faMatrix<Type> > d2dt2 | ( | GeometricField< Type, faPatchField, areaMesh > & | field | ) |
Return source for equation with second time derivative.
tmp<faMatrix<Type> > d2dt2 | ( | GeometricField< Type, faPatchField, areaMesh > & | field, |
const word & | fieldName | ||
) |
Return source for equation with second time derivative.
void constrain | ( | faMatrix< Type > & | eqn | ) |
Apply constraints to equation.
Definition at line 249 of file faOptionListTemplates.C.
References addProfiling, optionList::checkApplied(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Info, faMatrix< Type >::psi(), and optionList::source().
Referenced by kinematicThinFilm::evolveRegion(), KirchhoffShell::solveDisplacement(), and thermalShell::solveEnergy().
void correct | ( | GeometricField< Type, faPatchField, areaMesh > & | field | ) |
Apply correction to field.
Definition at line 290 of file faOptionListTemplates.C.
References addProfiling, option::applyToField(), option::correct(), Foam::expressions::patchExpr::debug, Foam::endl(), field(), Foam::Info, option::isActive(), option::name(), and option::setApplied().
Referenced by kinematicThinFilm::evolveRegion(), KirchhoffShell::solveDisplacement(), and thermalShell::solveEnergy().
|
virtual |
Read dictionary.
Definition at line 156 of file faOptionList.C.
References dict.
Referenced by options::read().
Write data to Ostream.
Definition at line 162 of file faOptionList.C.
References Foam::nl, os(), option::writeData(), option::writeFooter(), and option::writeHeader().
Referenced by Foam::operator<<().
Foam::tmp<Foam::faMatrix<Type> > source | ( | GeometricField< Type, faPatchField, areaMesh > & | field, |
const areaScalarField & | h, | ||
const word & | fieldName, | ||
const dimensionSet & | ds | ||
) |
Definition at line 35 of file faOptionListTemplates.C.
References addProfiling, option::addSup(), option::applyToField(), Foam::expressions::patchExpr::debug, Foam::endl(), field(), Foam::constant::universal::h, Foam::Info, option::isActive(), option::name(), tmp< T >::ref(), and option::setApplied().
Foam::tmp<Foam::faMatrix<Type> > operator() | ( | const areaScalarField & | h, |
GeometricField< Type, faPatchField, areaMesh > & | field | ||
) |
Definition at line 86 of file faOptionListTemplates.C.
References field(), and Foam::constant::universal::h.
Foam::tmp<Foam::faMatrix<Type> > operator() | ( | const areaScalarField & | h, |
GeometricField< Type, faPatchField, areaMesh > & | field, | ||
const word & | fieldName | ||
) |
Definition at line 97 of file faOptionListTemplates.C.
References Foam::dimArea, Foam::dimTime, field(), and Foam::constant::universal::h.
Foam::tmp<Foam::faMatrix<Type> > operator() | ( | const areaScalarField & | h, |
const areaScalarField & | rho, | ||
GeometricField< Type, faPatchField, areaMesh > & | field | ||
) |
Definition at line 109 of file faOptionListTemplates.C.
References field(), Foam::constant::universal::h, and rho.
Foam::tmp<Foam::faMatrix<Type> > operator() | ( | const areaScalarField & | h, |
const areaScalarField & | rho, | ||
GeometricField< Type, faPatchField, areaMesh > & | field, | ||
const word & | fieldName | ||
) |
Definition at line 121 of file faOptionListTemplates.C.
References addProfiling, option::addSup(), option::applyToField(), Foam::expressions::patchExpr::debug, Foam::dimArea, Foam::dimTime, Foam::endl(), field(), Foam::constant::universal::h, Foam::Info, option::isActive(), option::name(), rho, and option::setApplied().
Foam::tmp<Foam::faMatrix<Type> > operator() | ( | const areaScalarField & | rho, |
GeometricField< Type, faPatchField, areaMesh > & | field, | ||
const dimensionSet & | ds | ||
) |
Definition at line 177 of file faOptionListTemplates.C.
References addProfiling, option::addSup(), option::applyToField(), Foam::expressions::patchExpr::debug, Foam::dimArea, Foam::endl(), field(), Foam::Info, option::isActive(), option::name(), tmp< T >::ref(), rho, and option::setApplied().
Foam::tmp<Foam::faMatrix<Type> > d2dt2 | ( | GeometricField< Type, faPatchField, areaMesh > & | field | ) |
Definition at line 229 of file faOptionListTemplates.C.
References Foam::fac::d2dt2(), and field().
Foam::tmp<Foam::faMatrix<Type> > d2dt2 | ( | GeometricField< Type, faPatchField, areaMesh > & | field, |
const word & | fieldName | ||
) |
Definition at line 239 of file faOptionListTemplates.C.
References Foam::dimArea, Foam::dimTime, field(), and Foam::sqr().
Foam::tmp<Foam::fvMatrix<Type> > source | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
const word & | fieldName, | ||
const dimensionSet & | ds | ||
) |
Definition at line 37 of file fvOptionListTemplates.C.
References addProfiling, option::addSup(), option::applyToField(), Foam::expressions::patchExpr::debug, Foam::endl(), field(), Foam::Info, option::isActive(), option::name(), tmp< T >::ref(), and option::setApplied().
Foam::tmp<Foam::fvMatrix<Type> > operator() | ( | GeometricField< Type, fvPatchField, volMesh > & | field | ) |
Definition at line 87 of file fvOptionListTemplates.C.
References field().
Foam::tmp<Foam::fvMatrix<Type> > operator() | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
const word & | fieldName | ||
) |
Definition at line 97 of file fvOptionListTemplates.C.
References Foam::dimTime, Foam::dimVolume, and field().
Foam::tmp<Foam::fvMatrix<Type> > operator() | ( | const volScalarField & | rho, |
GeometricField< Type, fvPatchField, volMesh > & | field | ||
) |
Foam::tmp<Foam::fvMatrix<Type> > operator() | ( | const volScalarField & | rho, |
GeometricField< Type, fvPatchField, volMesh > & | field, | ||
const word & | fieldName | ||
) |
Definition at line 119 of file fvOptionListTemplates.C.
References addProfiling, option::addSup(), option::applyToField(), Foam::expressions::patchExpr::debug, Foam::dimTime, Foam::dimVolume, Foam::endl(), field(), Foam::Info, option::isActive(), option::name(), rho, and option::setApplied().
Foam::tmp<Foam::fvMatrix<Type> > operator() | ( | const volScalarField & | alpha, |
const volScalarField & | rho, | ||
GeometricField< Type, fvPatchField, volMesh > & | field | ||
) |
Definition at line 174 of file fvOptionListTemplates.C.
References Foam::constant::atomic::alpha, field(), and rho.
Foam::tmp<Foam::fvMatrix<Type> > operator() | ( | const volScalarField & | alpha, |
const volScalarField & | rho, | ||
GeometricField< Type, fvPatchField, volMesh > & | field, | ||
const word & | fieldName | ||
) |
Definition at line 186 of file fvOptionListTemplates.C.
References addProfiling, option::addSup(), Foam::constant::atomic::alpha, option::applyToField(), Foam::expressions::patchExpr::debug, dimensioned< Type >::dimensions(), Foam::dimTime, Foam::dimVolume, Foam::endl(), field(), Foam::Info, option::isActive(), option::name(), rho, and option::setApplied().
Foam::tmp<Foam::fvMatrix<Type> > operator() | ( | const geometricOneField & | alpha, |
const geometricOneField & | rho, | ||
GeometricField< Type, fvPatchField, volMesh > & | field | ||
) |
Definition at line 243 of file fvOptionListTemplates.C.
References field().
Foam::tmp<Foam::fvMatrix<Type> > operator() | ( | const volScalarField & | alpha, |
const geometricOneField & | rho, | ||
GeometricField< Type, fvPatchField, volMesh > & | field | ||
) |
Definition at line 255 of file fvOptionListTemplates.C.
References Foam::constant::atomic::alpha, Foam::dimless, and field().
Foam::tmp<Foam::fvMatrix<Type> > operator() | ( | const geometricOneField & | alpha, |
const volScalarField & | rho, | ||
GeometricField< Type, fvPatchField, volMesh > & | field | ||
) |
Foam::tmp<Foam::fvMatrix<Type> > d2dt2 | ( | GeometricField< Type, fvPatchField, volMesh > & | field | ) |
Definition at line 294 of file fvOptionListTemplates.C.
References Foam::fac::d2dt2(), and field().
Foam::tmp<Foam::fvMatrix<Type> > d2dt2 | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
const word & | fieldName | ||
) |
Definition at line 304 of file fvOptionListTemplates.C.
References Foam::dimTime, Foam::dimVolume, field(), and Foam::sqr().
|
friend |
Ostream operator.
|
protected |
Reference to the mesh database.
Definition at line 74 of file faOptionList.H.
Referenced by optionList::readOptions().
|
protected |
Reference to the patch.
Definition at line 77 of file faOptionList.H.
|
protected |
Time index to check that all defined sources have been applied.
Definition at line 80 of file faOptionList.H.
Referenced by optionList::readOptions().