DAPartDerivdRdACTL.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 dRdACTL
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DAPartDerivdRdACTL_H
12 #define DAPartDerivdRdACTL_H
13 
14 #include "DAPartDeriv.H"
15 #include "addToRunTimeSelectionTable.H"
16 
17 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
18 
19 namespace Foam
20 {
21 
22 /*---------------------------------------------------------------------------*\
23  Class DAPartDerivdRdACTL Declaration
24 \*---------------------------------------------------------------------------*/
25 
27  : public DAPartDeriv
28 {
29 
30 protected:
31 
33  label nActDVs_ = 11;
34 
35 public:
36  TypeName("dRdACTL");
37  // Constructors
38 
39  //- Construct from components
41  const word modelType,
42  const fvMesh& mesh,
43  const DAOption& daOption,
44  const DAModel& daModel,
45  const DAIndex& daIndex,
46  const DAJacCon& daJacCon,
47  const DAResidual& daResidual);
48 
49  //- Destructor
51  {
52  }
53 
54  // Member functions
55 
57  virtual void initializePartDerivMat(
58  const dictionary& options,
59  Mat jacMat);
60 
62  virtual void calcPartDerivMat(
63  const dictionary& options,
64  const Vec xvVec,
65  const Vec wVec,
66  Mat jacMat);
67 };
68 
69 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
70 
71 } // End namespace Foam
72 
73 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74 
75 #endif
76 
77 // ************************************************************************* //
Foam::DAPartDerivdRdACTL::calcPartDerivMat
virtual void calcPartDerivMat(const dictionary &options, const Vec xvVec, const Vec wVec, Mat jacMat)
compute the partial derivative matrix
Definition: DAPartDerivdRdACTL.C:69
Foam::DAJacCon
Definition: DAJacCon.H:34
Foam::DAPartDerivdRdACTL::initializePartDerivMat
virtual void initializePartDerivMat(const dictionary &options, Mat jacMat)
initialize partial derivative matrix
Definition: DAPartDerivdRdACTL.C:40
Foam::DAOption
Definition: DAOption.H:29
daOption
DAOption daOption(mesh, pyOptions_)
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DAPartDerivdRdACTL
Definition: DAPartDerivdRdACTL.H:26
Foam::DAPartDerivdRdACTL::~DAPartDerivdRdACTL
virtual ~DAPartDerivdRdACTL()
Definition: DAPartDerivdRdACTL.H:50
Foam::DAIndex
Definition: DAIndex.H:32
Foam::DAModel
Definition: DAModel.H:59
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::DAResidual
Definition: DAResidual.H:35
Foam::DAPartDerivdRdACTL::nActDVs_
label nActDVs_
number of design variables for actuator points
Definition: DAPartDerivdRdACTL.H:33
DAPartDeriv.H
daModel
DAModel daModel(mesh, daOption)
Foam::DAPartDeriv
Definition: DAPartDeriv.H:36
Foam::DAPartDerivdRdACTL::TypeName
TypeName("dRdACTL")
daIndex
DAIndex daIndex(mesh, daOption, daModel)
Foam::DAPartDerivdRdACTL::DAPartDerivdRdACTL
DAPartDerivdRdACTL(const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const DAJacCon &daJacCon, const DAResidual &daResidual)
Definition: DAPartDerivdRdACTL.C:19