DAHeatTransferFoam.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v4
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 #include "DAFvSource.H"
16 
17 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
18 
19 namespace Foam
20 {
21 
22 /*---------------------------------------------------------------------------*\
23  Class DAHeatTransferFoam Declaration
24 \*---------------------------------------------------------------------------*/
25 
27  : public DASolver
28 {
29 
30 protected:
32  autoPtr<volScalarField> TPtr_;
33 
35  autoPtr<volScalarField> fvSourcePtr_;
36 
38  autoPtr<dimensionedScalar> kPtr_;
39 
41  autoPtr<DAFvSource> daFvSourcePtr_;
42 
44  label hasFvSource_ = 0;
45 
46 public:
47  TypeName("DAHeatTransferFoam");
48  // Constructors
49 
50  //- Construct from components
52  char* argsAll,
53  PyObject* pyOptions);
54 
55  //- Destructor
57  {
58  }
59 
61  virtual void initSolver();
62 
64  virtual label solvePrimal();
65 };
66 
67 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68 
69 } // End namespace Foam
70 
71 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
72 
73 #endif
74 
75 // ************************************************************************* //
Foam::DAHeatTransferFoam::fvSourcePtr_
autoPtr< volScalarField > fvSourcePtr_
heat source
Definition: DAHeatTransferFoam.H:35
Foam::DAHeatTransferFoam::initSolver
virtual void initSolver()
initialize fields and variables
Definition: DAHeatTransferFoam.C:31
Foam::DASolver
Definition: DASolver.H:54
Foam::DAHeatTransferFoam::daFvSourcePtr_
autoPtr< DAFvSource > daFvSourcePtr_
DASource pointer.
Definition: DAHeatTransferFoam.H:41
DAFvSource.H
Foam::DAHeatTransferFoam::DAHeatTransferFoam
DAHeatTransferFoam(char *argsAll, PyObject *pyOptions)
Definition: DAHeatTransferFoam.C:19
Foam::DAHeatTransferFoam::TypeName
TypeName("DAHeatTransferFoam")
Foam
Definition: checkGeometry.C:32
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::hasFvSource_
label hasFvSource_
whether to have fvSource term
Definition: DAHeatTransferFoam.H:44
Foam::DAHeatTransferFoam
Definition: DAHeatTransferFoam.H:26
Foam::DAHeatTransferFoam::solvePrimal
virtual label solvePrimal()
solve the primal equations
Definition: DAHeatTransferFoam.C:57
DASolver.H
Foam::DAHeatTransferFoam::~DAHeatTransferFoam
virtual ~DAHeatTransferFoam()
Definition: DAHeatTransferFoam.H:56