diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/UEqns.H b/applications/solvers/multiphase/twoPhaseEulerFoam/UEqns.H index 7cddcb8004..5b0463d102 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/UEqns.H +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/UEqns.H @@ -23,12 +23,11 @@ volScalarField dragCoeff(fluid.dragCoeff()); + phase1.turbulence().divDevReff(U1) == - fvm::Sp(dragCoeff/rho1, U1) - - alpha1*alpha2/rho1 - *( + - ( liftForce + wallLubricationForce + turbulentDispersionForce - ) + )/rho1 - virtualMassCoeff/rho1 *( fvm::ddt(U1) @@ -50,12 +49,11 @@ volScalarField dragCoeff(fluid.dragCoeff()); + phase2.turbulence().divDevReff(U2) == - fvm::Sp(dragCoeff/rho2, U2) - + alpha1*alpha2/rho2 - *( + + ( liftForce + wallLubricationForce + turbulentDispersionForce - ) + )/rho2 - virtualMassCoeff/rho2 *( fvm::ddt(U2) diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/dragModels/dragModel/dragModel.C b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/dragModels/dragModel/dragModel.C index ce2a53a0bf..e9cb5c3341 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/dragModels/dragModel/dragModel.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/dragModels/dragModel/dragModel.C @@ -107,13 +107,11 @@ Foam::tmp Foam::dragModel::K() const return 0.75 *CdRe() + *max(pair_.dispersed(), residualAlpha_) *swarmCorrection_->Cs() *pair_.continuous().rho() *pair_.continuous().nu() - /( - max(pair_.continuous(), residualAlpha_) - *sqr(pair_.dispersed().d()) - ); + /sqr(pair_.dispersed().d()); } diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/heatTransferModels/RanzMarshall/RanzMarshall.C b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/heatTransferModels/RanzMarshall/RanzMarshall.C index 1dd2127338..84f32a8567 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/heatTransferModels/RanzMarshall/RanzMarshall.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/heatTransferModels/RanzMarshall/RanzMarshall.C @@ -64,7 +64,12 @@ Foam::heatTransferModels::RanzMarshall::K() const { volScalarField Nu(scalar(2) + 0.6*pair_.Re()*cbrt(pair_.Pr())); - return 6.0*pair_.continuous().kappa()*Nu/sqr(pair_.dispersed().d()); + return + 6.0 + *max(pair_.dispersed(), residualAlpha_) + *pair_.continuous().kappa() + *Nu + /sqr(pair_.dispersed().d()); } diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.C b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.C index b04b6a0c10..2a47cbbb79 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.C @@ -45,7 +45,8 @@ Foam::heatTransferModel::heatTransferModel const phasePair& pair ) : - pair_(pair) + pair_(pair), + residualAlpha_("residualAlpha", dimless, dict.lookup("residualAlpha")) {} diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.H b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.H index 3d4c9dec68..e0d1cba725 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.H +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.H @@ -58,6 +58,9 @@ protected: //- Phase pair const phasePair& pair_; + //- Residual phase fraction + const dimensionedScalar residualAlpha_; + public: diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/liftModels/liftModel/liftModel.C b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/liftModels/liftModel/liftModel.C index 6cd5e02471..b91050bd47 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/liftModels/liftModel/liftModel.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/liftModels/liftModel/liftModel.C @@ -62,6 +62,7 @@ Foam::tmp Foam::liftModel::F() const { return Cl() + *pair_.dispersed() *pair_.continuous().rho() *( pair_.Ur() ^ fvc::curl(pair_.continuous().U()) diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/turbulentDispersionModels/Gosman/Gosman.C b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/turbulentDispersionModels/Gosman/Gosman.C index eccbf4e3f0..01fb4d2f65 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/turbulentDispersionModels/Gosman/Gosman.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/turbulentDispersionModels/Gosman/Gosman.C @@ -85,6 +85,7 @@ Foam::turbulentDispersionModels::Gosman::F() const return - 0.75 *drag.CdRe() + *pair_.dispersed() *pair_.continuous().nu() *pair_.continuous().turbulence().nut() /( diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/turbulentDispersionModels/constantTurbulentDispersionCoefficient/constantTurbulentDispersionCoefficient.C b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/turbulentDispersionModels/constantTurbulentDispersionCoefficient/constantTurbulentDispersionCoefficient.C index 47dd0bd9bb..0d28518b3a 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/turbulentDispersionModels/constantTurbulentDispersionCoefficient/constantTurbulentDispersionCoefficient.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/turbulentDispersionModels/constantTurbulentDispersionCoefficient/constantTurbulentDispersionCoefficient.C @@ -75,6 +75,7 @@ F() const { return - Ctd_ + *pair_.dispersed() *pair_.continuous().rho() *pair_.continuous().turbulence().k() *fvc::grad(pair_.dispersed()); diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/virtualMassModels/virtualMassModel/virtualMassModel.C b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/virtualMassModels/virtualMassModel/virtualMassModel.C index f709a092e4..34473a6c31 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/virtualMassModels/virtualMassModel/virtualMassModel.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/virtualMassModels/virtualMassModel/virtualMassModel.C @@ -72,7 +72,7 @@ Foam::virtualMassModel::~virtualMassModel() Foam::tmp Foam::virtualMassModel::K() const { - return Cvm()*pair_.continuous().rho(); + return Cvm()*pair_.dispersed()*pair_.continuous().rho(); } diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/wallLubricationModels/Antal/Antal.C b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/wallLubricationModels/Antal/Antal.C index aea563edd8..9b047289d1 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/wallLubricationModels/Antal/Antal.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/wallLubricationModels/Antal/Antal.C @@ -79,6 +79,7 @@ Foam::tmp Foam::wallLubricationModels::Antal::F() const dimensionedScalar("zero", dimless/dimLength, 0), Cw1_/pair_.dispersed().d() + Cw2_/yWall_ ) + *pair_.dispersed() *pair_.continuous().rho() *magSqr(Ur - (Ur & nWall)*nWall) *nWall; diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C index 95d6ebe77a..f011791d25 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C @@ -163,8 +163,6 @@ Foam::BlendedInterfacialModel::K() const if (model_.valid() || model1In2_.valid() || model2In1_.valid()) { - x() *= max(pair_.phase1()*pair_.phase2(), blending_.residualAlpha()); - correctFixedFluxBCs(x()); } diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/blendingMethods/blendingMethod/blendingMethod.C b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/blendingMethods/blendingMethod/blendingMethod.C index 3b4ec1092c..46952492e9 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/blendingMethods/blendingMethod/blendingMethod.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/blendingMethods/blendingMethod/blendingMethod.C @@ -40,8 +40,6 @@ Foam::blendingMethod::blendingMethod ( const dictionary& dict ) -: - residualAlpha_("residualAlpha", dimless, dict.lookup("residualAlpha")) {} @@ -51,12 +49,4 @@ Foam::blendingMethod::~blendingMethod() {} -// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * // - -const Foam::dimensionedScalar& Foam::blendingMethod::residualAlpha() const -{ - return residualAlpha_; -} - - // ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/blendingMethods/blendingMethod/blendingMethod.H b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/blendingMethods/blendingMethod/blendingMethod.H index 63cfb797b3..47e454f5d2 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/blendingMethods/blendingMethod/blendingMethod.H +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/blendingMethods/blendingMethod/blendingMethod.H @@ -49,14 +49,6 @@ namespace Foam class blendingMethod { -protected: - - // Protected data - - //- Residual phase fraction - const dimensionedScalar residualAlpha_; - - public: //- Runtime type information @@ -101,9 +93,6 @@ public: // Member Functions - //- Residual phase fraction - const dimensionedScalar& residualAlpha() const; - //- Factor for first phase virtual tmp f1 ( diff --git a/tutorials/multiphase/twoPhaseEulerFoam/LES/bubbleColumn/constant/phaseProperties b/tutorials/multiphase/twoPhaseEulerFoam/LES/bubbleColumn/constant/phaseProperties index 673343de15..6163f0ff7e 100644 --- a/tutorials/multiphase/twoPhaseEulerFoam/LES/bubbleColumn/constant/phaseProperties +++ b/tutorials/multiphase/twoPhaseEulerFoam/LES/bubbleColumn/constant/phaseProperties @@ -41,7 +41,6 @@ blending default { type linear; - residualAlpha 1e-6; maxFullyDispersedAlpha.air 0.3; maxPartlyDispersedAlpha.air 0.5; maxFullyDispersedAlpha.water 0.3; @@ -126,11 +125,13 @@ heatTransfer (air in water) { type RanzMarshall; + residualAlpha 1e-6; } (water in air) { type RanzMarshall; + residualAlpha 1e-6; } ); diff --git a/tutorials/multiphase/twoPhaseEulerFoam/RAS/bubbleColumn/constant/phaseProperties b/tutorials/multiphase/twoPhaseEulerFoam/RAS/bubbleColumn/constant/phaseProperties index 673343de15..6163f0ff7e 100644 --- a/tutorials/multiphase/twoPhaseEulerFoam/RAS/bubbleColumn/constant/phaseProperties +++ b/tutorials/multiphase/twoPhaseEulerFoam/RAS/bubbleColumn/constant/phaseProperties @@ -41,7 +41,6 @@ blending default { type linear; - residualAlpha 1e-6; maxFullyDispersedAlpha.air 0.3; maxPartlyDispersedAlpha.air 0.5; maxFullyDispersedAlpha.water 0.3; @@ -126,11 +125,13 @@ heatTransfer (air in water) { type RanzMarshall; + residualAlpha 1e-6; } (water in air) { type RanzMarshall; + residualAlpha 1e-6; } ); diff --git a/tutorials/multiphase/twoPhaseEulerFoam/RAS/fluidisedBed/constant/phaseProperties b/tutorials/multiphase/twoPhaseEulerFoam/RAS/fluidisedBed/constant/phaseProperties index bca23e0fe8..79d8f76852 100644 --- a/tutorials/multiphase/twoPhaseEulerFoam/RAS/fluidisedBed/constant/phaseProperties +++ b/tutorials/multiphase/twoPhaseEulerFoam/RAS/fluidisedBed/constant/phaseProperties @@ -42,7 +42,6 @@ blending default { type none; - residualAlpha 1e-3; continuousPhase air; } } @@ -72,11 +71,6 @@ drag virtualMass ( - (particles in air) - { - type constantCoefficient; - Cvm 0; - } ); heatTransfer @@ -84,6 +78,7 @@ heatTransfer (particles in air) { type RanzMarshall; + residualAlpha 1e-3; } ); diff --git a/tutorials/multiphase/twoPhaseEulerFoam/laminar/bubbleColumn/constant/phaseProperties b/tutorials/multiphase/twoPhaseEulerFoam/laminar/bubbleColumn/constant/phaseProperties index 673343de15..6163f0ff7e 100644 --- a/tutorials/multiphase/twoPhaseEulerFoam/laminar/bubbleColumn/constant/phaseProperties +++ b/tutorials/multiphase/twoPhaseEulerFoam/laminar/bubbleColumn/constant/phaseProperties @@ -41,7 +41,6 @@ blending default { type linear; - residualAlpha 1e-6; maxFullyDispersedAlpha.air 0.3; maxPartlyDispersedAlpha.air 0.5; maxFullyDispersedAlpha.water 0.3; @@ -126,11 +125,13 @@ heatTransfer (air in water) { type RanzMarshall; + residualAlpha 1e-6; } (water in air) { type RanzMarshall; + residualAlpha 1e-6; } ); diff --git a/tutorials/multiphase/twoPhaseEulerFoam/laminar/bubbleColumnIATE/constant/phaseProperties b/tutorials/multiphase/twoPhaseEulerFoam/laminar/bubbleColumnIATE/constant/phaseProperties index cfb93ba500..db40f41bfd 100644 --- a/tutorials/multiphase/twoPhaseEulerFoam/laminar/bubbleColumnIATE/constant/phaseProperties +++ b/tutorials/multiphase/twoPhaseEulerFoam/laminar/bubbleColumnIATE/constant/phaseProperties @@ -62,7 +62,6 @@ blending default { type linear; - residualAlpha 1e-6; maxFullyDispersedAlpha.air 0.3; maxPartlyDispersedAlpha.air 0.5; maxFullyDispersedAlpha.water 0.3; @@ -147,11 +146,13 @@ heatTransfer (air in water) { type RanzMarshall; + residualAlpha 1e-6; } (water in air) { type RanzMarshall; + residualAlpha 1e-6; } ); diff --git a/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/constant/phaseProperties b/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/constant/phaseProperties index 6f7c9add87..8e9239c48a 100644 --- a/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/constant/phaseProperties +++ b/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/constant/phaseProperties @@ -42,7 +42,6 @@ blending default { type none; - residualAlpha 1e-3; continuousPhase air; } } @@ -84,6 +83,7 @@ heatTransfer (particles in air) { type RanzMarshall; + residualAlpha 1e-3; } ); diff --git a/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/constant/phaseProperties b/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/constant/phaseProperties index 673343de15..6163f0ff7e 100644 --- a/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/constant/phaseProperties +++ b/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/constant/phaseProperties @@ -41,7 +41,6 @@ blending default { type linear; - residualAlpha 1e-6; maxFullyDispersedAlpha.air 0.3; maxPartlyDispersedAlpha.air 0.5; maxFullyDispersedAlpha.water 0.3; @@ -126,11 +125,13 @@ heatTransfer (air in water) { type RanzMarshall; + residualAlpha 1e-6; } (water in air) { type RanzMarshall; + residualAlpha 1e-6; } );