| 953 | std::cout << "Sorry, Need to update!"; |
| 954 | } |
| 955 | int 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 | } |
| 971 | double Viscosity(double T, double p, double psi_w) { |
| 972 | /* |
| 973 | Using the method of: |