LCOV - code coverage report
Current view: top level - include/dirackernels - PorousFlowSquarePulsePointSource.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-21 14:47:27 Functions: 1 2 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : 
      13             : class PorousFlowSquarePulsePointSource;
      14             : 
      15             : template <>
      16             : InputParameters validParams<PorousFlowSquarePulsePointSource>();
      17             : 
      18             : /**
      19             :  * Point source (or sink) that adds (removes) fluid at a constant mass flux rate for times
      20             :  * between the specified start and end times. If no start and end times are specified,
      21             :  * the source (sink) starts at the start of the simulation and continues to act indefinitely
      22             :  */
      23          16 : 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:
      32             :   /// The constant mass flux (kg/s)
      33             :   const Real _mass_flux;
      34             : 
      35             :   /// The location of the point source (sink)
      36             :   const Point _p;
      37             : 
      38             :   /// The time at which the point source (sink) starts operating
      39             :   const Real _start_time;
      40             : 
      41             :   /// The time at which the point source (sink) stops operating
      42             :   const Real _end_time;
      43             : };
      44             : 
      45             : #endif // POROUSFLOWSQUAREPULSEPOINTSOURCE_H

Generated by: LCOV version 1.11