18 params.
addRequiredParam<
unsigned>(
"component",
"The velocity component that this is applied to.");
20 "integrate_p_by_parts",
true,
"Whether to integrate the pressure term by parts.");
22 "supg",
false,
"Whether to perform SUPG stabilization of the momentum residuals");
23 params.
addParam<FunctionName>(
"forcing_func", 0,
"The mms forcing function.");
29 _component(getParam<unsigned>(
"component")),
30 _integrate_p_by_parts(getParam<bool>(
"integrate_p_by_parts")),
31 _supg(getParam<bool>(
"supg")),
32 _ffn(getFunction(
"forcing_func"))
35 mooseError(
"It doesn't make sense to conduct SUPG stabilization without a convective term.");
111 RealVectorValue d_U_d_U_comp(0, 0, 0);
116 const Real viscous_term =
121 const Real d_transient_term_d_u_comp =
131 (d_convective_term_d_u_comp + d_viscous_term_d_u_comp + d_transient_term_d_u_comp);
143 jac += convective_term + viscous_term;
155 jac += convective_term + viscous_term;
167 jac += convective_term + viscous_term;
virtual Real value(Real t, const Point &p) const
This class computes strong and weak components of the INS governing equations.
virtual RealVectorValue gravityTerm()
virtual Real dWeakPressureDPressure()
virtual RealVectorValue dStrongPressureDPressure()
virtual RealVectorValue dTimeDerivativeDUComp(unsigned comp)
virtual RealVectorValue timeDerivativeTerm()
virtual RealVectorValue strongPressureTerm()
unsigned _w_vel_var_number
static InputParameters validParams()
virtual RealVectorValue dStrongViscDUCompLaplace(unsigned comp)
virtual RealVectorValue strongViscousTermTraction()
virtual RealVectorValue dStrongViscDUCompTraction(unsigned comp)
virtual Real dTauDUComp(unsigned comp)
virtual Real weakPressureTerm()
virtual RealVectorValue dConvecDUComp(unsigned comp)
unsigned _v_vel_var_number
virtual RealVectorValue convectiveTerm()
virtual RealVectorValue strongViscousTermLaplace()
unsigned _u_vel_var_number
RealVectorValue relativeVelocity() const
Compute the velocity.
virtual Real computeQpOffDiagJacobianViscousPart(unsigned jvar)=0
virtual Real computeQpPGResidual()
virtual Real computeQpJacobian()
static InputParameters validParams()
INSMomentumBase(const InputParameters ¶meters)
virtual Real computeQpResidual()
virtual Real computeQpPGJacobian(unsigned comp)
virtual Real computeQpResidualViscousPart()=0
bool _integrate_p_by_parts
virtual Real computeQpJacobianViscousPart()=0
virtual Real computeQpOffDiagJacobian(unsigned jvar)
const MooseArray< Point > & _q_point
const VariablePhiValue & _phi
const VariableTestValue & _test
const VariableTestGradient & _grad_test
void mooseError(Args &&... args) const