mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
driftFluxFoam: separate advection and diffusion for predictor-corrector MULES to reduce operator-splitting error
This commit is contained in:
@ -19,16 +19,7 @@
|
|||||||
).fvmDiv(phi, alpha1)
|
).fvmDiv(phi, alpha1)
|
||||||
);
|
);
|
||||||
|
|
||||||
solve
|
solve(alpha1Eqn);
|
||||||
(
|
|
||||||
alpha1Eqn
|
|
||||||
- fv::gaussLaplacianScheme<scalar, scalar>
|
|
||||||
(
|
|
||||||
mesh,
|
|
||||||
linear<scalar>(mesh),
|
|
||||||
fv::uncorrectedSnGrad<scalar>(mesh)
|
|
||||||
).fvmLaplacian(fvc::interpolate(turbulence->nut()), alpha1)
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "Phase-1 volume fraction = "
|
Info<< "Phase-1 volume fraction = "
|
||||||
<< alpha1.weightedAverage(mesh.Vsc()).value()
|
<< alpha1.weightedAverage(mesh.Vsc()).value()
|
||||||
@ -42,6 +33,7 @@
|
|||||||
if (alphaApplyPrevCorr && tphiAlphaCorr0.valid())
|
if (alphaApplyPrevCorr && tphiAlphaCorr0.valid())
|
||||||
{
|
{
|
||||||
Info<< "Applying the previous iteration correction flux" << endl;
|
Info<< "Applying the previous iteration correction flux" << endl;
|
||||||
|
|
||||||
#ifdef LTSSOLVE
|
#ifdef LTSSOLVE
|
||||||
MULES::LTScorrect
|
MULES::LTScorrect
|
||||||
(
|
(
|
||||||
|
|||||||
@ -50,7 +50,6 @@
|
|||||||
|
|
||||||
// Apply the diffusion term separately to allow implicit solution
|
// Apply the diffusion term separately to allow implicit solution
|
||||||
// and boundedness of the explicit advection
|
// and boundedness of the explicit advection
|
||||||
if (!MULESCorr)
|
|
||||||
{
|
{
|
||||||
fvScalarMatrix alpha1Eqn
|
fvScalarMatrix alpha1Eqn
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user