22 "The velocity component this object is being applied to");
23 params.
addParam<
Real>(
"gamma", 1,
"The penalty to multiply the jump with");
24 params.
addClassDescription(
"Adds the exterior boundary contribution of penalized jumps in the " 25 "velocity variable in one component of the momentum equations.");
27 "The velocity Dirichlet value on the boundary");
33 _vel_x(adCoupledValue(
"u")),
34 _vel_y(adCoupledValue(
"v")),
35 _comp(getParam<unsigned short>(
"component")),
36 _matrix_only(getParam<bool>(
"matrix_only")),
37 _gamma(getParam<
Real>(
"gamma")),
38 _dirichlet_func(isParamValid(
"dirichlet_value") ? &getFunction(
"dirichlet_value") : nullptr)
41 mooseError(
"This class only supports 2D simulations at this time");
void computeResidual() override
const Function *const _dirichlet_func
DualNumber< Real, DNDerivativeType, true > ADReal
static InputParameters validParams()
MassFluxPenaltyBC(const InputParameters ¶meters)
const MooseArray< Point > & _q_point
static InputParameters validParams()
const bool _matrix_only
whether to avoid contributing to the residual
virtual unsigned int dimension() const
registerMooseObject("NavierStokesApp", MassFluxPenaltyBC)
const Real _gamma
Stabilization magnitude parameter.
virtual void computeResidual() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const ADTemplateVariableTestValue< T > & _test
const ADVariableValue & _vel_x
const unsigned short _comp
virtual RealVectorValue vectorValue(Real t, const Point &p) const
void mooseError(Args &&... args) const
const ADVariableValue & _vel_y
virtual ADReal computeQpResidual() override
const MooseArray< ADPoint > & _normals