17 Substance* GetSubstanceByName(std::string name)
20 if (lcname ==
"water") {
22 }
else if (lcname ==
"nitrogen") {
24 }
else if (lcname ==
"methane") {
26 }
else if (lcname ==
"hydrogen") {
28 }
else if (lcname ==
"oxygen") {
30 }
else if (lcname ==
"hfc134a") {
32 }
else if (lcname ==
"rk") {
33 return new RedlichKwong;
34 }
else if (lcname ==
"carbondioxide") {
35 return new CarbonDioxide;
36 }
else if (lcname ==
"heptane") {
43 Substance* GetSub(
int isub)
47 }
else if (isub == 1) {
49 }
else if (isub == 2) {
51 }
else if (isub == 3) {
53 }
else if (isub == 4) {
55 }
else if (isub == 5) {
57 }
else if (isub == 6) {
58 return new RedlichKwong;
59 }
else if (isub == 7) {
60 return new CarbonDioxide;
61 }
else if (isub == 8) {
std::string lowercase(const std::string &s)
Cast a copy of a string to lower case.
Contains declarations for string manipulation functions within Cantera.