BUG: twoPhaseEulerFoam: removed multiple of the continuous phase fraction from force and heat transfer models

This commit is contained in:
william
2014-03-17 16:34:32 +00:00
committed by Andrew Heather
parent 354197bf33
commit 37c75a8b18
20 changed files with 34 additions and 48 deletions

View File

@ -23,12 +23,11 @@ volScalarField dragCoeff(fluid.dragCoeff());
+ phase1.turbulence().divDevReff(U1) + phase1.turbulence().divDevReff(U1)
== ==
- fvm::Sp(dragCoeff/rho1, U1) - fvm::Sp(dragCoeff/rho1, U1)
- alpha1*alpha2/rho1 - (
*(
liftForce liftForce
+ wallLubricationForce + wallLubricationForce
+ turbulentDispersionForce + turbulentDispersionForce
) )/rho1
- virtualMassCoeff/rho1 - virtualMassCoeff/rho1
*( *(
fvm::ddt(U1) fvm::ddt(U1)
@ -50,12 +49,11 @@ volScalarField dragCoeff(fluid.dragCoeff());
+ phase2.turbulence().divDevReff(U2) + phase2.turbulence().divDevReff(U2)
== ==
- fvm::Sp(dragCoeff/rho2, U2) - fvm::Sp(dragCoeff/rho2, U2)
+ alpha1*alpha2/rho2 + (
*(
liftForce liftForce
+ wallLubricationForce + wallLubricationForce
+ turbulentDispersionForce + turbulentDispersionForce
) )/rho2
- virtualMassCoeff/rho2 - virtualMassCoeff/rho2
*( *(
fvm::ddt(U2) fvm::ddt(U2)

View File

@ -107,13 +107,11 @@ Foam::tmp<Foam::volScalarField> Foam::dragModel::K() const
return return
0.75 0.75
*CdRe() *CdRe()
*max(pair_.dispersed(), residualAlpha_)
*swarmCorrection_->Cs() *swarmCorrection_->Cs()
*pair_.continuous().rho() *pair_.continuous().rho()
*pair_.continuous().nu() *pair_.continuous().nu()
/( /sqr(pair_.dispersed().d());
max(pair_.continuous(), residualAlpha_)
*sqr(pair_.dispersed().d())
);
} }

View File

@ -64,7 +64,12 @@ Foam::heatTransferModels::RanzMarshall::K() const
{ {
volScalarField Nu(scalar(2) + 0.6*pair_.Re()*cbrt(pair_.Pr())); 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());
} }

View File

@ -45,7 +45,8 @@ Foam::heatTransferModel::heatTransferModel
const phasePair& pair const phasePair& pair
) )
: :
pair_(pair) pair_(pair),
residualAlpha_("residualAlpha", dimless, dict.lookup("residualAlpha"))
{} {}

View File

@ -58,6 +58,9 @@ protected:
//- Phase pair //- Phase pair
const phasePair& pair_; const phasePair& pair_;
//- Residual phase fraction
const dimensionedScalar residualAlpha_;
public: public:

View File

