LCOV - code coverage report
Current view: top level - src/fluidproperties - FluidProperties.C (source / functions) Hit Total Coverage
Test: idaholab/moose fluid_properties: #32971 (54bef8) with base c6cf66 Lines: 24 24 100.0 %
Date: 2026-05-29 20:36:28 Functions: 3 4 75.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 "FluidProperties.h"
      11             : 
      12             : const Real FluidProperties::_R = 8.3144598;
      13             : 
      14             : InputParameters
      15        3376 : FluidProperties::validParams()
      16             : {
      17        3376 :   InputParameters params = GeneralUserObject::validParams();
      18        6752 :   params.addParam<bool>(
      19             :       "allow_imperfect_jacobians",
      20        6752 :       false,
      21             :       "true to allow unimplemented property derivative terms to be set to zero for the AD API");
      22        6752 :   params.addCustomTypeParam<std::string>("fp_type", "FPType", "Type of the fluid property object");
      23        3376 :   params.set<std::string>("fp_type") = "unspecified-type";
      24        6752 :   params.addParamNamesToGroup("fp_type allow_imperfect_jacobians", "Advanced");
      25        3376 :   params.registerBase("FluidProperties");
      26             : 
      27             :   // Fluid properties need to be initialized early as they could be queried on initial
      28       10128 :   params.set<ExecFlagEnum>("execute_on", true) = {EXEC_INITIAL};
      29        3376 :   params.set<bool>("force_preic") = true;
      30             : 
      31             :   // Suppress unused parameters
      32        3376 :   params.suppressParameter<bool>("use_displaced_mesh");
      33        3376 :   params.suppressParameter<ExecFlagEnum>("execute_on");
      34        3376 :   params.suppressParameter<bool>("allow_duplicate_execution_on_initial");
      35        3376 :   params.suppressParameter<bool>("force_preic");
      36        3376 :   params.suppressParameter<bool>("force_preaux");
      37        3376 :   params.suppressParameter<bool>("force_postaux");
      38        3376 :   params.suppressParameter<int>("execution_order_group");
      39             : 
      40        3376 :   return params;
      41        3376 : }
      42             : 
      43        1779 : FluidProperties::FluidProperties(const InputParameters & parameters)
      44             :   : ThreadedGeneralUserObject(parameters),
      45        1779 :     _T_c2k(273.15),
      46        3558 :     _allow_imperfect_jacobians(getParam<bool>("allow_imperfect_jacobians"))
      47             : {
      48        1779 : }
      49             : 
      50        1681 : FluidProperties::~FluidProperties() {}

Generated by: LCOV version 1.14