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.");
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 RealVectorValue strongViscousTermLaplace()
virtual RealVectorValue dStrongViscDUCompTraction(unsigned comp)
virtual Real computeQpResidualViscousPart()=0
This class computes strong and weak components of the INS governing equations.
static InputParameters validParams()
virtual Real computeQpPGResidual()
RealVectorValue relativeVelocity() const
Compute the velocity.
virtual Real dTauDUComp(unsigned comp)
virtual Real computeQpResidual()
virtual Real computeQpJacobianViscousPart()=0
virtual Real computeQpOffDiagJacobianViscousPart(unsigned jvar)=0
virtual Real computeQpJacobian()
unsigned _w_vel_var_number
virtual RealVectorValue dStrongPressureDPressure()
const VariableTestValue & _test
virtual RealVectorValue timeDerivativeTerm()
virtual Real computeQpOffDiagJacobian(unsigned jvar)
virtual RealVectorValue convectiveTerm()
virtual Real computeQpPGJacobian(unsigned comp)
virtual RealVectorValue strongPressureTerm()
virtual Real dWeakPressureDPressure()
INSMomentumBase(const InputParameters ¶meters)
virtual RealVectorValue dConvecDUComp(unsigned comp)
unsigned _u_vel_var_number
virtual RealVectorValue dStrongViscDUCompLaplace(unsigned comp)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableTestGradient & _grad_test
virtual RealVectorValue gravityTerm()
virtual RealVectorValue strongViscousTermTraction()
void mooseError(Args &&... args) const
unsigned _v_vel_var_number
static InputParameters validParams()
virtual Real value(Real t, const Point &p) const
const VariablePhiValue & _phi
bool _integrate_p_by_parts
virtual Real weakPressureTerm()
const MooseArray< Point > & _q_point
virtual RealVectorValue dTimeDerivativeDUComp(unsigned comp)