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

Function returnHumAirCode

src/HumidAirProp.cpp:955–970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953 std::cout << "Sorry, Need to update!";
954}
955int returnHumAirCode(const char* Code) {
956 if (!strcmp(Code, "GIVEN_TDP"))
957 return GIVEN_TDP;
958 else if (!strcmp(Code, "GIVEN_HUMRAT"))
959 return GIVEN_HUMRAT;
960 else if (!strcmp(Code, "GIVEN_TWB"))
961 return GIVEN_TWB;
962 else if (!strcmp(Code, "GIVEN_RH"))
963 return GIVEN_RH;
964 else if (!strcmp(Code, "GIVEN_ENTHALPY"))
965 return GIVEN_ENTHALPY;
966 else {
967 std::cerr << format("Code to returnHumAirCode in HumAir.c [%s] not understood", Code);
968 return -1;
969 }
970}
971double Viscosity(double T, double p, double psi_w) {
972 /*
973 Using the method of:

Callers

nothing calls this directly

Calls 2

strcmpFunction · 0.85
formatFunction · 0.70

Tested by

no test coverage detected