summaryrefslogtreecommitdiff
path: root/Thermodynamics_for_Engineers_by_J_S_Doolittle/7-Entropy.ipynb
diff options
context:
space:
mode:
authorprashantsinalkar2020-04-14 10:19:27 +0530
committerprashantsinalkar2020-04-14 10:23:54 +0530
commit476705d693c7122d34f9b049fa79b935405c9b49 (patch)
tree2b1df110e24ff0174830d7f825f43ff1c134d1af /Thermodynamics_for_Engineers_by_J_S_Doolittle/7-Entropy.ipynb
parentabb52650288b08a680335531742a7126ad0fb846 (diff)
downloadall-scilab-tbc-books-ipynb-476705d693c7122d34f9b049fa79b935405c9b49.tar.gz
all-scilab-tbc-books-ipynb-476705d693c7122d34f9b049fa79b935405c9b49.tar.bz2
all-scilab-tbc-books-ipynb-476705d693c7122d34f9b049fa79b935405c9b49.zip
Initial commit
Diffstat (limited to 'Thermodynamics_for_Engineers_by_J_S_Doolittle/7-Entropy.ipynb')
-rw-r--r--Thermodynamics_for_Engineers_by_J_S_Doolittle/7-Entropy.ipynb67
1 files changed, 67 insertions, 0 deletions
diff --git a/Thermodynamics_for_Engineers_by_J_S_Doolittle/7-Entropy.ipynb b/Thermodynamics_for_Engineers_by_J_S_Doolittle/7-Entropy.ipynb
new file mode 100644
index 0000000..4958a29
--- /dev/null
+++ b/Thermodynamics_for_Engineers_by_J_S_Doolittle/7-Entropy.ipynb
@@ -0,0 +1,67 @@
+{
+"cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 7: Entropy"
+ ]
+ },
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 7.1: Change_in_Entropy.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"clc\n",
+"clear\n",
+"//Initialization of variables\n",
+"T2=920 //R\n",
+"T1=520 //R\n",
+"P1=14 //psia\n",
+"P2=84 //psia\n",
+"J=778\n",
+"R=53.35\n",
+"cv=0.1715\n",
+"N=1\n",
+"//calculations\n",
+"k= log(T2/T1) /log(P2/P1)\n",
+"n=1/(1-k)\n",
+"cx=cv+R/(J*(1-n))\n",
+"dS=N*cx*log(T2/T1)\n",
+"//results\n",
+"printf('Change in entropy = %.5f unit of entropy',dS)"
+ ]
+ }
+],
+"metadata": {
+ "kernelspec": {
+ "display_name": "Scilab",
+ "language": "scilab",
+ "name": "scilab"
+ },
+ "language_info": {
+ "file_extension": ".sce",
+ "help_links": [
+ {
+ "text": "MetaKernel Magics",
+ "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
+ }
+ ],
+ "mimetype": "text/x-octave",
+ "name": "scilab",
+ "version": "0.7.1"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}