Class which represents a moving fluid phase. Holds the velocity, fluxes and turbulence model. Provides access to the turbulent quantities. More...
Public Member Functions | |
MovingPhaseModel (const multiphaseInterSystem &fluid, const word &phaseName) | |
virtual | ~MovingPhaseModel ()=default |
Destructor. More... | |
virtual void | correct () |
Correct the phase properties other than the thermo and turbulence. More... | |
virtual tmp< surfaceScalarField > | phi () const |
Constant access the volumetric flux. More... | |
virtual const surfaceScalarField & | phi () |
Access the volumetric flux. More... | |
virtual tmp< surfaceScalarField > | alphaPhi () const |
Constant access the volumetric flux of the phase. More... | |
virtual surfaceScalarField & | alphaPhi () |
Access the volumetric flux of the phase. More... | |
virtual tmp< volVectorField > | U () const |
Access const reference to U. More... | |
virtual tmp< surfaceScalarField > | diffNo () const |
Diffusion number. More... | |
MovingPhaseModel (const phaseSystem &fluid, const word &phaseName, const label index) | |
Construct from phase system and phase name. More... | |
virtual | ~MovingPhaseModel ()=default |
Destructor. More... | |
virtual void | correct () |
Correct the phase properties other than the thermo and turbulence. More... | |
virtual void | correctKinematics () |
Correct the kinematics. More... | |
virtual void | correctTurbulence () |
Correct the turbulence. More... | |
virtual void | correctEnergyTransport () |
Correct the energy transport e.g. alphat. More... | |
virtual bool | stationary () const |
Return whether the phase is stationary. More... | |
virtual tmp< fvVectorMatrix > | UEqn () |
Return the momentum equation. More... | |
virtual tmp< fvVectorMatrix > | UfEqn () |
Return the momentum equation for the face-based algorithm. More... | |
virtual tmp< volVectorField > | U () const |
Return the velocity. More... | |
virtual volVectorField & | URef () |
Access the velocity. More... | |
virtual tmp< surfaceScalarField > | phi () const |
Return the volumetric flux. More... | |
virtual surfaceScalarField & | phiRef () |
Access the volumetric flux. More... | |
virtual tmp< surfaceScalarField > | alphaPhi () const |
Return the volumetric flux of the phase. More... | |
virtual surfaceScalarField & | alphaPhiRef () |
Access the volumetric flux of the phase. More... | |
virtual tmp< surfaceScalarField > | alphaRhoPhi () const |
Return the mass flux of the phase. More... | |
virtual surfaceScalarField & | alphaRhoPhiRef () |
Access the mass flux of the phase. More... | |
virtual tmp< volVectorField > | DUDt () const |
Return the substantive acceleration. More... | |
virtual tmp< surfaceScalarField > | DUDtf () const |
Return the substantive acceleration on the faces. More... | |
virtual tmp< volScalarField > | continuityError () const |
Return the continuity error. More... | |
virtual tmp< volScalarField > | continuityErrorFlow () const |
Return the continuity error due to the flow field. More... | |
virtual tmp< volScalarField > | continuityErrorSources () const |
Return the continuity error due to any sources. More... | |
virtual tmp< volScalarField > | K () const |
Return the phase kinetic energy. More... | |
virtual tmp< volScalarField > | divU () const |
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi)) More... | |
virtual void | divU (tmp< volScalarField > divU) |
Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi)) More... | |
virtual tmp< volScalarField > | mut () const |
Return the turbulent dynamic viscosity. More... | |
virtual tmp< volScalarField > | muEff () const |
Return the effective dynamic viscosity. More... | |
virtual tmp< volScalarField > | nut () const |
Return the turbulent kinematic viscosity. More... | |
virtual tmp< volScalarField > | nuEff () const |
Return the effective kinematic viscosity. More... | |
virtual tmp< volScalarField > | kappaEff () const |
Return the effective thermal conductivity. More... | |
virtual tmp< scalarField > | kappaEff (const label patchi) const |
Return the effective thermal conductivity on a patch. More... | |
virtual tmp< volScalarField > | alphaEff () const |
Return the effective thermal diffusivity. More... | |
virtual tmp< scalarField > | alphaEff (const label patchi) const |
Return the effective thermal conductivity on a patch. More... | |
virtual tmp< volScalarField > | k () const |
Return the turbulent kinetic energy. More... | |
virtual tmp< volScalarField > | pPrime () const |
Return the phase-pressure'. More... | |
Protected Attributes | |
volVectorField | U_ |
Velocity field. More... | |
surfaceScalarField | phi_ |
Flux. More... | |
surfaceScalarField | alphaRhoPhi_ |
Mass flux. More... | |
tmp< volVectorField > | DUDt_ |
Lagrangian acceleration field (needed for virtual-mass) More... | |
tmp< surfaceScalarField > | DUDtf_ |
Lagrangian acceleration field on the faces (needed for virtual-mass) More... | |
tmp< volScalarField > | divU_ |
Dilatation rate. More... | |
autoPtr< phaseCompressibleTurbulenceModel > | turbulence_ |
Turbulence model. More... | |
volScalarField | continuityErrorFlow_ |
Continuity error due to the flow. More... | |
volScalarField | continuityErrorSources_ |
Continuity error due to any sources. More... | |
tmp< volScalarField > | K_ |
Kinetic Energy. More... | |
Class which represents a moving fluid phase. Holds the velocity, fluxes and turbulence model. Provides access to the turbulent quantities.
Class which represents a moving fluid phase. Holds the velocity, fluxes and turbulence model and can generate the momentum equation. The interface is quite restrictive as it also has to support an equivalent stationary model, which does not store motion fields or a turbulence model.
Possible future extensions include separating the turbulent fuctionality into another layer.
Possible future extensions include separating the turbulent fuctionality into another layer.
Definition at line 55 of file MovingPhaseModel.H.
MovingPhaseModel | ( | const multiphaseInterSystem & | fluid, |
const word & | phaseName | ||
) |
Definition at line 47 of file MovingPhaseModel.C.
References Foam::name().
|
virtualdefault |
Destructor.
MovingPhaseModel | ( | const phaseSystem & | fluid, |
const word & | phaseName, | ||
const label | index | ||
) |
Construct from phase system and phase name.
Definition at line 127 of file MovingPhaseModel.C.
References IOobject::AUTO_WRITE, MovingPhaseModel< BasePhaseModel >::correctKinematics(), Foam::dimDensity, Foam::dimTime, Foam::name(), Foam::New(), and IOobject::writeOpt().
|
virtualdefault |
Destructor.
|
virtual |
Correct the phase properties other than the thermo and turbulence.
Definition at line 77 of file MovingPhaseModel.C.
|
virtual |
Constant access the volumetric flux.
Definition at line 85 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux.
Definition at line 93 of file MovingPhaseModel.C.
|
virtual |
Constant access the volumetric flux of the phase.
Definition at line 101 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux of the phase.
Definition at line 109 of file MovingPhaseModel.C.
|
virtual |
Access const reference to U.
Definition at line 117 of file MovingPhaseModel.C.
|
virtual |
Diffusion number.
Definition at line 124 of file MovingPhaseModel.C.
References Foam::dimless, IOobject::groupName(), phaseModel::name(), Time::New(), and Foam::Zero.
|
virtual |
Correct the phase properties other than the thermo and turbulence.
|
virtual |
Correct the kinematics.
Definition at line 233 of file MovingPhaseModel.C.
References Foam::magSqr(), and U.
Referenced by MovingPhaseModel< BasePhaseModel >::MovingPhaseModel().
|
virtual |
Correct the turbulence.
Definition at line 257 of file MovingPhaseModel.C.
|
virtual |
Correct the energy transport e.g. alphat.
Definition at line 266 of file MovingPhaseModel.C.
|
virtual |
Return whether the phase is stationary.
Definition at line 275 of file MovingPhaseModel.C.
|
virtual |
Return the momentum equation.
Definition at line 283 of file MovingPhaseModel.C.
References alpha, Foam::fvm::ddt(), Foam::fvm::div(), fluid, MRF, rho, and Foam::fvm::SuSp().
|
virtual |
Return the momentum equation for the face-based algorithm.
Definition at line 301 of file MovingPhaseModel.C.
References alpha, Foam::fvc::div(), Foam::fvm::div(), fluid, MRF, rho, Foam::fvm::Sp(), and Foam::fvm::SuSp().
|
virtual |
Return the velocity.
|
virtual |
Access the velocity.
Definition at line 329 of file MovingPhaseModel.C.
|
virtual |
Return the volumetric flux.
|
virtual |
Access the volumetric flux.
Definition at line 345 of file MovingPhaseModel.C.
|
virtual |
Return the volumetric flux of the phase.
|
virtual |
Access the volumetric flux of the phase.
Definition at line 361 of file MovingPhaseModel.C.
|
virtual |
Return the mass flux of the phase.
Definition at line 369 of file MovingPhaseModel.C.
|
virtual |
Access the mass flux of the phase.
Definition at line 377 of file MovingPhaseModel.C.
|
virtual |
Return the substantive acceleration.
Definition at line 385 of file MovingPhaseModel.C.
References Foam::fvc::ddt(), and Foam::fvc::div().
|
virtual |
Return the substantive acceleration on the faces.
Definition at line 398 of file MovingPhaseModel.C.
References Foam::byDt().
|
virtual |
Return the continuity error.
Definition at line 411 of file MovingPhaseModel.C.
|
virtual |
Return the continuity error due to the flow field.
Definition at line 419 of file MovingPhaseModel.C.
|
virtual |
Return the continuity error due to any sources.
Definition at line 427 of file MovingPhaseModel.C.
|
virtual |
Return the phase kinetic energy.
Definition at line 435 of file MovingPhaseModel.C.
References IOobject::groupName(), Foam::magSqr(), Foam::name(), Time::New(), and U.
|
virtual |
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 452 of file MovingPhaseModel.C.
|
virtual |
Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 459 of file MovingPhaseModel.C.
References divU.
|
virtual |
Return the turbulent dynamic viscosity.
Definition at line 467 of file MovingPhaseModel.C.
|
virtual |
Return the effective dynamic viscosity.
Definition at line 475 of file MovingPhaseModel.C.
|
virtual |
Return the turbulent kinematic viscosity.
Definition at line 483 of file MovingPhaseModel.C.
|
virtual |
Return the effective kinematic viscosity.
Definition at line 491 of file MovingPhaseModel.C.
|
virtual |
Return the effective thermal conductivity.
Definition at line 499 of file MovingPhaseModel.C.
|
virtual |
Return the effective thermal conductivity on a patch.
Definition at line 507 of file MovingPhaseModel.C.
|
virtual |
Return the effective thermal diffusivity.
Definition at line 515 of file MovingPhaseModel.C.
|
virtual |
Return the effective thermal conductivity on a patch.
Definition at line 523 of file MovingPhaseModel.C.
|
virtual |
Return the turbulent kinetic energy.
Definition at line 531 of file MovingPhaseModel.C.
|
virtual |
Return the phase-pressure'.
(derivative of phase-pressure w.r.t. phase-fraction)
Definition at line 539 of file MovingPhaseModel.C.
|
protected |
Velocity field.
Definition at line 71 of file MovingPhaseModel.H.
|
protected |
Flux.
Definition at line 74 of file MovingPhaseModel.H.
|
protected |
Mass flux.
Definition at line 80 of file MovingPhaseModel.H.
|
mutableprotected |
Lagrangian acceleration field (needed for virtual-mass)
Definition at line 83 of file MovingPhaseModel.H.
|
mutableprotected |
Lagrangian acceleration field on the faces (needed for virtual-mass)
Definition at line 86 of file MovingPhaseModel.H.
|
protected |
Dilatation rate.
Definition at line 89 of file MovingPhaseModel.H.
|
protected |
Turbulence model.
Definition at line 92 of file MovingPhaseModel.H.
|
protected |
Continuity error due to the flow.
Definition at line 95 of file MovingPhaseModel.H.
|
protected |
Continuity error due to any sources.
Definition at line 98 of file MovingPhaseModel.H.
|
mutableprotected |
Kinetic Energy.
Definition at line 101 of file MovingPhaseModel.H.