diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phaseModel/phaseModel.C b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phaseModel/phaseModel.C index da43a49881..26f30f81db 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phaseModel/phaseModel.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phaseModel/phaseModel.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -63,6 +63,7 @@ Foam::phaseModel::phaseModel ( phaseProperties.subDict(name_) ), + alphaMax_(phaseDict_.lookupOrDefault("alphaMax", 1.0)), thermo_(rhoThermo::New(fluid.mesh(), name_)), U_ ( diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phaseModel/phaseModel.H b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phaseModel/phaseModel.H index 7ca4255207..436ec137fe 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phaseModel/phaseModel.H +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phaseModel/phaseModel.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -71,6 +71,9 @@ class phaseModel dictionary phaseDict_; + //- Optional maximum phase-fraction (e.g. packing limit) + scalar alphaMax_; + //- Thermophysical properties autoPtr thermo_; @@ -123,6 +126,13 @@ public: //- Return the other phase in this two-phase system const phaseModel& otherPhase() const; + //- Optional maximum phase-fraction (e.g. packing limit) + // Defaults to 1 + scalar alphaMax() const + { + return alphaMax_; + } + //- Return the Sauter-mean diameter tmp d() const; diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/twoPhaseSystem.C b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/twoPhaseSystem.C index 98d096951e..88f3cdbc52 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/twoPhaseSystem.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/twoPhaseSystem.C @@ -248,7 +248,7 @@ Foam::twoPhaseSystem::twoPhaseSystem pair2In1_ ) ); - + wallLubrication_.set ( new BlendedInterfacialModel @@ -264,7 +264,7 @@ Foam::twoPhaseSystem::twoPhaseSystem pair2In1_ ) ); - + turbulentDispersion_.set ( new BlendedInterfacialModel @@ -508,7 +508,7 @@ void Foam::twoPhaseSystem::solve() alphaPhic1, Sp, Su, - 1, + phase1_.alphaMax(), 0 ); diff --git a/tutorials/multiphase/twoPhaseEulerFoam/RAS/fluidisedBed/constant/phaseProperties b/tutorials/multiphase/twoPhaseEulerFoam/RAS/fluidisedBed/constant/phaseProperties index 624e2a2dac..bca23e0fe8 100644 --- a/tutorials/multiphase/twoPhaseEulerFoam/RAS/fluidisedBed/constant/phaseProperties +++ b/tutorials/multiphase/twoPhaseEulerFoam/RAS/fluidisedBed/constant/phaseProperties @@ -24,6 +24,8 @@ particles { d 3e-4; } + + alphaMax 0.62; } air diff --git a/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/constant/phaseProperties b/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/constant/phaseProperties index cf724865d7..6f7c9add87 100644 --- a/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/constant/phaseProperties +++ b/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/constant/phaseProperties @@ -24,6 +24,8 @@ particles { d 3e-4; } + + alphaMax 0.62; } air