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