MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / PCSAFTLibraryClass

Method PCSAFTLibraryClass

src/Backends/PCSAFT/PCSAFTLibrary.cpp:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59PCSAFTLibraryClass::PCSAFTLibraryClass() : empty(true) {
60 // Populate via the file-private helper so the constructor does NOT recurse
61 // through get_library() while the singleton is still being built.
62 add_fluids_from_JSON_string(*this, all_pcsaft_JSON);
63
64 // Then we add the library of binary interaction parameters
65 if (m_binary_pair_map.size() == 0) {
66 PCSAFTLibraryClass::load_from_string(mixture_binary_pairs_pcsaft_JSON);
67 }
68}
69
70// Get a PCSAFTFluid instance stored in this library
71PCSAFTFluid& PCSAFTLibraryClass::get(const std::string& key) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected