Skip to content

Commit

Permalink
fix capitalization error
Browse files Browse the repository at this point in the history
  • Loading branch information
hallaali committed May 3, 2021
1 parent ea76b8b commit d919ac6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions interfaces/cython/SConscript
Expand Up @@ -105,6 +105,11 @@ UNITS = {
"reference_pressure": '"Pa"', "thermal_expansion_coeff": '"1/K"'
}

SYMBOL = {
"T": "T", "P": "P", "D": "density", "H": "h", "S": "s",
"V": "v", "U": "u", "Q": "Q", "X": "X", "Y": "Y"
}

getter_properties = [
"density_mass", "density_mole", "enthalpy_mass", "enthalpy_mole", "entropy_mass",
"entropy_mole", "int_energy_mass", "int_energy_mole", "volume_mass", "volume_mole",
Expand Down Expand Up @@ -155,12 +160,14 @@ pf_setter_2_properties = ["PQ", "TQ", "PV", "SH", "ST", "TH", "TV", "UP", "VH"]

thermophase_2_setters = []
for name in tp_setter_2_properties:
d = dict(name=name, n0=name[0], u0=UNITS[name[0]], n1=name[1], u1=UNITS[name[1]])
d = dict(name=name, n0=SYMBOL[name[0]], u0=UNITS[name[0]], n1=SYMBOL[name[1]],
u1=UNITS[name[1]])
thermophase_2_setters.append(setter_2_template.substitute(d))

purefluid_2_setters = []
for name in pf_setter_2_properties:
d = dict(name=name, n0=name[0], u0=UNITS[name[0]], n1=name[1], u1=UNITS[name[1]])
d = dict(name=name, n0=SYMBOL[name[0]], u0=UNITS[name[0]], n1=SYMBOL[name[1]],
u1=UNITS[name[1]])
purefluid_2_setters.append(setter_2_template.substitute(d))

setter_3_template = Template("""
Expand Down Expand Up @@ -199,8 +206,8 @@ tp_setter_3_properties = [

thermophase_3_setters = []
for name in tp_setter_3_properties:
d = dict(name=name, n0=name[0], u0=UNITS[name[0]], n1=name[1], u1=UNITS[name[1]],
n2=name[2], u2=UNITS[name[2]])
d = dict(name=name, n0=SYMBOL[name[0]], u0=UNITS[name[0]], n1=SYMBOL[name[1]],
u1=UNITS[name[1]], n2=SYMBOL[name[2]], u2=UNITS[name[2]])
thermophase_3_setters.append(setter_3_template.substitute(d))

getter_3_template = Template("""
Expand Down

0 comments on commit d919ac6

Please sign in to comment.