Reynolds-stress turbulence model base class. More...


Public Types | |
| typedef BasicMomentumTransportModel::alphaField | alphaField |
| typedef BasicMomentumTransportModel::rhoField | rhoField |
Public Member Functions | |
| ReynoldsStress (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity) | |
| Construct from components. More... | |
| virtual | ~ReynoldsStress () |
| Destructor. More... | |
| virtual bool | read ()=0 |
| Re-read model coefficients if they have changed. More... | |
| virtual tmp< volScalarField > | nut () const |
| Return the turbulence viscosity. More... | |
| virtual tmp< scalarField > | nut (const label patchi) const |
| Return the turbulence viscosity on patch. More... | |
| virtual tmp< volScalarField > | k () const |
| Return the turbulence kinetic energy. More... | |
| virtual tmp< volSymmTensorField > | R () const |
| Return the Reynolds stress tensor [m^2/s^2]. More... | |
| virtual tmp< surfaceVectorField > | devTau () const |
| Return the effective surface stress. More... | |
| virtual tmp< fvVectorMatrix > | divDevTau (volVectorField &U) const |
| Return the source term for the momentum equation. More... | |
| virtual tmp< fvVectorMatrix > | divDevTau (const volScalarField &rho, volVectorField &U) const |
| Return the source term for the momentum equation. More... | |
| virtual void | validate () |
| Validate the turbulence fields after construction. More... | |
| virtual void | correct ()=0 |
| Solve the turbulence equations and correct the turbulence viscosity. More... | |
| template<class RhoFieldType > | |
| Foam::tmp< Foam::fvVectorMatrix > | DivDevTau (const RhoFieldType &rho, volVectorField &U) const |
Protected Member Functions | |
| void | boundNormalStress (volSymmTensorField &R) const |
| void | correctWallShearStress (volSymmTensorField &R) const |
| virtual void | correctNut ()=0 |
| Update the eddy-viscosity. More... | |
| virtual tmp< fvSymmTensorMatrix > | RSource () const |
| Source term for the R equation. More... | |
| tmp< surfaceVectorField > | Refff (const volVectorField &U) const |
| Return the effective Reynolds stress flux. More... | |
Protected Attributes | |
| dimensionedScalar | couplingFactor_ |
| volSymmTensorField | R_ |
| volScalarField | nut_ |
Reynolds-stress turbulence model base class.
Definition at line 47 of file ReynoldsStress.H.
| typedef BasicMomentumTransportModel::alphaField alphaField |
Definition at line 93 of file ReynoldsStress.H.
| typedef BasicMomentumTransportModel::rhoField rhoField |
Definition at line 94 of file ReynoldsStress.H.
| ReynoldsStress | ( | const word & | modelName, |
| const alphaField & | alpha, | ||
| const rhoField & | rho, | ||
| const volVectorField & | U, | ||
| const surfaceScalarField & | alphaRhoPhi, | ||
| const surfaceScalarField & | phi, | ||
| const viscosity & | viscosity | ||
| ) |
Construct from components.
Definition at line 121 of file ReynoldsStress.C.
|
inlinevirtual |
Destructor.
Definition at line 113 of file ReynoldsStress.H.
|
protected |
Definition at line 33 of file ReynoldsStress.C.
References R().

|
protected |
|
protectedpure virtual |
Update the eddy-viscosity.
Implemented in SSG< BasicMomentumTransportModel >, LRR< BasicMomentumTransportModel >, and DeardorffDiffStress< BasicMomentumTransportModel >.
|
protectedvirtual |
Source term for the R equation.
Definition at line 105 of file ReynoldsStress.C.
References Foam::dimTime, and Foam::dimVolume.
|
protected |
Return the effective Reynolds stress flux.
Definition at line 210 of file ReynoldsStress.C.
References Foam::dev2(), Foam::fvc::grad(), Foam::fvc::interpolate(), mesh, nut, Foam::fvc::snGrad(), GeometricField< Type, GeoMesh, PrimitiveField >::T(), and U.

|
pure virtual |
Re-read model coefficients if they have changed.
Implemented in SSG< BasicMomentumTransportModel >, LRR< BasicMomentumTransportModel >, and DeardorffDiffStress< BasicMomentumTransportModel >.
Definition at line 184 of file ReynoldsStress.C.
References Foam::blockMeshTools::read().

|
inlinevirtual |
Return the turbulence viscosity.
Definition at line 123 of file ReynoldsStress.H.
References ReynoldsStress< BasicMomentumTransportModel >::nut_.
|
inlinevirtual |
Return the turbulence viscosity on patch.
Definition at line 129 of file ReynoldsStress.H.
References GeometricField< Type, GeoMesh, PrimitiveField >::boundaryField(), ReynoldsStress< BasicMomentumTransportModel >::nut_, and patchi.

|
virtual |
Return the turbulence kinetic energy.
Reimplemented in SSG< BasicMomentumTransportModel >, and LRR< BasicMomentumTransportModel >.
Definition at line 200 of file ReynoldsStress.C.
References tmp< T >::ref(), and Foam::tr().

|
virtual |
Return the Reynolds stress tensor [m^2/s^2].
Definition at line 192 of file ReynoldsStress.C.
|
virtual |
Return the effective surface stress.
Definition at line 242 of file ReynoldsStress.C.
References Foam::fvc::interpolate(), mesh, and Foam::compressible::New().

|
virtual |
Return the source term for the momentum equation.
Definition at line 272 of file ReynoldsStress.C.
References U.
|
virtual |
Return the source term for the momentum equation.
Definition at line 283 of file ReynoldsStress.C.
|
virtual |
Validate the turbulence fields after construction.
Update turbulence viscosity and other derived fields as requires
Definition at line 294 of file ReynoldsStress.C.
|
pure virtual |
Solve the turbulence equations and correct the turbulence viscosity.
Implemented in SSG< BasicMomentumTransportModel >, LRR< BasicMomentumTransportModel >, and DeardorffDiffStress< BasicMomentumTransportModel >.
Definition at line 301 of file ReynoldsStress.C.
References Foam::MULES::correct().

| Foam::tmp<Foam::fvVectorMatrix> DivDevTau | ( | const RhoFieldType & | rho, |
| volVectorField & | U | ||
| ) | const |
Definition at line 256 of file ReynoldsStress.C.
References Foam::correction(), Foam::fvc::div(), Foam::fvc::interpolate(), Foam::fvc::laplacian(), nuEff, rho, and U.

|
protected |
Definition at line 68 of file ReynoldsStress.H.
|
protected |
Definition at line 72 of file ReynoldsStress.H.
|
protected |
Definition at line 73 of file ReynoldsStress.H.
Referenced by ReynoldsStress< BasicMomentumTransportModel >::nut().