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

Method get_component

src/Backends/Cubics/UNIFACLibrary.cpp:123–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123Component UNIFACParameterLibrary::get_component(const std::string& identifier, const std::string& value) const {
124 if (identifier == "name") {
125 for (const auto& component : components) {
126 if (component.name == value) {
127 return component;
128 }
129 }
130 }
131 throw CoolProp::ValueError(format("Could not find component: %s with identifier: %s", value.c_str(), identifier.c_str()));
132}
133
134}; /* namespace UNIFACLibrary */
135

Callers 2

VTPRBackendMethod · 0.80
set_componentsMethod · 0.80

Calls 1

formatFunction · 0.50

Tested by

no test coverage detected