19 params.
addClassDescription(
"Residual contribution from a point source defined by a function.");
21 "function",
"The function to use for controlling the specified dirac source.");
22 params.
addRequiredParam<Point>(
"point",
"The x,y,z coordinates of the point");
27 :
DiracKernel(parameters), _function(getFunction(
"function")), _p(getParam<Point>(
"point"))
void addPoint(const Elem *elem, Point p, unsigned id=libMesh::invalid_uint)
Add the physical x,y,z point located in the element "elem" to the list of points this DiracKernel wil...
const OutputTools< T >::VariableTestValue & _test
Values of test functions at QPs.
virtual void addPoints() override
This is where the DiracKernel should call addPoint() for each point it needs to have a value distribu...
FunctionDiracSource(const InputParameters ¶meters)
A DiracKernel is used when you need to add contributions to the residual by means of multiplying some...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
unsigned int _qp
Quadrature point index.
registerMooseObject("MooseApp", FunctionDiracSource)
const Function & _function
virtual Real computeQpResidual() override
This is the virtual that derived classes should override for computing the residual.
static InputParameters validParams()
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 _i
i-th, j-th index for enumerating shape and test functions
static InputParameters validParams()