DAFoam
v4.0.2
Discrete Adjoint with OpenFOAM
dafoam
src
adjoint
DAOutput
DAOutputThermalCoupling.H
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
3
DAFoam : Discrete Adjoint with OpenFOAM
4
Version : v4
5
6
Description:
7
Child class for thermal transfer variables for CHT
8
9
Compute the thermal variables for all of the faces on the conjugate heat
10
transfer patches.
11
12
NOTE: we have two separate variables to assign to the thermal array.
13
One is the near wall temperature and the other is kappa/d.
14
So the size of thermal array is 2 * nCouplingFaces
15
16
NOTE: this function can be called by either fluid or solid domain!
17
18
This conjugate heat transfer coupling uses the OpenFOAM's implementation in
19
turbulentTemperatureCoupledBaffleMixed.C
20
21
\*---------------------------------------------------------------------------*/
22
23
#ifndef DAOutputThermalCoupling_H
24
#define DAOutputThermalCoupling_H
25
26
#include "
DAOutput.H
"
27
#include "addToRunTimeSelectionTable.H"
28
#include "mixedFvPatchFields.H"
29
#include "thermodynamicConstants.H"
30
31
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32
33
namespace
Foam
34
{
35
36
/*---------------------------------------------------------------------------*\
37
Class DAOutputThermalCoupling Declaration
38
\*---------------------------------------------------------------------------*/
39
40
class
DAOutputThermalCoupling
41
:
public
DAOutput
42
{
43
44
protected
:
46
wordList
patches_
;
47
49
label
size_
;
50
52
word
discipline_
;
53
55
word
distanceMode_
;
56
57
public
:
58
TypeName
(
"thermalCouplingOutput"
);
59
// Constructors
60
61
//- Construct from components
62
DAOutputThermalCoupling
(
63
const
word outputName,
64
const
word outputType,
65
fvMesh&
mesh
,
66
const
DAOption
& daOption,
67
DAModel
& daModel,
68
const
DAIndex
& daIndex,
69
DAResidual
& daResidual,
70
UPtrList<DAFunction>& daFunctionList);
71
72
//- Destructor
73
virtual
~DAOutputThermalCoupling
()
74
{
75
}
76
77
virtual
void
run
(scalarList& output);
78
79
virtual
label
size
()
80
{
81
return
size_
;
82
}
83
84
virtual
label
distributed
()
85
{
86
return
1;
87
}
88
};
89
90
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
91
92
}
// End namespace Foam
93
94
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
95
96
#endif
97
98
// ************************************************************************* //
DAOutput.H
Foam::DAOutputThermalCoupling::TypeName
TypeName("thermalCouplingOutput")
Foam::DAOption
Definition:
DAOption.H:29
Foam::DAOutputThermalCoupling::discipline_
word discipline_
whether this is flow or solid
Definition:
DAOutputThermalCoupling.H:52
Foam::DAOutputThermalCoupling::size_
label size_
the total face number for all the patches_ owned by this processor
Definition:
DAOutputThermalCoupling.H:49
mesh
fvMesh & mesh
Definition:
createRefsHeatTransfer.H:4
Foam::DAOutputThermalCoupling::patches_
wordList patches_
list of patch names for the thermal var
Definition:
DAOutputThermalCoupling.H:46
Foam::DAIndex
Definition:
DAIndex.H:32
Foam::DAOutputThermalCoupling::~DAOutputThermalCoupling
virtual ~DAOutputThermalCoupling()
Definition:
DAOutputThermalCoupling.H:73
Foam::DAOutputThermalCoupling
Definition:
DAOutputThermalCoupling.H:40
Foam::DAOutput
Definition:
DAOutput.H:32
Foam::DAModel
Definition:
DAModel.H:57
Foam
Definition:
checkGeometry.C:32
Foam::DAOutputThermalCoupling::size
virtual label size()
Definition:
DAOutputThermalCoupling.H:79
Foam::DAResidual
Definition:
DAResidual.H:36
Foam::DAOutputThermalCoupling::distanceMode_
word distanceMode_
if calculating wallHeatFlux by OpenFOAMs snGrad() or DAFOAM's custom (daCustom) formulation
Definition:
DAOutputThermalCoupling.H:55
Foam::DAOutputThermalCoupling::distributed
virtual label distributed()
Definition:
DAOutputThermalCoupling.H:84
Foam::DAOutputThermalCoupling::DAOutputThermalCoupling
DAOutputThermalCoupling(const word outputName, const word outputType, fvMesh &mesh, const DAOption &daOption, DAModel &daModel, const DAIndex &daIndex, DAResidual &daResidual, UPtrList< DAFunction > &daFunctionList)
Definition:
DAOutputThermalCoupling.C:19
Foam::DAOutputThermalCoupling::run
virtual void run(scalarList &output)
Definition:
DAOutputThermalCoupling.C:69
Generated by
1.8.17