Skip to content

Commit 8a0aa36

Browse files
committed
Add a few common abbreviations to the property table
1 parent 82caf93 commit 8a0aa36

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

src/tables.jl

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
function property_abbreviations()
2+
abbreviations = Dict(
3+
"CO2" => "CarbonDioxide",
4+
"H2O" => "Water",
5+
"O2" => "Oxygen",
6+
"H2" => "Hydrogen",
7+
"N2" => "Nitrogen",
8+
"C1" => "Methane",
9+
"C2" => "Ethane",
10+
"C3" => "n-Propane",
11+
"C4" => "n-Butane",
12+
"C5" => "n-Pentane",
13+
"C6" => "n-Hexane",
14+
"C7" => "n-Heptane",
15+
"C8" => "n-Octane",
16+
"C9" => "n-Nonane",
17+
"C10" => "n-Decane",
18+
"C11" => "n-Undecane",
19+
"C12" => "n-Dodecane"
20+
)
21+
return abbreviations
22+
end
23+
124
function tabulated_properties()
225
# Various properties. Taken from CoolProp.
326
data = Dict{String, MolecularProperty}()
@@ -123,6 +146,10 @@ function tabulated_properties()
123146
data["R407C"] = MolecularProperty(0.0862036, 4631700, 359.345, 0.0001901140668, 0.363)
124147
data["R41"] = MolecularProperty(0.03403292, 5897000, 317.28, 0.0001075268817, 0.2004)
125148
data["R410A"] = MolecularProperty(0.0725854, 4901200, 344.494, 0.0001581277672, 0.296)
149+
150+
for (shortname, fullname) in pairs(property_abbreviations())
151+
data[shortname] = data[fullname]
152+
end
126153
return data
127154
end
128155

0 commit comments

Comments
 (0)