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.
51 lines
1.2 KiB
C++
51 lines
1.2 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 volScalarField;
|
|
location "0";
|
|
object p;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
dimensions [1 -1 -2 0 0 0 0];
|
|
|
|
internalField uniform 0;
|
|
|
|
boundaryField
|
|
{
|
|
left
|
|
{
|
|
type calculated;
|
|
value $internalField;
|
|
}
|
|
right
|
|
{
|
|
type calculated;
|
|
value $internalField;
|
|
}
|
|
bottom
|
|
{
|
|
type calculated;
|
|
value $internalField;
|
|
}
|
|
top
|
|
{
|
|
type calculated;
|
|
value $internalField;
|
|
}
|
|
frontBack
|
|
{
|
|
type empty;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|