DAFoam
v3.0.6
Discrete Adjoint with OpenFOAM
dafoam
src
adjoint
DASolver
DAPimpleDyMFoam
DAPimpleDyMFoam.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 DAPimpleDyMFoam
8
9
This class is modified from OpenFOAM's source code
10
applications/solvers/incompressible/pimpleFoam
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 DAPimpleDyMFoam_H
34
#define DAPimpleDyMFoam_H
35
36
#include "
DASolver.H
"
37
#include "addToRunTimeSelectionTable.H"
38
#include "singlePhaseTransportModel.H"
39
#include "turbulentTransportModel.H"
40
#include "
pimpleControlDF.H
"
41
#include "
DARegDbSinglePhaseTransportModel.H
"
42
#include "
DARegDbTurbulenceModelIncompressible.H
"
43
#include "
DAMotion.H
"
44
#include "pimpleControl.H"
45
#include "dynamicFvMesh.H"
46
#include "CorrectPhi.H"
47
48
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49
50
namespace
Foam
51
{
52
53
/*---------------------------------------------------------------------------*\
54
Class DAPimpleDyMFoam Declaration
55
\*---------------------------------------------------------------------------*/
56
57
class
DAPimpleDyMFoam
58
:
public
DASolver
59
{
60
61
protected
:
62
64
autoPtr<DAMotion>
daMotionPtr_
;
65
66
public
:
67
TypeName
(
"DAPimpleDyMFoam"
);
68
// Constructors
69
70
//- Construct from components
71
DAPimpleDyMFoam
(
72
char
* argsAll,
73
PyObject* pyOptions);
74
75
//- Destructor
76
virtual
~DAPimpleDyMFoam
()
77
{
78
}
79
81
virtual
void
initSolver
();
82
84
virtual
label
solvePrimal
(
85
const
Vec xvVec,
86
Vec wVec);
87
};
88
89
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
90
91
}
// End namespace Foam
92
93
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94
95
#endif
96
97
// ************************************************************************* //
DARegDbTurbulenceModelIncompressible.H
Foam::DAPimpleDyMFoam::TypeName
TypeName("DAPimpleDyMFoam")
Foam::DAPimpleDyMFoam::solvePrimal
virtual label solvePrimal(const Vec xvVec, Vec wVec)
solve the primal equations
Definition:
DAPimpleDyMFoam.C:59
Foam::DASolver
Definition:
DASolver.H:49
DAMotion.H
Foam::DAPimpleDyMFoam::daMotionPtr_
autoPtr< DAMotion > daMotionPtr_
rigid body motion pointer
Definition:
DAPimpleDyMFoam.H:64
Foam::DAPimpleDyMFoam::initSolver
virtual void initSolver()
initialize fields and variables
Definition:
DAPimpleDyMFoam.C:50
pimpleControlDF.H
Foam
Definition:
multiFreqScalarFvPatchField.C:144
Foam::DAPimpleDyMFoam::DAPimpleDyMFoam
DAPimpleDyMFoam(char *argsAll, PyObject *pyOptions)
Definition:
DAPimpleDyMFoam.C:41
Foam::DAPimpleDyMFoam::~DAPimpleDyMFoam
virtual ~DAPimpleDyMFoam()
Definition:
DAPimpleDyMFoam.H:76
DASolver.H
DARegDbSinglePhaseTransportModel.H
Foam::DAPimpleDyMFoam
Definition:
DAPimpleDyMFoam.H:57
Generated by
1.8.17