Separate convection and diffusion terms in the MULEScorr predictor
to remove interaction of the diffusion term with the flux-correction.
This commit is contained in:
parent
3c837948f1
commit
5871d1aa33
1 changed files with 5 additions and 2 deletions
|
|
@ -17,6 +17,11 @@
|
||||||
phi,
|
phi,
|
||||||
upwind<scalar>(mesh, phi)
|
upwind<scalar>(mesh, phi)
|
||||||
).fvmDiv(phi, alpha1)
|
).fvmDiv(phi, alpha1)
|
||||||
|
);
|
||||||
|
|
||||||
|
solve
|
||||||
|
(
|
||||||
|
alpha1Eqn
|
||||||
- fv::gaussLaplacianScheme<scalar, scalar>
|
- fv::gaussLaplacianScheme<scalar, scalar>
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
|
|
@ -25,8 +30,6 @@
|
||||||
).fvmLaplacian(fvc::interpolate(mut/rho), alpha1)
|
).fvmLaplacian(fvc::interpolate(mut/rho), alpha1)
|
||||||
);
|
);
|
||||||
|
|
||||||
alpha1Eqn.solve();
|
|
||||||
|
|
||||||
Info<< "Phase-1 volume fraction = "
|
Info<< "Phase-1 volume fraction = "
|
||||||
<< alpha1.weightedAverage(mesh.Vsc()).value()
|
<< alpha1.weightedAverage(mesh.Vsc()).value()
|
||||||
<< " Min(alpha1) = " << min(alpha1).value()
|
<< " Min(alpha1) = " << min(alpha1).value()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue