https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MassFluxPenalty.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "ADDGKernel.h"
13
20{
21public:
23
25
26 virtual void computeResidual() override;
27
28protected:
29 void precalculateResidual() override;
31
36 const unsigned short _comp;
38 const bool _matrix_only;
40 const Real _gamma;
42 Real _hmax;
43};
DualNumber< Real, DNDerivativeType, true > ADReal
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.
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 InputParameters & parameters() const
const std::string & type() const
VariableValueTempl< true > ADVariableValue
DGResidualType