Files
CoolProp/include/PCSAFTFluid.h
Julien Marrec 05c8cf503b Lint: use automated tooling to reformat C++ and CMakeLists files (#2103)
* Add initial clang tidy / clang format config files

* Clang format the entire codebase

```
find ./src -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./include -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./Web -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./dev -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./wrappers -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
```

* Add a .cmake-format file and reformat CmakeLists.txt with it

https://github.com/cheshirekow/cmake_format

* Add a clang-format workflow


only runs on PRs, only on touched files
2022-03-31 10:51:48 -04:00

80 lines
1.8 KiB
C++

#ifndef PCSAFTFLUID_H
#define PCSAFTFLUID_H
#include <string>
#include <vector>
#include <map>
#include "rapidjson_include.h"
namespace CoolProp {
struct PCSAFTValues
{
CoolPropDbl m; ///< Number of segments
CoolPropDbl sigma; ///< Segment diameter (1/Angstrom)
CoolPropDbl u; ///< Dispersion energy divided by Boltzmann constant (K)
CoolPropDbl uAB; ///< Association energy (K)
CoolPropDbl volA; ///< Association volume
CoolPropDbl dipm; ///< Dipole moment (Debye)
CoolPropDbl dipnum; ///< Number of dipole moments per molecule
CoolPropDbl z; ///< Charge of the compound
};
class PCSAFTFluid
{
protected:
std::string name; // name of fluid
std::string CAS; // CAS number
CoolPropDbl molemass; ///< Molar mass (kg/mol)
std::vector<std::string> aliases;
PCSAFTValues params;
public:
PCSAFTFluid(){};
PCSAFTFluid(rapidjson::Value::ValueIterator itr);
~PCSAFTFluid(){};
std::string getName() const {
return name;
}
std::string getCAS() const {
return CAS;
}
CoolPropDbl molar_mass() const {
return molemass;
}
std::vector<std::string> getAliases() const {
return aliases;
}
CoolPropDbl getM() const {
return params.m;
}
CoolPropDbl getSigma() const {
return params.sigma;
}
CoolPropDbl getU() const {
return params.u;
}
CoolPropDbl getUAB() const {
return params.uAB;
}
CoolPropDbl getVolA() const {
return params.volA;
}
CoolPropDbl getDipm() const {
return params.dipm;
}
CoolPropDbl getDipnum() const {
return params.dipnum;
}
CoolPropDbl getZ() const {
return params.z;
}
void calc_water_sigma(double t);
};
} /* namespace CoolProp */
#endif /* PCSAFTFLUID_H_ */