solveSolid.H 493 Bytes
Newer Older
1
2
3
4
5
if (finalIter)
{
    mesh.data::add("finalIteration", true);
}

6
7
8
{
    for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
    {
9
        tmp<fvScalarMatrix> hEqn
10
        (
11
12
            fvm::ddt(rho, h)
          - fvm::laplacian(alpha, h)
13
        );
14
15
        hEqn().relax();
        hEqn().solve(mesh.solver(h.select(finalIter)));
16
17
    }
}
18
19
20

thermo.correct();

21
22
Info<< "Min/max T:" << min(thermo.T()) << ' ' << max(thermo.T()) << endl;

23
24
25
26
if (finalIter)
{
    mesh.data::remove("finalIteration");
}