mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
twoPhaseEulerFoam: added optional alphaMax to phaseModel for MULES limiter
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1209
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -63,6 +63,7 @@ Foam::phaseModel::phaseModel
|
|||||||
(
|
(
|
||||||
phaseProperties.subDict(name_)
|
phaseProperties.subDict(name_)
|
||||||
),
|
),
|
||||||
|
alphaMax_(phaseDict_.lookupOrDefault("alphaMax", 1.0)),
|
||||||
thermo_(rhoThermo::New(fluid.mesh(), name_)),
|
thermo_(rhoThermo::New(fluid.mesh(), name_)),
|
||||||
U_
|
U_
|
||||||
(
|
(
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -71,6 +71,9 @@ class phaseModel
|
|||||||
|
|
||||||
dictionary phaseDict_;
|
dictionary phaseDict_;
|
||||||
|
|
||||||
|
//- Optional maximum phase-fraction (e.g. packing limit)
|
||||||
|
scalar alphaMax_;
|
||||||
|
|
||||||
//- Thermophysical properties
|
//- Thermophysical properties
|
||||||
autoPtr<rhoThermo> thermo_;
|
autoPtr<rhoThermo> thermo_;
|
||||||
|
|
||||||
@ -123,6 +126,13 @@ public:
|
|||||||
//- Return the other phase in this two-phase system
|
//- Return the other phase in this two-phase system
|
||||||
const phaseModel& otherPhase() const;
|
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
|
//- Return the Sauter-mean diameter
|
||||||
tmp<volScalarField> d() const;
|
tmp<volScalarField> d() const;
|
||||||
|
|
||||||
|
|||||||
@ -248,7 +248,7 @@ Foam::twoPhaseSystem::twoPhaseSystem
|
|||||||
pair2In1_
|
pair2In1_
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
wallLubrication_.set
|
wallLubrication_.set
|
||||||
(
|
(
|
||||||
new BlendedInterfacialModel<wallLubricationModel>
|
new BlendedInterfacialModel<wallLubricationModel>
|
||||||
@ -264,7 +264,7 @@ Foam::twoPhaseSystem::twoPhaseSystem
|
|||||||
pair2In1_
|
pair2In1_
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
turbulentDispersion_.set
|
turbulentDispersion_.set
|
||||||
(
|
(
|
||||||
new BlendedInterfacialModel<turbulentDispersionModel>
|
new BlendedInterfacialModel<turbulentDispersionModel>
|
||||||
@ -508,7 +508,7 @@ void Foam::twoPhaseSystem::solve()
|
|||||||
alphaPhic1,
|
alphaPhic1,
|
||||||
Sp,
|
Sp,
|
||||||
Su,
|
Su,
|
||||||
1,
|
phase1_.alphaMax(),
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -24,6 +24,8 @@ particles
|
|||||||
{
|
{
|
||||||
d 3e-4;
|
d 3e-4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
alphaMax 0.62;
|
||||||
}
|
}
|
||||||
|
|
||||||
air
|
air
|
||||||
|
|||||||
@ -24,6 +24,8 @@ particles
|
|||||||
{
|
{
|
||||||
d 3e-4;
|
d 3e-4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
alphaMax 0.62;
|
||||||
}
|
}
|
||||||
|
|
||||||
air
|
air
|
||||||
|
|||||||
Reference in New Issue
Block a user