Simulating the mixing of two miscible liquids is possible my considering them as different species of a multicomponent fluid. This approach also supports an arbitrary number of liquids. The twoLiquidMixingFoam solver has therefore been removed and its tutorials converted to use the multicomponentFluid solver module.
77 lines
1.5 KiB
C++
77 lines
1.5 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
location "constant";
|
|
object physicalProperties.sludge;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
thermoType
|
|
{
|
|
type heRhoThermo;
|
|
mixture multiComponentMixture;
|
|
transport const;
|
|
thermo hConst;
|
|
equationOfState rhoConst;
|
|
specie specie;
|
|
energy sensibleInternalEnergy;
|
|
}
|
|
|
|
species (water sludge);
|
|
|
|
defaultSpecie water;
|
|
|
|
water
|
|
{
|
|
specie
|
|
{
|
|
molWeight 18;
|
|
}
|
|
equationOfState
|
|
{
|
|
rho 990;
|
|
}
|
|
thermodynamics
|
|
{
|
|
Cp 4195;
|
|
Hf 0;
|
|
}
|
|
transport
|
|
{
|
|
mu 0.99e-3;
|
|
Pr 1.0;
|
|
}
|
|
}
|
|
|
|
sludge
|
|
{
|
|
specie
|
|
{
|
|
molWeight 18;
|
|
}
|
|
equationOfState
|
|
{
|
|
rho 1000;
|
|
}
|
|
thermodynamics
|
|
{
|
|
Cp 4195;
|
|
Hf 0;
|
|
}
|
|
transport
|
|
{
|
|
mu 1e-3;
|
|
Pr 1.0;
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|