solveSolid.H
Go to the documentation of this file.
1 if (finalIter)
2 {
3  mesh.data().setFinalIteration(true);
4 }
5 
6 {
7  for (int nonOrth=0; nonOrth<=nNonOrthCorr; ++nonOrth)
8  {
9  fvScalarMatrix hEqn
10  (
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  ==
18  fvOptions(rho, h)
19  );
20 
21  hEqn.relax();
22 
23  fvOptions.constrain(hEqn);
24 
25  hEqn.solve(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 
36 if (finalIter)
37 {
38  mesh.data().setFinalIteration(false);
39 }
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:37
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:40
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:531
tmp< GeometricField< Type, faPatchField, areaMesh > > ddt(const dimensioned< Type > dt, const faMesh &mesh)
Definition: facDdt.C:40
const int nNonOrthCorr
fv::options & fvOptions
psiReactionThermo & thermo
Definition: createFields.H:28
tmp< volSymmTensorField > taniAlpha
dynamicFvMesh & mesh
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
Definition: facLaplacian.C:40
const volScalarField & betav
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:26
const dimensionedScalar h
Planck constant.
messageStream Info
Information stream (stdout output on master, null elsewhere)