Base abstract class for handling finite area options (i.e. faOption).
More...
#include <faOption.H>


Classes | |
| class | iNew |
| Return pointer to new faOption object created on the freestore from an Istream. More... | |
Public Member Functions | |
| TypeName ("option") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, option, dictionary,(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh, const word &areaName),(name, modelType, dict, mesh, areaName)) | |
| option (const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh, const word &defaultAreaName=word()) | |
| Construct from components. | |
| autoPtr< option > | clone () const |
| Return clone. | |
| virtual | ~option ()=default |
| Destructor. | |
| const word & | name () const noexcept |
| The source name. | |
| const fvMesh & | mesh () const noexcept |
| Return const access to the volume mesh. | |
| const dictionary & | coeffs () const noexcept |
| Return dictionary. | |
| bool | active () const noexcept |
| True if source is active. | |
| void | setApplied (const label fieldi) |
| Set the applied flag to true for field index fieldi. | |
| const word & | areaName () const noexcept |
| The finite-area mesh name. | |
| const word & | regionName () const noexcept |
| The model region name. | |
| const faMesh & | regionMesh () const |
| Return the region mesh database (demand-driven). | |
| const volSurfaceMapping & | vsm () const |
| Return volSurfaceMapping (demand-driven). | |
| bool | active (bool on) noexcept |
| Change source active flag, return previous value. | |
| const word & | suffixHint () const noexcept |
| The suffix hint when generating variable names. | |
| word | suffixed (const char *base) const |
Return the concatenation of base and the suffix hint. | |
| word | suffixed (const std::string &base) const |
Return the concatenation of base and the suffix hint. | |
| virtual bool | isActive () |
| Is the source active? | |
| virtual label | applyToField (const word &fieldName) const |
| Return index of field name if found in fieldNames list. | |
| virtual void | checkApplied () const |
| Check that the source has been applied. | |
| 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 |
| Write the source header information. | |
| virtual void | writeFooter (Ostream &) const |
| Write the source footer information. | |
| virtual void | writeData (Ostream &) const |
| Write the source properties. | |
| virtual bool | read (const dictionary &dict) |
| Read source dictionary. | |
Static Public Member Functions | |
| static autoPtr< option > | New (const word &name, const dictionary &dict, const fvMesh &mesh, const word &defaultAreaName=word()) |
| Return a reference to the selected faOption model. | |
| static bool | sameRegionNames (const word &name1, const word &name2) |
| Compare the region names. | |
Public Attributes | |
| bool | log |
| Switch write log to Info. | |
Protected Member Functions | |
| void | resetApplied () |
| Resize/reset applied flag list for all fieldNames_ entries. | |
Protected Attributes | |
| const word | name_ |
| Source name. | |
| const word | modelType_ |
| Model type. | |
| const fvMesh & | mesh_ |
| Reference to the mesh database. | |
| dictionary | dict_ |
| Top level source dictionary. | |
| dictionary | coeffs_ |
| Dictionary containing source coefficients. | |
| wordList | fieldNames_ |
| Field names to apply source to - populated by derived models. | |
| List< bool > | applied_ |
| Applied flag list - corresponds to each fieldNames_ entry. | |
| word | areaName_ |
| The finite-area mesh name. | |
| word | regionName_ |
| The model region name (finite-area). | |
| word | suffixHint_ |
| Suffix hint for variable names (default: ""). | |
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 entry (unmodifiable)
area <areaName>;
// 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 | - |
area | Name of finite-area mesh | word | no | region0 |
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 |
suffixing | Suffix hint for option variables | word | no | - |
Definition at line 148 of file faOption.H.
| option | ( | const word & | name, |
| const word & | modelType, | ||
| const dictionary & | dict, | ||
| const fvMesh & | mesh, | ||
| const word & | defaultAreaName = word() ) |
Construct from components.
| defaultAreaName | The expected finite-area mesh name |
References dict, mesh(), and name().
Referenced by declareRunTimeSelectionTable(), and faceSetOption::faceSetOption().


|
virtualdefault |
Destructor.
|
protected |
Resize/reset applied flag list for all fieldNames_ entries.
Referenced by externalFileSource::externalFileSource().

| TypeName | ( | "option" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| option | , | ||
| dictionary | , | ||
| (const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh, const word &areaName) | , | ||
| (name, modelType, dict, mesh, areaName) | ) |
References areaName(), dict, mesh(), name(), and option().

|
static |
Return a reference to the selected faOption model.
| defaultAreaName | The expected finite-area mesh name |
References dict, mesh(), and name().
Referenced by option::iNew::operator()().


Compare the region names.
Treats empty or polyMesh::defaultRegion as always matching
|
inlinenoexcept |
The source name.
Definition at line 380 of file faOption.H.
References name_, and Foam::noexcept.
Referenced by contactHeatFluxSource::addSup(), declareRunTimeSelectionTable(), faceSetOption::faceSetOption(), option::iNew::iNew(), limitHeight::limitHeight(), limitVelocity::limitVelocity(), New(), option(), faceSetOption::TypeName(), limitHeight::TypeName(), and limitVelocity::TypeName().

