15 #include "libmesh/utility.h" 24 "diff",
"The diffusion (or thermal conductivity or viscosity) coefficient.");
27 params.
addClassDescription(
"Implements interior penalty method for array diffusion equations.");
33 _epsilon(getParam<
Real>(
"epsilon")),
34 _sigma(getParam<
Real>(
"sigma")),
46 "'diff' size is inconsistent with the number of components of array " 109 r -= RealEigenVector::Constant(
_count,
117 r -= RealEigenVector::Constant(
_count,
126 r += RealEigenVector::Constant(
const ArrayVariablePhiGradient & _grad_phi_neighbor
Gradient of side shape function.
registerMooseObject("MooseApp", ArrayDGDiffusion)
const std::vector< Eigen::Map< RealDIMValue > > & _array_normals
Normals in type of Eigen map.
const ArrayVariableGradient & _grad_u_neighbor
Holds the current solution gradient at the current quadrature point.
virtual RealEigenVector computeQpJacobian(Moose::DGJacobianType type) override
This is the virtual that derived classes should override for computing the Jacobian on neighboring el...
const Real & _current_side_volume
The volume (or length) of the current side.
const ArrayVariableValue & _u
Holds the current solution at the current quadrature point on the face.
const MaterialProperty< RealEigenVector > & _diff_neighbor
const ArrayVariableTestGradient & _grad_test_neighbor
Gradient of side shape function.
ArrayDGDiffusion(const InputParameters ¶meters)
auto max(const L &left, const R &right)
virtual void initQpResidual(Moose::DGResidualType type) override
Put necessary evaluations depending on qp but independent on test functions here. ...
static InputParameters validParams()
Factory constructor initializes all internal references needed for residual computation.
const ArrayVariableTestValue & _test
test functions
Array version of DGDiffusion.
const unsigned int _count
Number of components of the array variable.
const ArrayVariableTestGradient & _grad_test
Gradient of side shape function.
static InputParameters validParams()
const std::string & type() const
Get the type of this class.
const MooseArray< Point > & _normals
Normal vectors at the quadrature points.
The DGKernel class is responsible for calculating the residuals for various physics on internal sides...
virtual void computeQpResidual(Moose::DGResidualType type, RealEigenVector &residual) override
This is the virtual that derived classes should override for computing the residual on neighboring el...
libMesh::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 ArrayVariableGradient & _grad_u
Holds the current solution gradient at the current quadrature point on the face.
const ArrayVariablePhiValue & _phi_neighbor
Side shape function.
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealEigenVector
const ArrayVariableTestValue & _test_neighbor
Side test function.
const ArrayVariableValue & _u_neighbor
Holds the current solution at the current quadrature point.
const Real & _current_elem_volume
The volume (or length) of the current element.
ArrayMooseVariable & _var
Variable this kernel operates on.
const MaterialProperty< RealEigenVector > & _diff
const ArrayVariablePhiValue & _phi
Shape functions.
const ArrayVariablePhiGradient & _grad_phi
Gradient of shape function.
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