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 | correctMomentumTransport () |
| Correct the momentumTransport. 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< fvVectorMatrix > | UgradU () const |
| Return the velocity transport matrix. More... | |
| virtual tmp< fvVectorMatrix > | DUDt () const |
| Return the substantive acceleration matrix. 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< surfaceScalarField > | pPrimef () const |
| Return the face-phase-pressure'. 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... | |
| autoPtr< volScalarField > | divU_ |
| Dilatation rate. More... | |
| autoPtr< phaseCompressible::momentumTransportModel > | momentumTransport_ |
| Turbulence 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 60 of file MovingPhaseModel.H.
| MovingPhaseModel | ( | const phaseSystem & | fluid, |
| const word & | phaseName, | ||
| const bool | referencePhase, | ||
| const label | index | ||
| ) |
Definition at line 158 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 261 of file MovingPhaseModel.C.
|
virtual |
Correct the phase properties other than the thermo.
and momentumTransport
Definition at line 279 of file MovingPhaseModel.C.
References Foam::MULES::correct().

|
virtual |
Correct the continuity error.
Definition at line 268 of file MovingPhaseModel.C.
References Foam::fvc::ddt(), Foam::fvc::div(), and rho.

|
virtual |
Correct the kinematics.
Definition at line 286 of file MovingPhaseModel.C.
References Foam::magSqr(), and U.
Referenced by MovingPhaseModel< BasePhaseModel >::MovingPhaseModel().


|
virtual |
Predict the momentumTransport.
Definition at line 298 of file MovingPhaseModel.C.
|
virtual |
Correct the momentumTransport.
Definition at line 306 of file MovingPhaseModel.C.
|
virtual |
Correct the face velocity for moving meshes.
Definition at line 314 of file MovingPhaseModel.C.
References Foam::fvc::absolute(), Foam::fvc::interpolate(), fvMesh::magSf(), mesh, n, and fvMesh::Sf().

|
virtual |
Return whether the phase is stationary.
Definition at line 333 of file MovingPhaseModel.C.
|
virtual |
Return the momentum equation.
Definition at line 341 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 359 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 378 of file MovingPhaseModel.C.
|
virtual |
Access the velocity.
Definition at line 386 of file MovingPhaseModel.C.
|
virtual |
Access the velocity.
Definition at line 394 of file MovingPhaseModel.C.
|
virtual |
Return the volumetric flux.
Definition at line 402 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux.
Definition at line 410 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux.
Definition at line 418 of file MovingPhaseModel.C.
|
virtual |
Return the face velocity.
Required for moving mesh cases
Definition at line 426 of file MovingPhaseModel.C.
|
virtual |
Access the face velocity.
Required for moving mesh cases
Definition at line 434 of file MovingPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, GeoMesh, PrimitiveField >::null().

|
virtual |
Access the face velocity.
Required for moving mesh cases
Definition at line 453 of file MovingPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, GeoMesh, PrimitiveField >::null().

|
virtual |
Return the volumetric flux of the phase.
Definition at line 472 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux of the phase.
Definition at line 480 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux of the phase.
Definition at line 488 of file MovingPhaseModel.C.
|
virtual |
Return the mass flux of the phase.
Definition at line 496 of file MovingPhaseModel.C.
|
virtual |
Access the mass flux of the phase.
Definition at line 504 of file MovingPhaseModel.C.
|
virtual |
Access the mass flux of the phase.
Definition at line 512 of file MovingPhaseModel.C.
|
virtual |
Return the velocity transport matrix.
Definition at line 520 of file MovingPhaseModel.C.
References Foam::fvc::absolute(), Foam::fvc::div(), Foam::fvm::div(), and Foam::fvm::Sp().

|
virtual |
Return the substantive acceleration matrix.
Definition at line 533 of file MovingPhaseModel.C.
References Foam::fvm::ddt().

|
virtual |
Return the continuity error.
Definition at line 541 of file MovingPhaseModel.C.
|
virtual |
Return the phase kinetic energy.
Definition at line 549 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 567 of file MovingPhaseModel.C.
|
virtual |
Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 574 of file MovingPhaseModel.C.
References IOobject::groupName(), Foam::name(), and tmp< T >::ptr().

|
virtual |
Return the turbulent kinetic energy.
Definition at line 591 of file MovingPhaseModel.C.
|
virtual |
Return the face-phase-pressure'.
(derivative of phase-pressure w.r.t. phase-fraction)
Definition at line 599 of file MovingPhaseModel.C.
|
protected |
Velocity field.
Definition at line 69 of file MovingPhaseModel.H.
Referenced by MovingPhaseModel< BasePhaseModel >::MovingPhaseModel().
|
protected |
Flux.
Definition at line 72 of file MovingPhaseModel.H.
Referenced by MovingPhaseModel< BasePhaseModel >::MovingPhaseModel().
|
protected |
Volumetric flux.
Definition at line 75 of file MovingPhaseModel.H.
|
protected |
Mass flux.
Definition at line 78 of file MovingPhaseModel.H.
|
protected |
Face velocity field.
Definition at line 81 of file MovingPhaseModel.H.
Referenced by MovingPhaseModel< BasePhaseModel >::MovingPhaseModel().
|
protected |
Dilatation rate.
Definition at line 84 of file MovingPhaseModel.H.
|
protected |
Turbulence model.
Definition at line 87 of file MovingPhaseModel.H.
|
protected |
Continuity error.
Definition at line 90 of file MovingPhaseModel.H.
|
mutableprotected |
Kinetic Energy.
Definition at line 93 of file MovingPhaseModel.H.