From 4b57622e5150d6906f19fb8bb0ed273a3b0a1222 Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Tue, 5 Feb 2019 23:26:08 +0100 Subject: [PATCH] rename some keys --- data/INFO.json | 39 ++--- data/aluminum.json | 346 ++++++++++++++++++++++----------------------- materials.py | 2 +- 3 files changed, 195 insertions(+), 192 deletions(-) diff --git a/data/INFO.json b/data/INFO.json index da52a8f..2dd5335 100644 --- a/data/INFO.json +++ b/data/INFO.json @@ -15,25 +15,25 @@ "p": "pressure", "rho": "Density at pressure p and temperature T", "T": "Temperature", - "Tm": "Normal melting point at pressure p", - "Tb": "Normal boiling point at vapor pressure p" + "T_m": "Normal melting point at pressure p", + "T_b": "Normal boiling point at vapor pressure p" }, "rho(T)": { "rho_m": "Estimated density at higher temperatures (up to Tmax or about 20°C): \\[\\rho(T)=\\rho\\ti{m}-k(T-T_m)\\]", "k": "", - "Tmax": "The maximum temperature for the estimated density" + "T_max": "The maximum temperature for the estimated density" }, "p_b(T)": "Vapor pressure \\(p\\) in pascals: \\[\\log(p/Pa) = 5.006 + A + BT^{-1} + C\\log{T} + DT^3\\] where temperature T in K; p. 6-72", "Electromagnetic Data": { "chi_m": "Magnetic susceptibility; Molar susceptibility \\[\\chi\\ti{m} = \\kappa V\\ti{m} = \\kappa M / \\rho \\] where \\(\\kappa\\) is the volume susceptibility, \\(V\\ti{m}\\) is the molar volume of the substance, \\(M\\) the molar mass, and \\(\\rho\\) the mass density. \\(\\kappa = \\bold{M}/\\bold{H}\\) where \\(\\bold{H}\\) is the magnetic filed and \\(\\bold{M}\\) is magnetic moment per unit volume.", - "Electrical conductivity": "" + "sigma": "Electrical conductivity" }, "Mechanical Properties": { - "Temperature": "Reference temperature", - "Density": "Density", - "Young modulus": "Module of elasticity", - "Yield strength": "R_{p0.2}", - "Ultimate tensile strength": "R_m", + "T": "Reference temperature", + "rho": "Density", + "E": "Young modulus, module of elasticity", + "R_p02": "Yield strength R_e, R_{p0.2}", + "R_m": "Ultimate tensile strength R_m", "Elongation": "A_5", "Hardness": { "HBW": "" @@ -41,7 +41,8 @@ }, "Thermodynamic Properties": { "Crystal, Liquid, Gas": { - "Coefficient of thermal expansion": "", + "alpha": "Coefficient of thermal expansion", + "k": "Thermal conductivity", "Delta_f H°": "Standard molar enthalpy (heat) of formation at 298.15 K in kJ/mol. 0.0 indicates the reference state.", "Delta_f G°": "Standard molar Gibbs energy of formation at 298.15 K in kJ/mol", "S°": "Standard molar entropy at 298.15 K in J/mol/K", @@ -62,7 +63,7 @@ "T": "Temperature", "C11, C12, C44": "" }, - "Dynamik viscosity mu(T)": "List of temperature and viscosity values.", + "Dynamik viscosity mu(T)": "List of temperature and viscosity values.", "Human": { "Constituents of Human Blood": { "Total volume of blood": "7.5 L for a male and 6.7 L for a female in 100 kg adult.", @@ -96,14 +97,14 @@ }, "Electromagnetic Data": { "chi_m": [16.5e-6, "cm³/mol"], - "Electrical conductivity": ["16-18", "m/Ω/mm²"] + "sigma": ["16-18", "m/Ω/mm²"] }, "Mechanical Properties": { - "Temperature": ["20-25", "°C"], - "Density": [2.66, "g/cm³"], - "Young modulus": [70, "GPa"], - "Yield strength": ["110-130", "MPa"], - "Ultimate tensile strength": ["230-290", "MPa"], + "T": ["20-25", "°C"], + "rho": [2.66, "g/cm³"], + "E": [70, "GPa"], + "R_p02": ["110-130", "MPa"], + "R_m": ["230-290", "MPa"], "Elongation": ["10-15", "%"], "Hardness": { "HBW": ["68-75", "2.5/62.5"] @@ -111,7 +112,9 @@ }, "Thermodynamic Properties": { "Crystal": { - "Coefficient of thermal expansion": [23.3, "m/µm/K"] + "alpha": [23.3, "m/µm/K"], + "k": ["110-130", "W/m/K"], + "cp": [900, "J/kg/K"] } }, "Source": [ diff --git a/data/aluminum.json b/data/aluminum.json index bd1c853..c49afdd 100644 --- a/data/aluminum.json +++ b/data/aluminum.json @@ -1,189 +1,189 @@ -[ - { - "Name": "Aluminum", - "Formula": "Al", - "CAS Reg No.": "7429-90-5", - "Mol. weight": 26.982, - "Physical Form": { - "color": "silvery-white metal", - "crystal": "cubic crystals" +[{ + "Name": "Aluminum", + "Formula": "Al", + "CAS Reg No.": "7429-90-5", + "Mol. weight": 26.982, + "Physical Form": { + "color": "silvery-white metal", + "crystal": "cubic crystals" + }, + "Equilibrium": [ + { + "p": [1, "Pa"], + "T_b": [1209, "°C"] }, - "Equilibrium": [ - { - "p": [1, "Pa"], - "Tb": [1209, "°C"] - }, - { - "p": [10, "Pa"], - "Tb": [1359, "°C"] - }, - { - "p": [100, "Pa"], - "Tb": [1544, "°C"] - }, - { - "p": [1, "kPa"], - "Tb": [1781, "°C"] - }, - { - "p": [10, "kPa"], - "Tb": [2091, "°C"] - }, - { - "p": [100, "kPa"], - "Tb": [2517, "°C"] - }, - { - "p": [101.325, "kPa"], - "rho": [2.70, "g/cm³"], - "T": [25, "°C"], - "Tm": [660.32, "°C"], - "Tb": [2519, "°C"] - } - ], - "rho(T)": { - "rho_m": [2.375, "g/cm³"], - "k": [0.000233, "g/cm³/°C"], - "Tmax": [1340, "°C"] + { + "p": [10, "Pa"], + "T_b": [1359, "°C"] }, - "p_b(T)": { - "Solid": { - "A": 9.459, - "B": -17342, - "C": -0.7927, - "D": null, - "Range in K": "298-Tm" - }, - "Liquid": { - "A": 5911, - "B": -16211, - "C": null, - "D": null, - "Range in K": "Tm-1800" - } + { + "p": [100, "Pa"], + "T_b": [1544, "°C"] }, - "Electromagnetic Data": { - "chi_m": [16.5e-6, "cm³/mol"] + { + "p": [1, "kPa"], + "T_b": [1781, "°C"] }, - "Thermodynamic Properties": { - "Crystal": { - "Delta_f H°": [0.0, "kJ/mol"], - "Delta_f G°": null, - "S°": [28.3, "J/mol/K"], - "cp": [0.897, "J/g/K"], - "Cp": [24.20, "J/mol/K"] - }, - "Liquid": null, - "Gas": { - "Delta_f H°": [330.0, "kJ/mol"], - "Delta_f G°": [289.4, "kJ/mol"], - "S°": [164.6, "J/mol/K"], - "Cp": [21.4, "J/mol/K"] - }, - "Delta_vap H": [ - [ - [2519, "°C"], - [294, "kJ/mol"] - ] - ], - "Delta_fus H": [10.71, "kJ/mol"] + { + "p": [10, "kPa"], + "T_b": [2091, "°C"] }, - "Crystallographic Data": { - "Crystal system": "cubic", - "Structure type": "copper", - "Z": 4, - "a": [4.049, "Å"], - "b": null, - "c": null, - "alpha": null, - "beta": null, - "gamma": null + { + "p": [100, "kPa"], + "T_b": [2517, "°C"] }, - "Cubic Crystal": { - "rho": [2.6970, "g/cm³"], - "T": [298, "K"], - "C11": [1.0675e11, "N/m²"], - "C12": [0.6041e11, "N/m²"], - "C44": [0.2834e11, "N/m²"] + { + "p": [101.325, "kPa"], + "rho": [2.70, "g/cm³"], + "T": [25, "°C"], + "T_m": [660.32, "°C"], + "T_b": [2519, "°C"] + } + ], + "rho(T)": { + "rho_m": [2.375, "g/cm³"], + "k": [0.000233, "g/cm³/°C"], + "T_max": [1340, "°C"] + }, + "p_b(T)": { + "Solid": { + "A": 9.459, + "B": -17342, + "C": -0.7927, + "D": null, + "Range in K": "298-Tm" }, - "Dynamic viscosity mu(T)": [ - [ - [700, "°C"], - [1.289, "mPa s"] - ], - [ - [750, "°C"], - [1.200, "mPa s"] - ], - [ - [800, "°C"], - [1.115, "mPa s"] - ], - [ - [850, "°C"], - [1.028, "mPa s"] - ] - ], - "Human": { - "Constituents of Human Blood": { - "Blood sample": "serum", - "Normal Low": [1, "µg/L"], - "Normal High": [10, "µg/L"], - "Critical": [">60", "µg/L"] - }, - "Composition of the Human Body": { - "Amount": [0.061, "g"], - "Percent of total body mass": 0.00009 - } - }, - "Borax Beads": { - "Oxidizing flame": { - "colorless": ["hot", "cold", "not saturated"], - "opaque": "supersaturated" - }, - "Reducing flame": { - "colorless": "default", - "opaque": "saturated" - } - }, - "Source": { - "Type": "Book", - "Title" : "", - "Pages": [694, 758, 760, 764, 767, 781, 792, 978, 1017, 1035, 1122, 1179, 1182, 1207] + "Liquid": { + "A": 5911, + "B": -16211, + "C": null, + "D": null, + "Range in K": "Tm-1800" } }, - { - "Name": "G.AL® C250 Aluminium Präzisionsplatte", - "Alloy": { - "Standard": "EN AW 5083", - "Type": "non heat-treatable" + "Electromagnetic Data": { + "chi_m": [16.5e-6, "cm³/mol"] + }, + "Thermodynamic Properties": { + "Crystal": { + "Delta_f H°": [0.0, "kJ/mol"], + "Delta_f G°": null, + "S°": [28.3, "J/mol/K"], + "cp": [0.897, "J/g/K"], + "Cp": [24.20, "J/mol/K"] }, - "Formula": "AlMg4.5Mn0.7", - "Heat treatment": { - "Temper": "homogenized and stress relieved, O3" + "Liquid": null, + "Gas": { + "Delta_f H°": [330.0, "kJ/mol"], + "Delta_f G°": [289.4, "kJ/mol"], + "S°": [164.6, "J/mol/K"], + "Cp": [21.4, "J/mol/K"] }, - "Electromagnetic Data": { - "Electrical conductivity": ["16-18", "m/Ω/mm²"] - }, - "Mechanical Properties": { - "Temperature": ["20-25", "°C"], - "Density": [2.66, "g/cm³"], - "Young modulus": [70, "GPa"], - "Yield strength": ["110-130", "MPa"], - "Ultimate tensile strength": ["230-290", "MPa"], - "Elongation": ["10-15", "%"], - "Hardness": { - "HBW": ["68-75", "2.5/62.5"] + "Delta_vap H": [ + { + "T": [2519, "°C"], + "Delta_vap H": [294, "kJ/mol"] } + ], + "Delta_fus H": [10.71, "kJ/mol"] + }, + "Crystallographic Data": { + "Crystal system": "cubic", + "Structure type": "copper", + "Z": 4, + "a": [4.049, "Å"], + "b": null, + "c": null, + "alpha": null, + "beta": null, + "gamma": null + }, + "Cubic Crystal": { + "rho": [2.6970, "g/cm³"], + "T": [298, "K"], + "C11": [1.0675e11, "N/m²"], + "C12": [0.6041e11, "N/m²"], + "C44": [0.2834e11, "N/m²"] + }, + "Dynamic viscosity mu(T)": [ + { + "T": [700, "°C"], + "mu": [1.289, "mPa s"] }, - "Thermodynamic Properties": { - "Crystal": { - "Coefficient of thermal expansion": [23.3, "m/µm/K"] - } + { + "T": [750, "°C"], + "mu": [1.200, "mPa s"] }, - "Source": { - "Type": "Web", - "URL": "https://gleich.de/en/wp-content/uploads/sites/4/2016/10/en_g.al_c250.pdf" + { + "T": [800, "°C"], + "mu": [1.115, "mPa s"] + }, + { + "T": [850, "°C"], + "mu": [1.028, "mPa s"] } + ], + "Human": { + "Constituents of Human Blood": { + "Blood sample": "serum", + "Normal Low": [1, "µg/L"], + "Normal High": [10, "µg/L"], + "Critical": [">60", "µg/L"] + }, + "Composition of the Human Body": { + "Amount": [0.061, "g"], + "Percent of total body mass": 0.00009 + } + }, + "Borax Beads": { + "Oxidizing flame": { + "colorless": ["hot", "cold", "not saturated"], + "opaque": "supersaturated" + }, + "Reducing flame": { + "colorless": "default", + "opaque": "saturated" + } + }, + "Source": { + "Type": "Book", + "Title" : "", + "Pages": [694, 758, 760, 764, 767, 781, 792, 978, 1017, 1035, 1122, 1179, 1182, 1207] } -] +}, +{ + "Name": "G.AL® C250 Aluminium Präzisionsplatte", + "Alloy": { + "Standard": "EN AW 5083", + "Type": "non heat-treatable" + }, + "Formula": "AlMg4.5Mn0.7", + "Heat treatment": { + "Temper": "homogenized and stress relieved, O3" + }, + "Electromagnetic Data": { + "sigma": ["16-18", "m/Ω/mm²"] + }, + "Mechanical Properties": { + "T": ["20-25", "°C"], + "rho": [2.66, "g/cm³"], + "E": [70, "GPa"], + "R_p02": ["110-130", "MPa"], + "R_m": ["230-290", "MPa"], + "Elongation": ["10-15", "%"], + "Hardness": { + "HBW": ["68-75", "2.5/62.5"] + } + }, + "Thermodynamic Properties": { + "Crystal": { + "alpha": [23.3, "m/µm/K"], + "k": ["110-130", "W/m/K"], + "cp": [900, "J/kg/K"] + } + }, + "Source": { + "Type": "Web", + "URL": "https://gleich.de/en/wp-content/uploads/sites/4/2016/10/en_g.al_c250.pdf" + } +}] diff --git a/materials.py b/materials.py index 8ba1f36..c40c483 100755 --- a/materials.py +++ b/materials.py @@ -112,7 +112,7 @@ def main(): action='append_const', const="rho", help='get density from material') parser_material.add_argument('-T', '--Tm', dest='const_collection', - action='append_const', const="Tm", + action='append_const', const="T_m", help='get melting point temperature') args = parser.parse_args()