DAFoam
v4.0.2
Discrete Adjoint with OpenFOAM
dafoam
src
adjoint
DAOutput
DAOutputForceCoupling.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 force transfer in fluid-structure interaction cases
8
9
\*---------------------------------------------------------------------------*/
10
11
#ifndef DAOutputForceCoupling_H
12
#define DAOutputForceCoupling_H
13
14
#include "
DAOutput.H
"
15
#include "addToRunTimeSelectionTable.H"
16
#include "volPointInterpolation.H"
17
#include "SortableList.H"
18
19
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
20
21
namespace
Foam
22
{
23
24
/*---------------------------------------------------------------------------*\
25
Class DAOutputForceCoupling Declaration
26
\*---------------------------------------------------------------------------*/
27
28
class
DAOutputForceCoupling
29
:
public
DAOutput
30
{
31
32
protected
:
34
wordList
patches_
;
35
37
label
size_
;
38
40
scalar
pRef_
;
41
42
public
:
43
TypeName
(
"forceCouplingOutput"
);
44
// Constructors
45
46
//- Construct from components
47
DAOutputForceCoupling
(
48
const
word outputName,
49
const
word outputType,
50
fvMesh&
mesh
,
51
const
DAOption
& daOption,
52
DAModel
& daModel,
53
const
DAIndex
& daIndex,
54
DAResidual
& daResidual,
55
UPtrList<DAFunction>& daFunctionList);
56
57
//- Destructor
58
virtual
~DAOutputForceCoupling
()
59
{
60
}
61
62
virtual
void
run
(scalarList& output);
63
64
virtual
label
size
()
65
{
66
return
size_
;
67
}
68
69
virtual
label
distributed
()
70
{
71
return
1;
72
}
73
};
74
75
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
76
77
}
// End namespace Foam
78
79
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
80
81
#endif
82
83
// ************************************************************************* //
DAOutput.H
Foam::DAOutputForceCoupling::~DAOutputForceCoupling
virtual ~DAOutputForceCoupling()
Definition:
DAOutputForceCoupling.H:58
Foam::DAOption
Definition:
DAOption.H:29
Foam::DAOutputForceCoupling::run
virtual void run(scalarList &output)
Definition:
DAOutputForceCoupling.C:59
Foam::DAOutputForceCoupling::size
virtual label size()
Definition:
DAOutputForceCoupling.H:64
Foam::DAOutputForceCoupling::distributed
virtual label distributed()
Definition:
DAOutputForceCoupling.H:69
mesh
fvMesh & mesh
Definition:
createRefsHeatTransfer.H:4
Foam::DAOutputForceCoupling
Definition:
DAOutputForceCoupling.H:28
Foam::DAIndex
Definition:
DAIndex.H:32
Foam::DAOutput
Definition:
DAOutput.H:32
Foam::DAModel
Definition:
DAModel.H:57
Foam
Definition:
checkGeometry.C:32
Foam::DAResidual
Definition:
DAResidual.H:36
Foam::DAOutputForceCoupling::size_
label size_
the total face number for all the patches_ owned by this processor
Definition:
DAOutputForceCoupling.H:37
Foam::DAOutputForceCoupling::pRef_
scalar pRef_
the reference pressure
Definition:
DAOutputForceCoupling.H:40
Foam::DAOutputForceCoupling::TypeName
TypeName("forceCouplingOutput")
Foam::DAOutputForceCoupling::DAOutputForceCoupling
DAOutputForceCoupling(const word outputName, const word outputType, fvMesh &mesh, const DAOption &daOption, DAModel &daModel, const DAIndex &daIndex, DAResidual &daResidual, UPtrList< DAFunction > &daFunctionList)
Definition:
DAOutputForceCoupling.C:19
Foam::DAOutputForceCoupling::patches_
wordList patches_
list of patch names for the thermal var
Definition:
DAOutputForceCoupling.H:34
Generated by
1.8.17