20 params.
addRequiredParam<
unsigned int>(
"component",
"number of component (0 = x, 1 = y, 2 = z)");
22 "Implements the pressure gradient term for one of the Navier Stokes momentum equations.");
24 "integrate_p_by_parts",
true,
"Whether to integrate the pressure term by parts");
31 _integrate_p_by_parts(getParam<bool>(
"integrate_p_by_parts")),
32 _component(getParam<unsigned
int>(
"component")),
36 _coord_sys(_assembly.coordSystem()),
37 _rz_radial_coord(_mesh.getAxisymmetricRadialCoord())
const bool _integrate_p_by_parts
Whether to integrate the pressure term by parts.
static InputParameters validParams()
const unsigned int _rz_radial_coord
The radial coordinate index for RZ coordinate systems.
registerMooseObject("NavierStokesApp", PressureGradient)
PressureGradient(const InputParameters ¶meters)
const VariablePhiGradient & _grad_phi
const VariableValue & _pressure
The pressure value.
static InputParameters validParams()
const unsigned int _pressure_id
The number of the pressure variable.
virtual Real computeQpResidual() override
const VariableTestValue & _test
virtual Real computeQpJacobian() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Adds the pressure gradient term to the Navier-Stokes momentum equation.
const VariableTestGradient & _grad_test
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
static const std::string pressure
const VariablePhiValue & _phi
const VariableGradient & _grad_pressure
The pressure gradient.
void ErrorVector unsigned int
unsigned int _component
The velocity component this object is adding a residual for.
const MooseArray< Point > & _q_point
const Moose::CoordinateSystemType & _coord_sys
The coordinate system.