www.mooseframework.org
HeliumFluidProperties.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
15 
16 template <>
17 InputParameters validParams<HeliumFluidProperties>();
18 
23 {
24 #pragma GCC diagnostic push
25 #pragma GCC diagnostic ignored "-Woverloaded-virtual"
26 public:
27  HeliumFluidProperties(const InputParameters & parameters);
28 
34  virtual std::string fluidName() const override;
35 
43  virtual Real p_from_v_e(Real v, Real e) const override;
44 
54  virtual void p_from_v_e(Real v, Real e, Real & p, Real & dp_dv, Real & dp_de) const override;
55 
56  void p_from_v_e(const DualReal & v,
57  const DualReal & e,
58  DualReal & p,
59  DualReal & dp_dv,
60  DualReal & dp_de) const override;
61 
69  virtual Real T_from_v_e(Real v, Real e) const override;
70 
80  virtual void T_from_v_e(Real v, Real e, Real & T, Real & dT_dv, Real & dT_de) const override;
81 
82  void T_from_v_e(const DualReal & v,
83  const DualReal & e,
84  DualReal & T,
85  DualReal & dT_dv,
86  DualReal & dT_de) const override;
87 
88  using SinglePhaseFluidProperties::c_from_v_e;
89 
97  virtual Real c_from_v_e(Real v, Real e) const override;
98  virtual void c_from_v_e(Real v, Real e, Real & c, Real & dc_dv, Real & dc_de) const override;
99 
107  virtual Real cp_from_v_e(Real v, Real e) const override;
108 
118  void cp_from_v_e(Real v, Real e, Real & cp, Real & dcp_dv, Real & dcp_de) const override;
119 
127  virtual Real cv_from_v_e(Real v, Real e) const override;
128 
138  void cv_from_v_e(Real v, Real e, Real & cv, Real & dcv_dv, Real & dcv_de) const override;
139 
140  using SinglePhaseFluidProperties::mu_from_v_e;
141 
149  virtual Real mu_from_v_e(Real v, Real e) const override;
150 
151  using SinglePhaseFluidProperties::k_from_v_e;
152 
160  virtual Real k_from_v_e(Real v, Real e) const override;
161 
162  using SinglePhaseFluidProperties::beta_from_p_T;
163 
171  virtual Real beta_from_p_T(Real p, Real T) const override;
172 
180  virtual Real rho_from_p_T(Real p, Real T) const override;
181 
191  virtual void
192  rho_from_p_T(Real p, Real T, Real & rho, Real & drho_dp, Real & drho_dT) const override;
193 
194  virtual void rho_from_p_T(const DualReal & p,
195  const DualReal & T,
196  DualReal & rho,
197  DualReal & drho_dp,
198  DualReal & drho_dT) const override;
206  virtual Real e_from_p_T(Real p, Real T) const override;
207 
217  virtual void e_from_p_T(Real p, Real T, Real & e, Real & de_dp, Real & de_dT) const override;
218 
226  virtual Real h_from_p_T(Real p, Real T) const override;
227 
237  virtual void h_from_p_T(Real p, Real T, Real & h, Real & dh_dp, Real & dh_dT) const override;
238 
244  virtual Real molarMass() const override;
245 
253  virtual Real cp_from_p_T(Real p, Real T) const override;
254 
264  virtual void cp_from_p_T(Real p, Real T, Real & cp, Real & dcp_dp, Real & dcp_dT) const override;
265 
273  virtual Real cv_from_p_T(Real p, Real T) const override;
274 
284  virtual void cv_from_p_T(Real p, Real T, Real & cv, Real & dcv_dp, Real & dcv_dT) const override;
285 
293  virtual Real k_from_p_T(Real p, Real T) const override;
294 
304  virtual void k_from_p_T(Real p, Real T, Real & k, Real & dk_dp, Real & dk_dT) const override;
305 
313  virtual Real mu_from_p_T(Real p, Real T) const override;
314 
324  virtual void
325  mu_from_p_T(Real p, Real T, Real & mu, Real & dmu_drho, Real & dmu_dT) const override;
326 
327 protected:
329  const Real _cv;
330 
332  const Real _cp;
333 };
334 #pragma GCC diagnostic pop
HeliumFluidProperties::molarMass
virtual Real molarMass() const override
Molar mass.
Definition: HeliumFluidProperties.C:238
HeliumFluidProperties::rho_from_p_T
virtual Real rho_from_p_T(Real p, Real T) const override
Density from pressure and temperature.
Definition: HeliumFluidProperties.C:176
HeliumFluidProperties::h_from_p_T
virtual Real h_from_p_T(Real p, Real T) const override
Specific enthalpy from pressure and temperature.
Definition: HeliumFluidProperties.C:223
HeliumFluidProperties::k_from_v_e
virtual Real k_from_v_e(Real v, Real e) const override
Thermal conductivity from specific volume and specific internal energy.
Definition: HeliumFluidProperties.C:157
SinglePhaseFluidProperties
Common class for single phase fluid properties.
Definition: SinglePhaseFluidProperties.h:89
HeliumFluidProperties::k_from_p_T
virtual Real k_from_p_T(Real p, Real T) const override
Thermal conductivity from pressure and temperature.
Definition: HeliumFluidProperties.C:287
HeliumFluidProperties
Fluid properties for helium .
Definition: HeliumFluidProperties.h:22
SinglePhaseFluidProperties::v
v
Definition: SinglePhaseFluidProperties.h:155
SinglePhaseFluidProperties.h
HeliumFluidProperties::cp_from_v_e
virtual Real cp_from_v_e(Real v, Real e) const override
Isobaric specific heat from specific volume and specific internal energy.
Definition: HeliumFluidProperties.C:130
HeliumFluidProperties::mu_from_v_e
virtual Real mu_from_v_e(Real v, Real e) const override
Dynamic viscosity from specific volume and specific internal energy.
Definition: HeliumFluidProperties.C:151
HeliumFluidProperties::HeliumFluidProperties
HeliumFluidProperties(const InputParameters &parameters)
Definition: HeliumFluidProperties.C:23
HeliumFluidProperties::cv_from_p_T
virtual Real cv_from_p_T(Real p, Real T) const override
Isochoric specific heat capacity from pressure and temperature.
Definition: HeliumFluidProperties.C:257
HeliumFluidProperties::mu_from_p_T
virtual Real mu_from_p_T(Real p, Real T) const override
Dynamic viscosity from pressure and temperature.
Definition: HeliumFluidProperties.C:272
HeliumFluidProperties::T_from_v_e
virtual Real T_from_v_e(Real v, Real e) const override
Temperature from specific volume and specific internal energy.
Definition: HeliumFluidProperties.C:73
SinglePhaseFluidProperties::T
e e e e p h T T T T T T
Definition: SinglePhaseFluidProperties.h:177
HeliumFluidProperties::cv_from_v_e
virtual Real cv_from_v_e(Real v, Real e) const override
Isochoric specific heat from specific volume and specific internal energy.
Definition: HeliumFluidProperties.C:140
HeliumFluidProperties::fluidName
virtual std::string fluidName() const override
Fluid name.
Definition: HeliumFluidProperties.C:29
SinglePhaseFluidProperties::rho
e e e e p h T rho
Definition: SinglePhaseFluidProperties.h:169
HeliumFluidProperties::p_from_v_e
virtual Real p_from_v_e(Real v, Real e) const override
Pressure from specific volume and specific internal energy.
Definition: HeliumFluidProperties.C:35
HeliumFluidProperties::c_from_v_e
virtual Real c_from_v_e(Real v, Real e) const override
Speed of sound from specific volume and specific internal energy.
Definition: HeliumFluidProperties.C:96
HeliumFluidProperties::_cp
const Real _cp
specific heat at constant pressure
Definition: HeliumFluidProperties.h:332
HeliumFluidProperties::_cv
const Real _cv
specific heat at constant volume
Definition: HeliumFluidProperties.h:329
HeliumFluidProperties::cp_from_p_T
virtual Real cp_from_p_T(Real p, Real T) const override
Isobaric specific heat capacity from pressure and temperature.
Definition: HeliumFluidProperties.C:243
validParams< HeliumFluidProperties >
InputParameters validParams< HeliumFluidProperties >()
Definition: HeliumFluidProperties.C:16
HeliumFluidProperties::beta_from_p_T
virtual Real beta_from_p_T(Real p, Real T) const override
Thermal expansion coefficient from pressure and temperature.
Definition: HeliumFluidProperties.C:165
SinglePhaseFluidProperties::p
e e e e p h p
Definition: SinglePhaseFluidProperties.h:167
HeliumFluidProperties::e_from_p_T
virtual Real e_from_p_T(Real p, Real T) const override
Specific internal energy from pressure and temperature.
Definition: HeliumFluidProperties.C:208
SinglePhaseFluidProperties::h
e e e e h
Definition: SinglePhaseFluidProperties.h:163