LCOV - code coverage report
Current view: top level - src/userobjects - PorousFlowFluidStateBase.C (source / functions) Hit Total Coverage
Test: idaholab/moose porous_flow: #31405 (292dce) with base fef103 Lines: 15 16 93.8 %
Date: 2025-09-04 07:55:56 Functions: 3 3 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 "PorousFlowFluidStateBase.h"
      11             : 
      12             : InputParameters
      13        1676 : PorousFlowFluidStateBase::validParams()
      14             : {
      15        1676 :   InputParameters params = GeneralUserObject::validParams();
      16        3352 :   params.addParam<unsigned int>("liquid_phase_number", 0, "The phase number of the liquid phase");
      17        3352 :   params.addRequiredParam<UserObjectName>("capillary_pressure",
      18             :                                           "Name of the UserObject defining the capillary pressure");
      19        1676 :   params.addClassDescription("Base class for fluid state classes");
      20        1676 :   return params;
      21           0 : }
      22             : 
      23         838 : PorousFlowFluidStateBase::PorousFlowFluidStateBase(const InputParameters & parameters)
      24             :   : GeneralUserObject(parameters),
      25         838 :     _aqueous_phase_number(getParam<unsigned int>("liquid_phase_number")),
      26         838 :     _R(8.3144598),
      27         838 :     _T_c2k(273.15),
      28        1676 :     _pc(getUserObject<PorousFlowCapillaryPressure>("capillary_pressure"))
      29             : {
      30         838 : }
      31             : 
      32             : void
      33     3231413 : PorousFlowFluidStateBase::clearFluidStateProperties(std::vector<FluidStateProperties> & fsp) const
      34             : {
      35     3231413 :   std::fill(fsp.begin(), fsp.end(), _empty_fsp);
      36     3231413 : }

Generated by: LCOV version 1.14