AGA8 WebAssembly  1.0
bindings for AGA8 gas properties calculations
Loading...
Searching...
No Matches
Detail.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 AGA8DETAIL_H_
21#define AGA8DETAIL_H_
22
23#include <vector>
24#include <string>
25
26void MolarMassDetail(const std::vector<double> &x, double &Mm);
27void PressureDetail(const double T, const double D, const std::vector<double> &x, double &P, double &Z);
28void DensityDetail(const double T, const double P, const std::vector<double> &x, double &D, int &ierr, std::string &herr);
29void PropertiesDetail(const double T, const double D, const std::vector<double> &x, double &P, double &Z, double &dPdD, double &dPdD2, double &d2PdTD, double &dPdT, double &U, double &H, double &S, double &Cv, double &Cp, double &W, double &G, double &JT, double &Kappa, double &Cf);
30void SetupDetail();
31
32#endif
void PropertiesDetail(const double T, const double D, const std::vector< double > &x, double &P, double &Z, double &dPdD, double &dPdD2, double &d2PdTD, double &dPdT, double &U, double &H, double &S, double &Cv, double &Cp, double &W, double &G, double &JT, double &Kappa, double &Cf)
Calculates thermodynamic properties as a function of temperature and density.
Definition Detail.cpp:350
void PressureDetail(const double T, const double D, const std::vector< double > &x, double &P, double &Z)
Calculates pressure and compressibility factor as a function of temperature and density.
Definition Detail.cpp:196
void MolarMassDetail(const std::vector< double > &x, double &Mm)
Calculate molar mass of a mixture based on composition.
Definition Detail.cpp:158
void SetupDetail()
The following routine must be called once before any other routine.
Definition Detail.cpp:806
void DensityDetail(const double T, const double P, const std::vector< double > &x, double &D, int &ierr, std::string &herr)
Calculates density as a function of temperature and pressure using an iterative method.
Definition Detail.cpp:246