Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
15 #include "libmesh/utility.h"
28 params.
addParam<MaterialPropertyName>(
29 "diff", 1.,
"The diffusion (or thermal conductivity or viscosity) coefficient.");
35 _epsilon(getParam<Real>(
"epsilon")),
36 _sigma(getParam<Real>(
"sigma")),
37 _diff(getMaterialProperty<Real>(
"diff")),
38 _diff_neighbor(getNeighborMaterialProperty<Real>(
"diff"))
47 const unsigned int elem_b_order =
_var.
order();
80 const unsigned int elem_b_order =
_var.
order();
const VariableTestGradient & _grad_test_neighbor
Gradient of side shape function.
registerMooseObject("MooseApp", DGDiffusion)
static InputParameters validParams()
Factory constructor initializes all internal references needed for residual computation.
const std::string & type() const
Get the type of this object.
const MooseArray< Point > & _normals
Normal vectors at the quadrature points.
const VariablePhiGradient & _grad_phi_neighbor
Gradient of side shape function.
const VariableValue & _u
Holds the current solution at the current quadrature point on the face.
defineLegacyParams(DGDiffusion)
const Elem *& _current_side_elem
Current side element.
MooseVariable & _var
Variable this kernel operates on.
const VariableTestGradient & _grad_test
Gradient of side shape function.
const Elem *const & _current_elem
const VariableTestValue & _test_neighbor
Side test function.
Order order() const
Get the order of this variable Note: Order enum can be implicitly converted to unsigned int.
const VariablePhiValue & _phi_neighbor
Side shape function.
const MaterialProperty< Real > & _diff_neighbor
DGDiffusion(const InputParameters ¶meters)
const VariablePhiGradient & _grad_phi
Gradient of shape function.
virtual Real computeQpResidual(Moose::DGResidualType type) override
This is the virtual that derived classes should override for computing the residual on neighboring el...
const MaterialProperty< Real > & _diff
const VariableValue & _u_neighbor
Holds the current solution at the current quadrature point.
const VariablePhiValue & _phi
Shape functions.
const VariableGradient & _grad_u_neighbor
Holds the current solution gradient at the current quadrature point.
virtual Real computeQpJacobian(Moose::DGJacobianType type) override
This is the virtual that derived classes should override for computing the Jacobian on neighboring el...
const VariableGradient & _grad_u
Holds the current solution gradient at the current quadrature point on the face.
const VariableTestValue & _test
test functions
The DGKernel class is responsible for calculating the residuals for various physics on internal sides...
static InputParameters validParams()