Base abstract class for handling finite area options (i.e. faOption
).
More...
Classes | |
class | iNew |
Public Member Functions | |
TypeName ("option") | |
declareRunTimeSelectionTable (autoPtr, option, dictionary,(const word &name, const word &modelType, const dictionary &dict, const fvPatch &patch),(name, modelType, dict, patch)) | |
option (const word &name, const word &modelType, const dictionary &dict, const fvPatch &patch) | |
autoPtr< option > | clone () const |
virtual | ~option ()=default |
const word & | name () const noexcept |
const fvMesh & | mesh () const noexcept |
const fvPatch & | patch () const noexcept |
const dictionary & | coeffs () const noexcept |
bool | active () const noexcept |
void | setApplied (const label fieldi) |
const word & | regionName () const noexcept |
const faMesh & | regionMesh () const |
const volSurfaceMapping & | vsm () const |
bool | active (const bool on) noexcept |
virtual bool | isActive () |
virtual label | applyToField (const word &fieldName) const |
virtual void | checkApplied () const |
virtual void | addSup (const areaScalarField &h, faMatrix< scalar > &eqn, const label fieldi) |
virtual void | addSup (const areaScalarField &h, faMatrix< vector > &eqn, const label fieldi) |
virtual void | addSup (const areaScalarField &h, faMatrix< symmTensor > &eqn, const label fieldi) |
virtual void | addSup (const areaScalarField &h, faMatrix< sphericalTensor > &eqn, const label fieldi) |
virtual void | addSup (const areaScalarField &h, faMatrix< tensor > &eqn, const label fieldi) |
virtual void | addSup (const areaScalarField &h, const areaScalarField &rho, faMatrix< scalar > &eqn, const label fieldi) |
virtual void | addSup (const areaScalarField &h, const areaScalarField &rho, faMatrix< vector > &eqn, const label fieldi) |
virtual void | addSup (const areaScalarField &h, const areaScalarField &rho, faMatrix< symmTensor > &eqn, const label fieldi) |
virtual void | addSup (const areaScalarField &h, const areaScalarField &rho, faMatrix< sphericalTensor > &eqn, const label fieldi) |
virtual void | addSup (const areaScalarField &h, const areaScalarField &rho, faMatrix< tensor > &eqn, const label fieldi) |
virtual void | constrain (faMatrix< scalar > &eqn, const label fieldi) |
virtual void | constrain (faMatrix< vector > &eqn, const label fieldi) |
virtual void | constrain (faMatrix< sphericalTensor > &eqn, const label fieldi) |
virtual void | constrain (faMatrix< symmTensor > &eqn, const label fieldi) |
virtual void | constrain (faMatrix< tensor > &eqn, const label fieldi) |
virtual void | correct (areaScalarField &field) |
virtual void | correct (areaVectorField &field) |
virtual void | correct (areaSphericalTensorField &field) |
virtual void | correct (areaSymmTensorField &field) |
virtual void | correct (areaTensorField &field) |
virtual void | writeHeader (Ostream &) const |
virtual void | writeFooter (Ostream &) const |
virtual void | writeData (Ostream &) const |
virtual bool | read (const dictionary &dict) |
Static Public Member Functions | |
static autoPtr< option > | New (const word &name, const dictionary &dict, const fvPatch &patch) |
Public Attributes | |
bool | log |
Protected Member Functions | |
void | resetApplied () |
Protected Attributes | |
const word | name_ |
const word | modelType_ |
const fvMesh & | mesh_ |
const fvPatch & | patch_ |
dictionary | dict_ |
dictionary | coeffs_ |
wordList | fieldNames_ |
List< bool > | applied_ |
word | regionName_ |
Base abstract class for handling finite area options (i.e. faOption
).
constant/faOptions
: <userDefinedName1> { // Mandatory entries (unmodifiable) type <faOptionName>; // Mandatory entries (runtime modifiable) region <regionName>; // Optional entries (unmodifiable/runtime modifiable) <faOption>Coeffs { // subdictionary entries } // Optional entries (runtime modifiable) active true; log true; }
where the entries mean:
Property | Description | Type | Reqd | Dflt |
---|---|---|---|---|
type | Name of operand faOption | word | yes | - |
region | Name of operand region | word | yes | - |
<faOption>Coeffs | Dictionary containing settings of the selected faOption settings | dictionary | no | - |
active | Flag to (de)activate faOption | bool | no | true |
log | Flag to log faOption-related info | bool | no | true |
Definition at line 129 of file faOption.H.
option | ( | const word & | name, |
const word & | modelType, | ||
const dictionary & | dict, | ||
const fvPatch & | patch | ||
) |
Definition at line 48 of file faOption.C.
References Foam::decrIndent(), Foam::endl(), Foam::incrIndent(), Foam::indent(), and Log.
|
virtualdefault |
|
protected |
Definition at line 38 of file faOption.C.
References option::applied_, option::fieldNames_, and List::resize().
TypeName | ( | "option" | ) |
declareRunTimeSelectionTable | ( | autoPtr | , |
option | , | ||
dictionary | , | ||
(const word &name, const word &modelType, const dictionary &dict, const fvPatch &patch) | , | ||
(name, modelType, dict, patch) | |||
) |
Definition at line 228 of file faOption.H.
References NotImplemented.
|
static |
Definition at line 76 of file faOption.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::get(), Foam::indent(), Foam::Info, Foam::name(), Foam::nl, and Foam::foamVersion::patch.
Referenced by option::iNew::operator()(), and optionList::reset().
|
inlinenoexcept |
Definition at line 23 of file faOptionI.H.
References option::name_.
Referenced by optionList::correct(), optionList::operator()(), optionList::readOptions(), and optionList::source().
|
inlinenoexcept |
Definition at line 29 of file faOptionI.H.
|
inlinenoexcept |
Definition at line 35 of file faOptionI.H.
|
inlinenoexcept |
Definition at line 41 of file faOptionI.H.
|
inlinenoexcept |
Definition at line 47 of file faOptionI.H.
|
inline |
Definition at line 61 of file faOptionI.H.
Referenced by optionList::correct(), optionList::operator()(), and optionList::source().
|
inlinenoexcept |
Definition at line 67 of file faOptionI.H.
|
inline |
Definition at line 73 of file faOptionI.H.
|
inline |
Definition at line 83 of file faOptionI.H.
Definition at line 53 of file faOptionI.H.
|
virtual |
Reimplemented in faceSetOption.
Definition at line 112 of file faOption.C.
Referenced by optionList::correct(), faceSetOption::isActive(), optionList::operator()(), and optionList::source().
|
virtual |
Definition at line 118 of file faOption.C.
Referenced by optionList::appliesToField(), optionList::correct(), optionList::operator()(), and optionList::source().
|
virtual |
Definition at line 124 of file faOption.C.
References Foam::endl(), forAll, and WarningInFunction.
Referenced by optionList::checkApplied().
|
virtual |
Reimplemented in externalFileSource.
Definition at line 139 of file faOption.C.
Referenced by optionList::operator()(), and optionList::source().
|
virtual |
Definition at line 148 of file faOption.C.
|
virtual |
Definition at line 166 of file faOption.C.
|
virtual |
Definition at line 157 of file faOption.C.
|
virtual |
Definition at line 175 of file faOption.C.
|
virtual |
Reimplemented in externalHeatFluxSource, jouleHeatingSource, and contactHeatFluxSource.
Definition at line 184 of file faOption.C.
|
virtual |
Definition at line 194 of file faOption.C.
|
virtual |
Definition at line 214 of file faOption.C.
|
virtual |
Definition at line 204 of file faOption.C.
|
virtual |
Definition at line 224 of file faOption.C.
|
virtual |
Definition at line 233 of file faOption.C.
Definition at line 237 of file faOption.C.
|
virtual |
Definition at line 242 of file faOption.C.
|
virtual |
Definition at line 250 of file faOption.C.
Definition at line 257 of file faOption.C.
|
virtual |
Definition at line 261 of file faOption.C.
Referenced by optionList::correct().
|
virtual |
Reimplemented in limitVelocity.
Definition at line 265 of file faOption.C.
|
virtual |
Reimplemented in limitVelocity.
|
virtual |
Reimplemented in limitVelocity.
|
virtual |
Reimplemented in limitVelocity.
|
virtual |
Definition at line 25 of file faOptionIO.C.
References option::name_, and os().
Referenced by optionList::writeData().
|
virtual |
Definition at line 31 of file faOptionIO.C.
References os().
Referenced by optionList::writeData().
|
virtual |
Definition at line 37 of file faOptionIO.C.
References Foam::nl, os(), and Foam::type().
Referenced by optionList::writeData().
|
virtual |
Reimplemented in externalHeatFluxSource, jouleHeatingSource, faceSetOption, contactHeatFluxSource, externalFileSource, and limitVelocity.
Definition at line 47 of file faOptionIO.C.
References dict.
Referenced by externalFileSource::read(), contactHeatFluxSource::read(), faceSetOption::read(), jouleHeatingSource::read(), externalHeatFluxSource::read(), and optionList::readOptions().
|
protected |
Definition at line 142 of file faOption.H.
Referenced by option::name(), and option::writeHeader().
|
protected |
Definition at line 145 of file faOption.H.
|
protected |
Definition at line 148 of file faOption.H.
Referenced by externalHeatFluxSource::read().
|
protected |
Definition at line 151 of file faOption.H.
|
protected |
Definition at line 154 of file faOption.H.
|
protected |
Definition at line 157 of file faOption.H.
Referenced by limitVelocity::read().
|
protected |
Definition at line 160 of file faOption.H.
Referenced by option::resetApplied().
Definition at line 163 of file faOption.H.
Referenced by option::resetApplied().
|
protected |
Definition at line 166 of file faOption.H.
bool log |
Definition at line 192 of file faOption.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.