MAST
small_disturbance_primitive_fluid_solution.h
Go to the documentation of this file.
1 /*
2  * MAST: Multidisciplinary-design Adaptation and Sensitivity Toolkit
3  * Copyright (C) 2013-2019 Manav Bhatia
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef __mast__small_disturbance_primitive_fluid_solution_h__
21 #define __mast__small_disturbance_primitive_fluid_solution_h__
22 
23 
24 // MAST includes
25 #include "base/mast_data_types.h"
26 
27 
28 namespace MAST {
29 
30  // Forward declerations
31  class PrimitiveSolution;
32 
37  template <typename ValType>
38  class SmallPerturbationPrimitiveSolution
39  {
40  public:
42 
43  void zero();
44 
45 
46  void init(const MAST::PrimitiveSolution& sol,
47  const typename VectorType<ValType>::return_type& delta_sol,
48  bool if_viscous);
49 
50 
51  void print(std::ostream& out) const;
52 
53 
54  ValType c_pressure(const Real q0) const;
55 
56 
57  void get_duvec(typename VectorType<ValType>::return_type& du) const;
58 
59 
61 
62 
63  ValType drho;
64 
65  ValType du1;
66 
67  ValType du2;
68 
69  ValType du3;
70 
71  ValType dT;
72 
73  ValType dp;
74 
75  ValType da;
76 
77  ValType de_tot;
78 
79  ValType dk;
80 
81  ValType dentropy;
82 
83  ValType dmach;
84 
85  ValType dk_thermal;
86 
87  ValType dmu;
88 
89  ValType dlambda;
90 
92  };
93 
94 
95 }
96 
97 
98 #endif // __mast__small_disturbance_primitive_fluid_solution_h__
Class defines the conversion and some basic operations on primitive fluid variables used in calculati...
void init(const MAST::PrimitiveSolution &sol, const typename VectorType< ValType >::return_type &delta_sol, bool if_viscous)
libMesh::Real Real
void get_duvec(typename VectorType< ValType >::return_type &du) const