MAST
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__primitive_fluid_solution_h__
21 #define __mast__primitive_fluid_solution_h__
22 
23 // MAST include
24 #include "base/mast_data_types.h"
25 
26 
27 namespace MAST {
28 
29 
35 
36  public:
38 
39  void zero();
40 
41  void init(const unsigned int dim,
42  const RealVectorX& conservative_sol,
43  const Real cp_val,
44  const Real cv_val,
45  bool if_viscous);
46 
47  void print(std::ostream& out) const;
48 
49  Real c_pressure(const Real p0, const Real q0) const;
50 
51  void get_uvec(RealVectorX& u) const;
52 
54 
55  unsigned int dimension;
56 
58 
60 
62 
64 
66 
68 
70 
72 
74 
76 
78 
80 
82 
83  // viscous quantities
85 
87 
89 
91  };
92 
93 }
94 
95 #endif // __mast__primitive_fluid_solution_h__
Class defines the conversion and some basic operations on primitive fluid variables used in calculati...
libMesh::Real Real
Real c_pressure(const Real p0, const Real q0) const
void get_uvec(RealVectorX &u) const
Matrix< Real, Dynamic, 1 > RealVectorX
void init(const unsigned int dim, const RealVectorX &conservative_sol, const Real cp_val, const Real cv_val, bool if_viscous)
void print(std::ostream &out) const