-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from SalvadorBrandolin/main
to clapeyron
- Loading branch information
Showing
27 changed files
with
1,063 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Welcome to the ugropy's Binder\n", | ||
"\n", | ||
"You can use this notebook to try the basics features of ugropy. You can \n", | ||
"check the full tutorial here: https://ugropy.readthedocs.io/en/latest/index.html\n", | ||
"\n", | ||
"Let's use the Groups class to obtain information of the desired molecules:" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 35, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from ugropy import Groups\n", | ||
"\n", | ||
"# Write the molecule's name as it appears on pubchem\n", | ||
"molecule_name = \"ethanol\"\n", | ||
"\n", | ||
"mol = Groups(molecule_name)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"Get groups information and properties from the Joback model" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 36, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"{'CH3': 1, 'CH2': 1, 'OH': 1}\n", | ||
"{'CH3': 1, 'CH2': 1, 'OH': 1}\n", | ||
"{'-CH3': 1, '-CH2-': 1, '-OH (alcohol)': 1}\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"print(mol.unifac_groups)\n", | ||
"print(mol.psrk_groups)\n", | ||
"print(mol.joback.groups)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 37, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"57.56641437226128\n", | ||
"499.40737356625846\n", | ||
"1.702089531406276\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"# Experimental value of ethanol's critical pressure is 61.37 bar\n", | ||
"print(mol.joback.critical_pressure)\n", | ||
"\n", | ||
"# Experimental value of ethanol's critical temperature is 514.0 K\n", | ||
"print(mol.joback.critical_temperature)\n", | ||
"\n", | ||
"# Vapor pressure at the normal boiling temperature of ethanol\n", | ||
"print(mol.joback.vapor_pressure(78.37 + 273.15))" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"You can provide the normal boiling point of the molecules to improve some \n", | ||
"Joback's predictions." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 38, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"mol = Groups(molecule_name, normal_boiling_temperature=78.37+273.15)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 39, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"520.0914853232541\n", | ||
"1.0132499999999998\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"print(mol.joback.critical_temperature)\n", | ||
"\n", | ||
"print(mol.joback.vapor_pressure(78.37+273.15))" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"You can also create a Groups object from the molecule's SMILES." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 40, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"520.0914853232541\n", | ||
"1.0132499999999998\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"# Ethanol again\n", | ||
"mol = Groups(\n", | ||
" \"CCO\", \n", | ||
" identifier_type=\"smiles\", \n", | ||
" normal_boiling_temperature=78.37+273.15\n", | ||
")\n", | ||
"\n", | ||
"print(mol.joback.critical_temperature)\n", | ||
"\n", | ||
"print(mol.joback.vapor_pressure(78.37+273.15))" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"Check the tutorial to explore more features." | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "ugropy", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.10.12" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Clapeyron Database File, | ||
PSRK Groups [csvtype = groups,grouptype = PSRK] | ||
species,groups | ||
limonene,"[""CH3"" => 2, ""CH2"" => 3, ""CH"" => 1, ""CH2=C"" => 1, ""CH=C"" => 1]" | ||
adrenaline,"[""CH2"" => 1, ""ACH"" => 3, ""ACCH"" => 1, ""OH"" => 1, ""ACOH"" => 2, ""CH3NH"" => 1]" | ||
Trinitrotoluene,"[""ACH"" => 2, ""ACCH3"" => 1, ""ACNO2"" => 3]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Clapeyron Database File,,,,, | ||
Critical Single Parameters,,,,, | ||
species,CAS,Tc,Pc,Vc,acentricfactor | ||
limonene,,657.4486692170663,2755561.066677689,0.0004965,0.3219127551737521 | ||
adrenaline,,953.7486693594541,5569169.079973267,0.0004115,1.6071531017924205 | ||
Trinitrotoluene,,1146.7095578060987,4067315.701790919,0.0005654999999999999,1.0796561474496789 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Clapeyron Database File,, | ||
Molar Mases Single Params,, | ||
species,CAS,Mw | ||
limonene,,136.23760000000001 | ||
adrenaline,,183.20680000000002 | ||
Trinitrotoluene,,227.132 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Clapeyron Database File, | ||
original UNIFAC Groups,[csvtype = groups,grouptype = originalUNIFAC] | ||
species,groups | ||
limonene,"[""CH3"" => 2, ""CH2"" => 3, ""CH"" => 1, ""CH2=C"" => 1, ""CH=C"" => 1]" | ||
adrenaline,"[""CH2"" => 1, ""ACH"" => 3, ""ACCH"" => 1, ""OH"" => 1, ""ACOH"" => 2, ""CH3NH"" => 1]" | ||
Trinitrotoluene,"[""ACH"" => 2, ""ACCH3"" => 1, ""ACNO2"" => 3]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ Tutorial | |
installation.ipynb | ||
easy_way.ipynb | ||
hard_way.ipynb | ||
ugropy_failing.ipynb | ||
ugropy_failing.ipynb | ||
writers.ipynb |
Oops, something went wrong.