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