AGA8 WebAssembly  1.0
bindings for AGA8 gas properties calculations
Loading...
Searching...
No Matches
GERG2008.h
Go to the documentation of this file.
1/*
2This software was developed by employees of the National Institute of Standards and Technology (NIST),
3an agency of the Federal Government and is being made available as a public service. Pursuant to title 17
4United States Code Section 105, works of NIST employees are not subject to copyright protection in the
5United States. This software may be subject to foreign copyright. Permission in the United States and in
6foreign countries, to the extent that NIST may hold copyright, to use, copy, modify, create derivative works,
7and distribute this software and its documentation without fee is hereby granted on a non-exclusive basis,
8provided that this notice and disclaimer of warranty appears in all copies.
9
10THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY,
11INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED
12WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND FREEDOM FROM INFRINGEMENT, AND ANY
13WARRANTY THAT THE DOCUMENTATION WILL CONFORM TO THE SOFTWARE, OR ANY WARRANTY THAT THE SOFTWARE WILL BE
14ERROR FREE. IN NO EVENT SHALL NIST BE LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT,
15SPECIAL OR CONSEQUENTIAL DAMAGES, ARISING OUT OF, RESULTING FROM, OR IN ANY WAY CONNECTED WITH THIS SOFTWARE,
16WHETHER OR NOT BASED UPON WARRANTY, CONTRACT, TORT, OR OTHERWISE, WHETHER OR NOT INJURY WAS SUSTAINED BY
17PERSONS OR PROPERTY OR OTHERWISE, AND WHETHER OR NOT LOSS WAS SUSTAINED FROM, OR AROSE OUT OF THE RESULTS OF,
18OR USE OF, THE SOFTWARE OR SERVICES PROVIDED HEREUNDER.
19*/
20#ifndef AGA8GERG_H_
21#define AGA8GERG_H_
22
23#include <vector>
24#include <string>
25
26void MolarMassGERG(const std::vector<double> &x, double &Mm);
27void PressureGERG(const double T, const double D, const std::vector<double> &x, double &P, double &Z);
28void DensityGERG(const int iflag, const double T, const double P, const std::vector<double> &x, double &D, int &ierr, std::string &herr);
29void PropertiesGERG(const double T, const double D, const std::vector<double> &x, double &P, double &Z, double &dPdD, double &d2PdD2, double &d2PdTD, double &dPdT, double &U, double &H, double &S, double &Cv, double &Cp, double &W, double &G, double &JT, double &Kappa, double &A, double &Cf);
30void SetupGERG();
31
32#endif
void MolarMassGERG(const std::vector< double > &x, double &Mm)
Calculate molar mass of a gas mixture.
Definition GERG2008.cpp:191
void DensityGERG(const int iflag, const double T, const double P, const std::vector< double > &x, double &D, int &ierr, std::string &herr)
Calculate density from temperature and pressure.
Definition GERG2008.cpp:247
void SetupGERG()
Initializes all the constants and parameters in the GERG-2008 model.
Definition GERG2008.cpp:775
void PropertiesGERG(const double T, const double D, const std::vector< double > &x, double &P, double &Z, double &dPdD, double &d2PdD2, double &d2PdTD, double &dPdT, double &U, double &H, double &S, double &Cv, double &Cp, double &W, double &G, double &JT, double &Kappa, double &A, double &Cf)
Calculate thermodynamic properties as a function of temperature and density.
Definition GERG2008.cpp:371
void PressureGERG(const double T, const double D, const std::vector< double > &x, double &P, double &Z)
Calculate pressure and compressibility factor.
Definition GERG2008.cpp:216