summaryrefslogtreecommitdiff
path: root/Materials_science_and_engineering_an_introduction/CH17.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'Materials_science_and_engineering_an_introduction/CH17.ipynb')
-rw-r--r--Materials_science_and_engineering_an_introduction/CH17.ipynb12
1 files changed, 0 insertions, 12 deletions
diff --git a/Materials_science_and_engineering_an_introduction/CH17.ipynb b/Materials_science_and_engineering_an_introduction/CH17.ipynb
index 294f5ff9..889d524a 100644
--- a/Materials_science_and_engineering_an_introduction/CH17.ipynb
+++ b/Materials_science_and_engineering_an_introduction/CH17.ipynb
@@ -27,20 +27,16 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Determination of Electrochemical Cell Characteristics\n",
"\n",
- "#Given\n",
"V_Cd=-0.403 #Half Cell Potential of Cd++|Cd\n",
"V_Ni=-0.250 #Half Cell Potential of Ni++|Ni\n",
"\n",
- "#calculation\n",
"dV=V_Ni-V_Cd\n",
"C_Ni=10**-3\n",
"C_Cd=0.5\n",
"n=2 #Net electron exchange in Redox reaction\n",
"V=-dV-(0.0592*math.log10(C_Ni/C_Cd)/n)\n",
"\n",
- "#Result\n",
"print\"Standard Cell potential is \",dV,\"V\"\n",
"print\"Net EMF is \",round(V,3),\"V\"\n",
"if V<0:\n",
@@ -77,28 +73,20 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Rate of Oxidation Computation\n",
"\n",
- "#Given\n",
- "#Activation polarisation data for Zn\n",
"VZn_Zn2=-0.763\n",
"iZn=10**-7\n",
"beta_Zn=0.09\n",
- "#For H2\n",
"iH2=10**-10\n",
"VH_H2=0\n",
"beta_H2=-0.08\n",
"\n",
- "#calculation\n",
- "#Part i\n",
"ic=10**((VH_H2-VZn_Zn2-(beta_H2*math.log10(iH2))+(beta_Zn*math.log10(iZn)))/(beta_Zn-beta_H2))\n",
"n=2 #Exchange of 2 electrons\n",
"F=96500 #Faradays constant\n",
"r=ic/(n*F)\n",
- "#Part ii\n",
"Vc=VH_H2+(beta_H2*log10(ic/iH2))\n",
"\n",
- "#Result\n",
"print\"i) Rate of oxiadation is\",round(r,12),\"mol/cm**2-s\"\n",
"print\"ii) Corrosion potential is\",round(Vc,3),\"V\"\n",
"\n"