List of finite volume options. More...
Public Member Functions | |
TypeName ("optionList") | |
Runtime type information. More... | |
optionList (const fvMesh &mesh) | |
Default construct from mesh. More... | |
optionList (const fvMesh &mesh, const dictionary &dict) | |
Construct from mesh 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< fvMatrix< Type > > | operator() (GeometricField< Type, fvPatchField, volMesh > &field) |
Return source for equation. More... | |
template<class Type > | |
tmp< fvMatrix< Type > > | operator() (GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName) |
Return source for equation with specified name. More... | |
template<class Type > | |
tmp< fvMatrix< Type > > | operator() (const volScalarField &rho, GeometricField< Type, fvPatchField, volMesh > &field) |
Return source for equation. More... | |
template<class Type > | |
tmp< fvMatrix< Type > > | operator() (const volScalarField &rho, GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName) |
Return source for equation with specified name. More... | |
template<class Type > | |
tmp< fvMatrix< Type > > | operator() (const volScalarField &alpha, const volScalarField &rho, GeometricField< Type, fvPatchField, volMesh > &field) |
Return source for equation. More... | |
template<class Type > | |
tmp< fvMatrix< Type > > | operator() (const volScalarField &alpha, const volScalarField &rho, GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName) |
Return source for equation with specified name. More... | |
template<class Type > | |
tmp< fvMatrix< Type > > | operator() (const volScalarField &alpha, const geometricOneField &rho, GeometricField< Type, fvPatchField, volMesh > &field) |
Return source for equation. More... | |
template<class Type > | |
tmp< fvMatrix< Type > > | operator() (const geometricOneField &alpha, const volScalarField &rho, GeometricField< Type, fvPatchField, volMesh > &field) |
Return source for equation. More... | |
template<class Type > | |
tmp< fvMatrix< Type > > | operator() (const geometricOneField &alpha, const geometricOneField &rho, GeometricField< Type, fvPatchField, volMesh > &field) |
Return source for equation. More... | |
template<class Type > | |
tmp< fvMatrix< Type > > | d2dt2 (GeometricField< Type, fvPatchField, volMesh > &field) |
Return source for equation with second time derivative. More... | |
template<class Type > | |
tmp< fvMatrix< Type > > | d2dt2 (GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName) |
Return source for equation with second time derivative. More... | |
template<class Type > | |
void | constrain (fvMatrix< Type > &eqn) |
Apply constraints to equation. More... | |
template<class Type > | |
void | correct (GeometricField< Type, fvPatchField, volMesh > &field) |
Apply correction to field. More... | |
template<class Type > | |
void | postProcessSens (Field< Type > &sensField, const word &fieldName=word::null, const word &designVariablesName=word::null) |
Post process sensitivity field related to the fvOption. More... | |
virtual bool | read (const dictionary &dict) |
Read dictionary. More... | |
virtual bool | writeData (Ostream &os) const |
Write data to Ostream. More... | |
![]() | |
constexpr | PtrList () noexcept |
Default construct. More... | |
PtrList (const label len) | |
Construct with specified size, each element initialized to nullptr. More... | |
PtrList (const PtrList< fv::option > &list) | |
Copy construct using 'clone()' method on each element. More... | |
PtrList (PtrList< fv::option > &&list) | |
Move construct. More... | |
PtrList (UList< fv::option * > &list) | |
Take ownership of pointers in the list, set old pointers to null. More... | |
PtrList (const PtrList< fv::option > &list, const CloneArg &cloneArgs) | |
Copy construct using 'clone()' method on each element. More... | |
PtrList (PtrList< fv::option > &list, bool reuse) | |
Construct as copy or re-use as specified. More... | |
PtrList (const SLPtrList< fv::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< fv::option > | clone (Args &&... args) const |
Make a copy by cloning each of the list elements. More... | |
Foam::PtrList< fv::option > | clone (Args &&... args) const |
const fv::option * | set (const label i) const |
Return const pointer to element (can be nullptr),. More... | |
autoPtr< fv::option > | set (const label i, fv::option *ptr) |
Set element to given pointer and return old element (can be null) More... | |
autoPtr< fv::option > | set (const label i, autoPtr< fv::option > &ptr) |
Set element to given autoPtr and return old element. More... | |
autoPtr< fv::option > | set (const label i, autoPtr< fv::option > &&ptr) |
Set element to given autoPtr and return old element. More... | |
autoPtr< fv::option > | set (const label i, std::unique_ptr< fv::option > &&ptr) |
Set element to given unique_ptr and return old element. More... | |
autoPtr< fv::option > | set (const label i, const refPtr< fv::option > &ptr) |
Set element to given refPtr and return old element. More... | |
autoPtr< fv::option > | set (const label i, const tmp< fv::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 (fv::option *ptr) |
Append an element to the end of the list. More... | |
void | append (autoPtr< fv::option > &ptr) |
Move append an element to the end of the list. More... | |
void | append (autoPtr< fv::option > &&ptr) |
Move append an element to the end of the list. More... | |
void | append (std::unique_ptr< fv::option > &&ptr) |
Move append an element to the end of the list. More... | |
void | append (const refPtr< fv::option > &ptr) |
Move or clone append a refPtr to the end of the list. More... | |
void | append (const tmp< fv::option > &ptr) |
Move or clone append a tmp to the end of the list. More... | |
autoPtr< fv::option > | emplace (const label i, Args &&... args) |
Construct and set an element. More... | |
Foam::autoPtr< fv::option > | emplace (const label i, Args &&... args) |
autoPtr< fv::option > | release (const label i) |
Release ownership of the pointer at the given position. More... | |
void | transfer (PtrList< fv::option > &list) |
Transfer into this list and annul the argument list. More... | |
void | operator= (const PtrList< fv::option > &list) |
Copy assignment. More... | |
void | operator= (PtrList< fv::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< fvMatrix< Type > > | source (GeometricField< Type, fvPatchField, volMesh > &field, 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... | |
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 69 of file fvOptionList.H.
|
protecteddelete |
No copy construct.
Referenced by kEpsilonLopesdaCosta< BasicTurbulenceModel >::setPorosityCoefficients().
|
explicit |
Default construct from mesh.
Definition at line 94 of file fvOptionList.C.
optionList | ( | const fvMesh & | mesh, |
const dictionary & | dict | ||
) |
Construct from mesh and dictionary.
Definition at line 84 of file fvOptionList.C.
References dict, optionList::optionsDict(), and optionList::reset().
|
virtualdefault |
Destructor.
|
staticprotected |
Return "options" sub-dictionary (if present) or return dict.
Definition at line 46 of file fvOptionList.C.
References dict.
Referenced by optionList::optionList().
|
protected |
Read options dictionary.
Definition at line 56 of file fvOptionList.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 70 of file fvOptionList.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 104 of file fvOptionList.C.
References Foam::BitOps::count(), dict, Foam::name(), option::New(), resize(), and Foam::BitOps::set().
Referenced by optionList::optionList().
Return whether there is something to apply to the field.
Definition at line 136 of file fvOptionList.C.
References option::applyToField().
tmp<fvMatrix<Type> > operator() | ( | GeometricField< Type, fvPatchField, volMesh > & | field | ) |
Return source for equation.
tmp<fvMatrix<Type> > operator() | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
const word & | fieldName | ||
) |
Return source for equation with specified name.
tmp<fvMatrix<Type> > operator() | ( | const volScalarField & | rho, |
GeometricField< Type, fvPatchField, volMesh > & | field | ||
) |
Return source for equation.
tmp<fvMatrix<Type> > operator() | ( | const volScalarField & | rho, |
GeometricField< Type, fvPatchField, volMesh > & | field, | ||
const word & | fieldName | ||
) |
Return source for equation with specified name.
tmp<fvMatrix<Type> > operator() | ( | const volScalarField & | alpha, |
const volScalarField & | rho, | ||
GeometricField< Type, fvPatchField, volMesh > & | field | ||
) |
Return source for equation.
tmp<fvMatrix<Type> > operator() | ( | const volScalarField & | alpha, |
const volScalarField & | rho, | ||
GeometricField< Type, fvPatchField, volMesh > & | field, | ||
const word & | fieldName | ||
) |
Return source for equation with specified name.
tmp<fvMatrix<Type> > operator() | ( | const volScalarField & | alpha, |
const geometricOneField & | rho, | ||
GeometricField< Type, fvPatchField, volMesh > & | field | ||
) |
Return source for equation.
tmp<fvMatrix<Type> > operator() | ( | const geometricOneField & | alpha, |
const volScalarField & | rho, | ||
GeometricField< Type, fvPatchField, volMesh > & | field | ||
) |
Return source for equation.
tmp<fvMatrix<Type> > operator() | ( | const geometricOneField & | alpha, |
const geometricOneField & | rho, | ||
GeometricField< Type, fvPatchField, volMesh > & | field | ||
) |
Return source for equation.
tmp<fvMatrix<Type> > d2dt2 | ( | GeometricField< Type, fvPatchField, volMesh > & | field | ) |
Return source for equation with second time derivative.
tmp<fvMatrix<Type> > d2dt2 | ( | GeometricField< Type, fvPatchField, volMesh > & | field, |
const word & | fieldName | ||
) |
Return source for equation with second time derivative.
void constrain | ( | fvMatrix< Type > & | eqn | ) |
Apply constraints to equation.
Definition at line 314 of file fvOptionListTemplates.C.
References addProfiling, optionList::checkApplied(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Info, fvMatrix< Type >::psi(), and optionList::source().
Referenced by kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::correct(), incompressiblePrimalSolver::correctBoundaryConditions(), simple::mainIter(), adjointSimple::mainIter(), velocityComponentLaplacianFvMotionSolver::solve(), velocityLaplacianFvMotionSolver::solve(), displacementComponentLaplacianFvMotionSolver::solve(), displacementSBRStressFvMotionSolver::solve(), solidBodyDisplacementLaplacianFvMotionSolver::solve(), displacementLaplacianFvMotionSolver::solve(), and surfaceAlignedSBRStressFvMotionSolver::solve().
void correct | ( | GeometricField< Type, fvPatchField, volMesh > & | field | ) |
Apply correction to field.
Definition at line 355 of file fvOptionListTemplates.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 kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::correct(), dynamicLagrangian< BasicTurbulenceModel >::correctNut(), kOmega< BasicTurbulenceModel >::correctNut(), kEqn< BasicTurbulenceModel >::correctNut(), WALE< BasicTurbulenceModel >::correctNut(), continuousGasKEpsilon< BasicTurbulenceModel >::correctNut(), DeardorffDiffStress< BasicTurbulenceModel >::correctNut(), SmagorinskyZhang< BasicTurbulenceModel >::correctNut(), realizableKE< BasicTurbulenceModel >::correctNut(), NicenoKEqn< BasicTurbulenceModel >::correctNut(), Smagorinsky< BasicTurbulenceModel >::correctNut(), LaheyKEpsilon< BasicTurbulenceModel >::correctNut(), kEpsilon< EddyDiffusivity< compressible::turbulenceModel > >::correctNut(), RNGkEpsilon< BasicTurbulenceModel >::correctNut(), LaunderSharmaKE< BasicTurbulenceModel >::correctNut(), dynamicKEqn< BasicTurbulenceModel >::correctNut(), kEpsilonLopesdaCosta< BasicTurbulenceModel >::correctNut(), SSG< BasicTurbulenceModel >::correctNut(), mixtureKEpsilon< BasicTurbulenceModel >::correctNut(), LRR< BasicTurbulenceModel >::correctNut(), kOmegaSSTSato< BasicTurbulenceModel >::correctNut(), SpalartAllmarasDES< BasicTurbulenceModel >::correctNut(), SpalartAllmaras< BasicTurbulenceModel >::correctNut(), kEpsilonPhitF< BasicTurbulenceModel >::correctNut(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::correctNut(), kL< BasicTurbulenceModel >::correctNut(), simple::mainIter(), adjointSimple::mainIter(), velocityComponentLaplacianFvMotionSolver::solve(), velocityLaplacianFvMotionSolver::solve(), displacementComponentLaplacianFvMotionSolver::solve(), displacementSBRStressFvMotionSolver::solve(), solidBodyDisplacementLaplacianFvMotionSolver::solve(), displacementLaplacianFvMotionSolver::solve(), and surfaceAlignedSBRStressFvMotionSolver::solve().
void postProcessSens | ( | Field< Type > & | sensField, |
const word & | fieldName = word::null , |
||
const word & | designVariablesName = word::null |
||
) |
Post process sensitivity field related to the fvOption.
Definition at line 398 of file fvOptionListTemplates.C.
References addProfiling, option::applyToField(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Info, option::isActive(), option::name(), and option::postProcessSens().
Referenced by FIBase::accumulateIntegrand(), and adjointSensitivity::adjointMeshMovementSource().
|
virtual |
Read dictionary.
Definition at line 152 of file fvOptionList.C.
References dict.
Referenced by options::read().
Write data to Ostream.
Definition at line 158 of file fvOptionList.C.
References Foam::nl, os(), option::writeData(), option::writeFooter(), and option::writeHeader().
Referenced by Foam::operator<<().
|
friend |
Ostream operator.
|
protected |
Reference to the mesh database.
Definition at line 78 of file fvOptionList.H.
Referenced by optionList::readOptions().
|
protected |
Time index to check that all defined sources have been applied.
Definition at line 81 of file fvOptionList.H.
Referenced by optionList::readOptions().