DATimeOpAverage.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 average value for the given valList
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DATimeOpAverage_H
12 #define DATimeOpAverage_H
13 
14 #include "DATimeOp.H"
15 #include "addToRunTimeSelectionTable.H"
16 #include "mixedFvPatchFields.H"
17 #include "DAGlobalVar.H"
18 
19 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
20 
21 namespace Foam
22 {
23 
24 /*---------------------------------------------------------------------------*\
25  Class DATimeOpAverage Declaration
26 \*---------------------------------------------------------------------------*/
27 
29  : public DATimeOp
30 {
31 
32 protected:
33 public:
34  TypeName("average");
35  // Constructors
36 
37  //- Construct from components
39  const word timeOpType,
40  const dictionary options);
41 
42  //- Destructor
43  virtual ~DATimeOpAverage()
44  {
45  }
46 
48  virtual scalar compute(
49  const scalarList& valList,
50  const label iStart,
51  const label iEnd);
52 
54  virtual scalar dFScaling(
55  const scalarList& valList,
56  const label iStart,
57  const label iEnd,
58  const label timeIdx);
59 };
60 
61 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
62 
63 } // End namespace Foam
64 
65 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
66 
67 #endif
68 
69 // ************************************************************************* //
Foam::DATimeOpAverage::TypeName
TypeName("average")
DAGlobalVar.H
Foam::DATimeOp
Definition: DATimeOp.H:27
Foam::DATimeOpAverage
Definition: DATimeOpAverage.H:28
Foam::DATimeOpAverage::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: DATimeOpAverage.C:42
Foam
Definition: checkGeometry.C:32
Foam::DATimeOpAverage::compute
virtual scalar compute(const scalarList &valList, const label iStart, const label iEnd)
compute the timeOp value based on valList
Definition: DATimeOpAverage.C:26
Foam::DATimeOpAverage::DATimeOpAverage
DATimeOpAverage(const word timeOpType, const dictionary options)
Definition: DATimeOpAverage.C:19
Foam::DATimeOpAverage::~DATimeOpAverage
virtual ~DATimeOpAverage()
Definition: DATimeOpAverage.H:43
DATimeOp.H