repo.or.cz
/
OpenFOAM-2.0.x.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ENH: Time: access to libs
[OpenFOAM-2.0.x.git]
/
applications
/
solvers
/
heatTransfer
/
buoyantBoussinesqSimpleFoam
/
TEqn.H
blob
180a33d9186d3f450ed4bb06c8b4e79bb69ee41f
1
{
2
kappat = turbulence->nut()/Prt;
3
kappat.correctBoundaryConditions();
4
5
volScalarField kappaEff("kappaEff", turbulence->nu()/Pr + kappat);
6
7
fvScalarMatrix TEqn
8
(
9
fvm::div(phi, T)
10
- fvm::Sp(fvc::div(phi), T)
11
- fvm::laplacian(kappaEff, T)
12
);
13
14
TEqn.relax();
15
TEqn.solve();
16
17
rhok = 1.0 - beta*(T - TRef);
18
}