Applies the force within a specified region to maintain the specified mean velocity for incompressible flows. More...
Public Member Functions | |
TypeName ("meanVelocityForce") | |
meanVelocityForce (const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh) | |
meanVelocityForce (const meanVelocityForce &)=delete | |
void | operator= (const meanVelocityForce &)=delete |
virtual | ~meanVelocityForce ()=default |
virtual void | correct (volVectorField &U) |
virtual void | addSup (fvMatrix< vector > &eqn, const label fieldi) |
virtual void | addSup (const volScalarField &rho, fvMatrix< vector > &eqn, const label fieldi) |
virtual void | constrain (fvMatrix< vector > &eqn, const label fieldi) |
virtual bool | read (const dictionary &dict) |
![]() | |
TypeName ("cellSetOption") | |
cellSetOption (const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh) | |
virtual | ~cellSetOption ()=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 & | cellSetName () const noexcept |
scalar | V () const noexcept |
const labelList & | cells () 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 fvMesh &mesh),(name, modelType, dict, mesh)) | |
option (const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh) | |
autoPtr< option > | clone () const |
virtual | ~option ()=default |
const word & | name () const noexcept |
const fvMesh & | mesh () const noexcept |
const dictionary & | coeffs () const noexcept |
bool | active () const noexcept |
void | setApplied (const label fieldi) |
bool | active (const bool on) noexcept |
virtual label | applyToField (const word &fieldName) const |
virtual void | checkApplied () const |
virtual void | addSup (fvMatrix< scalar > &eqn, const label fieldi) |
virtual void | addSup (fvMatrix< symmTensor > &eqn, const label fieldi) |
virtual void | addSup (fvMatrix< sphericalTensor > &eqn, const label fieldi) |
virtual void | addSup (fvMatrix< tensor > &eqn, const label fieldi) |
virtual void | addSup (const volScalarField &rho, fvMatrix< scalar > &eqn, const label fieldi) |
virtual void | addSup (const volScalarField &rho, fvMatrix< symmTensor > &eqn, const label fieldi) |
virtual void | addSup (const volScalarField &rho, fvMatrix< sphericalTensor > &eqn, const label fieldi) |
virtual void | addSup (const volScalarField &rho, fvMatrix< tensor > &eqn, const label fieldi) |
virtual void | addSup (const volScalarField &alpha, const volScalarField &rho, fvMatrix< scalar > &eqn, const label fieldi) |
virtual void | addSup (const volScalarField &alpha, const volScalarField &rho, fvMatrix< vector > &eqn, const label fieldi) |
virtual void | addSup (const volScalarField &alpha, const volScalarField &rho, fvMatrix< symmTensor > &eqn, const label fieldi) |
virtual void | addSup (const volScalarField &alpha, const volScalarField &rho, fvMatrix< sphericalTensor > &eqn, const label fieldi) |
virtual void | addSup (const volScalarField &alpha, const volScalarField &rho, fvMatrix< tensor > &eqn, const label fieldi) |
virtual void | constrain (fvMatrix< scalar > &eqn, const label fieldi) |
virtual void | constrain (fvMatrix< sphericalTensor > &eqn, const label fieldi) |
virtual void | constrain (fvMatrix< symmTensor > &eqn, const label fieldi) |
virtual void | constrain (fvMatrix< tensor > &eqn, const label fieldi) |
virtual void | correct (volScalarField &field) |
virtual void | correct (volSphericalTensorField &field) |
virtual void | correct (volSymmTensorField &field) |
virtual void | correct (volTensorField &field) |
virtual void | postProcessSens (scalarField &sensField, const word &fieldName=word::null, const word &designVariablesName=word::null) |
virtual void | postProcessSens (vectorField &sensField, const word &fieldName=word::null, const word &designVariablesName=word::null) |
virtual void | postProcessSens (tensorField &sensField, const word &fieldName=word::null, const word &designVariablesName=word::null) |
virtual void | writeHeader (Ostream &) const |
virtual void | writeFooter (Ostream &) const |
virtual void | writeData (Ostream &) const |
Protected Member Functions | |
virtual scalar | magUbarAve (const volVectorField &U) const |
void | writeProps (const scalar gradP) const |
void | update (fvMatrix< vector > &eqn) |
![]() | |
void | setSelection (const dictionary &dict) |
void | setCellSelection () |
void | setVol () |
![]() | |
void | resetApplied () |
Protected Attributes | |
vector | Ubar_ |
scalar | gradP0_ |
scalar | dGradP_ |
vector | flowDir_ |
scalar | relaxation_ |
autoPtr< volScalarField > | rAPtr_ |
![]() | |
scalar | timeStart_ |
scalar | duration_ |
selectionModeType | selectionMode_ |
word | cellSetName_ |
List< point > | points_ |
labelList | cells_ |
scalar | V_ |
![]() | |
const word | name_ |
const word | modelType_ |
const fvMesh & | mesh_ |
dictionary | dict_ |
dictionary | coeffs_ |
wordList | fieldNames_ |
List< bool > | applied_ |
bool | active_ |
Additional Inherited Members | |
![]() | |
enum | selectionModeType { smAll, smCellSet, smCellZone, smPoints } |
![]() | |
static autoPtr< option > | New (const word &name, const dictionary &dict, const fvMesh &mesh) |
![]() | |
bool | log |
![]() | |
static const Enum< selectionModeType > | selectionModeTypeNames_ |
Applies the force within a specified region to maintain the specified mean velocity for incompressible flows.
U | Velocity [m/s]
Required fields:
U | Velocity [m/s]
constant/fvOptions
: meanVelocityForce1 { // Mandatory entries (unmodifiable) type meanVelocityForce; // Mandatory entries (unmodifiable) Ubar (1 0 0); fields (<fieldName>); // Optional entries (unmodifiable) relaxation 1.0; // Conditional mandatory entries (unmodifiable) // when <timePath>/uniform/<name>Properties file exists gradient <vectorField>; // reading from the aforementioned file // Mandatory/Optional (inherited) entries ... }
where the entries mean:
Property | Description | Type | Reqd | Dflt |
---|---|---|---|---|
type | Type name: meanVelocityForce | word | yes | - |
Ubar | Desired mean velocity | vector | yes | - |
fields | Name of operand velocity field | word | yes | - |
relaxation | Relaxation factor | scalar | no | 1 |
gradient | Initial pressure gradient field | vectorField | cndtnl | - |
The inherited entries are elaborated in:
Definition at line 144 of file meanVelocityForce.H.
meanVelocityForce | ( | const word & | sourceName, |
const word & | modelType, | ||
const dictionary & | dict, | ||
const fvMesh & | mesh | ||
) |
Definition at line 71 of file meanVelocityForce.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, IOstream::good(), Foam::Info, Foam::nl, and propsDict().
|
delete |
|
virtualdefault |
|
protectedvirtual |
Definition at line 116 of file meanVelocityForce.C.
References forAll, reduce(), and U.
Referenced by meanVelocityForce::correct().
|
protected |
Definition at line 43 of file meanVelocityForce.C.
References gradP(), and propsDict().
Referenced by meanVelocityForce::correct().
TypeName | ( | "meanVelocityForce" | ) |
|
delete |
|
virtual |
Reimplemented from option.
Definition at line 138 of file meanVelocityForce.C.
References cellSetOption::cells_, meanVelocityForce::dGradP_, Foam::endl(), meanVelocityForce::flowDir_, forAll, gradP(), meanVelocityForce::gradP0_, Foam::Info, Foam::mag(), meanVelocityForce::magUbarAve(), option::mesh_, meanVelocityForce::rAPtr_, rAU, Foam::reduce(), meanVelocityForce::relaxation_, U, meanVelocityForce::Ubar_, fvMesh::V(), cellSetOption::V_, and meanVelocityForce::writeProps().
Reimplemented from option.
Definition at line 183 of file meanVelocityForce.C.
References fvMatrix::dimensions(), Foam::dimVolume, gradP(), IOobject::NO_READ, IOobject::NO_WRITE, Su, and Foam::Zero.
|
virtual |
Reimplemented from option.
Definition at line 211 of file meanVelocityForce.C.
Reimplemented from option.
Definition at line 222 of file meanVelocityForce.C.
References fvMatrix::A(), IOobject::NO_READ, and IOobject::NO_WRITE.
|
virtual |
Reimplemented from cellSetOption.
Definition at line 255 of file meanVelocityForce.C.
References NotImplemented.
|
protected |
Definition at line 153 of file meanVelocityForce.H.
Referenced by meanVelocityForce::correct().
|
protected |
Definition at line 156 of file meanVelocityForce.H.
Referenced by meanVelocityForce::correct().
|
protected |
Definition at line 159 of file meanVelocityForce.H.
Referenced by meanVelocityForce::correct().
|
protected |
Definition at line 162 of file meanVelocityForce.H.
Referenced by meanVelocityForce::correct().
|
protected |
Definition at line 165 of file meanVelocityForce.H.
Referenced by meanVelocityForce::correct().
|
protected |
Definition at line 168 of file meanVelocityForce.H.
Referenced by meanVelocityForce::correct().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.