CoolProp 8.0.0
An open-source fluid property and humid air property database
PCSAFTFluid.cpp
Go to the documentation of this file.
1#include <string>
2#include <vector>
3#include <cmath>
4
6
7namespace CoolProp {
8
10 if (t > 473.16) {
11 throw ValueError("The current function for sigma for water is only valid for temperatures below 473.15 K.");
12 } else if (t < 273) {
13 throw ValueError("The current function for sigma for water is only valid for temperatures above 273.15 K.");
14 }
15
16 params.sigma = 3.8395 + 1.2828 * exp(-0.0074944 * t) - 1.3939 * exp(-0.00056029 * t);
17}
18
19} /* namespace CoolProp */