https://mooseframework.inl.gov
FluidProperties.C
Go to the documentation of this file.
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 
16 {
18  params.addParam<bool>(
19  "allow_imperfect_jacobians",
20  false,
21  "true to allow unimplemented property derivative terms to be set to zero for the AD API");
22  params.addCustomTypeParam<std::string>("fp_type", "FPType", "Type of the fluid property object");
23  params.set<std::string>("fp_type") = "unspecified-type";
24  params.addParamNamesToGroup("fp_type allow_imperfect_jacobians", "Advanced");
25  params.registerBase("FluidProperties");
26 
27  // Suppress unused parameters
28  params.suppressParameter<bool>("use_displaced_mesh");
29  params.suppressParameter<ExecFlagEnum>("execute_on");
30  params.suppressParameter<bool>("allow_duplicate_execution_on_initial");
31  params.suppressParameter<bool>("force_preic");
32  params.suppressParameter<bool>("force_preaux");
33  params.suppressParameter<bool>("force_postaux");
34  params.suppressParameter<int>("execution_order_group");
35 
36  return params;
37 }
38 
40  : ThreadedGeneralUserObject(parameters),
42  _T_c2k(273.15),
43  _allow_imperfect_jacobians(getParam<bool>("allow_imperfect_jacobians"))
44 {
45 }
46 
FluidProperties(const InputParameters &parameters)
static InputParameters validParams()
static InputParameters validParams()
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addCustomTypeParam(const std::string &name, const T &value, const std::string &custom_type, const std::string &doc_string)
T & set(const std::string &name, bool quiet_mode=false)
static const Real _R
Universal gas constant (J/mol/K)
virtual ~FluidProperties()
void suppressParameter(const std::string &name)
void registerBase(const std::string &value)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addParamNamesToGroup(const std::string &space_delim_names, const std::string group_name)