https://mooseframework.inl.gov
SalineMoltenSaltFluidProperties.h
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 #pragma once
11 
13 
14 #ifdef SALINE_ENABLED
15 #include "default_data_store.hh"
16 #include "thermophysical_properties.hh"
17 #endif
18 
20 {
21 #pragma GCC diagnostic push
22 #pragma GCC diagnostic ignored "-Woverloaded-virtual"
23 public:
24  // Constructor
26 
28 
29  // Unit conversion constants for communicating with Saline
30  static constexpr Real kPa_to_Pa = 1.0e3;
31  static constexpr Real Pa_to_kPa = 1.0 / kPa_to_Pa;
32  static constexpr Real kg_to_g = 1.0e3;
33  static constexpr Real g_to_kg = 1.0 / kg_to_g;
34  static constexpr Real m_to_cm = 1.0e2;
35  static constexpr Real cm_to_m = 1.0 / m_to_cm;
36  static constexpr Real N_to_mN = 1.0e3;
37  static constexpr Real mN_to_N = 1 / N_to_mN;
38 
39 #ifdef SALINE_ENABLED
40 
46  virtual std::string fluidName() const override;
47 
55  virtual Real rho_from_p_T(Real pressure, Real temperature) const override;
56 
66  virtual void rho_from_p_T(
67  Real pressure, Real temperature, Real & rho, Real & drho_dp, Real & drho_dT) const override;
68 
76  virtual Real cp_from_p_T(Real pressure, Real temperature) const override;
77 
86  virtual void cp_from_p_T(
87  Real pressure, Real temperature, Real & cp, Real & dcp_dp, Real & dcp_dT) const override;
88 
96  virtual Real mu_from_p_T(Real pressure, Real temperature) const override;
97 
107  virtual void mu_from_p_T(
108  Real pressure, Real temperature, Real & mu, Real & dmu_dp, Real & dmu_dT) const override;
109 
117  virtual Real k_from_p_T(Real pressure, Real temperature) const override;
118 
128  virtual void
129  k_from_p_T(Real pressure, Real temperature, Real & k, Real & dk_dp, Real & dk_dT) const override;
130 
138  virtual Real h_from_p_T(Real p, Real T) const override;
139 
149  virtual void h_from_p_T(Real p, Real T, Real & h, Real & dh_dp, Real & dh_dT) const override;
150 
158  virtual Real e_from_p_T(Real p, Real T) const override;
159 
169  virtual void e_from_p_T(Real p, Real T, Real & h, Real & dh_dp, Real & dh_dT) const override;
170 
178  virtual Real T_from_p_h(Real p, Real h) const override;
179 
180 #endif
181 
182 protected:
184  const Real _fd_size;
185 #ifdef SALINE_ENABLED
186  saline::Default_Data_Store _d;
189  saline::Thermophysical_Properties _tp;
191  std::string _fluid_name;
192 #endif
193 };
194 
195 #pragma GCC diagnostic pop
virtual Real cp_from_p_T(Real pressure, Real temperature) const override
Isobaric specific heat capacity from pressure and temperature.
saline::Default_Data_Store _d
Saline DataStore object.
virtual Real mu_from_p_T(Real pressure, Real temperature) const override
Dynamic viscosity from pressure and temperature.
virtual Real h_from_p_T(Real p, Real T) const override
Specific enthalpy from pressure and temperature.
SalineMoltenSaltFluidProperties(const InputParameters &parameters)
virtual Real k_from_p_T(Real pressure, Real temperature) const override
Thermal conductivity from pressure and temperature.
virtual Real T_from_p_h(Real p, Real h) const override
Temperature from pressure and specific enthalpy.
const Real _fd_size
The relative finite differencing step size.
static const std::string temperature
Definition: NS.h:59
virtual Real rho_from_p_T(Real pressure, Real temperature) const override
Density from pressure and temperature.
static const std::string cp
Definition: NS.h:121
e e e e s T T T T T rho v v T e h
saline::Thermophysical_Properties _tp
Saline interface to fluid properties.
static const std::string mu
Definition: NS.h:123
std::string _fluid_name
Name of the fluid.
Common class for single phase fluid properties.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string pressure
Definition: NS.h:56
virtual Real e_from_p_T(Real p, Real T) const override
Specific energy from pressure and temperature.
const InputParameters & parameters() const
static const std::string k
Definition: NS.h:130
virtual std::string fluidName() const override
Fluid name.