Go to the documentation of this file.
24 params.addClassDescription(
"This class computes the inviscid part of the energy flux.");
25 params.addRequiredCoupledVar(
NS::enthalpy,
"total enthalpy");
51 return -(vel * _grad_test[_i][_qp]);
64 return -gam * _phi[_j][_qp] * (vel * _grad_test[_i][_qp]);
73 Real V2 = vel.norm_sq();
80 return -((0.5 * (gam - 1) * V2 -
_enthalpy[_qp]) * _phi[_j][_qp] *
81 (vel * _grad_test[_i][_qp]));
95 vel *= (1.0 - gam) * vel(jlocal);
101 return -(vel * _grad_test[_i][_qp]) * _phi[_j][_qp];
106 std::ostringstream oss;
107 oss <<
"Invalid jvar=" << jvar <<
" requested!\n"
108 <<
"Did not match:\n"
113 mooseError(oss.str());
bool isNSVariable(unsigned var)
Helper functions for mapping Moose variable numberings into the "canonical" numbering for the compres...
InputParameters validParams< NSKernel >()
unsigned _rhou_var_number
registerMooseObject("NavierStokesApp", NSEnergyInviscidFlux)
virtual Real computeQpJacobian()
const VariableValue & _enthalpy
virtual Real gamma() const
unsigned _rhow_var_number
const VariableValue & _rho
unsigned _rhov_var_number
const VariableValue & _v_vel
NSEnergyInviscidFlux(const InputParameters ¶meters)
const VariableValue & _u_vel
const std::string enthalpy
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
InputParameters validParams< NSEnergyInviscidFlux >()
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
virtual Real computeQpResidual()
const VariableValue & _w_vel
const IdealGasFluidProperties & _fp