From c26eaa3648bfd1202c4127ee50af2c952eb15aa0 Mon Sep 17 00:00:00 2001 From: famedeiros Date: Fri, 21 Oct 2016 13:22:45 -0200 Subject: [PATCH] issue #11 --- ...ook_Python_and_Applied_Thermodynamics.ipynb | 4 ++-- ...der_Waals_Equation_of_State_isotherms.ipynb | 18 +++++++++++++----- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Get_involved/1_Beginner/1_Jupyter_notebook_Python_and_Applied_Thermodynamics.ipynb b/Get_involved/1_Beginner/1_Jupyter_notebook_Python_and_Applied_Thermodynamics.ipynb index 115553b..4247070 100644 --- a/Get_involved/1_Beginner/1_Jupyter_notebook_Python_and_Applied_Thermodynamics.ipynb +++ b/Get_involved/1_Beginner/1_Jupyter_notebook_Python_and_Applied_Thermodynamics.ipynb @@ -959,9 +959,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [Root]", + "display_name": "Python [conda root]", "language": "python", - "name": "Python [Root]" + "name": "conda-root-py" }, "language_info": { "codemirror_mode": { diff --git a/Get_involved/1_Beginner/2_matplotlib_and_the_van_der_Waals_Equation_of_State_isotherms.ipynb b/Get_involved/1_Beginner/2_matplotlib_and_the_van_der_Waals_Equation_of_State_isotherms.ipynb index 6c6680f..c855420 100644 --- a/Get_involved/1_Beginner/2_matplotlib_and_the_van_der_Waals_Equation_of_State_isotherms.ipynb +++ b/Get_involved/1_Beginner/2_matplotlib_and_the_van_der_Waals_Equation_of_State_isotherms.ipynb @@ -65,6 +65,8 @@ "cell_type": "markdown", "metadata": {}, "source": [ + "In order to use any function of this module, we have to write `alias_name.function_name`. As an example, we will see function `numpy.linspace` that will be used in the following cells.\n", + "\n", "We will also use matplotlib, a python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms.\n", "We will be particularly interested in the pyplot interface." ] @@ -80,6 +82,13 @@ "import matplotlib as matplotlib" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "From matplotlib, we will be most interested in the pyplot submodule. We will use its functions and, in order to do that, syntax will follow the same structure mentioned above: `alias_name.submodule_name.function_name`" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -285,7 +294,7 @@ "# External references:\n", "* matplotlib magic command http://ipython.readthedocs.io/en/stable/interactive/plotting.html\n", "* matplotlib, pyplot [tutorial](http://matplotlib.org/users/pyplot_tutorial.html)\n", - "* Reid et al." + "* Reid, R. C.; Prausnitz, J. M.; Poling, B. E., The properties of gases and liquids, 4th Ed.; McGraw-Hill, 1987." ] }, { @@ -293,8 +302,8 @@ "metadata": {}, "source": [ "# Credits\n", - "* Initially developed in python 2.7 by Guilherme Carneiro Queiroz da Silva\n", - "* Adapted to ipynb with python 3.5 by Iuri Soter Viana Segtovich" + "* Initially developed in python 2.7 by Guilherme Carneiro Queiroz da Silva.\n", + "* Adapted to ipynb with python 3.5 by Iuri Soter Viana Segtovich." ] }, { @@ -302,8 +311,7 @@ "metadata": {}, "source": [ "# Conclusion\n", - "* Initially developed in python 2.7 by Guilherme Carneiro Queiroz da Silva\n", - "* Adapted to ipynb with python 3.5 by Iuri Soter Viana Segtovich" + "In this notebook, it was demonstrated how to calculate the equilibrium pressure for a pure component as a function of its molar volume and temperature using a cubic equation of state. Isotherms were plotted in a PxV graphic using matplotlib library. After finishing this reading, you should be able to make simple uses of equations of state and create figures using tools from matplotlib, like pyplot. This will be an extremely needed skill in the following steps of this course, provided that we will create several graphic relating different thermodynamic properties. " ] } ],