LCOV - code coverage report
Current view: top level - include/kernels - PorousFlowDesorpedMassTimeDerivative.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-18 13:30:36 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 POROUSFLOWDESORPEDMASSTIMEDERIVATIVE_H
       9             : #define POROUSFLOWDESORPEDMASSTIMEDERIVATIVE_H
      10             : 
      11             : #include "TimeDerivative.h"
      12             : #include "PorousFlowDictator.h"
      13             : 
      14             : // Forward Declarations
      15             : class PorousFlowDesorpedMassTimeDerivative;
      16             : 
      17             : template <>
      18             : InputParameters validParams<PorousFlowDesorpedMassTimeDerivative>();
      19             : 
      20             : /**
      21             :  * Kernel = (desorped_mass - desorped_mass_old)/dt
      22             :  * It is NOT lumped to the nodes
      23             :  */
      24           8 : class PorousFlowDesorpedMassTimeDerivative : public TimeKernel
      25             : {
      26             : public:
      27             :   PorousFlowDesorpedMassTimeDerivative(const InputParameters & parameters);
      28             : 
      29             : protected:
      30             :   virtual Real computeQpResidual() override;
      31             :   virtual Real computeQpJacobian() override;
      32             :   virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
      33             : 
      34             :   /// holds info on the PorousFlow variables
      35             :   const PorousFlowDictator & _dictator;
      36             : 
      37             :   /// The MOOSE variable number of the concentration variable
      38             :   const unsigned int _conc_var_number;
      39             : 
      40             :   /// The concentration variable
      41             :   const VariableValue & _conc;
      42             : 
      43             :   /// Old value of the concentration variable
      44             :   const VariableValue & _conc_old;
      45             : 
      46             :   /// porosity at the qps
      47             :   const MaterialProperty<Real> & _porosity;
      48             : 
      49             :   /// old value of porosity
      50             :   const MaterialProperty<Real> & _porosity_old;
      51             : 
      52             :   /// d(porosity)/d(porous-flow variable) - these derivatives will be wrt variables at the qps
      53             :   const MaterialProperty<std::vector<Real>> & _dporosity_dvar;
      54             : 
      55             :   /// d(porosity)/d(grad porous-flow variable) - these derivatives will be wrt grad(vars) at qps
      56             :   const MaterialProperty<std::vector<RealGradient>> & _dporosity_dgradvar;
      57             : 
      58             :   /**
      59             :    * Derivative of residual with respect to variable number jvar
      60             :    * This is used by both computeQpJacobian and computeQpOffDiagJacobian
      61             :    * @param jvar take the derivative of the residual wrt this Moose variable
      62             :    */
      63             :   Real computeQpJac(unsigned int jvar) const;
      64             : };
      65             : 
      66             : #endif // POROUSFLOWDESORPEDMASSTIMEDERIVATIVE_H

Generated by: LCOV version 1.11