Go to the documentation of this file.
21 params.addClassDescription(
22 "This class computes the inviscid flux with pressure gradient in the momentum equation.");
24 params.addRequiredParam<
unsigned int>(
"component",
"");
31 _component(getParam<unsigned int>(
"component")),
32 _pressure_derivs(*this)
51 RealVectorValue vec(_u[_qp] *
_u_vel[_qp],
74 -(vec * _grad_test[_i][_qp]) * _phi[_j][_qp]
76 + dFdp * _test[_i][_qp];
107 -(vec * _grad_test[_i][_qp]) * _phi[_j][_qp]
109 + dFdp * _test[_i][_qp];
120 unsigned int jlocal = 0;
129 -vel(
_component) * _grad_test[_i][_qp](jlocal) * _phi[_j][_qp]
131 + dFdp * _test[_i][_qp];
137 return dFdp * _test[_i][_qp];
153 Real hessian_sum = 0.0;
154 for (
unsigned int n = 0; n < 5; ++n)
159 hessian_sum * _phi[_j][_qp];
const VariableGradient & _grad_rho
bool isNSVariable(unsigned var)
Helper functions for mapping Moose variable numberings into the "canonical" numbering for the compres...
InputParameters validParams< NSKernel >()
std::vector< const VariableGradient * > _gradU
unsigned _rhou_var_number
NSPressureDerivs< NSMomentumInviscidFluxWithGradP > _pressure_derivs
const VariableGradient & _grad_p
virtual Real computeQpResidual()
Real get_grad(unsigned i)
The primary interfaces for computing pressure derivatives.
const unsigned int _component
unsigned _rhoE_var_number
virtual Real computeQpJacobian()
unsigned _rhow_var_number
unsigned _rhov_var_number
Real get_hess(unsigned i, unsigned j)
registerMooseObject("NavierStokesApp", NSMomentumInviscidFluxWithGradP)
const VariableValue & _v_vel
const VariableValue & _u_vel
const VariableGradient & _grad_rho_w
NSMomentumInviscidFluxWithGradP(const InputParameters ¶meters)
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
Real pressureQpJacobianHelper(unsigned var_number)
InputParameters validParams< NSMomentumInviscidFluxWithGradP >()
const VariableGradient & _grad_rho_E
const VariableValue & _w_vel
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
const VariableGradient & _grad_rho_u
const VariableGradient & _grad_rho_v
unsigned mapVarNumber(unsigned var)
const std::string pressure