Cantera  3.1.0b1
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
11namespace 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.
17class HFC134a : public Substance
18{
19public:
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
40protected:
41 double ldens() override;
42};
43}
44#endif // ! HFC134_H
Equation of state for HFC-134a.
Definition HFC134a.h:18
double Tmax() override
Maximum temperature for which the equation of state is valid.
Definition HFC134a.cpp:197
double up() override
Internal energy of a single-phase state.
Definition HFC134a.cpp:94
double Tmin() override
Minimum temperature for which the equation of state is valid.
Definition HFC134a.cpp:193
double Tcrit() override
Critical temperature [K].
Definition HFC134a.cpp:181
double sp() override
Entropy of a single-phase state.
Definition HFC134a.h:35
double MolWt() override
Molecular weight [kg/kmol].
Definition HFC134a.cpp:201
double Vcrit() override
Critical specific volume [m^3/kg].
Definition HFC134a.cpp:189
double Pcrit() override
Critical pressure [Pa].
Definition HFC134a.cpp:185
double Psat() override
Saturation pressure, Pa.
Definition HFC134a.cpp:156
Base class from which all pure substances are derived.
Definition Sub.h:37