Multi-species, mass-transfer and reaction support and multi-phase structure provided by William Bainbridge. Integration of the latest p-U and face-p_U algorithms with William's multi-phase structure is not quite complete due to design incompatibilities which needs further development. However the integration of the functionality is complete. The results of the tutorials are not exactly the same for the twoPhaseEulerFoam and reactingTwoPhaseEulerFoam solvers but are very similar. Further analysis in needed to ensure these differences are physical or to resolve them; in the meantime the twoPhaseEulerFoam solver will be maintained.
167 lines
2.9 KiB
C++
167 lines
2.9 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "constant";
|
|
object phaseProperties;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
type heatAndMomentumTransferTwoPhaseSystem;
|
|
|
|
phases (air water);
|
|
|
|
air
|
|
{
|
|
type purePhaseModel;
|
|
diameterModel isothermal;
|
|
isothermalCoeffs
|
|
{
|
|
d0 3e-3;
|
|
p0 1e5;
|
|
}
|
|
|
|
residualAlpha 1e-6;
|
|
}
|
|
|
|
water
|
|
{
|
|
type purePhaseModel;
|
|
diameterModel constant;
|
|
constantCoeffs
|
|
{
|
|
d 1e-4;
|
|
}
|
|
|
|
residualAlpha 1e-6;
|
|
}
|
|
|
|
blending
|
|
{
|
|
default
|
|
{
|
|
type linear;
|
|
minFullyContinuousAlpha.air 0.7;
|
|
minPartlyContinuousAlpha.air 0.5;
|
|
minFullyContinuousAlpha.water 0.7;
|
|
minPartlyContinuousAlpha.water 0.5;
|
|
}
|
|
}
|
|
|
|
surfaceTension
|
|
(
|
|
(air and water)
|
|
{
|
|
type constant;
|
|
sigma 0.07;
|
|
}
|
|
);
|
|
|
|
aspectRatio
|
|
(
|
|
(air in water)
|
|
{
|
|
type constant;
|
|
E0 1.0;
|
|
}
|
|
|
|
(water in air)
|
|
{
|
|
type constant;
|
|
E0 1.0;
|
|
}
|
|
);
|
|
|
|
drag
|
|
(
|
|
(air in water)
|
|
{
|
|
type SchillerNaumann;
|
|
|
|
residualRe 1e-3;
|
|
swarmCorrection
|
|
{
|
|
type none;
|
|
}
|
|
}
|
|
|
|
(water in air)
|
|
{
|
|
type SchillerNaumann;
|
|
|
|
residualRe 1e-3;
|
|
swarmCorrection
|
|
{
|
|
type none;
|
|
}
|
|
}
|
|
|
|
(air and water)
|
|
{
|
|
type segregated;
|
|
|
|
m 0.5;
|
|
n 8;
|
|
swarmCorrection
|
|
{
|
|
type none;
|
|
}
|
|
}
|
|
);
|
|
|
|
virtualMass
|
|
(
|
|
(air in water)
|
|
{
|
|
type constantCoefficient;
|
|
Cvm 0.5;
|
|
}
|
|
|
|
(water in air)
|
|
{
|
|
type constantCoefficient;
|
|
Cvm 0.5;
|
|
}
|
|
);
|
|
|
|
heatTransfer
|
|
(
|
|
(air in water)
|
|
{
|
|
type RanzMarshall;
|
|
residualAlpha 1e-4;
|
|
}
|
|
|
|
(water in air)
|
|
{
|
|
type RanzMarshall;
|
|
residualAlpha 1e-4;
|
|
}
|
|
);
|
|
|
|
lift
|
|
(
|
|
);
|
|
|
|
wallLubrication
|
|
(
|
|
);
|
|
|
|
turbulentDispersion
|
|
(
|
|
);
|
|
|
|
// Minimum allowable pressure
|
|
pMin 10000;
|
|
|
|
|
|
// ************************************************************************* //
|