LCOV - code coverage report
Current view: top level - src/materials - PorousFlowFluidPropertiesBase.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 19 21 90.5 %
Date: 2017-11-20 14:50:56 Functions: 4 5 80.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 "PorousFlowFluidPropertiesBase.h"
       9             : 
      10             : template <>
      11             : InputParameters
      12         354 : validParams<PorousFlowFluidPropertiesBase>()
      13             : {
      14         354 :   InputParameters params = validParams<PorousFlowMaterialBase>();
      15        1062 :   MooseEnum unit_choice("Kelvin=0 Celsius=1", "Kelvin");
      16        1062 :   params.addParam<MooseEnum>(
      17         354 :       "temperature_unit", unit_choice, "The unit of the temperature variable");
      18         708 :   params.addClassDescription("Base class for PorousFlow fluid materials");
      19         354 :   return params;
      20             : }
      21             : 
      22        1062 : PorousFlowFluidPropertiesBase::PorousFlowFluidPropertiesBase(const InputParameters & parameters)
      23             :   : PorousFlowMaterialBase(parameters),
      24        1062 :     _porepressure(_nodal_material
      25        3186 :                       ? getMaterialProperty<std::vector<Real>>("PorousFlow_porepressure_nodal")
      26        1890 :                       : getMaterialProperty<std::vector<Real>>("PorousFlow_porepressure_qp")),
      27        3186 :     _temperature(_nodal_material ? getMaterialProperty<Real>("PorousFlow_temperature_nodal")
      28        1890 :                                  : getMaterialProperty<Real>("PorousFlow_temperature_qp")),
      29        1062 :     _pressure_variable_name(_dictator.pressureVariableNameDummy()),
      30        1062 :     _temperature_variable_name(_dictator.temperatureVariableNameDummy()),
      31        3186 :     _t_c2k(getParam<MooseEnum>("temperature_unit") == 0 ? 0.0 : 273.15),
      32        8496 :     _R(8.3144598)
      33             : {
      34        1062 : }
      35             : 
      36             : void
      37           0 : PorousFlowFluidPropertiesBase::computeQpProperties()
      38             : {
      39             :   mooseError("computeQpProperties() must be overriden in materials derived from "
      40           0 :              "PorousFlowFluidPropertiesBase");
      41        2499 : }

Generated by: LCOV version 1.11