LCOV - code coverage report
Current view: top level - src/kernels - PorousFlowFullySaturatedHeatAdvection.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 17 17 100.0 %
Date: 2017-11-20 14:50:56 Functions: 6 6 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             : #include "PorousFlowFullySaturatedHeatAdvection.h"
       9             : 
      10             : template <>
      11             : InputParameters
      12           7 : validParams<PorousFlowFullySaturatedHeatAdvection>()
      13             : {
      14           7 :   InputParameters params = validParams<PorousFlowFullySaturatedDarcyBase>();
      15          14 :   params.addClassDescription("Heat flux that arises from the advection of a fully-saturated single "
      16           7 :                              "phase fluid.  No upwinding is used");
      17           7 :   return params;
      18             : }
      19             : 
      20           7 : PorousFlowFullySaturatedHeatAdvection::PorousFlowFullySaturatedHeatAdvection(
      21           7 :     const InputParameters & parameters)
      22             :   : PorousFlowFullySaturatedDarcyBase(parameters),
      23          14 :     _enthalpy(getMaterialProperty<std::vector<Real>>("PorousFlow_fluid_phase_enthalpy_qp")),
      24             :     _denthalpy_dvar(getMaterialProperty<std::vector<std::vector<Real>>>(
      25          28 :         "dPorousFlow_fluid_phase_enthalpy_qp_dvar"))
      26             : {
      27           7 : }
      28             : 
      29             : Real
      30     7050592 : PorousFlowFullySaturatedHeatAdvection::mobility() const
      31             : {
      32             :   const unsigned ph = 0;
      33    14101184 :   return _enthalpy[_qp][ph] * PorousFlowFullySaturatedDarcyBase::mobility();
      34             : }
      35             : 
      36             : Real
      37     6679648 : PorousFlowFullySaturatedHeatAdvection::dmobility(unsigned pvar) const
      38             : {
      39             :   const unsigned ph = 0;
      40     6679648 :   const Real darcy_mob = PorousFlowFullySaturatedDarcyBase::mobility();
      41     6679648 :   const Real ddarcy_mob = PorousFlowFullySaturatedDarcyBase::dmobility(pvar);
      42    20038944 :   return _denthalpy_dvar[_qp][ph][pvar] * darcy_mob + _enthalpy[_qp][ph] * ddarcy_mob;
      43        2499 : }

Generated by: LCOV version 1.11