@ -62,6 +62,7 @@ Foam::tmp<Foam::volVectorField> Foam::liftModel::F() const
{ {
return return
Cl() Cl()
*pair_.dispersed()
*pair_.continuous().rho() *pair_.continuous().rho()
*( *(
pair_.Ur() ^ fvc::curl(pair_.continuous().U()) pair_.Ur() ^ fvc::curl(pair_.continuous().U())

View File

@ -85,6 +85,7 @@ Foam::turbulentDispersionModels::Gosman::F() const
return return
- 0.75 - 0.75
*drag.CdRe() *drag.CdRe()
*pair_.dispersed()
*pair_.continuous().nu() *pair_.continuous().nu()
*pair_.continuous().turbulence().nut() *pair_.continuous().turbulence().nut()
/( /(

View File

@ -75,6 +75,7 @@ F() const
{ {
return return
- Ctd_ - Ctd_
*pair_.dispersed()
*pair_.continuous().rho() *pair_.continuous().rho()
*pair_.continuous().turbulence().k() *pair_.continuous().turbulence().k()
*fvc::grad(pair_.dispersed()); *fvc::grad(pair_.dispersed());

View File

@ -72,7 +72,7 @@ Foam::virtualMassModel::~virtualMassModel()
Foam::tmp<Foam::volScalarField> Foam::virtualMassModel::K() const Foam::tmp<Foam::volScalarField> Foam::virtualMassModel::K() const
{ {
return Cvm()*pair_.continuous().rho(); return Cvm()*pair_.dispersed()*pair_.continuous().rho();
} }

View File

@ -79,6 +79,7 @@ Foam::tmp<Foam::volVectorField> Foam::wallLubricationModels::Antal::F() const
dimensionedScalar("zero", dimless/dimLength, 0), dimensionedScalar("zero", dimless/dimLength, 0),
Cw1_/pair_.dispersed().d() + Cw2_/yWall_ Cw1_/pair_.dispersed().d() + Cw2_/yWall_
) )
*pair_.dispersed()
*pair_.continuous().rho() *pair_.continuous().rho()
*magSqr(Ur - (Ur & nWall)*nWall) *magSqr(Ur - (Ur & nWall)*nWall)
*nWall; *nWall;

View File

@ -163,8 +163,6 @@ Foam::BlendedInterfacialModel<modelType>::K() const
if (model_.valid() || model1In2_.valid() || model2In1_.valid()) if (model_.valid() || model1In2_.valid() || model2In1_.valid())
{ {
x() *= max(pair_.phase1()*pair_.phase2(), blending_.residualAlpha());
correctFixedFluxBCs(x()); correctFixedFluxBCs(x());
} }

View File

@ -40,8 +40,6 @@ Foam::blendingMethod::blendingMethod
( (
const dictionary& dict 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_;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -49,14 +49,6 @@ namespace Foam
class blendingMethod class blendingMethod
{ {
protected:
// Protected data
//- Residual phase fraction
const dimensionedScalar residualAlpha_;
public: public:
//- Runtime type information //- Runtime type information
@ -101,9 +93,6 @@ public:
// Member Functions // Member Functions
//- Residual phase fraction
const dimensionedScalar& residualAlpha() const;
//- Factor for first phase //- Factor for first phase
virtual tmp<volScalarField> f1 virtual tmp<volScalarField> f1
( (

View File

@ -41,7 +41,6 @@ blending
default default
{ {
type linear; type linear;
residualAlpha 1e-6;
maxFullyDispersedAlpha.air 0.3; maxFullyDispersedAlpha.air 0.3;
maxPartlyDispersedAlpha.air 0.5; maxPartlyDispersedAlpha.air 0.5;
maxFullyDispersedAlpha.water 0.3; maxFullyDispersedAlpha.water 0.3;
@ -126,11 +125,13 @@ heatTransfer
(air in water) (air in water)
{ {
type RanzMarshall; type RanzMarshall;
residualAlpha 1e-6;
} }
(water in air) (water in air)
{ {
type RanzMarshall; type RanzMarshall;
residualAlpha 1e-6;
} }
); );

View File

@ -41,7 +41,6 @@ blending
default default
{ {
type linear; type linear;
residualAlpha 1e-6;
maxFullyDispersedAlpha.air 0.3; maxFullyDispersedAlpha.air 0.3;
maxPartlyDispersedAlpha.air 0.5; maxPartlyDispersedAlpha.air 0.5;
maxFullyDispersedAlpha.water 0.3; maxFullyDispersedAlpha.water 0.3;
@ -126,11 +125,13 @@ heatTransfer
(air in water) (air in water)
{ {
type RanzMarshall; type RanzMarshall;
residualAlpha 1e-6;
} }
(water in air) (water in air)
{ {
type RanzMarshall; type RanzMarshall;
residualAlpha 1e-6;
} }
); );

View File

@ -42,7 +42,6 @@ blending
default default
{ {
type none; type none;
residualAlpha 1e-3;
continuousPhase air; continuousPhase air;
} }
} }
@ -72,11 +71,6 @@ drag
virtualMass virtualMass
( (
(particles in air)
{
type constantCoefficient;
Cvm 0;
}
); );
heatTransfer heatTransfer
@ -84,6 +78,7 @@ heatTransfer
(particles in air) (particles in air)
{ {
type RanzMarshall; type RanzMarshall;
residualAlpha 1e-3;
} }
); );

View File

@ -41,7 +41,6 @@ blending
default default
{ {
type linear; type linear;
residualAlpha 1e-6;
maxFullyDispersedAlpha.air 0.3; maxFullyDispersedAlpha.air 0.3;
maxPartlyDispersedAlpha.air 0.5; maxPartlyDispersedAlpha.air 0.5;
maxFullyDispersedAlpha.water 0.3; maxFullyDispersedAlpha.water 0.3;
@ -126,11 +125,13 @@ heatTransfer
(air in water) (air in water)
{ {
type RanzMarshall; type RanzMarshall;
residualAlpha 1e-6;
} }
(water in air) (water in air)
{ {
type RanzMarshall; type RanzMarshall;
residualAlpha 1e-6;
} }
); );

View File

@ -62,7 +62,6 @@ blending
default default
{ {
type linear; type linear;
residualAlpha 1e-6;
maxFullyDispersedAlpha.air 0.3; maxFullyDispersedAlpha.air 0.3;
maxPartlyDispersedAlpha.air 0.5; maxPartlyDispersedAlpha.air 0.5;
maxFullyDispersedAlpha.water 0.3; maxFullyDispersedAlpha.water 0.3;
@ -147,11 +146,13 @@ heatTransfer
(air in water) (air in water)
{ {
type RanzMarshall; type RanzMarshall;
residualAlpha 1e-6;
} }
(water in air) (water in air)
{ {
type RanzMarshall; type RanzMarshall;
residualAlpha 1e-6;
} }
); );

View File

@ -42,7 +42,6 @@ blending
default default
{ {
type none; type none;
residualAlpha 1e-3;
continuousPhase air; continuousPhase air;
} }
} }
@ -84,6 +83,7 @@ heatTransfer
(particles in air) (particles in air)
{ {
type RanzMarshall; type RanzMarshall;
residualAlpha 1e-3;
} }
); );

View File

@ -41,7 +41,6 @@ blending
default default
{ {
type linear; type linear;
residualAlpha 1e-6;
maxFullyDispersedAlpha.air 0.3; maxFullyDispersedAlpha.air 0.3;
maxPartlyDispersedAlpha.air 0.5; maxPartlyDispersedAlpha.air 0.5;
maxFullyDispersedAlpha.water 0.3; maxFullyDispersedAlpha.water 0.3;
@ -126,11 +125,13 @@ heatTransfer
(air in water) (air in water)
{ {
type RanzMarshall; type RanzMarshall;
residualAlpha 1e-6;
} }
(water in air) (water in air)
{ {
type RanzMarshall; type RanzMarshall;
residualAlpha 1e-6;
} }
); );