DAPartDerivdRdACTD.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 dRdACTD
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DAPartDerivdRdACTD_H
12 #define DAPartDerivdRdACTD_H
13 
14 #include "DAPartDeriv.H"
15 #include "addToRunTimeSelectionTable.H"
16 
17 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
18 
19 namespace Foam
20 {
21 
22 /*---------------------------------------------------------------------------*\
23  Class DAPartDerivdRdACTD Declaration
24 \*---------------------------------------------------------------------------*/
25 
27  : public DAPartDeriv
28 {
29 
30 protected:
31 
33  label nActDVs_ = 10;
34 
35 public:
36  TypeName("dRdACTD");
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::DAPartDerivdRdACTD::DAPartDerivdRdACTD
DAPartDerivdRdACTD(const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const DAJacCon &daJacCon, const DAResidual &daResidual)
Definition: DAPartDerivdRdACTD.C:19
Foam::DAPartDerivdRdACTD::initializePartDerivMat
virtual void initializePartDerivMat(const dictionary &options, Mat jacMat)
initialize partial derivative matrix
Definition: DAPartDerivdRdACTD.C:40
Foam::DAJacCon
Definition: DAJacCon.H:34
Foam::DAPartDerivdRdACTD::calcPartDerivMat
virtual void calcPartDerivMat(const dictionary &options, const Vec xvVec, const Vec wVec, Mat jacMat)
compute the partial derivative matrix
Definition: DAPartDerivdRdACTD.C:69
Foam::DAOption
Definition: DAOption.H:29
daOption
DAOption daOption(mesh, pyOptions_)
Foam::DAPartDerivdRdACTD::nActDVs_
label nActDVs_
number of design variables for actuator disk
Definition: DAPartDerivdRdACTD.H:33
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DAIndex
Definition: DAIndex.H:32
Foam::DAModel
Definition: DAModel.H:59
Foam::DAPartDerivdRdACTD::TypeName
TypeName("dRdACTD")
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::DAPartDerivdRdACTD
Definition: DAPartDerivdRdACTD.H:26
Foam::DAResidual
Definition: DAResidual.H:35
DAPartDeriv.H
Foam::DAPartDerivdRdACTD::~DAPartDerivdRdACTD
virtual ~DAPartDerivdRdACTD()
Definition: DAPartDerivdRdACTD.H:50
daModel
DAModel daModel(mesh, daOption)
Foam::DAPartDeriv
Definition: DAPartDeriv.H:36
daIndex
DAIndex daIndex(mesh, daOption, daModel)