pretty print mole fractions in 3-11
This commit is contained in:
parent
5c2946622f
commit
89505358e9
1 changed files with 23 additions and 1 deletions
|
|
@ -215,7 +215,29 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"print (mix.species_moles / mix.species_moles.sum())"
|
"Xi = mix.species_moles / mix.species_moles.sum()\n",
|
||||||
|
"print (Xi)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 5,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"H2\t0.2658277399325119\n",
|
||||||
|
"CO\t0.5991610732658453\n",
|
||||||
|
"H2O\t0.06750559340082132\n",
|
||||||
|
"C(gr)\t0.06750559340082132\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"for tup in zip(mix.species_names, Xi):\n",
|
||||||
|
" print (\"{}\\t{}\".format(*tup))"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue