diff options
Diffstat (limited to 'sample_notebooks/keerthi vanigundla/keerthi vanigundla_version_backup')
2 files changed, 671 insertions, 0 deletions
diff --git a/sample_notebooks/keerthi vanigundla/keerthi vanigundla_version_backup/R.K.RAJPUTCHAPTER_12.ipynb b/sample_notebooks/keerthi vanigundla/keerthi vanigundla_version_backup/R.K.RAJPUTCHAPTER_12.ipynb new file mode 100755 index 00000000..b7f5147f --- /dev/null +++ b/sample_notebooks/keerthi vanigundla/keerthi vanigundla_version_backup/R.K.RAJPUTCHAPTER_12.ipynb @@ -0,0 +1,292 @@ +{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 12:Measurement of Non-Electrical Quantities"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 12.1,Page No:600"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [],
+ "source": [
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "Gf = 2; #guage factor \n",
+ "a = 100*10**6; #stress in N/m**2\n",
+ "E = 200*10**9; #elasticity of steel in N/m**2\n",
+ "\n",
+ "#calculation\n",
+ "st = (a/float(E)); #strain\n",
+ "x = Gf*st; # change in guage resistance\n",
+ "p = (x)*100; #percentage change in resistance in %\n",
+ "\n",
+ "#result\n",
+ "print\"percentage change in resistance %1.1f\"%p,\"%\";\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 12.4,Page No:631"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "water flow rate 0.0586 m**3/s\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "D1 = 200*10**-3; # inlet horizontal venturimeter in m\n",
+ "D2 = 100*10**-3; #throat horizontal enturimeter in m\n",
+ "h = 220*10**-3; #pressure in m\n",
+ "Cd = 0.98; #coefficient of discharge \n",
+ "phg = 13.6; #specific gravity of mercury\n",
+ "p = 1000; #density of water in kg/m**3\n",
+ "g = 9.81; #gravitational constant\n",
+ "pw = 1; #density of water in kg/m**3\n",
+ "w = 9.81; \n",
+ "\n",
+ "\n",
+ "\n",
+ "#calculation\n",
+ "x = (g)*(h)*(phg-pw)*1000; #differential pressure head in N/m**2\n",
+ "a = 1-((D2/float(D1))**4); #velocity approach factor\n",
+ "M = 1/(float(math.sqrt(a))); #velocity of approach\n",
+ "b = math.sqrt(((2*g)/(float(w*p)))*x);\n",
+ "A2 = (math.pi/float(4))*((D2)**2); #area in m**2\n",
+ "Q = Cd*M*A2*(b); #discharge through venturimeter in m**3/s\n",
+ " \n",
+ "#result\n",
+ "print'water flow rate %3.4f'%Q,'m**3/s'; \n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 12.5,Page No:631"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "rate of flow of oil 0.137850 m**3/s\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "D1 = 400*10**-3; #diameter at inlet in m\n",
+ "D2 = 200*10**-3; #diameter at throat in m\n",
+ "y = 50*10**-3; #reading of differential manometer in m\n",
+ "Shl = 13.6; #specific gravity of mercury in U-tube \n",
+ "Sp = 0.7; #specific gravity of oil in U-tube \n",
+ "h = 0.92;\n",
+ "\n",
+ "#bernoulli's equation\n",
+ "#p1/w +z1+V1**2=p2/w +z2+V2**2\n",
+ "#solving we get h+(V1**2/2*g)-(V2**2/2*g)=0\n",
+ "# calculations\n",
+ "\n",
+ "A1 = (math.pi/float(4))*(D1**2); #area in m**2\n",
+ "A2 = (math.pi/4)*(D2**2); #area in m**2\n",
+ "a = A2/float(A1); #ratio of areas\n",
+ "#V1 = a*V2;\n",
+ "#h+(V1**2/2*g)*(1-(1/4))=0\n",
+ "V2 = math.sqrt((2*g*h)/(float(1-((a)**2)))); \n",
+ "Q = A2*V2; #rate of oil flow in m**3/s\n",
+ "\n",
+ "#result\n",
+ "print'rate of flow of oil %f'%Q,'m**3/s';\n",
+ "\n",
+ "\n",
+ "\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 12.6,Page No:633"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "difference in pressure head 4952.073 N/m**2\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "Q = 0.015; #rate of flow in m**3/s\n",
+ "D0 = 100*10**-3; #diameter orifice in m\n",
+ "D1 = 200*10**-3; #diameter of pipe in m\n",
+ "Cc = 0.6; #coefficient of contraction\n",
+ "Cd = 0.6; #coefficient of discharge\n",
+ "E = 1; #thermal expansion factor\n",
+ "g = 9.81; #gravitational constant \n",
+ "w = 9810;\n",
+ "\n",
+ "#calculations\n",
+ "A0 = ((math.pi)/float(4))*(D0**2); #area in m**2\n",
+ "A1 = ((math.pi)/float(4))*(D1**2); #area in m**2\n",
+ "a = (Cc*A0)/(float(A1)); \n",
+ "M = math.sqrt(1-((a)**2));\n",
+ "K = Cd/float(M);\n",
+ "x = ((Q/float(K*E*A0))**2);\n",
+ "dp = (x*w/float(2*g)); #difference in pressure head in N/m**2\n",
+ "\n",
+ "#result\n",
+ "print'difference in pressure head %3.3f'%dp,'N/m**2';\n",
+ "\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example:12.7,Page No:633"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "discharge through the orifice 0.742 m**3/s\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "C0 = 0.6; #coefficient of orifice\n",
+ "Cv = 0.97; #coefficient of discharge\n",
+ "Qv = 1.2; #flow rate in m**3/s\n",
+ "\n",
+ "#calculations\n",
+ "Q0 = (C0/Cv)*Qv; #discharge through the orifice in m**3/s\n",
+ "\n",
+ "#result\n",
+ "print'discharge through the orifice %3.3f'%Q0,'m**3/s'\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example:12.8,Page No:634"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "velocity of submarine 25.0 km/h\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "Shl = 13.6; #specific gravity of mercury\n",
+ "Sl = 1.025; #specific gravity of sea water\n",
+ "y = 200*10**-3; #reading in m\n",
+ "g = 9.81; #constant\n",
+ "\n",
+ "#calculation\n",
+ "x = Shl/float(Sl);\n",
+ "h = (y*((x)-1)); #head\n",
+ "V = math.sqrt(2*g*h); #velocity of submarine in km/h\n",
+ "\n",
+ "#result\n",
+ "print'velocity of submarine %3.1f'%(V*(18/float(5))),'km/h';"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 2",
+ "language": "python",
+ "name": "python2"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython2",
+ "version": "2.7.6"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/sample_notebooks/keerthi vanigundla/keerthi vanigundla_version_backup/r.k.shukla.ipynb b/sample_notebooks/keerthi vanigundla/keerthi vanigundla_version_backup/r.k.shukla.ipynb new file mode 100755 index 00000000..19a84998 --- /dev/null +++ b/sample_notebooks/keerthi vanigundla/keerthi vanigundla_version_backup/r.k.shukla.ipynb @@ -0,0 +1,379 @@ +{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 4:Behaviour of Dielectric Materials in ac and dc Fields"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Example 4.1,Page No:4.8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "dielectric constant of argon = 1.0005466\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "\n",
+ "alpha = 1.8*10**-40; #polarisability of argon in Fm**2\n",
+ "e0 = 8.85*10**-12; #dielectric constant F/m\n",
+ "N1 = 6.02*10**23; #avagadro number in mol**-1\n",
+ "x = 22.4*10**3; #volume in m^3\n",
+ " \n",
+ "#formula\n",
+ "#er-1=N*p/e0*E=(N/e0)*alpha\n",
+ "#calculation\n",
+ "N = N1/float(x); #number of argon atoms in per unit volume in cm**3\n",
+ "N2 = N*10**6; #number of argon atoms in per unit volume in m**3\n",
+ "er = 1+((N2/float(e0)))*(alpha); #dielectric constant F/m\n",
+ "\n",
+ "\n",
+ "#result\n",
+ "print'dielectric constant of argon = %3.7f'%er;"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Example 4.2,Page No:4.9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 18,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "displacement = 1.25e-17 m\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "alpha = 1.8*10**-40; #polarisability of argon in F*m^2\n",
+ "E = 2*10**5; # in V/m\n",
+ "z = 18;\n",
+ "e = 1.6*10**-19;\n",
+ " \n",
+ " \n",
+ "#formula\n",
+ "#p=18*e*x\n",
+ "#calculation\n",
+ "p = alpha*E;\n",
+ "x = p/float(18*e); #shift of electron in m\n",
+ "\n",
+ " \n",
+ "#result\n",
+ "print'displacement = %3.2e'%x,'m';"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Example 4.3,Page No:4.9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 20,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "local field of benzene=4.40e+03 V/m\n",
+ "local field of water=-1.57e+06 V/m\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "E0 = 300*10**2; #local field in V/m\n",
+ "P1 = 3.398*10**-7; #dipole moment Coulomb/m\n",
+ "P2 = 2.124*10**-5; #dipole moment Coulomb/m\n",
+ "e0 = 8.85*10**-12; #permittivity in F/m\n",
+ " \n",
+ " \n",
+ "#formula\n",
+ "#E10Ci=E0-(2*Pi/3*e0)\n",
+ "#calculation\n",
+ "E10C1 = E0-((2*P1)/float(3*e0)); #local field of benzene in V/m\n",
+ "E10C2 = E0-((2*P2)/float(3*e0)); #local field of water in V/m\n",
+ " \n",
+ "#result\n",
+ "print'local field of benzene=%3.2e'%E10C1,'V/m';\n",
+ "print'local field of water=%3.2e'%E10C2,'V/m';"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Example 4.4,Page No:4.9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+ "source": [
+ "# import math\n",
+ "\n",
+ "#variable declaration\n",
+ "p1 = 5.12*10**-34; #p of benzene kg/m**3\n",
+ "p2 = 6.34*10**-34; #p of water kg/m**3\n",
+ "e10C1 = 4.4*10**3; #local field of benzene in V/m\n",
+ "e10C2 = 1570*10**3; #local field of water in V/m\n",
+ " \n",
+ " \n",
+ "#formula\n",
+ "#p=alphai*e10Ci\n",
+ "#calculation\n",
+ "alpha1 = p1/float(e10C1); #polarisability of benzene in F*m**2\n",
+ "alpha2 = p2/float(e10C2); #polarisability of water in F*m**2\n",
+ " \n",
+ "\n",
+ "#result\n",
+ "print'polarisability of benzene = %3.2e'%alpha1,'F*m**2';\n",
+ "print'polarisability of water = %3.2e'%alpha2,'F*m**2';\n",
+ "print'Note: mistake in textbok,alpha1 value is printed as 1.16*10**-38 instead of 1.16*10**-37';"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Example 4.5,Page No:4.10"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 25,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "polarisation of benzene = 6.80e-07 c/m**2\n",
+ "polarisation of water = 4.25e-05. c/m**2\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "e0 = 8.85*10**-12; #abslute permitivity in (m**-3)*(kg**-1)*(s**4)*(A**2)\n",
+ "E = 600*10**2; #strength in V/cm\n",
+ "er1 = 2.28; #dielectric constant of benzene in coulomb/m\n",
+ "er2 = 81; #dielectric constant of water in coulomb/m\n",
+ "\n",
+ "\n",
+ "#fomula\n",
+ "#p=e0*E*(er-1)\n",
+ "#calculation\n",
+ "pB = e0*E*(er1-1); #polarisation of benzene in c/m**2\n",
+ "pW = e0*E*(er2-1); #polarisation of water in c/m**2\n",
+ " \n",
+ "\n",
+ "#result\n",
+ "print'polarisation of benzene = %3.2e'%pB,'c/m**2';\n",
+ "print'polarisation of water = %3.2e.'%pW,'c/m**2';"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Example 4.6,Page No:4.10"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "percentage contribution from ionic polaristion = 59.82 %\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "er0 = 5.6; #static dielectric cnstant of NaCl \n",
+ "n = 1.5; #optical index of refraction\n",
+ " \n",
+ "\n",
+ "#calculation\n",
+ "er = er0-n**2;\n",
+ "d = ((er/float(er0))*100); #percentage contribution from ionic polaristion in %\n",
+ " \n",
+ "#result \n",
+ "print'percentage contribution from ionic polaristion = %3.2f'%d,'%';\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Example 4.7,Page No:4.10"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 29,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "separation=1.69e-17 m\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "alpha = 0.18*10**-40; #polarisability of He in F *m**2\n",
+ "E = 3*10**5; #constant in V/m\n",
+ "N = 2.6*10**25; #number of atoms in per m**3\n",
+ "e = 1.6*10**-19;\n",
+ " \n",
+ " \n",
+ "#formula\n",
+ "#P=N*p\n",
+ "#charge of He=2*electron charge\n",
+ "#p=2(e*d)\n",
+ "#calculation\n",
+ "P = N*alpha*E; #in coul/m**2\n",
+ "p = P/float(N); #polarisation of He in coul.m\n",
+ "d = p/float(2*e); #separation between charges in m\n",
+ " \n",
+ " \n",
+ "#result \n",
+ "print'separation=%3.2e'%d,'m';\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "collapsed": true
+ },
+ "source": [
+ "# Example 4.8,Page No:4.10"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "oriental polarisation=9.66e-08 coul/m**2\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "N = 10**27; #number of HCl molecules in molecules/m**3\n",
+ "E = 10**5; #electric field in V/m\n",
+ "P = 1.04*3.33*10**-30; #permanent dipole moment in coul.m\n",
+ "T = 300; #temperature in kelvin\n",
+ "K = 1.38*10**-23;\n",
+ " \n",
+ " \n",
+ "#calculation\n",
+ "P0 = (N*(P**2)*E)/float(3*K*T); #oriental polarisation in coul/m^2\n",
+ "\n",
+ " \n",
+ "#result\n",
+ "print'oriental polarisation=%3.2e'%P0,'coul/m**2';"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+ "source": []
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 2",
+ "language": "python",
+ "name": "python2"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython2",
+ "version": "2.7.6"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
|