|
inlinenoexcept |
Return const access to the volume mesh.
Definition at line 385 of file faOption.H.
References mesh_, and Foam::noexcept.
Referenced by contactHeatFluxSource::contactHeatFluxSource(), declareRunTimeSelectionTable(), faceSetOption::faceSetOption(), option::iNew::iNew(), jouleHeatingSource::jouleHeatingSource(), limitHeight::limitHeight(), limitVelocity::limitVelocity(), New(), option(), contactHeatFluxSource::TypeName(), externalFileSource::TypeName(), externalHeatFluxSource::TypeName(), faceSetOption::TypeName(), limitHeight::TypeName(), and limitVelocity::TypeName().

|
inlinenoexcept |
Return dictionary.
Definition at line 390 of file faOption.H.
References coeffs_, and Foam::noexcept.
|
inlinenoexcept |
|
inline |
Set the applied flag to true for field index fieldi.
Definition at line 31 of file faOptionI.H.
References applied_.
|
inlinenoexcept |
The finite-area mesh name.
Definition at line 405 of file faOption.H.
References areaName_, and Foam::noexcept.
Referenced by declareRunTimeSelectionTable().

|
inlinenoexcept |
The model region name.
Definition at line 410 of file faOption.H.
References Foam::noexcept, and regionName_.
|
inline |
Return the region mesh database (demand-driven).
Definition at line 37 of file faOptionI.H.
References areaName_, and mesh_.
Referenced by contactHeatFluxSource::addSup(), externalHeatFluxSource::addSup(), externalFileSource::externalFileSource(), contactHeatFluxSource::read(), externalFileSource::read(), faceSetOption::setArea(), faceSetOption::setFaceSelection(), and vsm().

|
inline |
Return volSurfaceMapping (demand-driven).
Definition at line 47 of file faOptionI.H.
References regionMesh().

|
inlinenoexcept |
Change source active flag, return previous value.
Definition at line 23 of file faOptionI.H.
|
inlinenoexcept |
The suffix hint when generating variable names.
Definition at line 436 of file faOption.H.
References Foam::noexcept, and suffixHint_.
|
inline |
Return the concatenation of base and the suffix hint.
Definition at line 58 of file faOptionI.H.
References suffixHint_.
|
inline |
Return the concatenation of base and the suffix hint.
Definition at line 65 of file faOptionI.H.
References suffixHint_.
|
virtual |
Is the source active?
Reimplemented in faceSetOption.
Referenced by faceSetOption::isActive().

|
virtual |
Return index of field name if found in fieldNames list.
|
virtual |
Check that the source has been applied.
|
virtual |
Reimplemented in externalFileSource.
References h.
|
virtual |
References h.
|
virtual |
References h.
|
virtual |
References h.
|
virtual |
References h.
|
virtual |
Reimplemented in contactHeatFluxSource, externalHeatFluxSource, and jouleHeatingSource.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Write the source header information.
|
virtual |
Write the source footer information.
|
virtual |
Write the source properties.
|
virtual |
Read source dictionary.
Reimplemented in contactHeatFluxSource, externalFileSource, externalHeatFluxSource, faceSetOption, jouleHeatingSource, limitHeight, and limitVelocity.
References dict.
Referenced by contactHeatFluxSource::read(), externalFileSource::read(), externalHeatFluxSource::read(), and faceSetOption::read().

|
protected |
Source name.
Definition at line 165 of file faOption.H.
Referenced by limitHeight::correct(), limitVelocity::correct(), and name().
|
protected |
Model type.
Definition at line 170 of file faOption.H.
|
protected |
Reference to the mesh database.
Definition at line 175 of file faOption.H.
Referenced by externalHeatFluxSource::addSup(), faceSetOption::inTimeLimits(), faceSetOption::isActive(), mesh(), contactHeatFluxSource::read(), externalFileSource::read(), externalHeatFluxSource::read(), regionMesh(), and faceSetOption::setFaceSelection().
|
protected |
Top level source dictionary.
Definition at line 180 of file faOption.H.
|
protected |
Dictionary containing source coefficients.
Definition at line 185 of file faOption.H.
Referenced by coeffs(), faceSetOption::faceSetOption(), limitVelocity::limitVelocity(), contactHeatFluxSource::read(), faceSetOption::read(), limitHeight::read(), and limitVelocity::read().
|
protected |
Field names to apply source to - populated by derived models.
Definition at line 190 of file faOption.H.
Referenced by externalFileSource::externalFileSource(), limitVelocity::limitVelocity(), and limitHeight::read().
|
protected |
Applied flag list - corresponds to each fieldNames_ entry.
Definition at line 195 of file faOption.H.
Referenced by limitVelocity::limitVelocity(), limitHeight::read(), and setApplied().
|
protected |
The finite-area mesh name.
Definition at line 200 of file faOption.H.
Referenced by areaName(), and regionMesh().
|
protected |
The model region name (finite-area).
Definition at line 205 of file faOption.H.
Referenced by regionName().
|
protected |
Suffix hint for variable names (default: "").
Definition at line 210 of file faOption.H.
Referenced by suffixed(), suffixed(), and suffixHint().
| bool log |
Switch write log to Info.
Definition at line 246 of file faOption.H.