You will learn how to read that
-
Work in a jupyter notebook.
-
Load the
dataset.csvfile to Python. Use thedf = pd.read_csvfunction of the pandas package (pip install pandas). The dataset contains multiple polymers with Tg and cte values. See the file description below for more information. -
Visualize the polymers using RDKit (
pip install rdkit). Use theDraw.MolsToGridImagefunction and thelegendargument to plot the polymers and the SMILES strings. Hint:Draw.MolsToGridImage(mols, legends=df.smiles.tolist()) -
Use matplotlib (
pip install matplotlib) to plotcte_exp(ordinate) vsabb(abscissa) using dots with dashed lines. Hint:plt.plot(x,y, 'o--). -
The empirical rule by Boyer-Spencer [1] states that
cte_bs * Tg = 0.08for polymers in its rubber state. Add a columncte_bsto the data frame that contains the computedcte_bsfor each polymer.Tgis already available in the data frame for each polymer. Plot bothcte_expandcte_bsvsabbin an new plot. -
Find a new Boyer-Spencer parameter
athat better fit to our data set. Use scipy'scurve_fitfunction (pip install scipy) to fit the functioncte = a / Tg. You should finda = 0.035(cte_bs_own = 0.035 / Tg). Addcte_bs_ownto the data frame and plotcte_exp,cte_bs, andcte_bs_ownvsabbin a new plot to find out how much better your own rule fits the data.
[1] R. Simha and R.F. Boyer, J. Chem. Phys., 37, 1003 (1962)
-
README.md: markdown formated file. Contains notes and remarks for the exercise. Read carefully!
-
dataset.csv: comma separated CSV txt file (open with any editor) that contains the "coefficient of thermal expansion" (cte) of 11 polymers.
Columns in file:
- name: polymer name
- abb: short name of polymer
- cte_exp: measured cte of the polymer in 1/K
- Tg: glass transition temperature of the polymer in K
- smiles: language to represent polymers (see https://www.polymergenome.org/guide and http://opensmiles.org/opensmiles.html)
π https://kuenneth.uni-bayreuth.de
The Kuenneth Group at the University of Bayreuth is dedicated to democratizing machine learning in materials science. Materials informatics efforts are underway more vigorously than ever before to streamline materials design, discovery, development, and deployment efficiently and effectively.