LCOV - code coverage report
Current view: top level - include/bcs - PorousFlowHalfGaussianSink.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 POROUSFLOWHALFGAUSSIANSINK_H
       9             : #define POROUSFLOWHALFGAUSSIANSINK_H
      10             : 
      11             : #include "PorousFlowSinkPTDefiner.h"
      12             : 
      13             : // Forward Declarations
      14             : class PorousFlowHalfGaussianSink;
      15             : 
      16             : template <>
      17             : InputParameters validParams<PorousFlowHalfGaussianSink>();
      18             : 
      19             : /**
      20             :  * Applies a flux sink to a boundary.  The base flux
      21             :  * defined by PorousFlowSink is multiplied by a
      22             :  * _maximum*exp(-(0.5*(p - c)/_sd)^2)*_m_func for p<c
      23             :  * _maximum*_m_func for p>=c
      24             :  * Here p = porepressure for fluid fluxes, or p = temperature for heat fluxes.
      25             :  * This is typically used for modelling evapotranspiration
      26             :  * from the top of a groundwater model
      27             :  */
      28           2 : class PorousFlowHalfGaussianSink : public PorousFlowSinkPTDefiner
      29             : {
      30             : public:
      31             :   PorousFlowHalfGaussianSink(const InputParameters & parameters);
      32             : 
      33             : protected:
      34             :   /// maximum of the Gaussian sink
      35             :   const Real _maximum;
      36             : 
      37             :   /// standard deviation of the Gaussian sink
      38             :   const Real _sd;
      39             : 
      40             :   /// center of the Gaussian sink
      41             :   const Real _center;
      42             : 
      43             :   virtual Real multiplier() const override;
      44             : 
      45             :   virtual Real dmultiplier_dvar(unsigned int pvar) const override;
      46             : };
      47             : 
      48             : #endif // POROUSFLOWHALFGAUSSIANSINK_H

Generated by: LCOV version 1.11