18 InputParameters params = validParams<DiracKernel>();
19 params.addRequiredParam<Real>(
21 "The mass flux at this point in kg/s (positive is flux in, negative is flux out)");
22 params.addRequiredParam<Point>(
"point",
"The x,y,z coordinates of the point source (sink)");
23 params.addParam<Real>(
24 "start_time", 0.0,
"The time at which the source will start (Default is 0)");
25 params.addParam<Real>(
26 "end_time", 1.0e30,
"The time at which the source will end (Default is 1e30)");
27 params.addClassDescription(
"Point source (or sink) that adds (removes) fluid at a constant mass "
28 "flux rate for times between the specified start and end times.");
33 const InputParameters & parameters)
34 : DiracKernel(parameters),
35 _mass_flux(getParam<Real>(
"mass_flux")),
36 _p(getParam<Point>(
"point")),
37 _start_time(getParam<Real>(
"start_time")),
38 _end_time(getParam<Real>(
"end_time"))
43 ": start time for PorousFlowSquarePulsePointSource is ",
45 " but it must be less than end time ",
66 if (_t < _start_time || _t - _dt >=
_end_time)