DAFoam
v4.0.2
Discrete Adjoint with OpenFOAM
dafoam
src
adjoint
DATimeOp
DATimeOpMaxKS.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 the max value for the given valList. The max value
8
is estimated using the K-S aggregation method
9
10
\*---------------------------------------------------------------------------*/
11
12
#ifndef DATimeOpMaxKS_H
13
#define DATimeOpMaxKS_H
14
15
#include "
DATimeOp.H
"
16
#include "addToRunTimeSelectionTable.H"
17
#include "mixedFvPatchFields.H"
18
#include "
DAGlobalVar.H
"
19
20
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
21
22
namespace
Foam
23
{
24
25
/*---------------------------------------------------------------------------*\
26
Class DATimeOpMaxKS Declaration
27
\*---------------------------------------------------------------------------*/
28
29
class
DATimeOpMaxKS
30
:
public
DATimeOp
31
{
32
33
protected
:
35
scalar
coeffKS_
;
36
37
public
:
38
TypeName
(
"maxKS"
);
39
// Constructors
40
41
//- Construct from components
42
DATimeOpMaxKS
(
43
const
word timeOpType,
44
const
dictionary options);
45
46
//- Destructor
47
virtual
~DATimeOpMaxKS
()
48
{
49
}
50
52
virtual
scalar
compute
(
53
const
scalarList& valList,
54
const
label iStart,
55
const
label iEnd);
56
58
virtual
scalar
dFScaling
(
59
const
scalarList& valList,
60
const
label iStart,
61
const
label iEnd,
62
const
label timeIdx);
63
};
64
65
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
66
67
}
// End namespace Foam
68
69
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
70
71
#endif
72
73
// ************************************************************************* //
Foam::DATimeOpMaxKS::DATimeOpMaxKS
DATimeOpMaxKS(const word timeOpType, const dictionary options)
Definition:
DATimeOpMaxKS.C:19
Foam::DATimeOpMaxKS::coeffKS_
scalar coeffKS_
the KS coefficient
Definition:
DATimeOpMaxKS.H:35
Foam::DATimeOpMaxKS
Definition:
DATimeOpMaxKS.H:29
Foam::DATimeOpMaxKS::TypeName
TypeName("maxKS")
DAGlobalVar.H
Foam::DATimeOp
Definition:
DATimeOp.H:27
Foam
Definition:
checkGeometry.C:32
Foam::DATimeOpMaxKS::compute
virtual scalar compute(const scalarList &valList, const label iStart, const label iEnd)
compute the timeOp value based on valList
Definition:
DATimeOpMaxKS.C:27
Foam::DATimeOpMaxKS::dFScaling
virtual scalar dFScaling(const scalarList &valList, const label iStart, const label iEnd, const label timeIdx)
compute the scaling factor for dF/d? calculation.
Definition:
DATimeOpMaxKS.C:49
DATimeOp.H
Foam::DATimeOpMaxKS::~DATimeOpMaxKS
virtual ~DATimeOpMaxKS()
Definition:
DATimeOpMaxKS.H:47
Generated by
1.8.17