Go to the documentation of this file.
24 params.addClassDescription(
25 "The inviscid flux (convective + pressure terms) for the momentum conservation equations.");
27 params.addRequiredParam<
unsigned int>(
29 "0,1,2 depending on if we are solving the x,y,z component of the momentum equation");
36 _component(getParam<unsigned int>(
"component"))
46 RealVectorValue vec(_u[_qp] *
_u_vel[_qp],
54 return -(vec * _grad_test[_i][_qp]);
85 const Real V2 = vel.norm_sq();
86 return vel(
_component) * (vel * _grad_test[_i][_qp]) -
87 0.5 * (gam - 1.0) * V2 * _grad_test[_i][_qp](
_component);
95 unsigned int m_local = m - 1;
98 const Real delta_kl = (
_component == m_local ? 1. : 0.);
100 return -1.0 * (vel(
_component) * _grad_test[_i][_qp](m_local) +
101 delta_kl * (vel * _grad_test[_i][_qp]) +
102 (1. - gam) * vel(m_local) * _grad_test[_i][_qp](
_component)) *
107 return -1.0 * (gam - 1.0) * _phi[_j][_qp] * _grad_test[_i][_qp](
_component);
110 mooseError(
"Shouldn't get here!");
bool isNSVariable(unsigned var)
Helper functions for mapping Moose variable numberings into the "canonical" numbering for the compres...
InputParameters validParams< NSKernel >()
registerMooseObject("NavierStokesApp", NSMomentumInviscidFlux)
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
The inviscid flux (convective + pressure terms) for the momentum conservation equations.
virtual Real gamma() const
virtual Real computeQpJacobian()
const VariableValue & _v_vel
const VariableValue & _u_vel
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
Real computeJacobianHelper(unsigned int m)
virtual Real computeQpResidual()
const VariableValue & _pressure
const VariableValue & _w_vel
const IdealGasFluidProperties & _fp
NSMomentumInviscidFlux(const InputParameters ¶meters)
InputParameters validParams< NSMomentumInviscidFlux >()
const unsigned int _component
unsigned mapVarNumber(unsigned var)
const std::string pressure