solveSolid.H
Go to the documentation of this file.
1if (finalIter)
2{
3 mesh.data::add("finalIteration", true);
4}
5
6{
7 for (int nonOrth=0; nonOrth<=nNonOrthCorr; ++nonOrth)
8 {
10 (
11 fvm::ddt(betav*rho, h)
12 - (
13 thermo.isotropic()
14 ? fvm::laplacian(betav*thermo.alpha(), h, "laplacian(alpha,h)")
15 : fvm::laplacian(betav*taniAlpha(), h, "laplacian(alpha,h)")
16 )
17 ==
19 );
20
21 hEqn.relax();
22
23 fvOptions.constrain(hEqn);
24
25 hEqn.solve(mesh.solver(h.select(finalIter)));
26
27 fvOptions.correct(h);
28 }
29
30 thermo.correct();
31
32 Info<< "Min/max T:" << min(thermo.T()).value() << ' '
33 << max(thermo.T()).value() << endl;
34}
35
36if (finalIter)
37{
38 mesh.data::remove("finalIteration");
39}
Y[inertIndex] max(0.0)
fv::options & fvOptions
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
dynamicFvMesh & mesh
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:45
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:372
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:33
const int nNonOrthCorr
volScalarField & h
tmp< volSymmTensorField > taniAlpha
const volScalarField & betav