Class which represents a moving fluid phase. Holds the velocity, fluxes and momentumTransport 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 momentumTransport model. More...
Public Member Functions | |
MovingPhaseModel (const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index) | |
virtual | ~MovingPhaseModel () |
Destructor. More... | |
virtual void | correct () |
Correct the phase properties other than the thermo. More... | |
virtual void | correctContinuityError (const volScalarField &source) |
Correct the continuity error. More... | |
virtual void | correctKinematics () |
Correct the kinematics. More... | |
virtual void | predictMomentumTransport () |
Predict the momentumTransport. More... | |
virtual void | predictThermophysicalTransport () |
Predict the energy transport e.g. alphat. More... | |
virtual void | correctMomentumTransport () |
Correct the momentumTransport. More... | |
virtual void | correctThermophysicalTransport () |
Correct the energy transport e.g. alphat. More... | |
virtual void | correctUf () |
Correct the face velocity for moving meshes. 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 const volVectorField & | URef () const |
Access the velocity. More... | |
virtual tmp< surfaceScalarField > | phi () const |
Return the volumetric flux. More... | |
virtual surfaceScalarField & | phiRef () |
Access the volumetric flux. More... | |
virtual const surfaceScalarField & | phiRef () const |
Access the volumetric flux. More... | |
virtual const autoPtr< surfaceVectorField > & | Uf () const |
Return the face velocity. More... | |
virtual surfaceVectorField & | UfRef () |
Access the face velocity. More... | |
virtual const surfaceVectorField & | UfRef () const |
Access the face velocity. 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 const surfaceScalarField & | alphaPhiRef () const |
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 const surfaceScalarField & | alphaRhoPhiRef () const |
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 > | K () const |
Return the phase kinetic energy. More... | |
virtual const autoPtr< 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 > | k () const |
Return the turbulent kinetic energy. More... | |
virtual tmp< volScalarField > | pPrime () const |
Return the phase-pressure'. More... | |
virtual tmp< scalarField > | kappaEff (const label patchi) const |
Return the effective thermal conductivity on a patch. More... | |
virtual tmp< fvScalarMatrix > | divq (volScalarField &he) const |
Return the source term for the energy equation. More... | |
virtual tmp< fvScalarMatrix > | divj (volScalarField &Yi) const |
Return the source term for the given specie mass-fraction. More... | |
Protected Types | |
typedef MovingPhaseModelTransportThermoModel< typename BasePhaseModel::thermoModel >::type | transportThermoModel |
Thermo type for the thermophysical transport model. More... | |
Protected Attributes | |
volVectorField | U_ |
Velocity field. More... | |
surfaceScalarField | phi_ |
Flux. More... | |
surfaceScalarField | alphaPhi_ |
Volumetric flux. More... | |
surfaceScalarField | alphaRhoPhi_ |
Mass flux. More... | |
autoPtr< surfaceVectorField > | Uf_ |
Face velocity field. 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... | |
autoPtr< volScalarField > | divU_ |
Dilatation rate. More... | |
autoPtr< phaseCompressible::momentumTransportModel > | momentumTransport_ |
Turbulence model. More... | |
autoPtr< PhaseThermophysicalTransportModel< phaseCompressible::momentumTransportModel, transportThermoModel > > | thermophysicalTransport_ |
Thermophysical transport model. More... | |
volScalarField | continuityError_ |
Continuity error. More... | |
tmp< volScalarField > | K_ |
Kinetic Energy. More... | |
Class which represents a moving fluid phase. Holds the velocity, fluxes and momentumTransport 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 momentumTransport model.
Possible future extensions include separating the turbulent functionality into another layer.
Definition at line 80 of file MovingPhaseModel.H.
|
protected |
Thermo type for the thermophysical transport model.
Definition at line 94 of file MovingPhaseModel.H.
MovingPhaseModel | ( | const phaseSystem & | fluid, |
const word & | phaseName, | ||
const bool | referencePhase, | ||
const label | index | ||
) |
Definition at line 116 of file MovingPhaseModel.C.
References IOobject::AUTO_WRITE, MovingPhaseModel< BasePhaseModel >::correctKinematics(), fvMesh::dynamic(), IOobject::groupName(), Foam::fvc::interpolate(), phaseSystem::mesh(), dimensioned< Type >::name(), Foam::name(), MovingPhaseModel< BasePhaseModel >::phi_, IOobject::READ_IF_PRESENT, fvMesh::time(), MovingPhaseModel< BasePhaseModel >::U_, MovingPhaseModel< BasePhaseModel >::Uf_, and IOobject::writeOpt().
|
virtual |
Destructor.
Definition at line 226 of file MovingPhaseModel.C.
|
virtual |
Correct the phase properties other than the thermo.
and momentumTransport
Definition at line 244 of file MovingPhaseModel.C.
References Foam::MULES::correct().
|
virtual |
Correct the continuity error.
Definition at line 233 of file MovingPhaseModel.C.
References Foam::fvc::ddt(), Foam::fvc::div(), and rho.
|
virtual |
Correct the kinematics.
Definition at line 251 of file MovingPhaseModel.C.
References Foam::magSqr(), and U.
Referenced by MovingPhaseModel< BasePhaseModel >::MovingPhaseModel().
|
virtual |
Predict the momentumTransport.
Definition at line 275 of file MovingPhaseModel.C.
|
virtual |
Predict the energy transport e.g. alphat.
Definition at line 283 of file MovingPhaseModel.C.
|
virtual |
Correct the momentumTransport.
Definition at line 291 of file MovingPhaseModel.C.
|
virtual |
Correct the energy transport e.g. alphat.
Definition at line 299 of file MovingPhaseModel.C.
|
virtual |
Correct the face velocity for moving meshes.
Definition at line 307 of file MovingPhaseModel.C.
References Foam::fvc::absolute(), Foam::fvc::interpolate(), fvMesh::magSf(), n, and fvMesh::Sf().
|
virtual |
Return whether the phase is stationary.
Definition at line 326 of file MovingPhaseModel.C.
|
virtual |
Return the momentum equation.
Definition at line 334 of file MovingPhaseModel.C.
References alpha(), Foam::fvc::DDt(), Foam::fvm::ddt(), Foam::fvm::div(), MRF(), rho, and Foam::fvm::SuSp().
|
virtual |
Return the momentum equation for the face-based algorithm.
Definition at line 352 of file MovingPhaseModel.C.
References alpha(), Foam::fvc::ddt(), Foam::fvc::DDt(), Foam::fvm::div(), MRF(), rho, and Foam::fvm::SuSp().
|
virtual |
Return the velocity.
Definition at line 371 of file MovingPhaseModel.C.
|
virtual |
Access the velocity.
Definition at line 379 of file MovingPhaseModel.C.
|
virtual |
Access the velocity.
Definition at line 387 of file MovingPhaseModel.C.
|
virtual |
Return the volumetric flux.
Definition at line 395 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux.
Definition at line 403 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux.
Definition at line 411 of file MovingPhaseModel.C.
|
virtual |
Return the face velocity.
Required for moving mesh cases
Definition at line 419 of file MovingPhaseModel.C.
|
virtual |
Access the face velocity.
Required for moving mesh cases
Definition at line 427 of file MovingPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, PatchField, GeoMesh >::null().
|
virtual |
Access the face velocity.
Required for moving mesh cases
Definition at line 446 of file MovingPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, PatchField, GeoMesh >::null().
|
virtual |
Return the volumetric flux of the phase.
Definition at line 465 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux of the phase.
Definition at line 473 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux of the phase.
Definition at line 481 of file MovingPhaseModel.C.
|
virtual |
Return the mass flux of the phase.
Definition at line 489 of file MovingPhaseModel.C.
|
virtual |
Access the mass flux of the phase.
Definition at line 497 of file MovingPhaseModel.C.
|
virtual |
Access the mass flux of the phase.
Definition at line 505 of file MovingPhaseModel.C.
|
virtual |
Return the substantive acceleration.
Definition at line 513 of file MovingPhaseModel.C.
References Foam::fvc::absolute(), Foam::fvc::ddt(), Foam::fvc::div(), IOobject::groupName(), and Foam::name().
|
virtual |
Return the substantive acceleration on the faces.
Definition at line 533 of file MovingPhaseModel.C.
References Foam::byDt(), IOobject::groupName(), and Foam::name().
|
virtual |
Return the continuity error.
Definition at line 551 of file MovingPhaseModel.C.
|
virtual |
Return the phase kinetic energy.
Definition at line 559 of file MovingPhaseModel.C.
References IOobject::groupName(), Foam::magSqr(), Foam::name(), and U.
|
virtual |
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 577 of file MovingPhaseModel.C.
|
virtual |
Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 584 of file MovingPhaseModel.C.
References IOobject::groupName(), Foam::name(), and tmp< T >::ptr().
|
virtual |
Return the turbulent kinetic energy.
Definition at line 601 of file MovingPhaseModel.C.
|
virtual |
Return the phase-pressure'.
(derivative of phase-pressure w.r.t. phase-fraction)
Definition at line 609 of file MovingPhaseModel.C.
|
virtual |
Return the effective thermal conductivity on a patch.
Definition at line 617 of file MovingPhaseModel.C.
References patchi.
|
virtual |
Return the source term for the energy equation.
Definition at line 625 of file MovingPhaseModel.C.
References he().
|
virtual |
Return the source term for the given specie mass-fraction.
equation
Definition at line 633 of file MovingPhaseModel.C.
|
protected |
Velocity field.
Definition at line 100 of file MovingPhaseModel.H.
Referenced by MovingPhaseModel< BasePhaseModel >::MovingPhaseModel().
|
protected |
Flux.
Definition at line 103 of file MovingPhaseModel.H.
Referenced by MovingPhaseModel< BasePhaseModel >::MovingPhaseModel().
|
protected |
Volumetric flux.
Definition at line 106 of file MovingPhaseModel.H.
|
protected |
Mass flux.
Definition at line 109 of file MovingPhaseModel.H.
|
protected |
Face velocity field.
Definition at line 112 of file MovingPhaseModel.H.
Referenced by MovingPhaseModel< BasePhaseModel >::MovingPhaseModel().
|
mutableprotected |
Lagrangian acceleration field (needed for virtual-mass)
Definition at line 115 of file MovingPhaseModel.H.
|
mutableprotected |
Lagrangian acceleration field on the faces (needed for virtual-mass)
Definition at line 118 of file MovingPhaseModel.H.
|
protected |
Dilatation rate.
Definition at line 121 of file MovingPhaseModel.H.
|
protected |
Turbulence model.
Definition at line 124 of file MovingPhaseModel.H.
|
protected |
Thermophysical transport model.
Definition at line 134 of file MovingPhaseModel.H.
|
protected |
Continuity error.
Definition at line 137 of file MovingPhaseModel.H.
|
mutableprotected |
Kinetic Energy.
Definition at line 140 of file MovingPhaseModel.H.