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"))
registerMooseObject("MooseApp", FunctionDiracSource)
unsigned int _i
i-th, j-th index for enumerating shape and test functions
unsigned int _qp
Quadrature point index.
void addPoint(const Elem *elem, Point p, unsigned id=libMesh::invalid_uint, Real value=1.0)
Add the physical x,y,z point located in the element "elem" to the list of points this DiracKernel wil...
A DiracKernel is used when you need to add contributions to the residual by means of multiplying some...
static InputParameters validParams()
const OutputTools< T >::VariableTestValue & _test
Values of test functions at QPs.
virtual Real computeQpResidual() override
This is the virtual that derived classes should override for computing the residual.
virtual void addPoints() override
This is where the DiracKernel should call addPoint() for each point it needs to have a value distribu...
static InputParameters validParams()
FunctionDiracSource(const InputParameters ¶meters)
const Function & _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,...