MOF test case for two fluids with sheared velocity field
This test case simulates two fluids in a disc box.
The verification criteria is:
The simulations take place in a box of fluid of coordinates (0,0) and (1,1). The second fluid is placed in a disk positioned at (0.5,0.75).
Both of the fluids considered have the same properties :
\(\rho\) | \(\mu\) | \(\sigma\) | C | \(\alpha\) | \(T_{0}\) |
---|---|---|---|---|---|
1 | 1 | 1 | 1 | 1 | 1 |
where \(\rho\) is the density, \(\mu\) the dynamic viscosity coefficient, \(\sigma\) the conductivity, C the specific heat capacity, \(\alpha\) the thermal expansion coefficient and \(T_{0}\) the reference temperature.
The velocity field is in the sheared case . The velocity is given as: \(u(x,y)=(\alpha (\sin(\pi x))^2 \sin(\pi y) \cos(\pi y) \cos( \dfrac{\pi t}{\tau} ),\alpha (\sin(\pi y))^2 \sin(\pi x) \cos(\pi x) \cos( \dfrac{\pi t}{\tau} ) )\) where \(\alpha \) and \(\tau \) are respectively the amplitude and the period.
MOF is the numerical method used for Phase advection.
The variable CellsPerDirection is included to change the regular mesh. The default value of this variable is 32. For each direction of the grid, we consider \(\dfrac{L}{\Delta x}=CellsPerDirection\).
The time step is fixed for the numerical resolution but depends on the variable CellsPerDirection. Time step is defined as: \(\Delta t=CFL \dfrac{\Delta x}{V_{max}}\) where \(V_{max}= \dfrac{\alpha}{\sqrt2}\).
The UseAnalyticReconstruction variable is used to choose between the analytic reconstruction and minimization. The tolerance angle and derivative are respectively set to \(10^{-5}\) and 0.
The UseFilaments variable permits using Filaments at MOF method.
In the following section, both filaments and analytic reconstruction are activated.
Figure 1 shows the volume fraction of the fluids at different times when CellsPerDirection=128.
In order to study the convergence of the mesh, five spatial discretizations were used.
Mesh | Area of symmetric difference | order |
---|---|---|
16×16 | 0.009512639522275095 | n/a |
32×32 | 0.0019090203585962542 | 2.317 |
64×64 | 0.0001507775251455658 | 3.662 |
128×128 | 3.186137374736726e-05 | 2.243 |
256×256 | 8.458533635165664e-06 | 1.913 |