mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated sources for compressible solvers
This commit is contained in:
@ -21,8 +21,12 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
EEqn.relax();
|
EEqn.relax();
|
||||||
|
|
||||||
sources.constrain(EEqn);
|
sources.constrain(EEqn);
|
||||||
|
|
||||||
EEqn.solve();
|
EEqn.solve();
|
||||||
|
|
||||||
|
sources.correct(he);
|
||||||
|
|
||||||
thermo.correct();
|
thermo.correct();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,5 +16,7 @@ sources.constrain(UEqn());
|
|||||||
if (pimple.momentumPredictor())
|
if (pimple.momentumPredictor())
|
||||||
{
|
{
|
||||||
solve(UEqn() == -fvc::grad(p));
|
solve(UEqn() == -fvc::grad(p));
|
||||||
|
|
||||||
|
sources.correct(U);
|
||||||
K = 0.5*magSqr(U);
|
K = 0.5*magSqr(U);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,8 +15,12 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
EEqn.relax();
|
EEqn.relax();
|
||||||
|
|
||||||
sources.constrain(EEqn);
|
sources.constrain(EEqn);
|
||||||
|
|
||||||
EEqn.solve();
|
EEqn.solve();
|
||||||
|
|
||||||
|
sources.correct(he);
|
||||||
|
|
||||||
thermo.correct();
|
thermo.correct();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,4 +10,8 @@
|
|||||||
|
|
||||||
UEqn().relax();
|
UEqn().relax();
|
||||||
|
|
||||||
|
sources.constrain(UEqn());
|
||||||
|
|
||||||
solve(UEqn() == -fvc::grad(p));
|
solve(UEqn() == -fvc::grad(p));
|
||||||
|
|
||||||
|
sources.correct(U);
|
||||||
|
|||||||
@ -15,8 +15,12 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
EEqn.relax();
|
EEqn.relax();
|
||||||
|
|
||||||
sources.constrain(EEqn);
|
sources.constrain(EEqn);
|
||||||
|
|
||||||
EEqn.solve();
|
EEqn.solve();
|
||||||
|
|
||||||
|
sources.correct(he);
|
||||||
|
|
||||||
thermo.correct();
|
thermo.correct();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,6 +33,8 @@
|
|||||||
U = trTU() & ((UEqn() == sources(rho, U))().H() - gradp);
|
U = trTU() & ((UEqn() == sources(rho, U))().H() - gradp);
|
||||||
}
|
}
|
||||||
U.correctBoundaryConditions();
|
U.correctBoundaryConditions();
|
||||||
|
|
||||||
|
sources.correct(U);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -42,6 +44,8 @@
|
|||||||
|
|
||||||
solve(UEqn() == -fvc::grad(p) + sources(rho, U));
|
solve(UEqn() == -fvc::grad(p) + sources(rho, U));
|
||||||
|
|
||||||
|
sources.correct(U);
|
||||||
|
|
||||||
trAU = 1.0/UEqn().A();
|
trAU = 1.0/UEqn().A();
|
||||||
trAU().rename("rAU");
|
trAU().rename("rAU");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user