69 const unsigned int n1 = dim+2;
70 cp = cp_val;
cv = cv_val;
74 rho = conservative_sol(0);
77 u1 = conservative_sol(1)/
rho;
83 u2 = conservative_sol(2)/
rho;
90 u3 = conservative_sol(3)/
rho;
109 mu = 1.458e-6 * pow(T, 1.5)/(T+110.4);
147 <<
"Primitive Solution:" << std::endl
149 << std::setw(15) <<
" rho: " <<
rho << std::endl
150 << std::setw(15) <<
" u1: " <<
u1 << std::endl
151 << std::setw(15) <<
" u2: " <<
u2 << std::endl
152 << std::setw(15) <<
" u3: " <<
u3 << std::endl
153 << std::setw(15) <<
" mach: " <<
mach << std::endl
154 << std::setw(15) <<
" a: " <<
a << std::endl
155 << std::setw(15) <<
" T: " <<
T << std::endl
156 << std::setw(15) <<
" p: " <<
p << std::endl
157 << std::setw(15) <<
" e_tot: " <<
e_tot << std::endl
158 << std::setw(15) <<
" k: " <<
k << std::endl
159 << std::setw(15) <<
" entropy: " <<
entropy << std::endl
160 << std::setw(15) <<
" Pr: " <<
Pr << std::endl
161 << std::setw(15) <<
" mu: " <<
mu << std::endl
162 << std::setw(15) <<
" lambda: " <<
lambda << std::endl
163 << std::setw(15) <<
" k_thermal: " <<
k_thermal << std::endl << std::endl;
RealVectorX primitive_sol
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