Cantera
Install
User Guide
Examples
Reference
Develop
Community
4.0.0a2
Toggle main menu visibility
Loading...
Searching...
No Matches
HFC134a.h
Go to the documentation of this file.
1
//! @file HFC134a.h
2
3
// This file is part of Cantera. See License.txt in the top-level directory or
4
// at https://cantera.org/license.txt for license and copyright information.
5
6
#ifndef TPX_HFC134_H
7
#define TPX_HFC134_H
8
9
#include "
cantera/tpx/Sub.h
"
10
11
namespace
tpx
12
{
13
//! Equation of state for HFC-134a.
14
//!
15
//! Implements the equation of state given in Tillner-Roth and Baehr
16
//! @cite tillner-roth1994.
17
class
HFC134a :
public
Substance
18
{
19
public
:
20
HFC134a() {
21
m_name =
"HFC-134a"
;
22
m_formula =
"C2F4H2"
;
23
}
24
25
double
MolWt
()
override
;
26
double
Tcrit
()
override
;
27
double
Pcrit
()
override
;
28
double
Vcrit
()
override
;
29
double
Tmin
()
override
;
30
double
Tmax
()
override
;
31
32
double
Pp()
override
;
33
double
fp();
34
double
up
()
override
;
35
double
sp
()
override
{
36
return
((
up
() - m_energy_offset) - fp())/T + m_entropy_offset;
37
}
38
double
Psat
()
override
;
39
40
protected
:
41
double
ldens()
override
;
42
};
43
}
44
#endif
// ! HFC134_H
Sub.h
tpx::HFC134a::Tmax
double Tmax() override
Maximum temperature for which the equation of state is valid.
Definition
HFC134a.cpp:197
tpx::HFC134a::up
double up() override
Internal energy of a single-phase state.
Definition
HFC134a.cpp:94
tpx::HFC134a::Tmin
double Tmin() override
Minimum temperature for which the equation of state is valid.
Definition
HFC134a.cpp:193
tpx::HFC134a::Tcrit
double Tcrit() override
Critical temperature [K].
Definition
HFC134a.cpp:181
tpx::HFC134a::sp
double sp() override
Entropy of a single-phase state.
Definition
HFC134a.h:35
tpx::HFC134a::MolWt
double MolWt() override
Molecular weight [kg/kmol].
Definition
HFC134a.cpp:201
tpx::HFC134a::Vcrit
double Vcrit() override
Critical specific volume [m^3/kg].
Definition
HFC134a.cpp:189
tpx::HFC134a::Pcrit
double Pcrit() override
Critical pressure [Pa].
Definition
HFC134a.cpp:185
tpx::HFC134a::Psat
double Psat() override
Saturation pressure, Pa.
Definition
HFC134a.cpp:156
src
tpx
HFC134a.h
Generated by
1.17.0