16 #include "libmesh/numeric_vector.h" 17 #include "libmesh/utility.h" 29 "Diffusion Dirichlet boundary condition for discontinuous Galerkin method.");
30 params.
addParam<
Real>(
"value", 0.0,
"The value the variable should have on the boundary");
34 params.
addParam<MaterialPropertyName>(
35 "diff", 1,
"The diffusion (or thermal conductivity or viscosity) coefficient.");
42 _func(getFunction(
"function")),
43 _epsilon(getParam<
Real>(
"epsilon")),
44 _sigma(getParam<
Real>(
"sigma")),
45 _diff(getMaterialProperty<
Real>(
"diff"))
const VariableTestValue & _test
test function values (in QPs)
virtual Real computeQpResidual() override
Method for computing the residual at quadrature points.
const MooseArray< Point > & _normals
normals at quadrature points
DGFunctionDiffusionDirichletBC(const InputParameters ¶meters)
virtual Real computeQpJacobian() override
Method for computing the diagonal Jacobian at quadrature points.
const VariableGradient & _grad_u
the gradient of the unknown variable this BC is acting on
static InputParameters validParams()
unsigned int _i
i-th, j-th index for enumerating test and shape functions
Implements a simple BC for DG.
registerMooseObject("MooseApp", DGFunctionDiffusionDirichletBC)
const VariablePhiValue & _phi
shape function values (in QPs)
unsigned int _qp
quadrature point index
auto max(const L &left, const R &right)
const VariablePhiGradient & _grad_phi
gradients of shape functions (in QPs)
static InputParameters validParams()
Factory constructor, takes parameters so that all derived classes can be built using the same constru...
const MooseArray< Point > & _q_point
active quadrature points
const Real & _current_elem_volume
Volume of the current element.
const MaterialProperty< Real > & _diff
Base class for deriving any boundary condition of a integrated type.
const Real & _current_side_volume
Volume of the current side.
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 VariableTestGradient & _grad_test
gradients of test functions (in QPs)
virtual Real value(Real t, const Point &p) const
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero...
const VariableValue & _u
the values of the unknown variable this BC is acting on
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