www.mooseframework.org
VaporMixtureFluidProperties.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 
12 #include "FluidProperties.h"
13 
15 
16 template <>
18 
28 {
29 public:
30  VaporMixtureFluidProperties(const InputParameters & parameters);
32 
36  virtual unsigned int getNumberOfSecondaryVapors() const = 0;
37 
45  virtual Real p_from_v_e(Real v, Real e, const std::vector<Real> & x) const = 0;
46 
58  virtual void p_from_v_e(Real v,
59  Real e,
60  const std::vector<Real> & x,
61  Real & p,
62  Real & dp_dv,
63  Real & dp_de,
64  std::vector<Real> & dp_dx) const = 0;
65 
73  virtual Real T_from_v_e(Real v, Real e, const std::vector<Real> & x) const = 0;
74 
86  virtual void T_from_v_e(Real v,
87  Real e,
88  const std::vector<Real> & x,
89  Real & T,
90  Real & dT_dv,
91  Real & dT_de,
92  std::vector<Real> & dT_dx) const = 0;
93 
102  virtual Real c_from_v_e(Real v, Real e, const std::vector<Real> & x) const = 0;
103 
115  virtual void c_from_v_e(Real v,
116  Real e,
117  const std::vector<Real> & x,
118  Real & c,
119  Real & dc_dv,
120  Real & dc_de,
121  std::vector<Real> & dc_dx) const = 0;
122 
130  virtual Real rho_from_p_T(Real p, Real T, const std::vector<Real> & x) const = 0;
131 
144  virtual void rho_from_p_T(Real p,
145  Real T,
146  const std::vector<Real> & x,
147  Real & rho,
148  Real & drho_dp,
149  Real & drho_dT,
150  std::vector<Real> & drho_dx) const = 0;
151 
159  virtual Real e_from_p_T(Real p, Real T, const std::vector<Real> & x) const = 0;
160 
173  virtual void e_from_p_T(Real p,
174  Real T,
175  const std::vector<Real> & x,
176  Real & e,
177  Real & de_dp,
178  Real & de_dT,
179  std::vector<Real> & de_dx) const = 0;
180 
189  virtual Real c_from_p_T(Real p, Real T, const std::vector<Real> & x) const = 0;
190 
202  virtual void c_from_p_T(Real p,
203  Real T,
204  const std::vector<Real> & x,
205  Real & c,
206  Real & dc_dp,
207  Real & dc_dT,
208  std::vector<Real> & dc_dx) const = 0;
209 
218  virtual Real cp_from_p_T(Real p, Real T, const std::vector<Real> & x) const = 0;
219 
228  virtual Real cv_from_p_T(Real p, Real T, const std::vector<Real> & x) const = 0;
229 
238  virtual Real mu_from_p_T(Real p, Real T, const std::vector<Real> & x) const = 0;
239 
248  virtual Real k_from_p_T(Real p, Real T, const std::vector<Real> & x) const = 0;
249 
258  virtual Real e_from_p_rho(Real p, Real rho, const std::vector<Real> & x) const = 0;
259 
271  virtual void e_from_p_rho(Real p,
272  Real rho,
273  const std::vector<Real> & x,
274  Real & e,
275  Real & de_dp,
276  Real & de_drho,
277  std::vector<Real> & de_dx) const = 0;
278 
290  Real primaryMassFraction(const std::vector<Real> & x) const;
291 };
VaporMixtureFluidProperties::e_from_p_T
virtual Real e_from_p_T(Real p, Real T, const std::vector< Real > &x) const =0
Specific internal energy from pressure and temperature.
VaporMixtureFluidProperties::e_from_p_rho
virtual Real e_from_p_rho(Real p, Real rho, const std::vector< Real > &x) const =0
Specific internal energy from pressure and density.
VaporMixtureFluidProperties::k_from_p_T
virtual Real k_from_p_T(Real p, Real T, const std::vector< Real > &x) const =0
Thermal conductivity from pressure and temperature.
VaporMixtureFluidProperties::getNumberOfSecondaryVapors
virtual unsigned int getNumberOfSecondaryVapors() const =0
Returns the number of secondary vapors.
VaporMixtureFluidProperties::c_from_p_T
virtual Real c_from_p_T(Real p, Real T, const std::vector< Real > &x) const =0
Sound speed from pressure and temperature.
VaporMixtureFluidProperties::p_from_v_e
virtual Real p_from_v_e(Real v, Real e, const std::vector< Real > &x) const =0
Pressure from specific volume and specific internal energy.
VaporMixtureFluidProperties::primaryMassFraction
Real primaryMassFraction(const std::vector< Real > &x) const
Computes the mass fraction of the primary vapor given mass fractions of the secondary vapors.
Definition: VaporMixtureFluidProperties.C:29
VaporMixtureFluidProperties::cv_from_p_T
virtual Real cv_from_p_T(Real p, Real T, const std::vector< Real > &x) const =0
Isochoric (constant-volume) specific heat from pressure and temperature.
FluidProperties.h
VaporMixtureFluidProperties::rho_from_p_T
virtual Real rho_from_p_T(Real p, Real T, const std::vector< Real > &x) const =0
Density from pressure and temperature.
VaporMixtureFluidProperties::T_from_v_e
virtual Real T_from_v_e(Real v, Real e, const std::vector< Real > &x) const =0
Temperature from specific volume and specific internal energy.
VaporMixtureFluidProperties::c_from_v_e
virtual Real c_from_v_e(Real v, Real e, const std::vector< Real > &x) const =0
Speed of sound from specific volume and specific internal energy.
VaporMixtureFluidProperties::cp_from_p_T
virtual Real cp_from_p_T(Real p, Real T, const std::vector< Real > &x) const =0
Isobaric (constant-pressure) specific heat from pressure and temperature.
validParams< VaporMixtureFluidProperties >
InputParameters validParams< VaporMixtureFluidProperties >()
Definition: VaporMixtureFluidProperties.C:14
VaporMixtureFluidProperties::~VaporMixtureFluidProperties
virtual ~VaporMixtureFluidProperties()
Definition: VaporMixtureFluidProperties.C:26
VaporMixtureFluidProperties::VaporMixtureFluidProperties
VaporMixtureFluidProperties(const InputParameters &parameters)
Definition: VaporMixtureFluidProperties.C:21
FluidProperties
Definition: FluidProperties.h:28
VaporMixtureFluidProperties::mu_from_p_T
virtual Real mu_from_p_T(Real p, Real T, const std::vector< Real > &x) const =0
Dynamic viscosity from pressure and temperature.
VaporMixtureFluidProperties
Base class for fluid properties of vapor mixtures.
Definition: VaporMixtureFluidProperties.h:27