OpenFOAM
v2512
The open source CFD toolbox
Loading...
Searching...
No Matches
hEqn.H
Go to the documentation of this file.
1
{
2
fvScalarMatrix
hEqn
3
(
4
fvm::ddt(
betav
*
rho
,
h
)
5
- (
6
thermo
.isotropic()
7
? fvm::laplacian(
betav
*
thermo
.alpha(),
h
,
"laplacian(alpha,h)"
)
8
: fvm::laplacian(
betav
*
taniAlpha
(),
h
,
"laplacian(alpha,h)"
)
9
)
10
==
11
fvOptions
(
rho
,
h
)
12
);
13
14
if
(
meshFluxCorr
)
15
{
16
surfaceScalarField phihMesh
17
(
18
fvc::interpolate(
betav
*
rho
*
h
)*
mesh
.phi()
19
);
20
21
hEqn -= fvc::div(phihMesh);
22
}
23
24
hEqn.relax();
25
26
fvOptions
.constrain(hEqn);
27
28
hEqn.solve();
//mesh.solver(h.select(finalIter)));
29
30
fvOptions
.correct(
h
);
31
32
thermo
.correct();
33
34
Info<<
"Min/max T:"
<< min(
thermo
.T()).value() <<
' '
35
<< max(
thermo
.T()).value() << endl;
36
37
radiation
->correct();
38
}
fvOptions
fv::options & fvOptions
Definition
setRegionFluidFields.H:21
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
mesh
dynamicFvMesh & mesh
Definition
createDynamicFvMesh.H:6
radiation
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Foam::fvScalarMatrix
fvMatrix< scalar > fvScalarMatrix
Definition
fvMatricesFwd.H:39
rho
rho
Definition
readInitialConditions.H:88
h
volScalarField & h
Definition
setRegionSolidFields.H:32
taniAlpha
tmp< volSymmTensorField > taniAlpha
Definition
setRegionSolidFields.H:9
betav
const volScalarField & betav
Definition
setRegionSolidFields.H:34
meshFluxCorr
bool meshFluxCorr(false)
applications
solvers
heatTransfer
solidFoam
hEqn.H
Generated by
1.16.1