20 params.
addParam<FunctionName>(
"function", 1.0,
"Function multiplier for diffusion term.");
22 "Coupled concentration variable for kernel to operate on; if this " 23 "is not specified, the kernel's nonlinear variable will be used as " 30 _function(getFunction(
"function")),
31 _grad_v(isCoupled(
"v") ? coupledGradient(
"v") : _grad_u),
32 _v_var(isCoupled(
"v") ? getVar(
"v", 0) : nullptr),
33 _grad_v_phi(isCoupled(
"v") ? _v_var->gradPhi() : _grad_phi)
virtual Real computeQpJacobian() override
Compute this Kernel's contribution to the Jacobian at the current quadrature point.
The Laplacian operator with a function coefficient.
FunctionDiffusion(const InputParameters ¶meters)
This kernel implements the Laplacian operator: $ u $.
static InputParameters validParams()
const VariablePhiGradient & _grad_v_phi
Gradient of the shape function.
virtual Real computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
unsigned int _i
current index for the test function
static InputParameters validParams()
const Function & _function
Function coefficient.
unsigned int _j
current index for the shape function
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableTestGradient & _grad_test
gradient of the test function
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...
registerMooseObject("MooseApp", FunctionDiffusion)
const VariableGradient & _grad_v
Gradient of the concentration variable for kernel to operate on.
const MooseArray< Point > & _q_point
The physical location of the element's quadrature Points, indexed by _qp.
unsigned int _qp
The current quadrature point index.