mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
25 lines
459 B
C
25 lines
459 B
C
if (finalIter)
|
|
{
|
|
mesh.data::add("finalIteration", true);
|
|
}
|
|
|
|
{
|
|
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
|
{
|
|
tmp<fvScalarMatrix> TEqn
|
|
(
|
|
fvm::ddt(rho*cp, T)
|
|
- fvm::laplacian(K, T)
|
|
);
|
|
TEqn().relax();
|
|
TEqn().solve(mesh.solver(T.select(finalIter)));
|
|
}
|
|
|
|
Info<< "Min/max T:" << min(T) << ' ' << max(T) << endl;
|
|
}
|
|
|
|
if (finalIter)
|
|
{
|
|
mesh.data::remove("finalIteration");
|
|
}
|