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)
registerMooseObject("MooseApp", FunctionDiffusion)
This kernel implements the Laplacian operator: $\nabla u \cdot \nabla \phi_i$.
static InputParameters validParams()
The Laplacian operator with a function coefficient.
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.
FunctionDiffusion(const InputParameters ¶meters)
static InputParameters validParams()
virtual Real computeQpJacobian() override
Compute this Kernel's contribution to the Jacobian at the current quadrature point.
const VariableGradient & _grad_v
Gradient of the concentration variable for kernel to operate on.
const Function & _function
Function coefficient.
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,...
unsigned int _qp
The current quadrature point index.
const MooseArray< Point > & _q_point
The physical location of the element's quadrature Points, indexed by _qp.
unsigned int _j
current index for the shape function
unsigned int _i
current index for the test function
const VariableTestGradient & _grad_test
gradient of the test function