DAObjFuncPower.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
5 
6  Description:
7  Child class for moment
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DAObjFuncPower_H
12 #define DAObjFuncPower_H
13 
14 #include "DAObjFunc.H"
15 #include "addToRunTimeSelectionTable.H"
16 #include "IOMRFZoneListDF.H"
17 
18 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
19 
20 namespace Foam
21 {
22 
23 /*---------------------------------------------------------------------------*\
24  Class DAObjFuncPower Declaration
25 \*---------------------------------------------------------------------------*/
26 
28  : public DAObjFunc
29 {
30 
31 protected:
33  vector momentDir_;
34 
36  vector momentCenter_;
37 
40 
41 public:
42  TypeName("power");
43  // Constructors
44 
45  //- Construct from components
47  const fvMesh& mesh,
48  const DAOption& daOption,
49  const DAModel& daModel,
50  const DAIndex& daIndex,
51  const DAResidual& daResidual,
52  const word objFuncName,
53  const word objFuncPart,
54  const dictionary& objFuncDict);
55 
56  //- Destructor
57  virtual ~DAObjFuncPower()
58  {
59  }
60 
62  virtual void calcObjFunc(
63  const labelList& objFuncFaceSources,
64  const labelList& objFuncCellSources,
65  scalarList& objFuncFaceValues,
66  scalarList& objFuncCellValues,
67  scalar& objFuncValue);
68 };
69 
70 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
71 
72 } // End namespace Foam
73 
74 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
75 
76 #endif
77 
78 // ************************************************************************* //
Foam::DAObjFuncPower::TypeName
TypeName("power")
IOMRFZoneListDF.H
Foam::DAObjFuncPower::~DAObjFuncPower
virtual ~DAObjFuncPower()
Definition: DAObjFuncPower.H:57
Foam::DAOption
Definition: DAOption.H:29
Foam::DAObjFuncPower::momentCenter_
vector momentCenter_
the center of rotation for moment
Definition: DAObjFuncPower.H:36
daOption
DAOption daOption(mesh, pyOptions_)
Foam::DAObjFuncPower
Definition: DAObjFuncPower.H:27
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DAIndex
Definition: DAIndex.H:32
Foam::DAModel
Definition: DAModel.H:59
Foam::DAObjFuncPower::DAObjFuncPower
DAObjFuncPower(const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const DAResidual &daResidual, const word objFuncName, const word objFuncPart, const dictionary &objFuncDict)
Definition: DAObjFuncPower.C:19
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::DAObjFuncPower::momentDir_
vector momentDir_
the direction of the moment
Definition: DAObjFuncPower.H:33
Foam::DAObjFuncPower::calcObjFunc
virtual void calcObjFunc(const labelList &objFuncFaceSources, const labelList &objFuncCellSources, scalarList &objFuncFaceValues, scalarList &objFuncCellValues, scalar &objFuncValue)
calculate the value of objective function
Definition: DAObjFuncPower.C:96
Foam::DAResidual
Definition: DAResidual.H:35
Foam::DATurbulenceModel
Definition: DATurbulenceModel.H:61
daModel
DAModel daModel(mesh, daOption)
daIndex
DAIndex daIndex(mesh, daOption, daModel)
Foam::DAObjFuncPower::daTurb_
const DATurbulenceModel & daTurb_
DATurbulenceModel object.
Definition: DAObjFuncPower.H:39
DAObjFunc.H
Foam::DAObjFunc
Definition: DAObjFunc.H:33