Skip to content

Commit 002494c

Browse files
committed
Fix parameter tutorial notebook
1 parent a511d0e commit 002494c

1 file changed

Lines changed: 35 additions & 19 deletions

File tree

docs/tutorials/eos/pcsaft_working_with_parameters.ipynb

Lines changed: 35 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -625,9 +625,13 @@
625625
" molarweight=74.123, \n",
626626
" m=2.7515, \n",
627627
" sigma=3.6139, \n",
628-
" epsilon_k=259.59, \n",
629-
" kappa_ab=0.006692, \n",
630-
" epsilon_k_ab=2544.6\n",
628+
" epsilon_k=259.59,\n",
629+
" association_sites=[{\n",
630+
" \"na\": 1,\n",
631+
" \"nb\": 1,\n",
632+
" \"kappa_ab\": 0.006692, \n",
633+
" \"epsilon_k_ab\": 2544.6\n",
634+
" }]\n",
631635
")"
632636
]
633637
},
@@ -639,10 +643,10 @@
639643
{
640644
"data": {
641645
"text/markdown": [
642-
"|component|molarweight|m|sigma|epsilon_k|kappa_ab|epsilon_k_ab|\n",
643-
"|-|-|-|-|-|-|-|\n",
644-
"|butane|58.123|2.3316|3.7086|222.88|||\n",
645-
"|1-butanol|74.123|2.7515|3.6139|259.59|0.006692|2544.6|\n",
646+
"|component|molarweight|m|sigma|epsilon_k|na|nb|kappa_ab|epsilon_k_ab|\n",
647+
"|-|-|-|-|-|-|-|-|-|\n",
648+
"|butane|58.123|2.3316|3.7086|222.88|\n",
649+
"|1-butanol|74.123|2.7515|3.6139|259.59|1|1|0.006692|2544.6|\n",
646650
"\n",
647651
"|component 1|component 2|k_ij|\n",
648652
"|-|-|-|\n",
@@ -677,8 +681,14 @@
677681
" \"m\": 2.7515,\n",
678682
" \"sigma\": 3.6139,\n",
679683
" \"epsilon_k\": 259.59,\n",
680-
" \"kappa_ab\": 0.006692,\n",
681-
" \"epsilon_k_ab\": 2544.6\n",
684+
" \"association_sites\": [\n",
685+
" {\n",
686+
" \"kappa_ab\": 0.006692,\n",
687+
" \"epsilon_k_ab\": 2544.6,\n",
688+
" \"na\": 1.0,\n",
689+
" \"nb\": 1.0\n",
690+
" }\n",
691+
" ]\n",
682692
" }\n",
683693
"]\n",
684694
"\n",
@@ -718,10 +728,10 @@
718728
{
719729
"data": {
720730
"text/markdown": [
721-
"|component|molarweight|m|sigma|epsilon_k|kappa_ab|epsilon_k_ab|\n",
722-
"|-|-|-|-|-|-|-|\n",
723-
"|butane|58.123|2.3316|3.7086|222.88|||\n",
724-
"|1-butanol|74.123|2.7515|3.6139|259.59|0.006692|2544.6|\n",
731+
"|component|molarweight|m|sigma|epsilon_k|na|nb|kappa_ab|epsilon_k_ab|\n",
732+
"|-|-|-|-|-|-|-|-|-|\n",
733+
"|butane|58.123|2.3316|3.7086|222.88|\n",
734+
"|1-butanol|74.123|2.7515|3.6139|259.59|1|1|0.006692|2544.6|\n",
725735
"\n",
726736
"|component 1|component 2|k_ij|\n",
727737
"|-|-|-|\n",
@@ -756,8 +766,14 @@
756766
" \"m\": 2.7515,\n",
757767
" \"sigma\": 3.6139,\n",
758768
" \"epsilon_k\": 259.59,\n",
759-
" \"kappa_ab\": 0.006692,\n",
760-
" \"epsilon_k_ab\": 2544.6\n",
769+
" \"association_sites\": [\n",
770+
" {\n",
771+
" \"kappa_ab\": 0.006692,\n",
772+
" \"epsilon_k_ab\": 2544.6,\n",
773+
" \"na\": 1.0,\n",
774+
" \"nb\": 1.0\n",
775+
" }\n",
776+
" ]\n",
761777
" }\n",
762778
"]\n",
763779
"\n",
@@ -817,7 +833,7 @@
817833
{
818834
"data": {
819835
"text/plain": [
820-
"<GcParameters at 0x7fbbc8311d70>"
836+
"<GcParameters at 0x7fb34959a6d0>"
821837
]
822838
},
823839
"execution_count": 12,
@@ -929,7 +945,7 @@
929945
{
930946
"data": {
931947
"text/plain": [
932-
"<GcParameters at 0x7fbbc8311590>"
948+
"<GcParameters at 0x7fb3582d9470>"
933949
]
934950
},
935951
"execution_count": 15,
@@ -1295,7 +1311,7 @@
12951311
"\n",
12961312
"## Further reading\n",
12971313
"\n",
1298-
"- Files of published parameters and further explanations can be found [in the `feos` github repositoy](https://github.com/feos-org/feos/tree/main/parameters/pcsaft).\n",
1314+
"- Files of published parameters and further explanations can be found [in the feos github repositoy](https://github.com/feos-org/feos/tree/main/parameters/pcsaft).\n",
12991315
"\n",
13001316
"## Concluding remkars\n",
13011317
"\n",
@@ -1319,7 +1335,7 @@
13191335
"name": "python",
13201336
"nbconvert_exporter": "python",
13211337
"pygments_lexer": "ipython3",
1322-
"version": "3.13.5"
1338+
"version": "3.14.0"
13231339
}
13241340
},
13251341
"nbformat": 4,

0 commit comments

Comments
 (0)