DAHeatTransferFoam.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 DAHeatTransferFoam
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DAHeatTransferFoam_H
12 #define DAHeatTransferFoam_H
13 
14 #include "DASolver.H"
15 
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17 
18 namespace Foam
19 {
20 
21 /*---------------------------------------------------------------------------*\
22  Class DAHeatTransferFoam Declaration
23 \*---------------------------------------------------------------------------*/
24 
26  : public DASolver
27 {
28 
29 protected:
30 
32  autoPtr<volScalarField> TPtr_;
33 
35  autoPtr<volScalarField> fvSourcePtr_;
36 
38  autoPtr<dimensionedScalar> kPtr_;
39 
40 public:
41  TypeName("DAHeatTransferFoam");
42  // Constructors
43 
44  //- Construct from components
46  char* argsAll,
47  PyObject* pyOptions);
48 
49  //- Destructor
51  {
52  }
53 
55  virtual void initSolver();
56 
58  virtual label solvePrimal(
59  const Vec xvVec,
60  Vec wVec);
61 };
62 
63 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
64 
65 } // End namespace Foam
66 
67 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68 
69 #endif
70 
71 // ************************************************************************* //
Foam::DAHeatTransferFoam::fvSourcePtr_
autoPtr< volScalarField > fvSourcePtr_
heat source
Definition: DAHeatTransferFoam.H:35
Foam::DAHeatTransferFoam::solvePrimal
virtual label solvePrimal(const Vec xvVec, Vec wVec)
solve the primal equations
Definition: DAHeatTransferFoam.C:50
Foam::DAHeatTransferFoam::initSolver
virtual void initSolver()
initialize fields and variables
Definition: DAHeatTransferFoam.C:30
Foam::DASolver
Definition: DASolver.H:49
Foam::DAHeatTransferFoam::DAHeatTransferFoam
DAHeatTransferFoam(char *argsAll, PyObject *pyOptions)
Definition: DAHeatTransferFoam.C:19
Foam::DAHeatTransferFoam::TypeName
TypeName("DAHeatTransferFoam")
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::DAHeatTransferFoam::TPtr_
autoPtr< volScalarField > TPtr_
temperature field pointer
Definition: DAHeatTransferFoam.H:32
Foam::DAHeatTransferFoam::kPtr_
autoPtr< dimensionedScalar > kPtr_
h pointer
Definition: DAHeatTransferFoam.H:38
Foam::DAHeatTransferFoam
Definition: DAHeatTransferFoam.H:25
DASolver.H
Foam::DAHeatTransferFoam::~DAHeatTransferFoam
virtual ~DAHeatTransferFoam()
Definition: DAHeatTransferFoam.H:50