MAST
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
34
class
PrimitiveSolution
{
35
36
public
:
37
PrimitiveSolution
();
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
53
RealVectorX
primitive_sol
;
54
55
unsigned
int
dimension
;
56
57
Real
cp
;
58
59
Real
cv
;
60
61
Real
rho
;
62
63
Real
u1
;
64
65
Real
u2
;
66
67
Real
u3
;
68
69
Real
T
;
70
71
Real
p
;
72
73
Real
a
;
74
75
Real
e_tot
;
76
77
Real
k
;
78
79
Real
entropy
;
80
81
Real
mach
;
82
83
// viscous quantities
84
Real
Pr
;
85
86
Real
k_thermal
;
87
88
Real
mu
;
89
90
Real
lambda
;
91
};
92
93
}
94
95
#endif // __mast__primitive_fluid_solution_h__
MAST::PrimitiveSolution::primitive_sol
RealVectorX primitive_sol
Definition:
primitive_fluid_solution.h:53
MAST::PrimitiveSolution::k_thermal
Real k_thermal
Definition:
primitive_fluid_solution.h:86
MAST::PrimitiveSolution::p
Real p
Definition:
primitive_fluid_solution.h:71
MAST::PrimitiveSolution::zero
void zero()
Definition:
primitive_fluid_solution.cpp:35
MAST::PrimitiveSolution::u2
Real u2
Definition:
primitive_fluid_solution.h:65
MAST::PrimitiveSolution
Class defines the conversion and some basic operations on primitive fluid variables used in calculati...
Definition:
primitive_fluid_solution.h:34
MAST::PrimitiveSolution::mach
Real mach
Definition:
primitive_fluid_solution.h:81
MAST::PrimitiveSolution::lambda
Real lambda
Definition:
primitive_fluid_solution.h:90
Real
libMesh::Real Real
Definition:
mast_data_types.h:32
MAST::PrimitiveSolution::c_pressure
Real c_pressure(const Real p0, const Real q0) const
Definition:
primitive_fluid_solution.cpp:118
MAST::PrimitiveSolution::e_tot
Real e_tot
Definition:
primitive_fluid_solution.h:75
MAST::PrimitiveSolution::cp
Real cp
Definition:
primitive_fluid_solution.h:57
MAST::PrimitiveSolution::PrimitiveSolution
PrimitiveSolution()
Definition:
primitive_fluid_solution.cpp:28
MAST::PrimitiveSolution::entropy
Real entropy
Definition:
primitive_fluid_solution.h:79
MAST::PrimitiveSolution::u1
Real u1
Definition:
primitive_fluid_solution.h:63
MAST::PrimitiveSolution::rho
Real rho
Definition:
primitive_fluid_solution.h:61
mast_data_types.h
MAST::PrimitiveSolution::T
Real T
Definition:
primitive_fluid_solution.h:69
MAST::PrimitiveSolution::get_uvec
void get_uvec(RealVectorX &u) const
Definition:
primitive_fluid_solution.cpp:127
RealVectorX
Matrix< Real, Dynamic, 1 > RealVectorX
Definition:
mast_data_types.h:35
MAST::PrimitiveSolution::k
Real k
Definition:
primitive_fluid_solution.h:77
MAST::PrimitiveSolution::init
void init(const unsigned int dim, const RealVectorX &conservative_sol, const Real cp_val, const Real cv_val, bool if_viscous)
Definition:
primitive_fluid_solution.cpp:62
MAST::PrimitiveSolution::dimension
unsigned int dimension
Definition:
primitive_fluid_solution.h:55
MAST::PrimitiveSolution::Pr
Real Pr
Definition:
primitive_fluid_solution.h:84
MAST::PrimitiveSolution::u3
Real u3
Definition:
primitive_fluid_solution.h:67
MAST::PrimitiveSolution::cv
Real cv
Definition:
primitive_fluid_solution.h:59
MAST::PrimitiveSolution::a
Real a
Definition:
primitive_fluid_solution.h:73
MAST
Definition:
flutter_root_base.h:27
MAST::PrimitiveSolution::print
void print(std::ostream &out) const
Definition:
primitive_fluid_solution.cpp:144
MAST::PrimitiveSolution::mu
Real mu
Definition:
primitive_fluid_solution.h:88
src
fluid
primitive_fluid_solution.h
Generated by
1.8.11