solveSolid.H 555 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
13
            fvm::ddt(betav*rho, h)
          - fvm::laplacian(betav*alpha, h, "laplacian(alpha,h)")
          + sources(rho, h)
14
        );
15
16
        hEqn().relax();
        hEqn().solve(mesh.solver(h.select(finalIter)));
17
18
    }
}
19
20
21

thermo.correct();

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

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