https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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"
23public:
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
182protected:
184 const Real _fd_size;
185#ifdef SALINE_ENABLED
187 saline::Default_Data_Store _d;
189 saline::Thermophysical_Properties _tp;
191 std::string _fluid_name;
192#endif
193};
194
195#pragma GCC diagnostic pop
const double mu
const InputParameters & parameters() const
virtual Real T_from_p_h(Real p, Real h) const override
Temperature from pressure and specific enthalpy.
virtual Real h_from_p_T(Real p, Real T) const override
Specific enthalpy from pressure and temperature.
virtual std::string fluidName() const override
Fluid name.
virtual Real e_from_p_T(Real p, Real T) const override
Specific energy from pressure and temperature.
saline::Thermophysical_Properties _tp
Saline interface to fluid properties.
virtual Real rho_from_p_T(Real pressure, Real temperature) const override
Density from pressure and temperature.
const Real _fd_size
The relative finite differencing step size.
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 k_from_p_T(Real pressure, Real temperature) const override
Thermal conductivity from pressure and temperature.
virtual Real cp_from_p_T(Real pressure, Real temperature) const override
Isobaric specific heat capacity from pressure and temperature.
Common class for single phase fluid properties.
e e e e s T T T T T rho v v T e h