13 #include "libmesh/utility.h" 21 params.
addClassDescription(
"Computes residual contribution for the diffusion operator using " 22 "discontinous Galerkin method.");
26 params.
addParam<MaterialPropertyName>(
27 "diff", 1.,
"The diffusion (or thermal conductivity or viscosity) coefficient.");
33 _epsilon(getParam<
Real>(
"epsilon")),
34 _sigma(getParam<
Real>(
"sigma")),
35 _diff(getMaterialProperty<
Real>(
"diff")),
36 _diff_neighbor(getNeighborMaterialProperty<
Real>(
"diff"))
const VariablePhiGradient & _grad_phi_neighbor
Gradient of side shape function.
const VariableTestGradient & _grad_test
Gradient of side shape function.
const Real & _current_side_volume
The volume (or length) of the current side.
const VariableValue & _u_neighbor
Holds the current solution at the current quadrature point.
const VariablePhiValue & _phi_neighbor
Side shape function.
const VariableTestGradient & _grad_test_neighbor
Gradient of side shape function.
const VariablePhiGradient & _grad_phi
Gradient of shape function.
auto max(const L &left, const R &right)
MooseVariable & _var
Variable this kernel operates on.
static InputParameters validParams()
Factory constructor initializes all internal references needed for residual computation.
const VariableTestValue & _test_neighbor
Side test function.
const VariableGradient & _grad_u_neighbor
Holds the current solution gradient at the current quadrature point.
The DGKernel class is responsible for calculating the residuals for various physics on internal sides...
const std::string & type() const
Get the type of this class.
const MooseArray< Point > & _normals
Normal vectors at the quadrature points.
const MaterialProperty< Real > & _diff_neighbor
virtual Real computeQpResidual(Moose::DGResidualType type) override
This is the virtual that derived classes should override for computing the residual on neighboring el...
const VariableTestValue & _test
test functions
Order order() const
Get the order of this variable Note: Order enum can be implicitly converted to unsigned int...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableGradient & _grad_u
Holds the current solution gradient at the current quadrature point on the face.
DGDiffusion(const InputParameters ¶meters)
registerMooseObject("MooseApp", DGDiffusion)
const VariablePhiValue & _phi
Shape functions.
const VariableValue & _u
Holds the current solution at the current quadrature point on the face.
virtual Real computeQpJacobian(Moose::DGJacobianType type) override
This is the virtual that derived classes should override for computing the Jacobian on neighboring el...
const MaterialProperty< Real > & _diff
static InputParameters validParams()
const Real & _current_elem_volume
The volume (or length) of the current element.
CTSub CT_OPERATOR_BINARY CTMul CTCompareLess CTCompareGreater CTCompareEqual _arg template pow< 2 >(tan(_arg))+1.0) *_arg.template D< dtag >()) CT_SIMPLE_UNARY_FUNCTION(sqrt