LCOV - code coverage report
Current view: top level - include/bcs - PorousFlowPiecewiseLinearSink.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-17 17:48:31 Functions: 2 2 100.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 POROUSFLOWPIECEWISELINEARSINK_H
       9             : #define POROUSFLOWPIECEWISELINEARSINK_H
      10             : 
      11             : #include "PorousFlowSinkPTDefiner.h"
      12             : #include "LinearInterpolation.h"
      13             : 
      14             : // Forward Declarations
      15             : class PorousFlowPiecewiseLinearSink;
      16             : 
      17             : template <>
      18             : InputParameters validParams<PorousFlowPiecewiseLinearSink>();
      19             : 
      20             : /**
      21             :  * Applies a flux sink to a boundary.  The base flux
      22             :  * defined by PorousFlowSink is multiplied by a
      23             :  * piecewise linear function of porepressure (or temperature for
      24             :  * the case of a BC with heat and no fluid)
      25             :  * evaluated at the quad points.
      26             :  */
      27          33 : class PorousFlowPiecewiseLinearSink : public PorousFlowSinkPTDefiner
      28             : {
      29             : public:
      30             :   PorousFlowPiecewiseLinearSink(const InputParameters & parameters);
      31             : 
      32             : protected:
      33             :   /// piecewise-linear function of porepressure that multiplies the sink flux
      34             :   const LinearInterpolation _sink_func;
      35             : 
      36             :   virtual Real multiplier() const override;
      37             : 
      38             :   virtual Real dmultiplier_dvar(unsigned int pvar) const override;
      39             : };
      40             : 
      41             : #endif // POROUSFLOWPIECEWISELINEARSINK_H

Generated by: LCOV version 1.11