DAFoam
v3.0.6
Discrete Adjoint with OpenFOAM
dafoam
src
adjoint
DASolver
DASimpleTFoam
TEqnSimpleT.H
Go to the documentation of this file.
1
{
2
alphat
= turbulencePtr_->nut() /
Prt
;
3
alphat
.correctBoundaryConditions();
4
5
volScalarField
alphaEff
(
"alphaEff"
, turbulencePtr_->nu() /
Pr
+
alphat
);
6
7
fvScalarMatrix
TEqn
(
8
fvm::div(
phi
,
T
)
9
- fvm::laplacian(
alphaEff
,
T
)
10
);
11
12
TEqn
.relax();
13
14
// get the solver performance info such as initial
15
// and final residuals
16
SolverPerformance<scalar>
solverT
=
TEqn
.solve();
17
18
this->
primalResidualControl<scalar>
(solverT, printToScreen, printInterval,
"T"
);
19
}
Pr
dimensionedScalar Pr
Definition:
createRefsSimpleT.H:17
TEqn
fvScalarMatrix TEqn(fvm::div(phi, T) - fvm::laplacian(alphaEff, T))
phi
surfaceScalarField & phi
Definition:
createRefsPimple.H:8
primalResidualControl< scalar >
this primalResidualControl< scalar >(solverT, printToScreen, printInterval, "T")
T
volScalarField & T
Definition:
createRefsHeatTransfer.H:5
alphaEff
volScalarField alphaEff("alphaEff", turbulencePtr_->nu()/Pr+alphat)
Prt
dimensionedScalar Prt
Definition:
createRefsSimpleT.H:18
alphat
volScalarField & alphat
Definition:
createRefsSimpleT.H:19
solverT
SolverPerformance< scalar > solverT
Definition:
TEqnSimpleT.H:16
Generated by
1.8.17