MRF zone definition based on cell zone and parameters obtained from a control dictionary constructed from the given stream. More...
Public Member Functions | |
ClassName ("MRFZone") | |
MRFZone (const word &name, const fvMesh &mesh, const dictionary &dict, const word &cellZoneName=word::null) | |
Construct from fvMesh. More... | |
autoPtr< MRFZone > | clone () const |
Return clone. More... | |
const word & | name () const |
Return const access to the MRF region name. More... | |
bool | active () const |
Return const access to the MRF active flag. More... | |
const vector & | origin () const |
Return const access to the MRF origin. More... | |
const vector & | axis () const |
Return const access to the MRF axis. More... | |
vector | Omega () const |
Return the current Omega vector. More... | |
void | updateMesh (const mapPolyMesh &mpm) |
Update the mesh corresponding to given map. More... | |
void | addCoriolis (const volVectorField &U, volVectorField &ddtU) const |
Add the Coriolis force contribution to the acceleration field. More... | |
void | addCoriolis (fvVectorMatrix &UEqn, const bool rhs=false) const |
Add the Coriolis force contribution to the momentum equation. More... | |
void | addCoriolis (const volScalarField &rho, fvVectorMatrix &UEqn, const bool rhs=false) const |
Add the Coriolis force contribution to the momentum equation. More... | |
void | makeRelative (volVectorField &U) const |
Make the given absolute velocity relative within the MRF region. More... | |
void | makeRelative (surfaceScalarField &phi) const |
Make the given absolute flux relative within the MRF region. More... | |
void | makeRelative (FieldField< fvsPatchField, scalar > &phi) const |
Make the given absolute boundary flux relative. More... | |
void | makeRelative (Field< scalar > &phi, const label patchi) const |
Make the given absolute patch flux relative. More... | |
void | makeRelative (const surfaceScalarField &rho, surfaceScalarField &phi) const |
Make the given absolute mass-flux relative within the MRF region. More... | |
void | makeAbsolute (volVectorField &U) const |
Make the given relative velocity absolute within the MRF region. More... | |
void | makeAbsolute (surfaceScalarField &phi) const |
Make the given relative flux absolute within the MRF region. More... | |
void | makeAbsolute (const surfaceScalarField &rho, surfaceScalarField &phi) const |
Make the given relative mass-flux absolute within the MRF region. More... | |
void | correctBoundaryVelocity (volVectorField &U) const |
Correct the boundary velocity for the rotation of the MRF region. More... | |
template<class Type > | |
void | zero (GeometricField< Type, fvsPatchField, surfaceMesh > &phi) const |
Zero the MRF region of the given field. More... | |
void | update () |
Update MRFZone faces if the mesh topology changes. More... | |
void | writeData (Ostream &os) const |
Write. More... | |
bool | read (const dictionary &dict) |
Read MRF dictionary. More... | |
MRF zone definition based on cell zone and parameters obtained from a control dictionary constructed from the given stream.
The rotation of the MRF region is defined by an origin and axis of rotation and an angular speed.
MRFZone | ( | const word & | name, |
const fvMesh & | mesh, | ||
const dictionary & | dict, | ||
const word & | cellZoneName = word::null |
||
) |
Construct from fvMesh.
Definition at line 240 of file MRFZone.C.
References dict, and Foam::read().
ClassName | ( | "MRFZone" | ) |
|
inline |
Return const access to the MRF region name.
Definition at line 29 of file MRFZoneI.H.
|
inline |
Return const access to the MRF active flag.
Definition at line 35 of file MRFZoneI.H.
|
inline |
Return const access to the MRF origin.
Definition at line 41 of file MRFZoneI.H.
|
inline |
Return const access to the MRF axis.
Definition at line 47 of file MRFZoneI.H.
Foam::vector Omega | ( | ) | const |
|
inline |
void addCoriolis | ( | const volVectorField & | U, |
volVectorField & | ddtU | ||
) | const |
void addCoriolis | ( | fvVectorMatrix & | UEqn, |
const bool | rhs = false |
||
) | const |
Add the Coriolis force contribution to the momentum equation.
Adds to the lhs of the equation; optionally add to rhs
Definition at line 295 of file MRFZone.C.
References cells, forAll, fvMatrix< Type >::psi(), fvMatrix< Type >::source(), U, and UEqn.
void addCoriolis | ( | const volScalarField & | rho, |
fvVectorMatrix & | UEqn, | ||
const bool | rhs = false |
||
) | const |
Add the Coriolis force contribution to the momentum equation.
Adds to the lhs of the equation; optionally add to rhs
Definition at line 329 of file MRFZone.C.
References cells, forAll, fvMatrix< Type >::psi(), rho, fvMatrix< Type >::source(), U, and UEqn.
void makeRelative | ( | volVectorField & | U | ) | const |
void makeRelative | ( | surfaceScalarField & | phi | ) | const |
void makeRelative | ( | FieldField< fvsPatchField, scalar > & | phi | ) | const |
void makeRelative | ( | Field< scalar > & | phi, |
const label | patchi | ||
) | const |
void makeRelative | ( | const surfaceScalarField & | rho, |
surfaceScalarField & | phi | ||
) | const |
void makeAbsolute | ( | volVectorField & | U | ) | const |
void makeAbsolute | ( | surfaceScalarField & | phi | ) | const |
void makeAbsolute | ( | const surfaceScalarField & | rho, |
surfaceScalarField & | phi | ||
) | const |
void correctBoundaryVelocity | ( | volVectorField & | U | ) | const |
void zero | ( | GeometricField< Type, fvsPatchField, surfaceMesh > & | phi | ) | const |
Zero the MRF region of the given field.
Definition at line 214 of file MRFZoneTemplates.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), forAll, phi, GeometricField< Type, PatchField, GeoMesh >::primitiveFieldRef(), and Foam::Zero.
void update | ( | ) |
void writeData | ( | Ostream & | os | ) | const |
Write.
Definition at line 531 of file MRFZone.C.
References Ostream::beginBlock(), Ostream::endBlock(), Foam::nl, os(), and Ostream::writeEntry().
bool read | ( | const dictionary & | dict | ) |
Read MRF dictionary.
Definition at line 551 of file MRFZone.C.
References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, word::null, dictionary::readIfPresent(), and Foam::reduce().