13 namespace navierstokes {
14 namespace navierstokes2d {
28 const Real& nx = normal[
XX];
29 const Real& ny = normal[
YY];
35 Real tau_xx = p.
mu*(2.*p.
grad_u[
XX] - two_third_divergence_U);
36 Real tau_yy = p.
mu*(2.*p.
grad_v[
YY] - two_third_divergence_U);
43 flux[1] = tau_xx*nx + tau_xy*ny;
44 flux[2] = tau_xy*nx + tau_yy*ny;
45 flux[3] = (tau_xx*p.
U[
XX] + tau_xy*p.
U[
YY])*nx + (tau_xy*p.
U[
XX] + tau_yy*p.
U[
YY])*ny - heat_flux;
void compute_diffusive_wave_speed(const Data &p, const ColVector_NDIM &normal, Real &wave_speed)
Maximum absolute wave speed.
boost::proto::terminal< SFOp< NormalOp > >::type const normal
ColVector_NDIM grad_T
gradient of temperature
MatrixTypes< NDIM, NEQS >::RowVector_NEQS RowVector_NEQS
ColVector_NDIM grad_v
gradient of y velocity
MatrixTypes< NDIM, NEQS >::ColVector_NDIM ColVector_NDIM
void compute_diffusive_flux(const Data &p, const ColVector_NDIM &normal, RowVector_NEQS &flux, Real &wave_speed)
Diffusive flux in conservative form.
Real max(const Real a, const Real b)
Maximum between two scalars.
ColVector_NDIM grad_u
gradient of x velocity
Top-level namespace for coolfluid.
Real kappa
Thermal conductivity.