DAFoam
v3.0.6
Discrete Adjoint with OpenFOAM
dafoam
src
adjoint
DASolver
DAHeatTransferFoam
createFieldsHeatTransfer.H
Go to the documentation of this file.
1
Info <<
"Reading field T"
<< endl;
2
TPtr_.reset(
3
new
volScalarField(
4
IOobject(
5
"T"
,
6
runTime
.timeName(),
7
mesh
,
8
IOobject::MUST_READ,
9
IOobject::AUTO_WRITE),
10
mesh
));
11
12
Info <<
"Reading transportProperties\n"
13
<< endl;
14
15
IOdictionary transportProperties(
16
IOobject(
17
"transportProperties"
,
18
runTime
.constant(),
19
mesh
,
20
IOobject::MUST_READ,
21
IOobject::NO_WRITE));
22
23
// thermal conductivity unit: W/(m*K)
24
Info <<
"Reading thermal conductivity"
<< endl;
25
kPtr_.reset(
26
new
dimensionedScalar(
27
"k"
,
28
dimPower / dimLength / dimTemperature,
29
transportProperties));
30
31
// heat source unit: W/(m^3)
32
Info <<
"Creating source term. "
<< endl;
33
fvSourcePtr_.reset(
34
new
volScalarField(
35
IOobject(
36
"fvSource"
,
37
runTime
.timeName(),
38
mesh
,
39
IOobject::NO_READ,
40
IOobject::AUTO_WRITE),
41
mesh
,
42
dimensionedScalar(
"fvSource"
, dimPower / dimLength / dimLength / dimLength, 0.0),
43
"zeroGradient"
));
mesh
fvMesh & mesh
Definition:
createRefsHeatTransfer.H:4
runTime
Time & runTime
Definition:
createRefsHeatTransfer.H:1
Generated by
1.8.17