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 5273 : FluidProperties::validParams() 16 : { 17 5273 : InputParameters params = GeneralUserObject::validParams(); 18 10546 : params.addParam<bool>( 19 : "allow_imperfect_jacobians", 20 10546 : false, 21 : "true to allow unimplemented property derivative terms to be set to zero for the AD API"); 22 10546 : params.addCustomTypeParam<std::string>("fp_type", "FPType", "Type of the fluid property object"); 23 5273 : params.set<std::string>("fp_type") = "unspecified-type"; 24 10546 : params.addParamNamesToGroup("fp_type allow_imperfect_jacobians", "Advanced"); 25 5273 : params.registerBase("FluidProperties"); 26 : 27 : // Suppress unused parameters 28 5273 : params.suppressParameter<bool>("use_displaced_mesh"); 29 5273 : params.suppressParameter<ExecFlagEnum>("execute_on"); 30 5273 : params.suppressParameter<bool>("allow_duplicate_execution_on_initial"); 31 5273 : params.suppressParameter<bool>("force_preic"); 32 5273 : params.suppressParameter<bool>("force_preaux"); 33 5273 : params.suppressParameter<bool>("force_postaux"); 34 5273 : params.suppressParameter<int>("execution_order_group"); 35 : 36 5273 : return params; 37 0 : } 38 : 39 2869 : FluidProperties::FluidProperties(const InputParameters & parameters) 40 : : ThreadedGeneralUserObject(parameters), 41 : SolutionInvalidInterface(this), 42 2869 : _T_c2k(273.15), 43 5738 : _allow_imperfect_jacobians(getParam<bool>("allow_imperfect_jacobians")) 44 : { 45 2869 : } 46 : 47 2771 : FluidProperties::~FluidProperties() {}