20180920,20180920_Q6-Q22-5050-2.txt,VJN,974-21,Y,oscillation at high temp,58.898,64.775,5.877,1,3,,,150.175,Q6,0.5,Q22,0.5,,,,,,,,,,,,,,,,,"[(5,15),(107,115)]",37.29587121,"[13,95]",Y,"[5,100]","[-55,20]",Q6:Q22 50:50,,,0.01,"[38.8,39.2]",,,,,,,,,,,,,,,,,,,,,
20181024,20181024_Q1-Q12-5050.txt,VJN,974-24,Y,periodic behavior in baseline,56.608,62.572,5.964,1,3,,,136.145,Q1,0.5,Q12,0.5,,,,,,,,,,,,,,,,,"[(65,70),(105,125)]",89.42256,"[71,104]",Y,"[70,110]","[-50,15]",Q1:Q12 50:50,,,,"[90.7,90.9]",,,,,,,,,,,,,,,,,,,,,
20181130,20181130_Q2-Q5-Q12-2040.txt,VJN,974-26,Y,slope; dashed line continues,58.993,63.231,4.238,1,3,,,155.784,Q2,0.2,Q5,0.4,Q12,0.4,,,,,,,,,,,,,,,"[(10,15),(100,125)]",32.8367,"[17,98]",Y,"[10,100]","[-95,10]",Q2:Q5:Q12 20:40:40,,,,"[34,34.1]",,,,,,,,,,,,,,,,,,,,,
20190117,20190117_Q6-Q12-Q3-33.txt,VJN,974-30,Y,dashed line continues,50.672,55.515,4.843,1,3,,,144.045,Q6,0.33,Q12,0.33,Q3,0.33,,,,,,,,,,,,,,,"[(10,20),(80,125)]",42.52469,"[23,77]",Y,"[15,90]","[-75,0]",Q3:Q12:Q6 33:33:33,,,0.01,,,,,,,,,,,,,,,,,,,,,,
20190226,20190226_Q5-Q12-3070.txt,VJN,974-32,Y,slight bump before eutectic,56.038,60.301,4.263,1,3,,,164.2,Q5,0.3,Q12,0.7,,,,,,,,,,,,,,,,,"[(5,20),(102,105)]",45.6286,"[30,99]",Y,"[25,105]","[-125,0]",Q5:Q12 30:70,,,,,,,,,,,,,,,,,,,,,,,,,
20190226,20190226_Q5-Q12-8020.txt,VJN,974-32,Y,small peak before eutectic ~43C,54.98,60.422,5.442,1,3,,,164.2,Q5,0.8,Q12,0.2,,,,,,,,,,,,,,,,,"[(5,20),(75,105)]",50.89768,"[30,71]",Y,"[25,80]","[-105,0]",Q5:Q12 80:20,,,,,,,,,,,,,,,,,,,,,,,,,
20190226,20190226_Q5-Q12-9010.txt,VJN,974-32,Y,tiny peak before eutectic ~43C,53.465,59.087,5.622,1,3,,,164.2,Q5,0.9,Q12,0.1,,,,,,,,,,,,,,,,,"[(5,25),(65,105)]",51.14151,"[31,61]",Y,"[25,70]","[-145,5]",Q5:Q12 90:10,,,,,,,,,,,,,,,,,,,,,,,,,
20190920,20190920_Q5Q12_2080.txt,VJN,974-59,Y,dashed line continues,54.56,58.776,4.216,1,3,,,164.2,Q5,0.5,Q12,0.5,,,,,,,,,,,,,,,,,"[(55,60),(110,120)]",70.6851,"[64,107]",N,"[50,115]","[-65,-5]",Q5:Q12 20:80,,,,,,,,,,,,,,,,,,,,,,,,,
20190920,20190920_Q5Q12_7030.txt,VJN,974-59,Y,small reverse peak before eutectic,56.879,62.051,5.172,1,3,,,164.2,Q5,0.5,Q12,0.5,,,,,,,,,,,,,,,,,"[(20,30),(80,90)]",51,"[42,76]",Y,"[25,85]","[-65,0]",Q5:Q12 70:30,2,,,,,,,,,,,,,,,,,,,,,,,,
20191121,20191121_Q5-Q12-6040-2.txt,VJN,974-61,,pos dev baseline; dashed line continues,55.227,60.892,5.665,1,3,,,164.2,Q5,0.6,Q12,0.4,,,,,,,,,,,,,,,,,"[(5,35),(80,115)]",49.74269,"[38,75]",Y,"[30,85]","[-100,5]",Q5:Q12 60:40,3,,,,,,,,,,,,,,,,,,,,,,,,
20190731,20190731_Q4Q12_5050.txt,VJN,974-47,Y,dashed line continues,56.434,62.816,6.382,1,3,,,153.37,Q4,0.5,Q12,0.5,,,,,,,,,,,,,,,,,"[(-10,20),(100,120)]",45.73283,"[24,94]",Y,"[15,100]","[-60,0]",Q4:Q12 50:50,2,1,,,,,,,,,,,,,,,,,,,,,,,
20190807,20190807_Q26Q12_5050.txt,VJN,974-47,Y,dashed line continues,56.019,63.41,7.391,5,1,,,170.59,Q26,0.5,Q12,0.5,,,,,,,,,,,,,,,,,"[(40,85),(160,175)]",113.4406,"[98,156]",Y,"[90,165]","[-290,-10]",Q26:Q12 50:50,2,,,,,,,,,,,,,,,,,,,,,,,,
20190814,20190814_Q4Q2_5050-2.txt,VJN,974-47,Y,linear fit to wrong peak; dashed line continues,56.864,60.269,3.405,5,1,,,132.33,Q4,0.5,Q2,0.5,,,,,,,,,,,,,,,,,"[(30,40),(65,75)]",55.366,"[43,62]",N,"[35,70]","[-90,5]",Q4:Q2 50:50,5,1,,,,,,,,,,,,,,,,,,,,,,,
20190504,20190504_Q2HQ5H_50-50_4.txt,VJN,974-34,Y,dashed line continues,54.789,60.889,6.1,1,1,,,145.18,Q2H,0.5,Q5H,0.5,,,,,,,,,,,,,,,,,"[(40,70),(110,140)]",94.2134,"[80,101]",Y,"[65,110]","[-175,5]",HQ2:HQ5 50:50,8,2,,,,,,,,,,,,,Y,,,,,,,,,,
20200304,20200304_Q2HQ5H_4060_5.txt,VJN,974-65,Y,dashed line continues,51.071,56.928,5.857,1,1,,,149.388,Q2H,0.4,Q5H,0.6,,,,,,,,,,,,,,,,,"[(50,70),(110,140)]",92.5145,"[64,101]",Y,"[65,110]","[-120,0]",HQ2:HQ5 40:60,,,0.01,"[94,94.5]",,,,,,,,,,,Y,,,,,,,,,,
20190513,20190513_Q2HQ5H_80-20_2.txt,VJN,974-34,Y,dashed line continues,54.464,59.71,5.246,1,1,,,132.556,Q2H,0.8,Q5H,0.2,,,,,,,,,,,,,,,,,"[(40,80),(130,140)]",94.8834,"[88,122]",Y,"[60,135]","[-50,5]",HQ2:HQ5 80:20,2,,,,,,,,,,,,,,Y,,,,,,,,,,
20190513,20190513_Q2HQ5H_60-40_6.txt,VJN,974-34,Y,dashed line continues,58.962,63.285,4.323,1,1,,,140.972,Q2H,0.6,Q5H,0.4,,,,,,,,,,,,,,,,,"[(45,75),(115,140)]",91.6159,"[75,108]",Y,"[70,125]","[-90,5]",HQ2:HQ5 60:40,2,,,,,,,,,,,,,,Y,,,,,,,,,,
20190719,20190719_Q5Hb.txt,VJN,974-47,Y,dashed line continues,49.84,55.172,5.332,1,3,,,166.22,Q5H,1,,,,,,,,,,,,,,,,,,,"[(30,110),(135,145)]",125.54072,"[114,130]",N,"[105,140]","[-205,5]",HQ5 #2,5,,,,,,,,,,,,,,Y,,,,,,,,,,
20200302,20200302_Q12Q22_5050_3.txt,VJN,974-65,Y,dashed line continues,57.605,61.701,4.096,1,3,,,164.2,Q12,0.5,Q22,0.5,,,,,,,,,,,,,,,,,"[(-5,20),(100,110)]",38.737,"[31,96]",Y,"[20,105]","[-80,10]",Q12:Q22 50:50,4,2,,,,,,,,,,,,,,,,,,,,,,,
20190110,20190110_Q1-Q22-5050.txt,VJN,974-28,,"2 large peaks, 2 small ones",50.895,55.409,4.514,1,3,,,136.145,Q1,0.5,Q22,0.5,,,,,,,,,,,,,,,,,"[(-10,20),(80,95)]",33,"[23,75.5]",Y,"[15,85]","[-100,0]",Q1:Q22 50:50,,,,,,,,,,,-16714.55905,30.72896,72.23728,30.7135,,,,,,,,,,,
20200803,20200803_Q1.txt,ACB,201-31,,positive feature at end of melting peak,55.844,61.708,5.864,1,3,,,108.09,Q1,1,,,,,,,,,,,,,,,,,,,"[(50,85),(120,130)]",107.7883,"[102,112.6]",N,"[90,125]","[-260,10]",Q1 #3,,,,,,,,,,,,,,,,,,,,,,,,,
20200803,20200803_Q12.txt,ACB,201-31,,slight positive feature at end of melting peak,55.264,59.482,4.218,1,3,,,164.2,Q12,1,,,,,,,,,,,,,,,,,,,"[(70,90),(117,127)]",110.7835539,"[102.2,111.2]",N,"[85,125]","[-295,10]",Q12,4,,,,,,,,,,,,,,,,,,,,,,,,
20200803,20200803_Q2H.txt,ACB,201-31,,positive feature at end of melting peak,55.343,63.067,7.724,1,3,,,124.14,Q2H,1,,,,,,,,,,,,,,,,,,,"[(100,110),(140,150)]",125.9173,"[115,126.9]",N,"[110,140]","[-270,0]",HQ2 #2,10,,0.01,,,,,,,,,,,,,,,,,,,,,,
20200903,20200903_Q5H.txt,DSG,,,Different melting points on first and second heat,54.745,58.068,3.323,1,3,,,166.22,Q5H,1,,,,,,,,,,,,,,,,,,,"[(30,40),(130,140)]",100,"[70,115]",N,"[30,140]","[-140,0]",Q5H,3,,,,,,,,,,,,,,,,,,,,,,,,
20200903,20200903_Q2-Q5_1-1.txt,DSG,,,No peak on second heat,54.845,58.695,3.85,1,3,,,143.16,Q2,0.5,Q5,0.5,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
20200903,20200903_Q4-Q5_1-1.txt,DSG,,,No peak on second heat,55.464,59.711,4.247,1,3,,,153.37,Q4,0.5,Q5,0.5,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
20200903,20200903_Q4H-Q5H_1-1.txt,DSG,,,No peak on second heat,54.284,58.292,4.008,1,3,,,155.39,Q4H,0.5,Q5H,0.5,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
20200903,20200903_Q2H-Q4H-Q5H_1-1-1.txt,DSG,,,No peak on second heat,55.504,61.136,5.632,1,3,,,144.973,Q2H,0.333,Q4H,0.333,Q5H,0.333,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
20200909,20200909_Q2H-Q4H-Q5H_1-1-1.txt,DSG,,,Use this for second peak,55.504,61.136,5.632,1,2,,,144.973,Q2H,0.333,Q4H,0.333,Q5H,0.333,,,,,,,,,,,,,,,"[(25,30),(100,120)]",77,"[54,81]",N,"[20,120]","[-15,0]",Q2H:Q4H:Q5H 33:33:33,,,,,,,,,,,,,,,,,,,,,,,,,
20200909,20200909_Q3_B.txt,ACB,201-47,,positive feature at end of melting peak,55.516,59.829,4.313,1,3,,,136.15,Q3,1,,,,,,,,,,,,,,,,,,,"[(10,60),(80,105)]",70.7805,"[62,71.27]",N,"[60,80]","[-380,15]",Q3,,,,,,,,,,,,,,,,,,,,,,,,,
20200909,20200909_Q6_B.txt,ACB,201-47,,positive feature at end of melting peak,54.645,58.466,3.821,1,3,,,136.15,Q6,1,,,,,,,,,,,,,,,,,,,"[(5,90),(126,135)]",120.6929673,"[106,122.76]",N,"[100,140]","[-200,30]",Q6,4,,,,,,,,,,,,,,,,,,,,,,,,
20200909,20200909_Q26_B.txt,ACB,201-47,,large positive feature at end of melting peak,54.951,57.915,2.964,1,3,,,176.98,Q26,1,,,,,,,,,,,,,,,,,,,"[(81,96),(164,170)]",145,"[120,159.3]",N,"[80,180]","[-250,80]",Q26 #3,4,,0.01,,,,,,,,,,,,,,,,,,,,,,
20200812,20200812_Q1_B.txt,ACB,201-34,,positive feature after melting peak,55.603,63.91,8.307,1,3,,,108.09,Q1,1,,,,,,,,,,,,,,,,,,,"[(50,85),(120,130)]",107.7883,"[102,112.9]",N,"[90,125]","[-260,10]",Q1,,,,,,,,,,,,,,,,,,,,,,,,,
20200224,20200224_Q6_3.txt,VJN,974-64,,peak not smooth,55.418,61.774,6.356,1,3,,,136.15,Q6,1,,,,,,,,,,,,,,,,,,,"[(40,90),(126,135)]",120.6929673,"[109,125]",N,"[90,130]","[-130,20]",Q6,2,1,0.001,,,,,,,,,,,,,,,,,,,,,,
20210319,20210319_Q6_1.txt,ACB,,,baseline very noisy after peak,60.559,65.797,5.238,1,3,,,136.15,Q6,1,,,,,,,,,,,,,,,,,,,"[(70,90),(130,140)]",121.5971,"[109,123.8]",N,"[100,130]","[-200,0]",Q6,3,1,0.01,,,,,,,,,,,,,,,,,,,,,,
20210319,20210319_DENQ.txt,DSG,,,near 80-90 very noisy,52.247,61.03,8.783,1,3,,,214.3,DENQ,1,,,,,,,,,,,,,,,,,,,"[(45,55),(70,75)]",60,"[54,72]",N,"[30,80]","[-150,30]",DENQ,3,1,0.01,,,,,,,,,,,,,,,,,,,,,,
20210319,20210319_DIPNQ.txt,DSG,,,"ok 3rd process, 1st process baseline noisy",53.74,69.854,16.114,1,3,,,242.3,DIPNQ,1,,,,,,,,,,,,,,,,,,,"[(55,65),(78,82)]",70,"[67,77]",N,"[40,90]","[-150,10]",DIPNQ,2,1,0.01,,,,,,,,,,,,,,,,,,,,,,
20210410,20210410_DENQ-DIPNQ_1-1_oldsample_satwk4.txt,DSG,,,Flat baseline after all melting complete,50.449,55.55,5.101,1,3,,,228.3,DENQ,0.5,DIPNQ,0.5,,,,,,,,,,,,,,,,,"[(-6,0),(55,65)]",40,"[8,50]",Y,"[-30,80]","[-150,30]",DENQ:DIPNQ 1:1,1,1,0.01,,,,,,,,,,,,,,,,,,,,,,
20210410,20210410_Q6Q5_5050_rerun.txt,ACB,,,"Sloped baseline before eutectic, then flat",52.845,58.054,5.209,1,3,,,150.175,Q6,0.5,Q5,0.5,,,,,,,,,,,,,,,,,"[(55,75),(100,120)]",42.3902466,"[39,97.5]",Y,"[10,110]","[-42,0]",Q6:Q5 50:50,,,,,,,,,,,,,,,,,,,,,,,,,
20181018,20181018_Q1.txt,VJN,974-24,Y,tiny feature near tip of peak,60.438,69.599,9.161,1,3,,,108.09,Q1,1,,,,,,,,,,,,,,,,,,,"[(5,65),(120,125)]",111.2,"[102,116]",N,"[90,125]","[-260,10]",Q1 #1,2,1,0.001,,,,,,,,-15822.15724,97.56372,114.1116,109.8809,Y,,,,,,,,,,Q11.000.000.00
20200803,20200803_Q5H.txt,ACB,201-31,,3 peaks on process 3 ?,54.876,58.248,3.372,1,3,,,166.22,Q5H,1,,,,,,,,,,,,,,,,,,,"[(114,119),(140,150)]",127,"[122.25,128]",N,"[100,135]","[-350,25]",HQ5 #3,12,1,0.01,,,,,,,,,,,,,,,,,,,,,,
20210419,20210419_DENQH_Dried_Batch1.txt,DSG,,,,52.268,56.376,4.108,1,3,,,216.318,DENQ,1,,,,,,,,,,,,,,,,,,,"[(72,77),(125,135)]",95,"[80,120]",N,"[20,150]","[-100,10]",DENQH (Synthesized from DENQ),2,1,0.01,,,,,,,,,,,,,,,,,,,,,,
20201215,20201215_Q17.txt,DSG,,,weird peak at end,55.567,62.435,6.868,10,1,,,180.06,Q17,1,,,,,,,,,,,,,,,,,,,"[(142,152),(186,187)]",170,"[160,185]",N,"[60,210]","[-1200,10]",Q17,1,1,0.01,,,,,,,,,,,,,,,,,,,,,,
20201215,20201215_Q27.txt,DSG,,,no clear second melting peak,56.102,60.417,4.315,10,1,,,245.88,Q27,1,,,,,,,,,,,,,,,,,,,"[(257,267),(301,306)]",290,"[270,300]",N,"[180,310]","[-2800,10]",Q27,1,1,0.01,,,,,,,,,,,,,,,,,,,,,,
20201215,20201215_IB-Q12_1-1.txt,DSG,,,crooked baseline on second heat,54.837,60.217,5.38,10,1,,,251.32,IB,0.5,Q12,0.5,,,,,,,,,,,,,,,,,"[(34,39),(61,67)]",40,"[39,61]",N,"[30,140]","[-1500,10]",IB:Q12 1:1,3,1,0.01,,,,,,,,,,,,,,,,,,,,,,
20201215,20201215_IB-Q17.txt,DSG,,,no peaks on second heat,55.279,58.997,3.718,10,1,,,259.25,IB,0.5,Q17,0.5,,,,,,,,,,,,,,,,,"[(35,37),(56,61)]",40,"[35,56]",N,"[30,180]","[-1600,10]",IB:Q17 1:1,2,1,0.01,,,,,,,,,,,,,,,,,,,,,,
20210211,20210211_IB-Q27_1-1.txt,DSG,,N (doesn't work),baseline very noisy,55.285,58.709,3.424,10,1,,,292.16,IB,0.5,Q27,0.5,,,,,,,,,,,,,,,,,"[(47,49),(74,76)]",53,"[50,65]",N,"[30,180]","[-1600,10]",IB:Q27 1:1,10,1,0.01,,,,,,,,,,,,,,,,,,,,,,
20210424,20210421_DIPNQ_OldSample.txt,DSG,,,Good baseline good peaks,53.74,69.854,16.114,1,3,,,242.3,DIPNQ,1,,,,,,,,,,,,,,,,,,,"[(55,65),(78,82)]",70,"[67,77]",N,"[40,90]","[-150,10]",DIPNQ,3,1,0.01,,,,,,,,,,,,,,,,,,,,,,
This code applies a regular solution model to a multicomponent solution to obtain the eutectic melting points (in Celsius) and compositions of the eutectics.
To use, in the inputs section, put:
-Filename for a .csv file with the single component melting points and enthalpies of melting (they should be labeled “mp_C” and “Hfus”, respectively)
-Filename for a .csv file with the binary interaction parameters (this could be the output of the reg_sol_model_get_L_from_binary.py code)
-List of components (the codes/names for the components should match with what is in the .csv files) in the mixture
-Number of components in the mixture (can be multiple). For example, putting [2,3] would calculate all binary and ternary mixtures
-Filename for output
The output file will contain all the eutectic melting points (in Celsius) and compositions, ordered by eutectic melting point.
The code applies the regular solution model derived in Baclig et al. "Large Decrease in Melting Point of Benzoquinones via High-n Eutectic MixingPredicted by a Regular Solution Model," which assumes immsicible solid phases, a single liquid phase, only binary non-ideal interactions, and the Turnbull approximation.
===
reg_sol_model_get_L_from_binary.py
===
This code applies a regular solution model to the eutectic melting point measured from a binary solution to obtain the binary interaction parameter.
To run this code for a single mixture, set analysis_type = 1.
The properties of the components of the binary mixture are hardcoded in the file and must be changed there. These include the name, enthaly of melting, and temperature of melting, given by Xname, Hmelt_X, and Tmelt_X, where X is A or B. The measured eutectic is specified by Te. The seed for the solver (fsolve) is specified by Lguess (the interaction parameter) and xeguess (the molar fraction of B at the eutectic point), and different values for these can be tried if the solver does not converge.
To run this code in a loop over many mixtures, set analysis_type = 2.
The single component data should be in a .csv with filename specified in singledf, and containing columns labeled “mp_C” and “Hfus”
The binary component data should be in a .csv with filename specified in binarydf, and contain a column labeled “T_e” (in Celsius!).
The output file will be a .csv file with the binary interaction parameters calculated.
The code applies the regular solution model derived in Baclig et al. "Large Decrease in Melting Point of Benzoquinones via High-n Eutectic MixingPredicted by a Regular Solution Model," which assumes immsicible solid phases, a single liquid phase, only binary non-ideal interactions, and the Turnbull approximation.
- Also assumes that there is another folder ../plots/ which has subfolders for different plots.
- Also assumes that there is another folder ../pub_out/
Virtual Environment Information:
Make sure you have conda installed on your computer and up to date
Following these instructions: https://uoa-eresearch.github.io/eresearch-cookbook/recipe/2014/11/20/conda/
To create a new virtual environment:
- In the terminal, type: conda create -n eutecticquinones python=3.7 anaconda
- You can replace eutecticquinones with whatever you want your virtual environment to be called, as long as it is a single word (no spaces)
- To activate virtual environnment, in the terminal, type: conda activate eutecticquinones
- You should see (eutecticquinones) in front of your command line input now
- When (if) in vscode, make sure you select the right interpreter by clicking on Python X.X.X in the bottom left corner, then selecting the (eutecticquinones) interpreter from the top menu. You can also navigate to this by pressing command+shift+p and typing interpreter -> select interpreter -> choose the one in the virtual environment. You might need to restart VSCode to get it to show up.
Python version: 3.7
This installation of python already includes all the necessary packages required for this code (see below for details). If any of the packages are not installed in your version of python, you can look up how to install them with conda
Python version: 3.7
- Packages that are used in this code:
- os
- platform
- csv
- ast
- re
- time
- sys
- itertools
- math
- copy
- pandas
- numpy
- matplotlib
- scipy
# Data Files:
- Included are the raw data files for the Q2-Q5 Binary system (at the 50-50 composition) and the Q2-Q5-Q6 Ternary system (at the eutectic composition calculated by both the ideal solution model and the regular solution model, and including the 50-50 binary mixtures of each "pair" in this sytem)