LCOV - code coverage report
Current view: top level - src/kernels - PorousFlowFullySaturatedHeatAdvection.C (source / functions) Hit Total Coverage
Test: idaholab/moose porous_flow: #32971 (54bef8) with base c6cf66 Lines: 16 17 94.1 %
Date: 2026-05-29 20:38:56 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       3             : //*
       4             : //* All rights reserved, see COPYRIGHT for full restrictions
       5             : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
       6             : //*
       7             : //* Licensed under LGPL 2.1, please see LICENSE for details
       8             : //* https://www.gnu.org/licenses/lgpl-2.1.html
       9             : 
      10             : #include "PorousFlowFullySaturatedHeatAdvection.h"
      11             : 
      12             : registerMooseObject("PorousFlowApp", PorousFlowFullySaturatedHeatAdvection);
      13             : 
      14             : InputParameters
      15         218 : PorousFlowFullySaturatedHeatAdvection::validParams()
      16             : {
      17         218 :   InputParameters params = PorousFlowFullySaturatedDarcyBase::validParams();
      18         218 :   params.addClassDescription("Heat flux that arises from the advection of a fully-saturated single "
      19             :                              "phase fluid.  No upwinding is used");
      20         218 :   return params;
      21           0 : }
      22             : 
      23         115 : PorousFlowFullySaturatedHeatAdvection::PorousFlowFullySaturatedHeatAdvection(
      24         115 :     const InputParameters & parameters)
      25             :   : PorousFlowFullySaturatedDarcyBase(parameters),
      26         115 :     _enthalpy(getMaterialProperty<std::vector<Real>>("PorousFlow_fluid_phase_enthalpy_qp")),
      27         230 :     _denthalpy_dvar(getMaterialProperty<std::vector<std::vector<Real>>>(
      28         115 :         "dPorousFlow_fluid_phase_enthalpy_qp_dvar"))
      29             : {
      30         115 : }
      31             : 
      32             : Real
      33    61198140 : PorousFlowFullySaturatedHeatAdvection::mobility() const
      34             : {
      35             :   const unsigned ph = 0;
      36    61198140 :   return _enthalpy[_qp][ph] * PorousFlowFullySaturatedDarcyBase::mobility();
      37             : }
      38             : 
      39             : Real
      40    57860672 : PorousFlowFullySaturatedHeatAdvection::dmobility(unsigned pvar) const
      41             : {
      42             :   const unsigned ph = 0;
      43    57860672 :   const Real darcy_mob = PorousFlowFullySaturatedDarcyBase::mobility();
      44    57860672 :   const Real ddarcy_mob = PorousFlowFullySaturatedDarcyBase::dmobility(pvar);
      45    57860672 :   return _denthalpy_dvar[_qp][ph][pvar] * darcy_mob + _enthalpy[_qp][ph] * ddarcy_mob;
      46             : }

Generated by: LCOV version 1.14