15#include "libmesh/utility.h"
26 "The velocity component this object is being applied to");
27 params.
addParam<Real>(
"gamma", 1,
"The penalty to multiply the jump");
29 "stabilization for discontinuous Galerkin methods. Because this is "
30 "derived from DGKernel this class executes once per face.");
36 _vel_x(adCoupledValue(
"u")),
37 _vel_x_neighbor(adCoupledNeighborValue(
"u")),
38 _vel_y(adCoupledValue(
"v")),
39 _vel_y_neighbor(adCoupledNeighborValue(
"v")),
40 _comp(getParam<unsigned short>(
"component")),
41 _matrix_only(getParam<bool>(
"matrix_only")),
42 _gamma(getParam<Real>(
"gamma")),
46 mooseError(
"This class only supports 2D simulations at this time");
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", MassFluxPenalty)
const VariableTestValue & _test_neighbor
static InputParameters validParams()
const VariableTestValue & _test
const Elem *const & _current_side_elem
virtual void computeResidual() override
const MooseArray< Point > & _normals
This class introduces a jump correction for grad-div stabilization (see GradDiv) for discontinuous Ga...
const ADVariableValue & _vel_y_neighbor
virtual ADReal computeQpResidual(Moose::DGResidualType type) override
static InputParameters validParams()
void precalculateResidual() override
virtual void computeResidual() override
const Real _gamma
Stabilization magnitude parameter.
MassFluxPenalty(const InputParameters ¶meters)
const unsigned short _comp
const ADVariableValue & _vel_x
Real _hmax
Facet characteristic length for correct norm computations.
const bool _matrix_only
whether to avoid contributing to the residual
const ADVariableValue & _vel_y
const ADVariableValue & _vel_x_neighbor
const std::string & type() const
void mooseError(Args &&... args) const
virtual unsigned int dimension() const