22 params.
addClassDescription(
"Represents the pressure gradient term in the Navier Stokes momentum " 23 "equations, added to the right hand side.");
25 "The pressure variable whose gradient should be used.");
26 MooseEnum momentum_component(
"x=0 y=1 z=2");
30 "The component of the momentum equation that this kernel applies to.");
36 _index(getParam<
MooseEnum>(
"momentum_component")),
37 _pressure_var(getPressureVariable(
NS::
pressure)),
38 _pressure_gradient(_pressure_var.sys().gradientContainer()),
39 _pressure_var_num(_pressure_var.number()),
40 _pressure_sys_num(_pressure_var.sys().number())
const ElemInfo * _current_elem_info
MooseLinearVariableFV< Real > & _pressure_var
Pointer to the linear finite volume pressure variable.
void paramError(const std::string ¶m, Args... args) const
const std::vector< std::unique_ptr< NumericVector< Number > > > & _pressure_gradient
The pressure variable.
static InputParameters validParams()
virtual const MooseVariableFieldBase & getVariable(const THREAD_ID tid, const std::string &var_name, Moose::VarKindType expected_var_type=Moose::VarKindType::VAR_ANY, Moose::VarFieldType expected_var_field_type=Moose::VarFieldType::VAR_FIELD_ANY) const override
virtual Real computeRightHandSideContribution() override
const unsigned int _index
Index x|y|z of the momentum equation component.
const std::vector< std::vector< dof_id_type > > & dofIndices() const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string pressure
LinearFVMomentumPressure(const InputParameters ¶ms)
Class constructor.
const unsigned int _pressure_var_num
Cache for the pressure variable number.
FEProblemBase & _fe_problem
const unsigned int _pressure_sys_num
Cache for the pressure system number.
registerMooseObject("NavierStokesApp", LinearFVMomentumPressure)
Kernel that adds the component of the pressure gradient in the momentum equations to the right hand s...
void computeCellGradients()
MooseLinearVariableFV< Real > & getPressureVariable(const std::string &vname)
Real _current_elem_volume
static InputParameters validParams()
virtual Real computeMatrixContribution() override