https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NASA7IdealGasFluidProperties.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#include "NASA7Polynomials.h"
15#include "GasTransportUtils.h"
16
17#pragma GCC diagnostic push
18#pragma GCC diagnostic ignored "-Woverloaded-virtual"
19
27{
28public:
30
32
65
66 std::string fluidName() const override;
67 Real molarMass() const override;
68
69 virtual bool hasConstantSpecificHeats() const override { return false; }
71 virtual Real newtonStartTemperature() const override;
72
74
75private:
79 const Real _R_specific;
83 const bool _is_steam;
84
90 template <typename CppType>
91 void checkTemperature(const CppType & T) const;
92
97 template <typename CppType>
98 void checkTransportTemperature(const CppType & T) const;
99
101 template <typename CppType>
102 CppType e_from_T(const CppType & T) const;
103 template <typename CppType>
104 CppType h_from_T(const CppType & T) const;
105 template <typename CppType>
106 CppType cp_from_T(const CppType & T) const;
107 template <typename CppType>
108 CppType cv_from_T(const CppType & T) const;
109 template <typename CppType>
110 CppType gamma_from_T(const CppType & T) const;
111 template <typename CppType>
112 CppType mu_from_T(const CppType & T) const;
113 template <typename CppType>
114 CppType k_from_T(const CppType & T) const;
116
121 template <typename CppType>
122 CppType T_from_energy(const CppType & y, const Real k) const;
123
128 template <typename CppType>
129 CppType T_from_p_s(const CppType & p, const CppType & s) const;
130};
131
132#pragma GCC diagnostic pop
const std::vector< double > y
const double mu
Interface of the fluid properties of ideal gases that can be components of IdealGasMixtureFluidProper...
const InputParameters & parameters() const
Ideal gas whose heat capacity, enthalpy, and entropy depend on temperature through NASA 7-coefficient...
propfuncWithDefinitionOverride(gamma, p, T)
propfuncWithDefinitionOverride(cp, p, T)
const NASA7::SpeciesData _data
NASA 7-coefficient data of the species.
propfuncWithDefinitionOverride(mu, p, T)
propfuncWithDefinitionOverride(cp, v, e)
CppType T_from_energy(const CppType &y, const Real k) const
Temperature at which R_s T (h/(RT) - k) equals y, by Newton's method: k = 1 for the specific internal...
const bool _is_steam
Whether the species is steam, whose viscosity and thermal conductivity come from IAPWS.
propfuncWithDefinitionOverride(cv, p, T)
propfuncWithDefinitionOverride(rho, p, T)
virtual bool hasConstantSpecificHeats() const override
Whether the specific heats are constant, so that the specific internal energy is linear in temperatur...
std::string fluidName() const override
Fluid name.
CppType gamma_from_T(const CppType &T) const
CppType mu_from_T(const CppType &T) const
CppType T_from_p_s(const CppType &p, const CppType &s) const
Temperature at which the specific entropy at pressure p equals s, by Newton's method on the logarithm...
void checkTemperature(const CppType &T) const
Flags a temperature outside the range of the data as a solution warning, because the polynomials are ...
propfuncWithDefinitionOverride(cv, v, e)
CppType cp_from_T(const CppType &T) const
CppType k_from_T(const CppType &T) const
Real molarMass() const override
Molar mass [kg/mol].
CppType e_from_T(const CppType &T) const
Properties that depend on temperature only.
CppType h_from_T(const CppType &T) const
propfuncWithDefinitionOverride(rho, p, s)
CppType cv_from_T(const CppType &T) const
void checkTransportTemperature(const CppType &T) const
Checks the temperature as checkTemperature does and, for steam, also flags a temperature outside the ...
const GasTransportUtils::LennardJonesParameters _lennard_jones
Lennard-Jones parameters of the species.
virtual const GasTransportUtils::LennardJonesParameters * lennardJonesParameters() const override
Lennard-Jones parameters of the gas, from which a mixture computes binary diffusion coefficients,...
propfuncWithDefinitionOverride(e, p, rho)
const Real _R_specific
Specific gas constant [J/(kg K)].
virtual Real newtonStartTemperature() const override
The upper end of the temperature range of the NASA 7-coefficient data [K].
propfuncWithDefinitionOverride(cv, T, v)
propfuncWithDefinitionOverride(gamma, v, e)
propfuncWithDefinitionOverride(mu, v, e)
Common class for single phase fluid properties.
e e e e s T T T T T rho v v T e h
Parameters of the Lennard-Jones (12-6) potential of a species.
NASA 7-coefficient data of one species.