DAResidualDummy.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 dummy residual. This child class will do nothing.
8  It is useful for initializing other classes
9 
10 \*---------------------------------------------------------------------------*/
11 
12 #ifndef DAResidualDummy_H
13 #define DAResidualDummy_H
14 
15 #include "DAResidual.H"
16 #include "addToRunTimeSelectionTable.H"
17 
18 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
19 
20 namespace Foam
21 {
22 
23 /*---------------------------------------------------------------------------*\
24  Class DAResidualDummy Declaration
25 \*---------------------------------------------------------------------------*/
26 
28  : public DAResidual
29 {
30 
31 protected:
32 
33 public:
34  TypeName("dummy");
35  // Constructors
36 
37  //- Construct from components
39  const word modelType,
40  const fvMesh& mesh,
41  const DAOption& daOption,
42  const DAModel& daModel,
43  const DAIndex& daIndex);
44 
45  //- Destructor
46  virtual ~DAResidualDummy()
47  {
48  }
49 
50  // Members
51 
53  virtual void clear();
54 
56  virtual void calcResiduals(const dictionary& options);
57 
59  virtual void updateIntermediateVariables();
60 
62  virtual void correctBoundaryConditions();
63 };
64 
65 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
66 
67 } // End namespace Foam
68 
69 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
70 
71 #endif
72 
73 // ************************************************************************* //
Foam::DAResidualDummy::TypeName
TypeName("dummy")
Foam::DAResidualDummy::calcResiduals
virtual void calcResiduals(const dictionary &options)
compute residual
Definition: DAResidualDummy.C:35
Foam::DAOption
Definition: DAOption.H:29
daOption
DAOption daOption(mesh, pyOptions_)
Foam::DAResidualDummy::correctBoundaryConditions
virtual void correctBoundaryConditions()
update the boundary condition for all the states in the selected solver
Definition: DAResidualDummy.C:44
DAResidual.H
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DAIndex
Definition: DAIndex.H:32
Foam::DAResidualDummy
Definition: DAResidualDummy.H:27
Foam::DAResidualDummy::clear
virtual void clear()
clear the members
Definition: DAResidualDummy.C:31
Foam::DAModel
Definition: DAModel.H:59
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::DAResidualDummy::updateIntermediateVariables
virtual void updateIntermediateVariables()
update any intermediate variables that are dependent on state variables and are used in calcResiduals
Definition: DAResidualDummy.C:39
Foam::DAResidual
Definition: DAResidual.H:35
Foam::DAResidualDummy::DAResidualDummy
DAResidualDummy(const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
Definition: DAResidualDummy.C:19
Foam::DAResidualDummy::~DAResidualDummy
virtual ~DAResidualDummy()
Definition: DAResidualDummy.H:46
daModel
DAModel daModel(mesh, daOption)
daIndex
DAIndex daIndex(mesh, daOption, daModel)