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 51 of file MovingPhaseModel.H.
MovingPhaseModel | ( | const multiphaseInterSystem & | fluid, |
const word & | phaseName | ||
) |
Definition at line 41 of file MovingPhaseModel.C.
|
virtualdefault |
Destructor.
MovingPhaseModel | ( | const phaseSystem & | fluid, |
const word & | phaseName, | ||
const label | index | ||
) |
Construct from phase system and phase name.
Definition at line 121 of file MovingPhaseModel.C.
|
virtualdefault |
Destructor.
|
virtual |
Correct the phase properties other than the thermo and turbulence.
Definition at line 70 of file MovingPhaseModel.C.
References correct.
|
virtual |
Constant access the volumetric flux.
Definition at line 78 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux.
Definition at line 86 of file MovingPhaseModel.C.
|
virtual |
Constant access the volumetric flux of the phase.
Definition at line 94 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux of the phase.
Definition at line 102 of file MovingPhaseModel.C.
|
virtual |
Access const reference to U.
Definition at line 110 of file MovingPhaseModel.C.
|
virtual |
Diffusion number.
Definition at line 118 of file MovingPhaseModel.C.
References Foam::dimless, Foam::name(), Foam::New(), and Foam::Zero.
|
virtual |
Correct the phase properties other than the thermo and turbulence.
|
virtual |
Correct the kinematics.
Definition at line 226 of file MovingPhaseModel.C.
References Foam::magSqr(), and U.
|
virtual |
Correct the turbulence.
Definition at line 250 of file MovingPhaseModel.C.
References correctTurbulence().
|
virtual |
Correct the energy transport e.g. alphat.
Definition at line 259 of file MovingPhaseModel.C.
|
virtual |
Return whether the phase is stationary.
Definition at line 268 of file MovingPhaseModel.C.
|
virtual |
Return the momentum equation.
Definition at line 276 of file MovingPhaseModel.C.
References Foam::constant::atomic::alpha, Foam::fac::ddt(), Foam::fvc::DDt(), Foam::fac::div(), fluid, MRF, rho, Foam::fam::SuSp(), and thermo.
|
virtual |
Return the momentum equation for the face-based algorithm.
Definition at line 294 of file MovingPhaseModel.C.
References Foam::constant::atomic::alpha, Foam::fvc::DDt(), Foam::fac::div(), fluid, MRF, rho, Sp, Foam::fam::SuSp(), and thermo.
|
virtual |
Return the velocity.
|
virtual |
Access the velocity.
Definition at line 322 of file MovingPhaseModel.C.
|
virtual |
Return the volumetric flux.
|
virtual |
Access the volumetric flux.
Definition at line 338 of file MovingPhaseModel.C.
|
virtual |
Return the volumetric flux of the phase.
|
virtual |
Access the volumetric flux of the phase.
Definition at line 354 of file MovingPhaseModel.C.
|
virtual |
Return the mass flux of the phase.
Definition at line 362 of file MovingPhaseModel.C.
|
virtual |
Access the mass flux of the phase.
Definition at line 370 of file MovingPhaseModel.C.
|
virtual |
Return the substantive acceleration.
Definition at line 378 of file MovingPhaseModel.C.
References Foam::fac::ddt(), and Foam::fac::div().
|
virtual |
Return the substantive acceleration on the faces.
Definition at line 391 of file MovingPhaseModel.C.
References Foam::byDt().
|
virtual |
Return the continuity error.
Definition at line 404 of file MovingPhaseModel.C.
|
virtual |
Return the continuity error due to the flow field.
Definition at line 412 of file MovingPhaseModel.C.
|
virtual |
Return the continuity error due to any sources.
Definition at line 420 of file MovingPhaseModel.C.
|
virtual |
Return the phase kinetic energy.
Definition at line 428 of file MovingPhaseModel.C.
References Foam::magSqr(), Foam::name(), Foam::New(), and U.
|
virtual |
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 445 of file MovingPhaseModel.C.
|
virtual |
Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 452 of file MovingPhaseModel.C.
References divU.
|
virtual |
Return the turbulent dynamic viscosity.
Definition at line 460 of file MovingPhaseModel.C.
|
virtual |
Return the effective dynamic viscosity.
Definition at line 468 of file MovingPhaseModel.C.
|
virtual |
Return the turbulent kinematic viscosity.
Definition at line 476 of file MovingPhaseModel.C.
|
virtual |
Return the effective kinematic viscosity.
Definition at line 484 of file MovingPhaseModel.C.
|
virtual |
Return the effective thermal conductivity.
Definition at line 492 of file MovingPhaseModel.C.
|
virtual |
Return the effective thermal conductivity on a patch.
Definition at line 500 of file MovingPhaseModel.C.
|
virtual |
Return the effective thermal diffusivity.
Definition at line 508 of file MovingPhaseModel.C.
|
virtual |
Return the effective thermal conductivity on a patch.
Definition at line 516 of file MovingPhaseModel.C.
|
virtual |
Return the turbulent kinetic energy.
Definition at line 524 of file MovingPhaseModel.C.
|
virtual |
Return the phase-pressure'.
(derivative of phase-pressure w.r.t. phase-fraction)
Definition at line 532 of file MovingPhaseModel.C.
|
protected |
Velocity field.
Definition at line 69 of file MovingPhaseModel.H.
|
protected |
Flux.
Definition at line 74 of file MovingPhaseModel.H.
|
protected |
Mass flux.
Definition at line 84 of file MovingPhaseModel.H.
|
mutableprotected |
Lagrangian acceleration field (needed for virtual-mass)
Definition at line 89 of file MovingPhaseModel.H.
|
mutableprotected |
Lagrangian acceleration field on the faces (needed for virtual-mass)
Definition at line 94 of file MovingPhaseModel.H.
|
protected |
Dilatation rate.
Definition at line 99 of file MovingPhaseModel.H.
|
protected |
Turbulence model.
Definition at line 104 of file MovingPhaseModel.H.
|
protected |
Continuity error due to the flow.
Definition at line 109 of file MovingPhaseModel.H.
|
protected |
Continuity error due to any sources.
Definition at line 114 of file MovingPhaseModel.H.
|
mutableprotected |
Kinetic Energy.
Definition at line 119 of file MovingPhaseModel.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.