DAResidualHeatTransferFoam.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 DAResidualHeatTransferFoam_H
12 #define DAResidualHeatTransferFoam_H
13 
14 #include "DAResidual.H"
15 #include "addToRunTimeSelectionTable.H"
16 
17 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
18 
19 namespace Foam
20 {
21 
22 /*---------------------------------------------------------------------------*\
23  Class DAResidualHeatTransferFoam Declaration
24 \*---------------------------------------------------------------------------*/
25 
27  : public DAResidual
28 {
29 
30 protected:
32 
33  volScalarField& T_;
34  volScalarField TRes_;
35  volScalarField& fvSource_;
37 
38  autoPtr<dimensionedScalar> kPtr_;
39 
40 public:
41  TypeName("DAHeatTransferFoam");
42  // Constructors
43 
44  //- Construct from components
46  const word modelType,
47  const fvMesh& mesh,
48  const DAOption& daOption,
49  const DAModel& daModel,
50  const DAIndex& daIndex);
51 
52  //- Destructor
54  {
55  }
56 
57  // Members
58 
60  virtual void clear();
61 
63  virtual void calcResiduals(const dictionary& options);
64 
66  virtual void updateIntermediateVariables();
67 
69  virtual void correctBoundaryConditions();
70 };
71 
72 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
73 
74 } // End namespace Foam
75 
76 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
77 
78 #endif
79 
80 // ************************************************************************* //
Foam::DAResidualHeatTransferFoam::correctBoundaryConditions
virtual void correctBoundaryConditions()
update the boundary condition for all the states in the selected solver
Definition: DAResidualHeatTransferFoam.C:92
Foam::DAResidualHeatTransferFoam::DAResidualHeatTransferFoam
DAResidualHeatTransferFoam(const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
Definition: DAResidualHeatTransferFoam.C:19
Foam::DAOption
Definition: DAOption.H:29
daOption
DAOption daOption(mesh, pyOptions_)
Foam::DAResidualHeatTransferFoam::~DAResidualHeatTransferFoam
virtual ~DAResidualHeatTransferFoam()
Definition: DAResidualHeatTransferFoam.H:53
DAResidual.H
Foam::DAResidualHeatTransferFoam::updateIntermediateVariables
virtual void updateIntermediateVariables()
update any intermediate variables that are dependent on state variables and are used in calcResiduals
Definition: DAResidualHeatTransferFoam.C:83
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DAResidualHeatTransferFoam::calcResiduals
virtual void calcResiduals(const dictionary &options)
compute residual
Definition: DAResidualHeatTransferFoam.C:59
Foam::DAIndex
Definition: DAIndex.H:32
Foam::DAModel
Definition: DAModel.H:59
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::DAResidual
Definition: DAResidual.H:35
Foam::DAResidualHeatTransferFoam
Definition: DAResidualHeatTransferFoam.H:26
Foam::DAResidualHeatTransferFoam::TRes_
volScalarField TRes_
Definition: DAResidualHeatTransferFoam.H:34
Foam::DAResidualHeatTransferFoam::clear
virtual void clear()
clear the members
Definition: DAResidualHeatTransferFoam.C:48
Foam::DAResidualHeatTransferFoam::fvSource_
volScalarField & fvSource_
Definition: DAResidualHeatTransferFoam.H:35
daModel
DAModel daModel(mesh, daOption)
daIndex
DAIndex daIndex(mesh, daOption, daModel)
Foam::DAResidualHeatTransferFoam::TypeName
TypeName("DAHeatTransferFoam")
Foam::DAResidualHeatTransferFoam::T_
volScalarField & T_
Definition: DAResidualHeatTransferFoam.H:33
Foam::DAResidualHeatTransferFoam::kPtr_
autoPtr< dimensionedScalar > kPtr_
Definition: DAResidualHeatTransferFoam.H:38