www.mooseframework.org
PorousFlowSquarePulsePointSource.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef POROUSFLOWSQUAREPULSEPOINTSOURCE_H
9 #define POROUSFLOWSQUAREPULSEPOINTSOURCE_H
10 
11 #include "DiracKernel.h"
12 
14 
15 template <>
17 
23 class PorousFlowSquarePulsePointSource : public DiracKernel
24 {
25 public:
26  PorousFlowSquarePulsePointSource(const InputParameters & parameters);
27 
28  virtual void addPoints() override;
29  virtual Real computeQpResidual() override;
30 
31 protected:
33  const Real _mass_flux;
34 
36  const Point _p;
37 
39  const Real _start_time;
40 
42  const Real _end_time;
43 };
44 
45 #endif // POROUSFLOWSQUAREPULSEPOINTSOURCE_H
const Real _end_time
The time at which the point source (sink) stops operating.
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...
InputParameters validParams< PorousFlowSquarePulsePointSource >()
const Point _p
The location of the point source (sink)
PorousFlowSquarePulsePointSource(const InputParameters &parameters)