solveSolid.H
Go to the documentation of this file.
1 {
2  for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
3  {
4  fvScalarMatrix hEqn
5  (
6  (
7  thermo.isotropic()
8  ? -fvm::laplacian(betav*thermo.alpha(), h, "laplacian(alpha,h)")
9  : -fvm::laplacian(betav*taniAlpha(), h, "laplacian(alpha,h)")
10  )
11  ==
12  fvOptions(rho, h)
13  );
14 
15  hEqn.relax();
16 
17  fvOptions.constrain(hEqn);
18 
19  hEqn.solve();
20 
21  fvOptions.correct(h);
22  }
23 }
24 
25 thermo.correct();
26 
27 Info<< "Min/max T:" << min(thermo.T()).value() << ' '
28  << max(thermo.T()).value() << endl;
taniAlpha
tmp< volSymmTensorField > taniAlpha
Definition: setRegionSolidFields.H:10
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
Foam::dimensioned::value
const Type & value() const
Return const reference to value.
Definition: dimensionedType.C:261
Foam::fvc::laplacian
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvcLaplacian.C:45
Foam::fvScalarMatrix
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
Foam::constant::universal::h
const dimensionedScalar h
Planck constant.
Definition: createFields.H:6
Foam::Info
messageStream Info
rho
rho
Definition: pEqn.H:3
Foam::max
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
nNonOrthCorr
const int nNonOrthCorr
Definition: readFluidMultiRegionSIMPLEControls.H:3
betav
const volScalarField & betav
Definition: setRegionSolidFields.H:30
Foam::min
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
fvOptions
fv::options & fvOptions
Definition: setRegionFluidFields.H:16