20 "The mass flux at this point in kg/s (positive is flux in, negative is flux out)");
21 params.
addRequiredParam<Point>(
"point",
"The x,y,z coordinates of the point source (sink)");
23 "start_time", 0.0,
"The time at which the source will start (Default is 0)");
25 "end_time", 1.0e30,
"The time at which the source will end (Default is 1e30)");
26 params.
addClassDescription(
"Point source (or sink) that adds (removes) fluid at a constant mass " 27 "flux rate for times between the specified start and end times.");
34 _mass_flux(getParam<
Real>(
"mass_flux")),
35 _p(getParam<Point>(
"point")),
36 _start_time(getParam<
Real>(
"start_time")),
37 _end_time(getParam<
Real>(
"end_time"))
42 ": start time for PorousFlowSquarePulsePointSource is ",
44 " but it must be less than end time ",
65 if (_t < _start_time || _t - _dt >=
_end_time)
const Real _end_time
The time at which the point source (sink) stops operating.
void addPoint(const Elem *elem, Point p, unsigned id=libMesh::invalid_uint)
const OutputTools< T >::VariableTestValue & _test
const Real _start_time
The time at which the point source (sink) starts operating.
const Real _mass_flux
The constant mass flux (kg/s)
Point source (or sink) that adds (removes) fluid at a constant mass flux rate for times between the s...
virtual const std::string & name() const
virtual void addPoints() override
const Point _p
The location of the point source (sink)
PorousFlowSquarePulsePointSource(const InputParameters ¶meters)
virtual Real computeQpResidual() override
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
static InputParameters validParams()
registerMooseObject("PorousFlowApp", PorousFlowSquarePulsePointSource)