DALaplacianFoam.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 DALaplacianFoam
8 
9  This class is modified from OpenFOAM's source code
10  applications/solvers/basic/laplacianFoam
11 
12  OpenFOAM: The Open Source CFD Toolbox
13 
14  Copyright (C): 2011-2016 OpenFOAM Foundation
15 
16  OpenFOAM License:
17 
18  OpenFOAM is free software: you can redistribute it and/or modify it
19  under the terms of the GNU General Public License as published by
20  the Free Software Foundation, either version 3 of the License, or
21  (at your option) any later version.
22 
23  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
24  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
25  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
26  for more details.
27 
28  You should have received a copy of the GNU General Public License
29  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
30 
31 \*---------------------------------------------------------------------------*/
32 
33 #ifndef DALaplacianFoam_H
34 #define DALaplacianFoam_H
35 
36 #include "DASolver.H"
37 
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 
40 namespace Foam
41 {
42 
43 /*---------------------------------------------------------------------------*\
44  Class DALaplacianFoam Declaration
45 \*---------------------------------------------------------------------------*/
46 
48  : public DASolver
49 {
50 
51 protected:
52 
54  autoPtr<volScalarField> TPtr_;
55 
57  autoPtr<dimensionedScalar> DTPtr_;
58 
60  word mode_ = "None";
61 
62 
63 public:
64  TypeName("DALaplacianFoam");
65  // Constructors
66 
67  //- Construct from components
69  char* argsAll,
70  PyObject* pyOptions);
71 
72  //- Destructor
73  virtual ~DALaplacianFoam()
74  {
75  }
76 
78  virtual void initSolver();
79 
81  virtual label solvePrimal(
82  const Vec xvVec,
83  Vec wVec);
84 };
85 
86 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
87 
88 } // End namespace Foam
89 
90 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
91 
92 #endif
93 
94 // ************************************************************************* //
Foam::DASolver
Definition: DASolver.H:49
Foam::DALaplacianFoam::solvePrimal
virtual label solvePrimal(const Vec xvVec, Vec wVec)
solve the primal equations
Definition: DALaplacianFoam.C:126
Foam::DALaplacianFoam::DALaplacianFoam
DALaplacianFoam(char *argsAll, PyObject *pyOptions)
Definition: DALaplacianFoam.C:41
Foam::DALaplacianFoam
Definition: DALaplacianFoam.H:47
Foam::DALaplacianFoam::~DALaplacianFoam
virtual ~DALaplacianFoam()
Definition: DALaplacianFoam.H:73
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::DALaplacianFoam::TPtr_
autoPtr< volScalarField > TPtr_
temperature field pointer
Definition: DALaplacianFoam.H:54
Foam::DALaplacianFoam::initSolver
virtual void initSolver()
initialize fields and variables
Definition: DALaplacianFoam.C:51
Foam::DALaplacianFoam::TypeName
TypeName("DALaplacianFoam")
DASolver.H
Foam::DALaplacianFoam::mode_
word mode_
unsteady mode
Definition: DALaplacianFoam.H:60
Foam::DALaplacianFoam::DTPtr_
autoPtr< dimensionedScalar > DTPtr_
DT pointer.
Definition: DALaplacianFoam.H:57