Limits the maximum velocity magnitude to the specified max
value.
More...
Public Member Functions | |
TypeName ("limitVelocity") | |
limitVelocity (const word &name, const word &modelType, const dictionary &dict, const fvPatch &patch) | |
virtual | ~limitVelocity ()=default |
virtual bool | read (const dictionary &dict) |
virtual void | correct (areaVectorField &U) |
![]() | |
TypeName ("faceSetOption") | |
faceSetOption (const word &name, const word &modelType, const dictionary &dict, const fvPatch &patch) | |
virtual | ~faceSetOption ()=default |
scalar | timeStart () const noexcept |
scalar | duration () const noexcept |
bool | inTimeLimits (const scalar timeValue) const |
selectionModeType | selectionMode () const noexcept |
bool | useSubMesh () const noexcept |
const word & | faceSetName () const noexcept |
scalar | A () const noexcept |
const labelList & | faces () const noexcept |
scalar | timeStart (scalar val) noexcept |
scalar | duration (scalar val) noexcept |
virtual bool | isActive () |
![]() | |
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 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 | writeHeader (Ostream &) const |
virtual void | writeFooter (Ostream &) const |
virtual void | writeData (Ostream &) const |
Protected Attributes | |
word | UName_ |
scalar | max_ |
![]() | |
scalar | timeStart_ |
scalar | duration_ |
selectionModeType | selectionMode_ |
word | faceSetName_ |
labelList | faces_ |
scalar | A_ |
![]() | |
const word | name_ |
const word | modelType_ |
const fvMesh & | mesh_ |
const fvPatch & | patch_ |
dictionary | dict_ |
dictionary | coeffs_ |
wordList | fieldNames_ |
List< bool > | applied_ |
word | regionName_ |
Additional Inherited Members | |
![]() | |
enum | selectionModeType { smAll, smVolFaceZone } |
![]() | |
static autoPtr< option > | New (const word &name, const dictionary &dict, const fvPatch &patch) |
![]() | |
bool | log |
![]() | |
static const Enum< selectionModeType > | selectionModeTypeNames_ |
![]() | |
void | setSelection (const dictionary &dict) |
void | setFaceSelection () |
void | setArea () |
![]() | |
void | resetApplied () |
Limits the maximum velocity magnitude to the specified max
value.
constant/faOptions
: <faOption> { // Mandatory entries type limitVelocity; active yes; selectionMode all; max <maxValue>; // Optional entries U <UName>; // Inherited entries ... }
where the entries mean:
Property | Description | Type | Reqd | Deflt |
---|---|---|---|---|
type | Type name: limitVelocity | word | yes | - |
max | Maximum velocity limit [m/s] | scalar | yes | - |
U | Name of operand velocity field | word | no | U |
The inherited entries are elaborated in:
Definition at line 103 of file limitVelocity.H.
limitVelocity | ( | const word & | name, |
const word & | modelType, | ||
const dictionary & | dict, | ||
const fvPatch & | patch | ||
) |
Definition at line 44 of file limitVelocity.C.
|
virtualdefault |
TypeName | ( | "limitVelocity" | ) |
|
virtual |
Reimplemented from faceSetOption.
Definition at line 62 of file limitVelocity.C.
References option::coeffs_, dict, limitVelocity::max_, faceSetOption::read(), and dictionary::readEntry().
|
virtual |
Reimplemented from option.
Definition at line 75 of file limitVelocity.C.
References forAll, Foam::magSqr(), Foam::max(), Foam::sqr(), Foam::sqrt(), U, and faceSetOption::useSubMesh().
|
protected |
Definition at line 112 of file limitVelocity.H.
|
protected |
Definition at line 115 of file limitVelocity.H.
Referenced by limitVelocity::read().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.