DAFoam
v4.0.2
Discrete Adjoint with OpenFOAM
dafoam
src
adjoint
DAInput
DAInputStateVar.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 state variable input
8
9
\*---------------------------------------------------------------------------*/
10
11
#ifndef DAInputStateVar_H
12
#define DAInputStateVar_H
13
14
#include "
DAInput.H
"
15
#include "addToRunTimeSelectionTable.H"
16
#include "mixedFvPatchFields.H"
17
18
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
19
20
namespace
Foam
21
{
22
23
/*---------------------------------------------------------------------------*\
24
Class DAInputStateVar Declaration
25
\*---------------------------------------------------------------------------*/
26
27
class
DAInputStateVar
28
:
public
DAInput
29
{
30
31
protected
:
32
public
:
33
TypeName
(
"stateVar"
);
34
// Constructors
35
36
//- Construct from components
37
DAInputStateVar
(
38
const
word inputName,
39
const
word inputType,
40
fvMesh&
mesh
,
41
const
DAOption
& daOption,
42
const
DAModel
& daModel,
43
const
DAIndex
& daIndex);
44
45
//- Destructor
46
virtual
~DAInputStateVar
()
47
{
48
}
49
50
virtual
void
run
(
const
scalarList& input);
51
52
virtual
label
size
()
53
{
54
return
daIndex_
.
nLocalAdjointStates
;
55
}
56
57
virtual
label
distributed
()
58
{
59
return
1;
60
}
61
};
62
63
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
64
65
}
// End namespace Foam
66
67
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68
69
#endif
70
71
// ************************************************************************* //
Foam::DAInputStateVar::TypeName
TypeName("stateVar")
Foam::DAInputStateVar::size
virtual label size()
Definition:
DAInputStateVar.H:52
Foam::DAInput::daIndex_
const DAIndex & daIndex_
DAIndex object.
Definition:
DAInput.H:57
Foam::DAOption
Definition:
DAOption.H:29
Foam::DAInputStateVar::distributed
virtual label distributed()
Definition:
DAInputStateVar.H:57
Foam::DAInputStateVar::run
virtual void run(const scalarList &input)
Definition:
DAInputStateVar.C:36
Foam::DAInputStateVar
Definition:
DAInputStateVar.H:27
mesh
fvMesh & mesh
Definition:
createRefsHeatTransfer.H:4
Foam::DAIndex
Definition:
DAIndex.H:32
DAInput.H
Foam::DAModel
Definition:
DAModel.H:57
Foam
Definition:
checkGeometry.C:32
Foam::DAInputStateVar::DAInputStateVar
DAInputStateVar(const word inputName, const word inputType, fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
Definition:
DAInputStateVar.C:19
Foam::DAInput
Definition:
DAInput.H:30
Foam::DAInputStateVar::~DAInputStateVar
virtual ~DAInputStateVar()
Definition:
DAInputStateVar.H:46
Foam::DAIndex::nLocalAdjointStates
label nLocalAdjointStates
number of local adjoint states (including all cells and faces)
Definition:
DAIndex.H:145
Generated by
1.8.17