Class which models interfacial momenum transfer between a number of phases. Drag, virtual mass, lift, wall lubrication and turbulent dispersion are all modelled. The explicit contribution from the drag is omitted from the transfer matrices, as this forms part of the solution of the pressure equation. More...
Public Member Functions | |
MomentumTransferPhaseSystem (const fvMesh &) | |
Construct from fvMesh. More... | |
virtual | ~MomentumTransferPhaseSystem () |
Destructor. More... | |
virtual autoPtr< phaseSystem::momentumTransferTable > | momentumTransfer () |
Return the momentum transfer matrices for the cell-based algorithm. More... | |
virtual autoPtr< phaseSystem::momentumTransferTable > | momentumTransferf () |
As momentumTransfer, but for the face-based algorithm. More... | |
virtual PtrList< surfaceScalarField > | AFfs () const |
Return implicit force coefficients on the faces, for the face-based. More... | |
virtual PtrList< surfaceScalarField > | phiFs (const PtrList< volScalarField > &rAUs) |
Return the explicit force fluxes for the cell-based algorithm, that. More... | |
virtual PtrList< surfaceScalarField > | phiFfs (const PtrList< surfaceScalarField > &rAUfs) |
As phiFs, but for the face-based algorithm. More... | |
virtual PtrList< surfaceScalarField > | phiKdPhis (const PtrList< volScalarField > &rAUs) const |
Return the explicit drag force fluxes for the cell-based algorithm. More... | |
virtual PtrList< surfaceScalarField > | phiKdPhifs (const PtrList< surfaceScalarField > &rAUfs) const |
As phiKdPhis, but for the face-based algorithm. More... | |
virtual PtrList< volVectorField > | KdUByAs (const PtrList< volScalarField > &rAUs) const |
Return the explicit part of the drag force for the cell-based. More... | |
virtual void | partialElimination (const PtrList< volScalarField > &rAUs) |
Solve the drag system for the velocities and fluxes. More... | |
virtual void | partialEliminationf (const PtrList< surfaceScalarField > &rAUfs) |
As partialElimination, but for the face-based algorithm. Only solves. More... | |
virtual PtrList< surfaceScalarField > | ddtCorrByAs (const PtrList< volScalarField > &rAUs, const bool includeVirtualMass=false) const |
Return the flux corrections for the cell-based algorithm. These. More... | |
virtual const HashPtrTable< surfaceScalarField > & | DByAfs () const |
Return the phase diffusivities divided by the momentum coefficients. More... | |
virtual bool | read () |
Read base phaseProperties dictionary. More... | |
Class which models interfacial momenum transfer between a number of phases. Drag, virtual mass, lift, wall lubrication and turbulent dispersion are all modelled. The explicit contribution from the drag is omitted from the transfer matrices, as this forms part of the solution of the pressure equation.
Definition at line 66 of file MomentumTransferPhaseSystem.H.
|
protected |
Definition at line 79 of file MomentumTransferPhaseSystem.H.
|
protected |
Definition at line 86 of file MomentumTransferPhaseSystem.H.
|
protected |
Definition at line 93 of file MomentumTransferPhaseSystem.H.
|
protected |
Definition at line 100 of file MomentumTransferPhaseSystem.H.
|
protected |
Definition at line 107 of file MomentumTransferPhaseSystem.H.
|
protected |
Definition at line 114 of file MomentumTransferPhaseSystem.H.
|
protected |
Definition at line 121 of file MomentumTransferPhaseSystem.H.
|
protected |
Definition at line 128 of file MomentumTransferPhaseSystem.H.
|
protected |
Definition at line 135 of file MomentumTransferPhaseSystem.H.
MomentumTransferPhaseSystem | ( | const fvMesh & | mesh | ) |
Construct from fvMesh.
Definition at line 168 of file MomentumTransferPhaseSystem.C.
References forAllConstIter, IOobject::groupName(), phasePair::name(), and HashPtrTable< T, Key, Hash >::set().
|
virtual |
Destructor.
Definition at line 271 of file MomentumTransferPhaseSystem.C.
|
virtual |
Return the momentum transfer matrices for the cell-based algorithm.
This includes implicit and explicit forces that add into the cell UEqn in the normal way.
Definition at line 280 of file MomentumTransferPhaseSystem.C.
References Foam::fvm::ddt(), Foam::dimMass, Foam::dimTime, Foam::dimVelocity, Foam::fvc::div(), Foam::fvm::div(), phaseModel::DUDt(), forAll, forAllConstIter, phase::name(), phaseModel::otherPhase(), phi, fvMatrix< Type >::psi(), HashPtrTable< T, Key, Hash >::set(), Foam::fvm::Sp(), U, and phaseModel::U().
|
virtual |
As momentumTransfer, but for the face-based algorithm.
Definition at line 382 of file MomentumTransferPhaseSystem.C.
References Foam::dimMass, Foam::dimTime, Foam::dimVelocity, Foam::fvc::div(), Foam::fvm::div(), forAll, forAllConstIter, phaseModel::index(), phase::name(), phaseModel::otherPhase(), phasei, HashPtrTable< T, Key, Hash >::set(), PtrList< T >::set(), Foam::fvm::Sp(), U, and phaseModel::U().
|
virtual |
Return implicit force coefficients on the faces, for the face-based.
algorithm.
Definition at line 458 of file MomentumTransferPhaseSystem.C.
References AFfs(), Foam::byDt(), Foam::dimDensity, Foam::dimTime, fillFields(), forAllConstIter, and Vmf().
|
virtual |
Return the explicit force fluxes for the cell-based algorithm, that.
do not depend on phase mass/volume fluxes, and can therefore be evaluated outside the corrector loop. This includes things like lift, turbulent dispersion, and wall lubrication.
Definition at line 497 of file MomentumTransferPhaseSystem.C.
References D, Foam::dimDensity, Foam::dimForce, Foam::dimVelocity, F(), fillFields(), Foam::fvc::flux(), forAll, forAllConstIter, Foam::fvc::interpolate(), phaseModel::name(), phasePair::phase1(), phasePair::phase2(), phasei, phiFs(), rAUs, Foam::fvc::snGrad(), and snGradAlpha1().
|
virtual |
As phiFs, but for the face-based algorithm.
Definition at line 638 of file MomentumTransferPhaseSystem.C.
References Foam::byDt(), D, Foam::dimDensity, Foam::dimForce, Foam::dimVelocity, Ff(), fillFields(), forAll, forAllConstIter, Foam::fvc::interpolate(), MRF, phaseModel::name(), oldTime(), phasePair::phase1(), phasePair::phase2(), phasei, phi, phiFfs(), rAUfs, Foam::fvc::snGrad(), snGradAlpha1(), and Vmf().
|
virtual |
Return the explicit drag force fluxes for the cell-based algorithm.
These depend on phase mass/volume fluxes, and must therefore be evaluated inside the corrector loop.
Definition at line 801 of file MomentumTransferPhaseSystem.C.
References Foam::dimDensity, Foam::dimForce, Foam::dimVelocity, fillFields(), forAllConstIter, Foam::fvc::interpolate(), MRF, and rAUs.
|
virtual |
As phiKdPhis, but for the face-based algorithm.
Definition at line 843 of file MomentumTransferPhaseSystem.C.
References Foam::dimDensity, Foam::dimForce, Foam::dimVelocity, fillFields(), forAllConstIter, MRF, and rAUfs.
|
virtual |
Return the explicit part of the drag force for the cell-based.
algorithm. This is the cell-equivalent of phiKdPhis. These depend on phase velocities, and must therefore be evaluated inside the corrector loop.
Definition at line 885 of file MomentumTransferPhaseSystem.C.
References Foam::dimVelocity, fillFields(), forAllConstIter, and rAUs.
|
virtual |
Solve the drag system for the velocities and fluxes.
Definition at line 1020 of file MomentumTransferPhaseSystem.C.
References Foam::dimless, Foam::endl(), fillFields(), forAll, forAllConstIter, Foam::gMin(), Foam::Info, Foam::fvc::interpolate(), k, phasePair::phase1(), phasePair::phase2(), phasei, phases, GeometricField< Type, PatchField, GeoMesh >::primitiveField(), rAUs, and PtrList< T >::set().
|
virtual |
As partialElimination, but for the face-based algorithm. Only solves.
for the fluxes.
Definition at line 1151 of file MomentumTransferPhaseSystem.C.
References Foam::dimless, Foam::endl(), fillFields(), forAll, forAllConstIter, Foam::gMin(), Foam::Info, k, phasePair::phase1(), phasePair::phase2(), phasei, phases, GeometricField< Type, PatchField, GeoMesh >::primitiveField(), rAUfs, and PtrList< T >::set().
|
virtual |
Return the flux corrections for the cell-based algorithm. These.
depend on phase mass/volume fluxes, and must therefore be evaluated inside the corrector loop.
Definition at line 921 of file MomentumTransferPhaseSystem.C.
References alpha, Foam::fvc::average(), Foam::byDt(), Foam::fvc::flux(), forAll, forAllConstIter, phaseModel::index(), Foam::fvc::interpolate(), MRF, GeometricField< Type, PatchField, GeoMesh >::oldTime(), phaseModel::otherPhase(), phasei, phaseModel::phi(), Foam::pos0(), rAUs, tmp< T >::ref(), phase::rho(), PtrList< T >::set(), and phaseModel::U().
|
virtual |
Return the phase diffusivities divided by the momentum coefficients.
Definition at line 1251 of file MomentumTransferPhaseSystem.C.
|
virtual |
Read base phaseProperties dictionary.
Definition at line 1258 of file MomentumTransferPhaseSystem.C.