From 2326602ddeb8aa2e2defd7dd1b13b26ef817e85e Mon Sep 17 00:00:00 2001 From: Trupti Kini Date: Thu, 22 Sep 2016 23:30:26 +0600 Subject: Added(A)/Deleted(D) following books A sample_notebooks/AditiMalik/Chapter6.ipynb A sample_notebooks/IshitaGupta/Chapter12.ipynb --- sample_notebooks/AditiMalik/Chapter6.ipynb | 136 +++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 sample_notebooks/AditiMalik/Chapter6.ipynb (limited to 'sample_notebooks/AditiMalik/Chapter6.ipynb') diff --git a/sample_notebooks/AditiMalik/Chapter6.ipynb b/sample_notebooks/AditiMalik/Chapter6.ipynb new file mode 100644 index 00000000..4810e6f8 --- /dev/null +++ b/sample_notebooks/AditiMalik/Chapter6.ipynb @@ -0,0 +1,136 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Chapter 6:POWER AND POWER FACTOR" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex6.1:pg-229" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "115.69 =Average Power is(in watts)\n" + ] + } + ], + "source": [ + "#Example 6_1 page no:229\n", + "import math \n", + "phase_angle=30#phase angle in degree\n", + "Vm=100#maximum voltage\n", + "Veff=100.0/math.sqrt(2)\n", + "Ieff=15/math.sqrt(2)\n", + "Pav=Veff*Ieff*math.cos(phase_angle)\n", + "print round(Pav,2),\"=Average Power in watts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex6.2:pg-230" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "62.5 =Average power in watts\n" + ] + } + ], + "source": [ + "#Example 6_2 page no:230\n", + "import numpy\n", + "Z=5+8j\n", + "Im=5#maximum current\n", + "Pav=Im**2*numpy.real(Z)/2\n", + "print Pav,\"=Average power in watts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex6.3:pg-231" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "625.0 =Apparent Power in VA\n", + "-0.918 =Power Factor \n", + "-573.927 =Average Power in watts\n" + ] + } + ], + "source": [ + "#Example 6_3 page no:231\n", + " \n", + "theta=53\n", + "Vm=50#peak voltage\n", + "Im=25#peak current\n", + "Veff=Vm/math.sqrt(2)\n", + "Ieff=Im/math.sqrt(2)\n", + "Papp=Veff*Ieff\n", + "print Papp,\"=Apparent Power in VA\"\n", + "print round(math.cos(theta),3),\"=Power Factor \"\n", + "Pav=Veff*Ieff*math.cos(theta)\n", + "print round(Pav,3),\"=Average Power in watts\"\n", + "#value of power factor is rounded off in text book so value vary slightly\n" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} -- cgit