https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
12const 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 // Fluid properties need to be initialized early as they could be queried on initial
28 params.set<ExecFlagEnum>("execute_on", true) = {EXEC_INITIAL};
29 params.set<bool>("force_preic") = true;
30
31 // Suppress unused parameters
32 params.suppressParameter<bool>("use_displaced_mesh");
33 params.suppressParameter<ExecFlagEnum>("execute_on");
34 params.suppressParameter<bool>("allow_duplicate_execution_on_initial");
35 params.suppressParameter<bool>("force_preic");
36 params.suppressParameter<bool>("force_preaux");
37 params.suppressParameter<bool>("force_postaux");
38 params.suppressParameter<int>("execution_order_group");
39
40 return params;
41}
42
44 : ThreadedGeneralUserObject(parameters),
45 _T_c2k(273.15),
46 _allow_imperfect_jacobians(getParam<bool>("allow_imperfect_jacobians"))
47{
48}
49
const ExecFlagType EXEC_INITIAL
static const Real _R
Universal gas constant (J/mol/K)
static InputParameters validParams()
FluidProperties(const InputParameters &parameters)
virtual ~FluidProperties()
static InputParameters validParams()
void suppressParameter(const std::string &name)
void addCustomTypeParam(const std::string &name, const T &value, const std::string &custom_type, const std::string &doc_string)
void addParamNamesToGroup(const std::string &space_delim_names, const std::string group_name)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void registerBase(const std::string &value)
T & set(const std::string &name, bool quiet_mode=false)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real