CoolProp
8.0.0
An open-source fluid property and humid air property database
src
Backends
PCSAFT
PCSAFTFluid.cpp
Go to the documentation of this file.
1
#include <string>
2
#include <vector>
3
#include <cmath>
4
5
#include "
CoolProp/fluids/PCSAFTFluid.h
"
6
7
namespace
CoolProp
{
8
9
void
PCSAFTFluid::calc_water_sigma
(
double
t) {
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 */
Generated by
1.9.4