18 params.
addParam<MaterialPropertyName>(
"D",
"D",
"The diffusion coefficient.");
19 params.
addParam<MaterialPropertyName>(
20 "D_neighbor",
"D_neighbor",
"The neighboring diffusion coefficient.");
22 "The kernel is utilized to establish flux equivalence on an interface for variables.");
28 _D(getMaterialProperty<Real>(
"D")),
29 _D_neighbor(getNeighborMaterialProperty<Real>(
"D_neighbor"))
registerMooseObject("MooseApp", InterfaceDiffusion)
DG kernel for interfacing diffusion between two variables on adjacent blocks.
static InputParameters validParams()
virtual Real computeQpResidual(Moose::DGResidualType type) override
Compute residuals at quadrature points.
const MaterialProperty< Real > & _D_neighbor
const MaterialProperty< Real > & _D
InterfaceDiffusion(const InputParameters ¶meters)
virtual Real computeQpJacobian(Moose::DGJacobianType type) override
Compute jacobians at quadrature points.
unsigned int _qp
Current quadrature point.
unsigned int _i
Index for test and trial functions.
InterfaceKernel and VectorInterfaceKernel is responsible for interfacing physics across subdomains.
const TemplateVariablePhiGradient & _grad_phi_neighbor
Gradient of side neighbor shape function.
const TemplateVariableGradient & _grad_u
Holds the current solution gradient at the current quadrature point on the face.
const TemplateVariablePhiGradient & _grad_phi
Shape function gradient.
const TemplateVariableGradient & _grad_neighbor_value
Coupled neighbor variable gradient.
static InputParameters validParams()
const TemplateVariableTestValue & _test_neighbor
Side neighbor test function.
const MooseArray< Point > & _normals
Normal vectors at the quadrature points.
const TemplateVariableTestValue & _test
Side shape function.
const std::string & type() const
Get the type of this class.