diff options
author | Prashant S | 2020-04-14 10:25:32 +0530 |
---|---|---|
committer | GitHub | 2020-04-14 10:25:32 +0530 |
commit | 06b09e7d29d252fb2f5a056eeb8bd1264ff6a333 (patch) | |
tree | 2b1df110e24ff0174830d7f825f43ff1c134d1af /Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi | |
parent | abb52650288b08a680335531742a7126ad0fb846 (diff) | |
parent | 476705d693c7122d34f9b049fa79b935405c9b49 (diff) | |
download | all-scilab-tbc-books-ipynb-master.tar.gz all-scilab-tbc-books-ipynb-master.tar.bz2 all-scilab-tbc-books-ipynb-master.zip |
Initial commit
Diffstat (limited to 'Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi')
9 files changed, 5524 insertions, 0 deletions
diff --git a/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/1-Electronic_Voltmeters.ipynb b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/1-Electronic_Voltmeters.ipynb new file mode 100644 index 0000000..6fa29e4 --- /dev/null +++ b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/1-Electronic_Voltmeters.ipynb @@ -0,0 +1,355 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1: Electronic Voltmeters" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.10: find_calibration_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-1,Example1_10,pg 1_41\n", +"rd=200*10^3\n", +"gm=0.004\n", +"Rs=40*10^3\n", +"Rm=1000\n", +"V1=1\n", +"rdf=rd/(1+gm*rd)//actual rd\n", +"Rth=(2*Rs*rdf/(Rs+rdf))\n", +"Vo=(gm*rdf*Rs)*V1/(rdf+Rs)\n", +"Im=50*10^-6\n", +"Rcal=(Vo/Im)-Rth-Rm//caliberation resistance\n", +"printf('caliberation resistance\n')\n", +"printf('Rcal=%.2f ohm',Rcal)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.11: design_FET_voltmeter.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-1,Example1_11,pg 1_42\n", +"Vin=3\n", +"V1=1\n", +"Rin=1*10^6//input resistance of FET\n", +"R4=Rin/100//for Vin=100V\n", +"R3=(Rin-30*R4)/30//for Vin=30V\n", +"R2=(Rin-3*R3-3*R4)/3//for Vin=3V\n", +"R1=Rin-R2-R3-R4\n", +"printf('Resistances are\n')\n", +"printf('R1=%.2f ohm\n',R1)\n", +"printf('R2=%.2f ohm\n',R2)\n", +"printf('R3=%.2f ohm\n',R3)\n", +"printf('R4=%.2f ohm',R4)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.1: calculate_multiplier_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-1,Example1_1,pg 1_17\n", +"Erms=10\n", +"Ep=sqrt(2)*Erms\n", +"Eav=0.6*Ep\n", +"E=Eav/2\n", +"Edc=0.45*Erms\n", +"Idc=1*10^-3\n", +"Rm=200\n", +"Rs=(Edc/Idc)-Rm\n", +"printf('required multiplier resistance')\n", +"printf('Rs=%.2f ohm \n',Rs )" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.2: calculate_multiplier_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-1,Example1_2,pg 1_18\n", +"Eav=9\n", +"Erms=10\n", +"Rm=500\n", +"Idc=2*10^-3\n", +"Edc=0.9*Erms\n", +"Rs=(Edc/Idc)-Rm\n", +"printf('required multiplier resistance')\n", +"printf('Rs=%.2f ohm \n',Rs )" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.3: calculate_form_factor_and_error.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-1,Example1_3,pg 1_20\n", +"Kf=1//Erms=Em for 1 time period\n", +"Kf1=1.11//Kf(sine)/Kf(square)\n", +"pere=(Kf-Kf1)/Kf*100//percentage error\n", +"printf('percentage error ')\n", +"printf('pere=%.2f ',pere)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.4: calculate_percentage_error.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-1,Example1_4,pg 1_20\n", +"A=50\n", +"T=2\n", +"function E=f(t),E=(50*t)^2,endfunction//e=At(ramp function)\n", +"exact=-2.5432596188;\n", +"I=intg(0,T,f)\n", +"abs(exact-I)\n", +"Erms=sqrt((1/T)*I)\n", +"function e=f1(t),e=50*t,//e=At(ramp function)\n", +"endfunction\n", +"exact=-2.5432596188;\n", +"I1=intg(0,T,f)\n", +"Eav=(1/T)*I1\n", +"Kf=Erms/Eav\n", +"kf1=0.961//Kf(sine)/Kf(sawtooth)\n", +"pere=(1-kf1)/1*100//percentage error\n", +"printf('percentage error ')\n", +"printf('pere=%.2f ',pere)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.5: calculate_series_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-1,Example1_5,pg 1_27\n", +"Idc=25*10^-3\n", +"Erms=200\n", +"Rm=100\n", +"Rf=500\n", +"Rd=2*Rf\n", +"Rm1=Rm+Rd//total meter resistance\n", +"Rs=(0.9*Erms)/Idc-Rm1\n", +"printf('total meter resistance')\n", +"printf('Rs=%.2f ohm',Rs)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.6: calculate_meter_current.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-1,Example1_6,pg 1_38\n", +"V1=2\n", +"Rm=50\n", +"Rd=15*10^3\n", +"gm=0.006\n", +"rd=100*10^3\n", +"Im=(gm*rd*Rd/(rd+Rd)*V1)/((2*(rd*Rd/(rd+Rd))+Rm))\n", +"printf('meter current')\n", +"printf('Im=%.4f A',Im)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.7: calibrate_meter.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-1,Example1_7,pg 1_38\n", +"V1=1\n", +"Rm=50\n", +"Rd=15*10^3\n", +"gm=0.006\n", +"rd=100*10^3\n", +"Im=(gm*rd*Rd/(rd+Rd)*V1)/((2*(rd*Rd/(rd+Rd))+Rm))\n", +"printf('meter current')\n", +"printf('Im=%.4f A',Im)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.8: design_FET_voltmeter.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-1,Example1_8,pg 1_39\n", +"V1=1\n", +"Vin=30\n", +"Rin=9*10^6\n", +"R4=Rin/100//for Vin=100V\n", +"R3=(Rin-50*R4)/50//for Vin=50V\n", +"R2=(Rin-30*R3-30*R4)/30//for Vin=30V\n", +"R1=Rin-R2-R3-R4\n", +"printf('resitance values are\n')\n", +"printf('R1=%.2f ohm\n',R1)\n", +"printf('R2=%.2f ohm\n',R2)\n", +"printf('R3=%.2f ohm\n',R3)\n", +"printf('R4=%.2f ohm\n',R4)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.9: calculate_series_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-1,Example1_9,pg 1_40\n", +"rd=10*10^3\n", +"gm=0.003\n", +"rdf=rd/(1+gm*rd)//actual rd\n", +"Rs=15*10^3\n", +"V1=1//input voltage\n", +"Vo=(gm*rdf*Rs)*V1/(rdf+Rs)\n", +"Rth=(2*Rs*rdf/(Rs+rdf))\n", +"Rm=1800\n", +"Im=Vo/(Rth+Rm)\n", +"Img=0.1*10^-3//meter current given\n", +"Rf=(Vo/Img)-Rth-Rm//series resistance\n", +"printf('current Im=%.5f A\n',Im)\n", +"printf('seires resistance\n')\n", +"printf('Rf=%.2f ohm\n',Rf)" + ] + } +], +"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 +} diff --git a/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/10-Three_Phase_Induction_Motors.ipynb b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/10-Three_Phase_Induction_Motors.ipynb new file mode 100644 index 0000000..ae1016a --- /dev/null +++ b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/10-Three_Phase_Induction_Motors.ipynb @@ -0,0 +1,1203 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 10: Three Phase Induction Motors" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.10: calculate_external_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_10,pg10_36\n", +"R2=0.04\n", +"X2=0.2\n", +"//for Tm=Tst, sm=1\n", +"R21=X2\n", +"Rex=R2-R21\n", +"//for Tst=Tm/2........(1)\n", +"//Tst=k*(E2^2)*R21/((R21^2)+(X2^2))......(2)with added resistance\n", +"//from (1) and (2)\n", +"//(R21^2)-0.8*R21+0.04=0\n", +"a=1\n", +"b=-0.8\n", +"c=0.04\n", +"R21=(-b-sqrt((b^2)-4*a*c))/(2*a)//neglecting higher value\n", +"Rex=R21-R2\n", +"printf('external resistance\n')\n", +"printf('Rex=%.4f ohm per phase',Rex)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.11: calculate_rotor_copper_loss.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_11,pg10_42\n", +"Tsh=190\n", +"P=8\n", +"f=50\n", +"fr=1.5\n", +"ML=700\n", +"s=fr/f\n", +"Ns=120*f/P\n", +"N=Ns*(1-s)\n", +"Po=Tsh*(2*%pi*N/60)\n", +"Pm=Po+ML\n", +"Pc=Pm*s/(1-s)\n", +"printf('rotor copper loss\n')\n", +"printf('Pc=%.3f W',Pc)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.12: calculate_full_load_efficiency.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_12,pg10_43\n", +"P=4\n", +"f=50\n", +"Pi=50*10^3\n", +"N=1440\n", +"Sl=1000\n", +"Fl=650\n", +"Ns=120*f/P\n", +"s=(Ns-N)/Ns\n", +"P2=Pi-Sl\n", +"Pc=s*P2\n", +"Pm=P2-Pc\n", +"Po=Pm-Fl\n", +"n=Po*100/Pi\n", +"printf('full load efficiency\n')\n", +"printf('n=%.2f',n)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.13: calculate_slip_and_rotor_resistance_per_phase.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_13,pg10_44\n", +"P=4\n", +"f=50\n", +"Tsh=300\n", +"Tlost=50\n", +"fr=120/60//Hz\n", +"s=fr/f\n", +"s=s*100\n", +"printf('slip s=%.f \n',s)\n", +"Ns=120*f/P\n", +"s=s/100\n", +"N=Ns*(1-s)\n", +"Po=Tsh*2*%pi*N/60\n", +"Fl=Tlost*2*%pi*N/60\n", +"Pm=Po+Fl\n", +"Pc=Pm*s/(1-s)\n", +"Rcl=Pc/3//rotor copper loss per phase\n", +"P2=Pc/s\n", +"n=Pm*100/P2\n", +"I2r=60\n", +"R2=Rcl/(I2r^2)\n", +"printf('net output power\n')\n", +"printf('Po=%.3f W\n',Po)\n", +"printf('rotor copper loss per phase\n')\n", +"printf('Rcl=%.3f W\n',Rcl)\n", +"printf('rotor efficiency\n')\n", +"printf('n=%.2f \n',n)\n", +"printf('rotor resistance per phase\n')\n", +"printf('R2=%.4f ohm/ph',R2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.14: calculate_gross_mechanical_power_and_efficiency.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_14,pg10_45\n", +"Po=25*10^3\n", +"f=50\n", +"P=4\n", +"Ns=120*f/P\n", +"N=1410\n", +"s=(Ns-N)/Ns\n", +"Ml=850\n", +"Pm=Po+Ml\n", +"Pc=Pm*s/(1-s)\n", +"I2r=65\n", +"R2=Pc/(3*(I2r^2))\n", +"Sl=1.7*Pc\n", +"P2=Pc/s\n", +"Pin=P2+Sl\n", +"n=Po*100/Pin\n", +"printf('gross mechanical power\n')\n", +"printf('Pm=%.f W\n',Pm)\n", +"printf('rotor copper losses\n')\n", +"printf('Pc=%.f W\n',Pc)\n", +"printf('rotor resistance per phase\n')\n", +"printf('R2=%.3f ohm/ph\n',R2)\n", +"printf('full load efficiency\n')\n", +"printf('n=%.2f',n)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.15: calculate_shaft_torque_and_full_load_efficiency.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_15,pg10_47\n", +"Po=24*10^3\n", +"Il=57\n", +"Is=Il\n", +"P=8\n", +"N=720\n", +"f=50\n", +"Vl=415\n", +"pf=0.707\n", +"Ns=120*f/P\n", +"s=(Ns-N)/Ns\n", +"Ml=1000\n", +"Pm=Po+Ml\n", +"Pc=Pm*s/(1-s)\n", +"Tsh=Po*60/(2*%pi*N)\n", +"T=Pm*60/(2*%pi*N)\n", +"Rcl=1041.66//rotor copper loss\n", +"P2=Pc/s\n", +"Pi=sqrt(3)*Vl*Il*pf\n", +"Rs=0.1\n", +"Scl=3*(Is^2)*Rs//stator copper loss\n", +"Sl=Pi-P2\n", +"Sil=Sl-Scl//stator iron loss\n", +"n=Po*100/Pi\n", +"printf('shaft torque\n')\n", +"printf('Tsh=%.3f N-m\n',Tsh)\n", +"printf('gross torque \n')\n", +"printf('T=%.3f N-m\n',T)\n", +"printf('rotor copper losses\n')\n", +"printf('Pc=%.2f W\n',Pc)\n", +"printf('stator copper losses\n')\n", +"printf('Scl=%.2f W\n',Scl)\n", +"printf('stator iron losses\n')\n", +"printf('Sil=%.2f W\n',Sil)\n", +"printf('overallefficiency\n')\n", +"printf('n=%.2f',n)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.16: calculate_tapping_and_supply_start_current.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_16,pg10_52\n", +"sf=0.05\n", +"//Tst=Tfl\n", +"Ifs=1/6//Isc/Ifl=6\n", +"x=sqrt((Ifs^2)/sf)//tapping on transformer\n", +"t=x*100\n", +"Ist=(x^2)*6\n", +"printf('supply current\n')\n", +"printf('Ist=%.2f times Ifl',Ist)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.17: determine_ratios_of_torques.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_17,pg10_54\n", +"R2=0.4\n", +"X2=4\n", +"//Tm=k*(E2^2)/(2*X2)\n", +"//Tfl=Tm/2.5\n", +"//Tfl=k*(E2^2)/20\n", +"//Tst=k*(E2^2)*R2/((R2^2)+(X2^2))\n", +"//E2=E2/sqrt(3)\n", +"T=20*R2/(3*(((R2^2)+(X2^2))))\n", +"printf('ratio of starting torque to full load torque\n')\n", +"printf('T=%.3f ',T)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.18: calculate_rotor_current_and_external_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"//Chapter-10,Example10_18,pg10_57\n", +"Vl=1000\n", +"f=50\n", +"K=3.6\n", +"R2=0.01\n", +"X2=0.2\n", +"E1line=1000\n", +"E1=E1line/sqrt(3)\n", +"E2=E1/K\n", +"//at start,s=1\n", +"I2=160.37/sqrt((R2^2)+(X2^2))\n", +"pf=R2/sqrt((R2^2)+(X2^2))\n", +"printf('rotor current at start\n')\n", +"printf('I2=%.2f A\n',I2)\n", +"printf('rotor power factor\n')\n", +"printf('pf=%.3f lagging (answer in book is wrong)\n',pf)\n", +"//at s=0.03\n", +"s=0.03\n", +"I2r=s*160.37/sqrt((R2^2)+((s*X2)^2))\n", +"printf('rotor current at slip 0.03\n')\n", +"printf('I2r=%.2f A\n',I2r)\n", +"I2=200\n", +"R21=sqrt(((E2/I2)^2)-(X2^2))\n", +"Rex=R21-R2\n", +"printf('external resistance \n')\n", +"printf('Rex=%.4f ohm/ph (answer in book is wrong)',Rex)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.19: calculate_starting_torque_and_speed.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_19,pg10_58\n", +"P=12\n", +"f=50\n", +"R2=0.15\n", +"X2=0.25\n", +"E2=32\n", +"Ns=120*f/P\n", +"ns=Ns/60\n", +"Tst=3*(E2^2)*R2/((2*%pi*ns)*((R2^2)+(X2^2)))\n", +"N=480\n", +"s=(Ns-N)/Ns\n", +"Tfl=3*s*(E2^2)*R2/((2*%pi*ns)*((R2^2)+((s*X2)^2)))\n", +"Tm=3*(E2^2)/(2*%pi*ns*2*X2)\n", +"sm=R2/X2\n", +"N=Ns*(1-sm)\n", +"printf('starting torque\n')\n", +"printf('Tst=%.2f Nm\n',Tst)\n", +"printf('full load torque\n')\n", +"printf('Tfl=%.3f Nm\n',Tfl)\n", +"printf('maximum torque\n')\n", +"printf('Tm=%.3f Nm\n',Tm)\n", +"printf('speed at max torque\n')\n", +"printf('N=%.f r.p.m',N)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.1: calculate_full_load_slip.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_1,pg10_14\n", +"P=4\n", +"f=50\n", +"N=1410\n", +"Ns=120*f/P\n", +"s=(Ns-N)/Ns\n", +"s=s*100//%s\n", +"printf('full load slip\n')\n", +"printf('s=%.f ',s)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.20: calculate_efficiency_on_full_load.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_20,pg10_59\n", +"Po=50*735.5//(in W)\n", +"s=0.04\n", +"//Rcl=X...............rotor copper loss\n", +"//Sil=1.25X...........stator iron loss\n", +"//Ml=Y, Y=(Y+1.25X)/3, Y=0.625X\n", +"//TL=Sil+Rcl+Scl+Ml, TL=3.875X.........(a)\n", +"//Pm=Po+Y, 36775+625X..........(1)\n", +"//Pc=Pm*s/(1-s).............(2)\n", +"//Pc=X, from (1) and (2)\n", +"X=(s*Po)/(1-s-s*0.625)\n", +"TL=3.875*X//from (a)\n", +"n=Po*100/(Po+TL)\n", +"printf('efficiency on full load\n')\n", +"printf('n=%.2f ',n)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.21: calculate_new_speed.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_21,pg10_61\n", +"P=4\n", +"f=50\n", +"R2=0.25\n", +"X2=0.55\n", +"Ns=120*f/P\n", +"N1=1440\n", +"s1=(Ns-N1)/Ns\n", +"Rex=0.2\n", +"R21=R2+Rex\n", +"//T1 at s1=T2 at s2\n", +"//0.3025*s2^2-2.8342*s2+0.2025=0, s1=0.04\n", +"a=0.3025\n", +"b=-2.8342\n", +"c=0.2025\n", +"s2=(-b-sqrt((b^2)-4*a*c))/(2*a)//neglecting higher value\n", +"N2=Ns*(1-s2)\n", +"printf('new speed of motor\n')\n", +"printf('N2=%.f r.p.m',N2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.22: find_rotor_current_and_rotor_emf_per_phase.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_22,pg10_62\n", +"E2line=50\n", +"R2=0.5\n", +"X2=3\n", +"E2=E2line/sqrt(3)\n", +"//at start\n", +"s=1\n", +"I2r=s*E2/(sqrt((R2^2)+((s*X2)^2)))\n", +"printf('rotor current atstart\n')\n", +"printf('I2r=%.3f A\n',I2r)\n", +"Rx=6\n", +"I2r=s*E2/(sqrt(((R2+Rx)^2)+((s*X2)^2)))\n", +"printf('rotor current for rheostat of 6 ohm\n')\n", +"printf('I2r=%.3f A\n',I2r)\n", +"//at full load\n", +"s=0.04\n", +"I2r=s*E2/(sqrt((R2^2)+((s*X2)^2)))\n", +"pf=R2/(sqrt((R2^2)+((s*X2)^2)))\n", +"printf('full load rotor current\n')\n", +"printf('I2r=%.3f A\n',I2r)\n", +"printf('full load power factor\n')\n", +"printf('pf=%.3f lagging\n',pf)\n", +"E2r=s*E2\n", +"printf('rotor e.m.f on full load\n')\n", +"printf('E2r=%.3f V',E2r)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.23: calculate_starting_torque_and_speed.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_23,pg10_63\n", +"P=12\n", +"f=50\n", +"R2=0.15\n", +"X2=0.25\n", +"E2=32\n", +"Ns=120*f/P\n", +"ns=Ns/60\n", +"k=3\n", +"Tst=k*(E2^2)*R2/((2*%pi*ns)*((R2^2)+(X2^2)))\n", +"N=480\n", +"s=(Ns-N)/Ns\n", +"Tfl=k*s*(E2^2)*R2/((2*%pi*ns)*((R2^2)+((s*X2)^2)))\n", +"Tm=k*(E2^2)/(2*%pi*ns*2*X2)\n", +"sm=R2/X2\n", +"N=Ns*(1-sm)\n", +"printf('starting torque\n')\n", +"printf('Tst=%.2f Nm\n',Tst)\n", +"printf('full load torque\n')\n", +"printf('Tfl=%.3f Nm\n',Tfl)\n", +"printf('maximum torque\n')\n", +"printf('Tm=%.3f Nm\n',Tm)\n", +"printf('speed at max torque\n')\n", +"printf('N=%.f r.p.m',N)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.24: calculate_full_load_torque_and_external_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_24,pg10_64\n", +"P=4\n", +"f=50\n", +"R2=0.4\n", +"X2=2\n", +"E2b=520//between slip rings\n", +"E2ph=E2b/sqrt(3)\n", +"Ns=120*f/P\n", +"N=1425\n", +"sf=(Ns-N)/Ns\n", +"ns=Ns/60\n", +"Tfl=3*sf*(E2ph^2)*R2/((2*%pi*ns)*((R2^2)+((sf*X2)^2)))\n", +"Tst=3*(E2ph^2)*R2/((2*%pi*ns)*((R2^2)+((X2)^2)))\n", +"T=Tst/Tfl\n", +"Tm=3*(E2ph^2)/((2*%pi*ns)*((R2^2)+((X2)*2)))\n", +"T1=Tm/Tfl\n", +"//at start\n", +"sm=1\n", +"R21=X2\n", +"Rex=R21-R2\n", +"printf('full load torque\n')\n", +"printf('Tfl=%.2f Nm\n',Tfl)\n", +"printf('ratio of Tst to Tfl\n')\n", +"printf('T=%.4f \n',T)\n", +"printf('ratio of Tm to Tfl\n')\n", +"printf('T1=%.4f \n',T1)\n", +"printf('external resistance required\n')\n", +"printf('Rex=%.2f ohm/ph',Rex)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.25: calculate_slip_and_line_current.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_25,pg10_65\n", +"Po=33.73*10^3\n", +"P=4\n", +"Vl=400\n", +"f=50\n", +"Nfl=1440\n", +"pf=0.8\n", +"Ml=1.3*10^3\n", +"Ns=120*f/P\n", +"s=(Ns-Nfl)/Ns\n", +"fr=s*f\n", +"Pm=Po+Ml\n", +"Pc=Pm*s/(1-s)\n", +"Pcp=Pc/3//copper loss per phase\n", +"P2=Pc/s\n", +"Sl=1.4*10^3\n", +"Pi=P2+Sl\n", +"n=Po*100/Pi\n", +"Il=Pi/(sqrt(3)*Vl*pf)\n", +"printf('slip at full load\n')\n", +"printf('s=%.3f \n',s)\n", +"printf('rotor frequency\n')\n", +"printf('fr=%.f Hz\n',fr)\n", +"printf('rotor copper loss per phase\n')\n", +"printf('Pcp=%.2f W\n',Pcp)\n", +"printf('total copper loss\n')\n", +"printf('Pc=%.2f W\n',Pc)\n", +"printf('efficiency at full load\n')\n", +"printf('n=%.2f \n',n)\n", +"printf('line current drawn\n')\n", +"printf('Il=%.3f A\n',Il)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.26: find_power_factor_of_rotor.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_26,pg10_66\n", +"R2=0.04\n", +"X2=0.2\n", +"sfl=0.03\n", +"//at Tst, s=1\n", +"//Tfl=Tst\n", +"//(R21^2)-1.3633*R21+0.04=0\n", +"a=1\n", +"b=-1.3633\n", +"c=0.04\n", +"R21=(-b+sqrt((b^2)-4*a*c))/(2*a)\n", +"Rex=R21-R2\n", +"pf=R21/sqrt((R21^2)+(X2^2))\n", +"printf('power factor of rotor\n')\n", +"printf('pf=%.3f lagging',pf)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.27: determine_full_load_speed_and_speed_at_max_torque.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_27,pg10_67\n", +"P=4\n", +"f=50\n", +"Po=8*10^3\n", +"//Tst=1.5*Tfl and Tm=2*Tfl\n", +"//(R2^2)+((sfl*X2)^2)=1.5*sfl*((R2^2)+(X2^2)).................(1)\n", +"//(R2^2)+((sfl*X2)^2)=2*(sfl/sm)*((R2^2)+((sm*X2)^2))..........(2)\n", +"//dividing (1) and (2) by (X2^2) on both sides and R2/X2=sm\n", +"//(sm^2)+(sfl^2)=5*(1+(sm^2))*sfl.............(3)\n", +"//(sm^2)+(sfl^2)=2*(2*(sm^2))*(sfl/sm)=4*sm*sfl...........(4)\n", +"//dividing (3) by (4)\n", +"//(sm^2)-2.667*sm+1=0\n", +"a=1\n", +"b=-2.667\n", +"c=1\n", +"sm=(-b-sqrt((b^2)-4*a*c))/(2*a)\n", +"Ns=120*f/P\n", +"//substituting sm in (4)\n", +"//(sfl^2)-1.8052*sfl+0.2036=0\n", +"a=1\n", +"b=-1.8052\n", +"c=0.2036\n", +"sfl=(-b-sqrt((b^2)-4*a*c))/(2*a)\n", +"N=Ns*(1-sfl)\n", +"Nm=Ns*(1-sm)\n", +"printf('full load speed\n')\n", +"printf('N=%.2f r.p.m\n',N)\n", +"printf('speed at max. torque\n')\n", +"printf('Nm=%.2f r.p.m\n',Nm)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.28: calculate_starting_torque.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_28,pg10_68\n", +"Po=10*735.5//(in W)\n", +"Nfl=1410\n", +"P=4\n", +"f=50\n", +"Ns=120*f/P\n", +"sfl=(Ns-Nfl)/Ns\n", +"Nm=1200\n", +"sm=(Ns-Nm)/Ns\n", +"T=2*sfl*sm/((sm^2)+(sfl^2))//Tfl/Tm\n", +"T1=(1+(sm^2))/(2*sm)//Tm/Tst\n", +"T2=T1*T//Tfl/Tst\n", +"Tfl=Po*60/(2*%pi*Nfl)\n", +"Tst=Tfl/T2\n", +"printf('starting torque\n')\n", +"printf('Tst=%.2f Nm',Tst)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.29: calculate_speed_torque_and_external_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_29,pg10_70\n", +"P=4\n", +"f=50\n", +"R2=0.025\n", +"X2=0.15\n", +"sfl=0.04\n", +"Tfl=150\n", +"sm=R2/X2\n", +"Tm=Tfl*((R2^2)+((sfl*X2)^2))*sm/(sfl*((R2^2)+((sm*X2)^2)))\n", +"Ns=120*f/P\n", +"N=Ns*(1-sm)\n", +"//at start\n", +"R21=X2\n", +"Rex=R21-R2\n", +"printf('maximum torque\n')\n", +"printf('Tm=%.2f Nm\n',Tm)\n", +"printf('speed N=%.f r.p.m\n',N)\n", +"printf('external resistance\n')\n", +"printf('Rex=%.3f ohm/ph',Rex)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.2: calculate_full_load_speed.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_2,pg10_14\n", +"P=4\n", +"f=50\n", +"sfl=4/100\n", +"Ns=120*f/P\n", +"Nfl=Ns-sfl*Ns\n", +"printf('full load speed of motor\n')\n", +"printf('Nfl=%.f r.p.m',Nfl)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.30: calculate_motor_output_and_efficiency.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_30,pg10_70\n", +"Tsh=162.84\n", +"P=6\n", +"f=50\n", +"Tlost=20.36\n", +"fr=1.5\n", +"s=fr/f\n", +"Ns=120*f/P\n", +"N=Ns*(1-s)\n", +"Po=Tsh*(2*%pi*N)/60\n", +"Fl=Tlost*(2*%pi*N)/60\n", +"Pm=Po+Fl\n", +"Pc=Pm*s/(1-s)\n", +"P2=Pc/s\n", +"Sl=830\n", +"Pi=P2+Sl\n", +"n=Po*100/Pi\n", +"printf('motor output\n')\n", +"printf('Po=%.4f W\n',Po)\n", +"printf('copper loss in rotor\n')\n", +"printf('Pc=%.3f W\n',Pc)\n", +"printf('motor input\n')\n", +"printf('Pi=%.3f W\n',Pi)\n", +"printf('efficiency of motor\n')\n", +"printf('n=%.2f ',n)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.31: find_ratio_of_torques.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_31,pg10_71\n", +"f=50\n", +"P=8\n", +"R2=0.01\n", +"X2=0.1\n", +"sfl=0.04\n", +"//for Tmax\n", +"sm=R2/X2\n", +"//for Tfl\n", +"s=sfl\n", +"T=sm*R2*((R2^2)+((sfl*X2)^2))/((sfl*R2)*((R2^2)+((sm*X2)^2)))//Tmax/Tfl\n", +"Ns=120*f/P\n", +"sm=0.1\n", +"N=Ns*(1-sm)\n", +"printf('ratio of max to full load torque\n')\n", +"printf('T=%.2f\n',T)\n", +"printf('speed at max torque\n')\n", +"printf('N=%.f r.p.m',N)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.3: calculate_rotor_frequency.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_3,pg10_16\n", +"P=4\n", +"f=50\n", +"N=1470\n", +"Ns=120*f/P\n", +"s=(Ns-N)/Ns\n", +"fr=s*f\n", +"printf('frequency of induced e.m.f\n')\n", +"printf('fr=%.f Hz',fr)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.4: find_full_load_slip_and_speed.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_4,pg10_20\n", +"P=8\n", +"f=50\n", +"fr=2\n", +"s=fr/f\n", +"s=s*100\n", +"printf('full load slip\n')\n", +"printf('s=%.f \n',s)\n", +"s=s/100\n", +"Ns=120*f/P\n", +"N=Ns*(1-s)\n", +"printf('speed of motor\n')\n", +"printf('N=%.f r.p.m',N)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.5: calculate_rotor_frequency_and_induced_emf.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_5,pg10_20\n", +"P=4\n", +"f=50\n", +"N=1455\n", +"E1line=415\n", +"Ns=120*f/P\n", +"s=(Ns-N)/Ns\n", +"fr=s*f\n", +"E1ph=E1line/sqrt(3)\n", +"E2ph=0.5*E1ph//K=2\n", +"E2r=s*E2ph\n", +"printf('frequency of rotor e.m.f\n')\n", +"printf('fr=%.2f Hz\n',fr)\n", +"printf('magnitude of induced e.m.f standstill\n')\n", +"printf('E2ph=%.2f V\n',E2ph)\n", +"printf('magnitude of induced e.m.f running\n')\n", +"printf('E2r=%.3f V',E2r)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.6: find_rotor_current_and_rotor_power_factor.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_6,pg10_21\n", +"P=4\n", +"f=50\n", +"R2=0.2\n", +"X2=1\n", +"E2line=120\n", +"E2ph=E2line/sqrt(3)\n", +"Ns=120*f/P\n", +"//at start\n", +"pf=R2/sqrt((R2^2)+(X2^2))//power factor\n", +"I2=E2ph/sqrt((R2^2)+(X2^2))\n", +"printf(' at start\n')\n", +"printf('pf=%.3f lagging\n',pf)\n", +"printf('I2=%.2f A\n',I2)\n", +"//on full load\n", +"N=1440\n", +"s=(Ns-N)/Ns\n", +"pf=R2/sqrt((R2^2)+((s*X2)^2))\n", +"I2=E2ph*s/sqrt((R2^2)+((s*X2)^2))\n", +"printf(' on full load\n')\n", +"printf('pf=%.3f lagging\n',pf)\n", +"printf('I2=%.2f A',I2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.7: calculate_full_load_torque.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_7,pg10_24\n", +"P=4\n", +"f=50\n", +"R2=0.1\n", +"X2=1\n", +"N=1440\n", +"K=0.5\n", +"Ns=120*f/P\n", +"E1line=400\n", +"E1ph=E1line/sqrt(3)\n", +"E2ph=0.5*E1ph\n", +"s=(Ns-N)/Ns\n", +"ns=Ns/60//synchronous speed (r.p.s)\n", +"T=(3/(2*%pi*ns))*(s*(E2ph^2)*R2/((R2^2)+((s*X2)^2)))\n", +"printf('torque on full load\n')\n", +"printf('T=%.2f N-m',T)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.8: calculate_starting_torque_and_full_load_torque.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_8,pg10_27\n", +"P=4\n", +"f=50\n", +"K=1/4\n", +"R2=0.01\n", +"X2=0.1\n", +"E1line=400\n", +"E1ph=E1line/sqrt(3)\n", +"E2=E1ph/4\n", +"Ns=120*f/P\n", +"//at start\n", +"s=1\n", +"ns=Ns/60\n", +"k=3/(2*%pi*ns)\n", +"Tst=k*(E2^2)*R2/((R2^2)+(X2^2))\n", +"printf('starting torque\n')\n", +"printf('Tst=%.3f N-m\n',Tst)\n", +"//slip at max torque\n", +"sm=R2/X2\n", +"sm=sm*100\n", +"printf('slip at which max torque occurs\n')\n", +"printf('sm=%.f \n',sm)\n", +"//speed at max torque\n", +"sm=sm/100\n", +"N=Ns*(1-sm)\n", +"printf('speed at which max torque occurs\n')\n", +"printf('N=%.f r.p.m\n',N)\n", +"//max. torque\n", +"Tm=k*(E2^2)/(2*X2)\n", +"sf=0.04\n", +"Tfl=k*sf*(E2^2)*R2/((R2^2)+((sf*X2)^2))\n", +"printf('max torque\n')\n", +"printf('Tm=%.2f N-m\n',Tm)\n", +"printf('full load torque\n')\n", +"printf('Tfl=%.2f N-m',Tfl)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.9: star_connected_induction_motor.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-10,Example10_9,pg10_33\n", +"P=24\n", +"f=50\n", +"R2=0.016\n", +"X2=0.265\n", +"N=247\n", +"Ns=120*f/P\n", +"sf=(Ns-N)/Ns\n", +"sm=R2/X2\n", +"Tfm=2*sm*sf/((sm^2)+(sf^2))\n", +"Tsm=2*sm/(1+(sm^2))\n", +"printf('full load torque to max torque\n')\n", +"printf('Tfm=%.4f \n',Tfm)\n", +"printf('starting torque to max torque\n')\n", +"printf('Tsm=%.4f \n',Tsm)" + ] + } +], +"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 +} diff --git a/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/2-Digital_To_Analog_Converters.ipynb b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/2-Digital_To_Analog_Converters.ipynb new file mode 100644 index 0000000..87de74a --- /dev/null +++ b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/2-Digital_To_Analog_Converters.ipynb @@ -0,0 +1,200 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 2: Digital To Analog Converters" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.1: design_4_bit_DAC.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"//Chapter-2,Example2_1,pg 2_9\n", +"Vr=10\n", +"n=4\n", +"Res=0.5//resolution\n", +"Rt=Vr/((2^n)*Res)\n", +"Rf=10*10^3\n", +"R=Rt*Rf\n", +"printf('input resistance\n')\n", +"printf('r=%.2f ohm\n',R)\n", +"printf('feedback resistance\n')\n", +"printf('Rf=%.f ohm',Rf)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.2: calculate_resolution.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-2,Example2_2,pg 2_11\n", +"n=8\n", +"Res1=2^n\n", +"Vofs=2.55//full scale output voltage\n", +"Res2=Vofs/(Res1-1)\n", +"printf('resolution through method-1\n')\n", +"printf('Res1=%.2f \n',Res1)\n", +"printf('resolution through method-2\n')\n", +"printf('Res2=%.2f \n',Res2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.3: calculate_final_output_voltage.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-2,Example2_3,pg 2_12\n", +"n=4\n", +"Vofs=15\n", +"Res=Vofs/((2^n)-1)\n", +"D=bin2dec('0110')//decimal equivalent\n", +"Vo=Res*D\n", +"printf('output voltage\n')\n", +"printf('Vo=%.2f V',Vo)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.4: calculate_full_scale_output.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-2,Example2_4,pg 2_12\n", +"Res=20*10^-3\n", +"n=8\n", +"Vofs=Res*((2^n)-1)\n", +"D=bin2dec('10000000')\n", +"Vo=Res*D\n", +"printf('output voltage\n')\n", +"printf('Vo=%.2f V\n',Vo)\n", +"printf('full scale output voltage\n')\n", +"printf('Vofs=%.2f V',Vofs)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.5: find_step_size_and_analog_output.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-2,Example2_5,pg 2_12\n", +"n=4\n", +"Vofs=5\n", +"Res=Vofs/((2^n)-1)\n", +"D1=bin2dec('1000')\n", +"Vo1=Res*D1\n", +"D2=bin2dec('1111')\n", +"Vo2=Res*D2\n", +"printf('output voltage1\n')\n", +"printf('Vo1=%.2f V\n',Vo1)\n", +"printf('output voltage2\n')\n", +"printf('Vo2=%.2f V\n',Vo2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.6: find_output_voltage.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-2,Example2_6,pg 2_13\n", +"n=12\n", +"Res=8*10^-3\n", +"Vofs=Res*((2^n)-1)\n", +"perR=Res/Vofs*100\n", +"Vo=Res*bin2dec('010101101101')\n", +"printf('percentage resolution\n')\n", +"printf('perR=%.2f \n',perR)\n", +"printf('output voltage\n')\n", +"printf('Vo=%.2f V',Vo)" + ] + } +], +"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 +} diff --git a/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/3-Analog_To_Digital_Converters_And_Digital_Voltmeters.ipynb b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/3-Analog_To_Digital_Converters_And_Digital_Voltmeters.ipynb new file mode 100644 index 0000000..548c06d --- /dev/null +++ b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/3-Analog_To_Digital_Converters_And_Digital_Voltmeters.ipynb @@ -0,0 +1,307 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 3: Analog To Digital Converters And Digital Voltmeters" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.10: find_resolution_and_display_voltage.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-3,Example3_10,pg 3_39\n", +"n=4\n", +"R=1/(10^n)\n", +"//for 10V range\n", +"R=10*R\n", +"printf('12.98 would be displayed as 12.980 for 10V range\n')\n", +"//for 1V range\n", +"R=1*R\n", +"printf('0.6973 would be displayed as 0.6973 for 1V range\n')\n", +"//for 10V range\n", +"printf('0.6973 would be displayed as 0.697 for 10V range\n')" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.1: find_resolution_and_digital_output.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"//Chapter-3,Example3_1,pg 3_5\n", +"n=8\n", +"Res1=2^n\n", +"Vifs=5.1\n", +"Res2=Vifs/((2^n)-1)\n", +"Res=Res2*1000//in mv/LSB\n", +"Vi=1.28\n", +"D=Vi/Res2\n", +"str=dec2bin(64)\n", +"printf('Resolution\n')\n", +"printf('Res2=%.f mv/LSB\n',Res)\n", +"printf('digital output voltage \n')\n", +"printf('D=%.f LSBs\n',D)\n", +"" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.2: calculate_quantisation_error.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-3,Example3_2,pg 3_6\n", +"Vifs=4.095\n", +"n=12\n", +"Qe=Vifs/(((2^n)-1)*2)\n", +"printf('quantisation error\n')\n", +"printf('Qe=%.5f V',Qe)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.3: calculate_time_period.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-3,Example3_3,pg 3_10\n", +"V1=100*10^-3\n", +"Vr=100*10^-3\n", +"t1=83.33\n", +"t2=(V1/Vr)*t1\n", +"printf('t2=%.5f ms\n',t2)\n", +"Vi=200*10^-3//input voltage\n", +"t2=(Vi/Vr)*t1\n", +"printf('t2=%.5f ms',t2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.4: find_digital_output.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-3,Example3_4,pg 3_10\n", +"fclk=12*10^3//clock frequency\n", +"t1=83.33*10^-3\n", +"V1=100*10^-3\n", +"Vr=100*10^-3\n", +"D=fclk*t1*(V1/Vr)\n", +"printf('digital output\n')\n", +"printf('D=%.f counts',D)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.5: find_conversion_time.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-3,Example3_5,pg 3_13\n", +"F=1*10^6\n", +"T=1/F\n", +"n=8\n", +"Tc=T*(n+1)\n", +"printf('converstion time\n')\n", +"printf('Tc=%.7f sec',Tc)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.6: find_maximum_input_frequency.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-3,Example3_6,pg 3_15\n", +"Tc=9*10^-6\n", +"n=8\n", +"fmax=1/(2*%pi*Tc*(2^n))\n", +"printf('maximum input frequency\n')\n", +"printf('fmax=%.2f Hz',fmax)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.7: find_resolution.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-3,Example3_7,pg 3_37\n", +"n=3//3 full digits\n", +"R=1/(10^n)\n", +"//for 1V range\n", +"Res1=1*R\n", +"//for 50V range\n", +"Res2=50*R\n", +"printf('least diffrence in readings for 50V range\n')\n", +"printf('Res=%.2f V',Res2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.8: find_percentage_error.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"//Chapter-3,Example3_8,pg 3_38\n", +"n=3\n", +"R=1/(10^n)\n", +"//for 10V range\n", +"R=R*10\n", +"err1=R//1-digit error\n", +"//reading is 5V\n", +"err=(0.5/100)*5//error due to reading\n", +"errt=err1+err//total error\n", +"printf('error when reading is 5V\n')\n", +"printf('errt=%.4f V\n',errt)\n", +"//reading is 0.1V\n", +"err=(0.5/100)*0.1//error due to reading\n", +"errt=err+err1//total error\n", +"errp=(errt/0.1)*100\n", +"printf('percent error when reading is 0.1V\n')\n", +"printf('errp=%.1f ',errp)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.9: find_senstivity_of_meter.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-3,Example3_9,pg 3_38\n", +"n=4\n", +"fsmin=10*10^-3//full scale value on min. range\n", +"R=1/(10^n)\n", +"S=fsmin*R\n", +"printf('senstivity of meter\n ')\n", +"printf('s=%.7f',S)" + ] + } +], +"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 +} diff --git a/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/4-Frequency_Meters_And_Phase_Meters.ipynb b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/4-Frequency_Meters_And_Phase_Meters.ipynb new file mode 100644 index 0000000..2ca2f84 --- /dev/null +++ b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/4-Frequency_Meters_And_Phase_Meters.ipynb @@ -0,0 +1,101 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 4: Frequency Meters And Phase Meters" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.1: plot_graph_between_phase_voltage_and_output.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"//Chapter-4,Example4_1,pg 4-22\n", +"E1mag=[0 3 5 7 9 12 15 18 21]\n", +"E1rms=E1mag/sqrt(2)\n", +"Erms=5//given\n", +"Einrms=(((E1rms)^2)+((Erms)^2))^(1/2)\n", +"Eab=(2*sqrt(2).*Einrms)/%pi\n", +"xlabel('E1(Volts)','fontsize',5)\n", +"ylabel('Eab(Volts)','fontsize',5)\n", +"title('Phase Meter','fontsize',5)\n", +"printf('E1 mag E1 rms Ein Rms Eab output')\n", +"k=[0 0 5 4.501;\n", +" 3 2.121 5.431 4.889;\n", +" 5 3.53 6.123 5.513;\n", +" 7 4.949 7.035 6.334;\n", +" 9 6.363 8.093 7.286;\n", +" 12 8.485 9.848 8.867;\n", +" 15 10.606 11.726 10.557;\n", +" 18 12.727 13.674 12.311;\n", +" 21 14.849 15.668 14.106 ]\n", +"disp(k)\n", +"plot(E1mag,Eab)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.2: calculate_output_voltage.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-4,Example4_2,pg 4-24\n", +"E1rms=10\n", +"E2rms=15\n", +"E1m=E1rms*sqrt(2)\n", +"E2m=E2rms*sqrt(2)\n", +"//voltage across AB is proportional to E1+E2 in positive half cycle\n", +"Ep=(1/(2*%pi))*(2*E1m+E2m)//output in positive half cycle\n", +"//voltage across AB is proportional to E1-E2 in negative half cycle\n", +"En=(1/(2*%pi))*(2*E1m-E2m)//output in negative half cycle\n", +"Eab=Ep-En\n", +"printf('output voltage\n')\n", +"printf('Eab=%.2f V',Eab)" + ] + } +], +"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 +} diff --git a/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/6-Oscilloscopes.ipynb b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/6-Oscilloscopes.ipynb new file mode 100644 index 0000000..07dc80f --- /dev/null +++ b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/6-Oscilloscopes.ipynb @@ -0,0 +1,193 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 6: Oscilloscopes" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.1: calculate_bandwidth_of_CRO.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-6,Example6_1,pg 6-26\n", +"Trs=17*10^-6\n", +"Trd=21*10^-6\n", +"Tro=sqrt((Trd^2)-(Trs^2))\n", +"BW=0.35/Tro\n", +"printf('bandwidth of CRO\n')\n", +"printf('BW=%.2f Hz',BW)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.2: find_minimum_rise_time_of_plulse.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-6,Example6_2,pg 6-53\n", +"SR=200*10^6//sampling rate\n", +"trmin=1/SR\n", +"printf('minimum rise time of pulse\n')\n", +"printf('trmin=%.10f s',trmin)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.3: calculate_amplitude_and_rms_value.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-6,Example6_3,pg 6-63\n", +"//from plot 1 subdivision=0.2 units\n", +"pp=2+3*0.2//positive peak\n", +"np=2+3*0.2//negative peak\n", +"Nd=pp+np//no. of divisions\n", +"Vd=2*10^-3//volts per division\n", +"Vpp=Nd*Vd\n", +"Vm=Vpp/2\n", +"Vrms=Vm/sqrt(2)\n", +"printf('peak value of voltage\n')\n", +"printf('Vm=%.4f V\n',Vm)\n", +"printf('RMS value of voltage\n')\n", +"printf('Vrms=%.4f V\n',Vrms)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.4: calculate_frequency_and_rms_value.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-6,Example6_4,pg 6-64\n", +"Vd=2\n", +"Tb=2*10^-3//time base\n", +"Vd=2\n", +"Nd=3\n", +"Vpp=Nd*Vd\n", +"Vm=Vpp/2\n", +"Vrms=Vm/sqrt(2)\n", +"Hd=2//horizontal occupancy\n", +"T=Tb*Hd\n", +"f=1/T\n", +"printf('RMS value of voltage\n')\n", +"printf('Vrms=%.2f V\n',Vrms)\n", +"printf('frequency of voltage across resistor\n')\n", +"printf('f=%.2f Hz',f)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.5: find_phase_difference_between_two_waves.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-6,Example6_5,pg 6-67\n", +"y1=8\n", +"y2=10\n", +"phi=asin(y1/y2)//phase difference\n", +"phi=phi*(180/%pi)\n", +"printf('phase difference\n')\n", +"printf('phi=%.2f deg',phi)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.6: find_frequency_at_vertical_plate.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-6,Example6_6,pg 6-69\n", +"Nv=2\n", +"Nh=5\n", +"fh=1*10^3\n", +"fv=(5/2)*fh//(fv/fh)=(Nh/Nv)=(5/2)\n", +"printf('vertical signal frequency\n')\n", +"printf('fv=%.f Hz',fv)" + ] + } +], +"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 +} diff --git a/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/7-Basic_Measuring_Instruments.ipynb b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/7-Basic_Measuring_Instruments.ipynb new file mode 100644 index 0000000..21f7924 --- /dev/null +++ b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/7-Basic_Measuring_Instruments.ipynb @@ -0,0 +1,1025 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 7: Basic Measuring Instruments" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.10: senstivity_method_design.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_10,pg 7-35\n", +"Rm=50\n", +"Im=2*10^-3\n", +"V1=500\n", +"V2=100\n", +"V3=50\n", +"V4=10\n", +"S=1/Im//senstivity\n", +"R4=S*V4-Rm\n", +"R3=S*V3-(R4+Rm)\n", +"R2=S*V2-(R4+Rm+R3)\n", +"R1=S*V1-(R4+Rm+R3+R2)\n", +"printf('series string of multipliers\n')\n", +"printf('R1=%.2f ohm\n',R1)\n", +"printf('R2=%.2f ohm\n',R2)\n", +"printf('R3=%.2f ohm\n',R3)\n", +"printf('R4=%.2f ohm\n',R4)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.11: find_multiplier_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_11,pg 7-36\n", +"Im=50*10^-6\n", +"S=1/Im\n", +"Rm=200\n", +"V=500//V is voltage range\n", +"Rs=S*V-Rm\n", +"printf('multipler resistance\n')\n", +"printf('Rs=%.2f ohm',Rs)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.12: sensitivity_of_meter_comparison.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"//Chapter-7,Example7_12,pg 7-36\n", +"//for meter A\n", +"Rs=25*10^3\n", +"Rm=1*10^3\n", +"V=100\n", +"S=(Rs+Rm)/V\n", +"printf('senstivity of meter A\n')\n", +"printf('S=%.2f ohm/volt\n',S)\n", +"//for meter B\n", +"Rs=150*10^3\n", +"Rm=1*10^3\n", +"V=1000\n", +"S=(Rs+Rm)/V\n", +"printf('senstivity of meter B\n')\n", +"printf('S=%.2f ohm/volt',S)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.13: accuracy_of_meter_compariso.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_13,pg 7-37\n", +"R1=20*10^3\n", +"R2=25*10^3\n", +"V=250//voltage supply\n", +"VR2=R2*V/(R1+R2)//voltage across R2\n", +"//case-1\n", +"S=500\n", +"Vr=150//voltage range of resistor\n", +"Rv=S*Vr\n", +"Req=R2*Rv/(R2+Rv)\n", +"VReq=Req*V/(Req+R1)//voltage across Req\n", +"printf('first voltmeter reading\n')\n", +"printf('VReq=%.2f V\n',VReq)\n", +"//case-2\n", +"S=10*10^3\n", +"Rv=S*Vr\n", +"Req=R2*Rv/(R2+Rv)\n", +"VReq=Req*V/(Req+R1)\n", +"printf('second voltmeter reading\n')\n", +"printf('VReq=%.2f V',VReq)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.14: error_and_accuracy_measurement.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_14,pg 7-38\n", +"Rb=1*10^3\n", +"Ra=5*10^3\n", +"V=25\n", +"VRb=Rb*V/(Ra+Rb)//voltage across Rb\n", +"Vr=5\n", +"//case-1\n", +"S=1*10^3\n", +"Rv=S*Vr\n", +"Req=Rb*Rv/(Rb+Rv)\n", +"VReq=Req*V/(Req+Ra)\n", +"err=(VRb-VReq)*100/VRb\n", +"acc=100-err\n", +"printf('voltmeter reading case-1\n')\n", +"printf('VReq=%.2f V\n',VReq)\n", +"printf('percentage error\n')\n", +"printf('err=%.2f \n',err)\n", +"printf('percentage accuracy\n')\n", +"printf('acc=%.2f\n',acc)\n", +"//case-2\n", +"S=20*10^3\n", +"Rv=S*Vr\n", +"Req=Rb*Rv/(Rb+Rv)\n", +"VReq=Req*V/(Req+Ra)\n", +"err=(VRb-VReq)*100/VRb\n", +"acc=100-err\n", +"printf('voltmeter reading case-2\n')\n", +"printf('VReq=%.2f V\n',VReq)\n", +"printf('percentage error\n')\n", +"printf('err=%.2f \n',err)\n", +"printf('percentage accuracy\n')\n", +"printf('acc=%.2f\n',acc)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.15: basic_PMMC_measurement.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_15,pg 7-41\n", +"Rm=50\n", +"Im=20*10^-3\n", +"I=10\n", +"Rsh=(Im*Rm)/(I-Im)\n", +"printf('shunt resistance for I=10A\n')\n", +"printf('Rsh=%.2f ohm\n',Rsh)\n", +"I=20\n", +"Rsh=(Im*Rm)/(I-Im)\n", +"printf('shunt resistance for I=20A\n')\n", +"printf('Rsh=%.2f ohm\n',Rsh)\n", +"V=150\n", +"Rs=(V/Im)-Rm\n", +"printf('series resistance for V=150V\n')\n", +"printf('Rs=%.2f ohm\n',Rs)\n", +"V=300\n", +"Rs=(V/Im)-Rm\n", +"printf('series resistance for V=300V\n')\n", +"printf('Rs=%.2f ohm',Rs)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.16: find_shunt_current_and_resistance_for_fsd.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_16,pg 7-42\n", +"Rsh=0.02\n", +"R=1000\n", +"Vm=500*10^-3\n", +"Im=Vm/R\n", +"Ish=Vm/Rsh\n", +"printf('shunt current\n')\n", +"printf('Ish=%.2f A\n',Ish)\n", +"Ish1=10\n", +"V=Ish1*Rsh\n", +"R=V/Im\n", +"printf('resistance for Ish=10A\n')\n", +"printf('R=%.2f ohm\n',R)\n", +"Ish2=75\n", +"V=Ish2*Rsh\n", +"R=V/Im\n", +"printf('resistance for Ish=75A\n')\n", +"printf('R=%.2f ohm\n',R)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.17: determine_inductance_of_instrument.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_17,pg 7-50\n", +"K=5.73*10^-6\n", +"I=20\n", +"theta=110*(%pi/180)//full scale deflection\n", +"dtheta=theta//change in theta\n", +"L=4*10^-6\n", +"dm=(theta*K/(I^2))*dtheta//change in inductance\n", +"Lf=L+dm\n", +"printf('final inductance\n')\n", +"printf('Lf=%.8f H',Lf)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.18: find_deflecting_torque.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_18,pg 7-50\n", +"x=30//deflection\n", +"dM=5*sin((x+45)*(%pi/180))*10^-3//diffrentiate M w.r.t x\n", +"I=10*10^-3\n", +"Td=(I^2)*dM//deflecting torque\n", +"printf('deflecting torque\n')\n", +"printf('Td=%.8f Nm',Td)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.19: difference_between_dc_and_ac_readings_of_voltmeter.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_19,pg 7-51\n", +"I=100*10^-3\n", +"Td=0.8*10^-4\n", +"dtheta=90*%pi/180//in radians\n", +"theta=90//deflection\n", +"dM=Td*dtheta/(I^2)\n", +"Mo=0.5//original M\n", +"M=Mo+dM//total M\n", +"//case-1 \n", +"Vdc=100\n", +"R=Vdc/I\n", +"w=2*%pi*50\n", +"Z=R+(%i*w*M)\n", +"Z=abs(Z)\n", +"Vac=R*Vdc/Z\n", +"dif=Vdc-Vac//difference between readings\n", +"//case-2\n", +"Vdc1=50\n", +"I1=Vdc1/R\n", +"theta1=theta*((I1/I)^2)//theta=kI^2\n", +"theta1=theta1*%pi/180//in radians\n", +"dM1=Td*theta1/(I^2)\n", +"M1=dM1+Mo\n", +"Z1=R+(%i*w*M1)\n", +"Z1=abs(Z1)\n", +"Vac1=R*Vdc1/Z1\n", +"dif1=Vdc1-Vac1\n", +"printf('difference in readings Vdc=100V\n')\n", +"printf('dif=%.2f V\n',dif)\n", +"printf('difference in readings Vdc=50V\n')\n", +"printf('dif1=%.2f V\n',dif1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.1: calculate_deflectio.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_1,pg 7-13\n", +"N=100\n", +"B=0.15\n", +"A=10*8*10^-6\n", +"I=5*10^-3\n", +"Td=N*B*A*I//deflecting torque\n", +"K=0.2*10^-6//spring const.\n", +"theta=Td/K//deflecting angle\n", +"printf('deflection theta=%.2f deg',theta)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.20: find_revolutions_and_percentage_error.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_20,pg 7-65\n", +"I=20\n", +"V=230\n", +"Pf=0.8//power factor\n", +"t=3600\n", +"K=100\n", +"Et=V*I*Pf*t\n", +"Et=Et/(3600*10^3)//in kWh\n", +"N=360\n", +"Er=3.6//in kWh\n", +"err=(Er-Et)/Et\n", +"err=err*100\n", +"printf('percentage error\n')\n", +"printf('err=%.2f\n',err)\n", +"printf('negative sign shows that meter is slow and Er<Et')" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.21: determine_meter_errror_at_half_load.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_21,pg 7-65\n", +"K=1800\n", +"V=230\n", +"I=10\n", +"Pf=1//half load\n", +"Ihl=I/2//half load current\n", +"t=138\n", +"Et=V*Ihl*Pf*t\n", +"Et=Et/(3600*10^3)\n", +"N=80//no. of revolutions\n", +"Er=N/K//in kWh\n", +"err=(Er-Et)/Et\n", +"err=err*100\n", +"printf('percentage error\n')\n", +"printf('err=%.2f\n',err)\n", +"printf('positive sign shows that meter is fast and Er>Et')" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.22: calculate_power_factor_of_load.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_22,pg 7-66\n", +"V=230\n", +"I=4\n", +"t=6\n", +"Pf=1\n", +"N=2208\n", +"Et=V*I*Pf*t\n", +"K=N/Et\n", +"printf('meter constant\n')\n", +"printf('K=%.2f rev/Wh\n',K)\n", +"V=230\n", +"I=5\n", +"t=4\n", +"N=1472\n", +"Et=V*I*Pf*t\n", +"Er=N/K\n", +"Pf=(Er/Et)\n", +"printf('power factor\n')\n", +"printf('Pf=%.2f lagging',Pf)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.23: find_speed_of_disc_and_error_of_meter.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_23,pg 7-66\n", +"I=5\n", +"V=220\n", +"Pf=1\n", +"K=3275\n", +"t=1/60//in hr\n", +"E=V*I*Pf*t\n", +"E=E/10^3//in kWh\n", +"Rev=E*K//no. of revolutions\n", +"printf('speed of disc\n')\n", +"printf('s=%.2f r.p.m\n',Rev)\n", +"//at half load\n", +"I=I/2\n", +"t=59.5\n", +"Et=V*I*Pf*t\n", +"Et=Et/(3600*10^3)//in kWh\n", +"N=30\n", +"Er=N/K\n", +"err=(Er-Et)/Et\n", +"err=err*100\n", +"printf('percentage error\n')\n", +"printf('err=%.2f\n',err)\n", +"printf('Er>Et meter is fast')" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.24: find_error_at_given_power_factor.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_24,pg 7-67\n", +"V=240\n", +"I=10\n", +"Pf=0.8\n", +"t=1/60\n", +"K=600\n", +"E=V*I*Pf*t\n", +"E=E/10^3//in kWh\n", +"Rev=E*K//no. of revolutions \n", +"printf('speed of disc\n')\n", +"printf('s=%.2f r.p.m\n',Rev)\n", +"del=90//for correct lag adjustment\n", +"del1=86*%pi/180//given in radian\n", +"phi=0//case-1 unity power factor\n", +"err=(sin(del1-phi)-cos(phi))/cos(phi)\n", +"err=err*100\n", +"printf('percentage error in case-1\n')\n", +"printf('err=%.2f \n',err)\n", +"Pf=0.5//case-2\n", +"phi=60*%pi/180//in radians\n", +"err=(sin(del1-phi)-cos(phi))/cos(phi)\n", +"err=err*100\n", +"printf('percentage error in case-2\n')\n", +"printf('err=%.2f \n',err)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.25: limits_of_error_of_wattmeter.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_25,pg 7-67\n", +"V=240\n", +"I=5\n", +"K=1200\n", +"N=40\n", +"Er=N/K\n", +"W=V*I\n", +"t=99.8\n", +"Td=500//total divisions\n", +"div=K/Td//1 division\n", +"We=0.1*div//wattmeter error\n", +"Ce=0.05*K/100//construction wattmeter error\n", +"Te=We+Ce//total error\n", +"Wru=K+Te\n", +"Wrl=K-Te//wattmeter reading limits\n", +"He=0.05//human error\n", +"Se=0.01//stopwatch error\n", +"Tte=He+Se//total timing error\n", +"Sru=t+Tte//stopwatch reading limits\n", +"Srl=t-Tte\n", +"Eu=Wru*Sru*1/(3600*10^3)//energy obtained limits\n", +"El=Wrl*Srl*1/(3600*10^3)\n", +"errl=(Er-El)/El\n", +"errl=errl*100\n", +"erru=(Er-Eu)/Eu//error limits\n", +"erru=erru*100\n", +"printf('percentage error upperlimt\n')\n", +"printf('erru=%.3f \n',erru)\n", +"printf('percentage error lowerlimt\n')\n", +"printf('errl=%.3f \n',errl)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.26: estimate_line_current.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_26,pg 7-79\n", +"I1=250\n", +"I2=5\n", +"I=I1/I2\n", +"//as ammeter is in secondary I2=2.7\n", +"I1=I*2.7//line current\n", +"printf('line current\n')\n", +"printf('I1=%.2f A',I1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.27: estimate_line_voltage.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_27,pg 7-82\n", +"V1=11000\n", +"V2=110\n", +"V=V1/V2\n", +"V2=87.5\n", +"V1=87.5*V//line voltage\n", +"printf('line voltage\n')\n", +"printf('V1=%.2f V',V1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.28: find_percentage_ratio_error.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_28,pg 7-88\n", +"Im=120\n", +"Ic=38\n", +"Kn=1000/5\n", +"//at full load\n", +"Is=5\n", +"Ns=1000\n", +"Np=5\n", +"n=Ns/Np//turns ratio\n", +"R=n+(Ic/Is)\n", +"err=(Kn-R)/R//ratio error\n", +"err=err*100\n", +"printf('percentage ratio error\n')\n", +"printf('err=%.2f ',err)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.29: calculate_actual_primary_current_and_ratio_error.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_29,pg 7-88\n", +"Im=90\n", +"Ic=40\n", +"delta=28*(%pi/180)//in radians\n", +"Is=5\n", +"Ns=400\n", +"Np=1\n", +"n=Ns/Np\n", +"Kn=n\n", +"R=n+((Im*sin(delta)+Ic*cos(delta))/Is)\n", +"Ip=R*Is//actual primary current\n", +"err=(Kn-R)/R\n", +"err=err*100\n", +"printf('percentage ratio error\n')\n", +"printf('err=%.2f ',err)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.2: find_deflection.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_2,pg 7-21\n", +"x=poly(0,'x')\n", +"L=(12+6*x-(x^2))//x is deflection in rad from zero\n", +"dl=derivat(L)\n", +"K=12\n", +"I=8\n", +"x=6/(((2*K)/(I^2))+2)//x=((I^2)dl)/(2*k)\n", +"z=x*(180/%pi)\n", +"y=horner(L,x)\n", +"printf('deflection for given current\n')\n", +"printf('x=%.2f deg\n',z)\n", +"printf('inductance for given deflection\n')\n", +"printf('L=%.2f uH',y)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.3: calculate_value_of_shunt_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_3,pg 7-23\n", +"Rm=100\n", +"Im=2*10^-3\n", +"I=150*10^-3\n", +"Rsh=(Im*Rm)/(I-Im)\n", +"printf('value of shunt resistance\n')\n", +"printf('Rsh=%.2f ohm',Rsh)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.4: calculate_shunt_current_and_meter_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_4,pg 7-23\n", +"Vsh1=400*10^-3\n", +"Rsh=0.01\n", +"Ish=Vsh1/Rsh\n", +"printf('current through shunt\n')\n", +"printf('Ish=%.2f A\n',Ish)\n", +"Ish=50\n", +"Vsh=Ish*Rsh\n", +"printf('voltage through shunt\n')\n", +"printf('Ish=%.2f V\n',Vsh)\n", +"Rm=750//coil resistance\n", +"Im=Vsh1/Rm\n", +"Rm1=Vsh/Im//meter resistance\n", +"printf('meter resistance\n')\n", +"printf('Rm1=%.2f ohm\n',Rm1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.5: design_multirange_dc_milliammeter.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_5,pg 7-25\n", +"I1=10*10^-3\n", +"Im=2*10^-3\n", +"Rm=75\n", +"R1=(Im*Rm)/(I1-Im)\n", +"I2=50*10^-3\n", +"R2=(Im*Rm)/(I2-Im)\n", +"I3=100*10^-3\n", +"R3=(Im*Rm)/(I3-Im)\n", +"printf('designed multi-range ammeter\n')\n", +"printf('full scale deflection Im=%.5f A\n',Im)\n", +"printf('meter resistance Rm=%.2f ohm\n',Rm)\n", +"printf('R1=%.2f ohm\n',R1)\n", +"printf('R2=%.2f ohm\n',R2)\n", +"printf('R3=%.2f ohm\n',R3)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.6: design_aryton_shunt.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_6,pg 7-27\n", +"I1=10\n", +"Im=1*10^-3\n", +"Rm=50\n", +"//in position-1 R1 is in shunt with R2+R3+Rm\n", +"//R1=10^-4(R2+R3+50)......(1)\n", +"//in position-2 (R1+R2) is in shunt with R3+Rm\n", +"//R1+R2=2*10^-4(R3+50).....(2)\n", +"//in position-3 R1+R2+R3 is in shunt with Rm\n", +"//R1+R2+R3=0.05............(3)\n", +"//from.....(3)\n", +"//R1+R2=0.05-R3\n", +"//substituting in........(2)\n", +"R3=0.04/1.0002\n", +"//R2=0.01-R1........(4)\n", +"//substituing in (1)\n", +"R1=5.00139*10^-3/1.0001\n", +"R2=0.01-R1//from........(4)\n", +"printf('various sections of aryton shunt are\n')\n", +"printf('full scale deflection Im=%.4f A\n',Im)\n", +"printf('meter resistance Rm=%.2f ohm\n',Rm)\n", +"printf('R1=%.4f ohm\n',R1)\n", +"printf('R2=%.4f ohm\n',R2)\n", +"printf('R3=%.4f ohm\n',R3)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.7: calculate_multiplier_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_7,pg 7-30\n", +"Rm=500\n", +"Im=40*10^-6\n", +"V=10\n", +"Rs=(V/Im)-Rm\n", +"printf('multiplier resistance\n')\n", +"printf('Rs=%.2f ohm',Rs)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.8: calculate_shunt_and_multiplier_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_8,pg 7-30\n", +"Im=20*10^-3\n", +"Vm=200*10^-3\n", +"Rm=(Vm/Im)\n", +"I=200\n", +"Rsh=(Im*Rm)/(I-Im)\n", +"printf('required shunt resistance\n')\n", +"printf('Rsh=%.4f ohm\n',Rsh)\n", +"V=500\n", +"Rs=(V/Im)-Rm\n", +"printf('required multipler resistance\n')\n", +"printf('Rs=%.2f ohm',Rs)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.9: design_D_arsonoval_movement_voltmeter.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-7,Example7_9,pg 7-33\n", +"Rm=50\n", +"Im=2*10^-3\n", +"//for position V4 multipler is R4\n", +"V4=10\n", +"R4=(V4/Im)-Rm//Rs=(V/Im)-RmV3 m\n", +"//for position V3 multipler is R3+R4\n", +"V3=50\n", +"R3=(V3/Im)-Rm-R4\n", +"//for position V2 multiplier is R2+R3+R4\n", +"V2=100\n", +"R2=(V2/Im)-Rm-R3-R4\n", +"//for position V1 multiplier is R1+R2+R3+R4\n", +"V1=500\n", +"R1=(V1/Im)-Rm-R3-R4-R2\n", +"printf('series string of multipliers\n')\n", +"printf('R1=%.2f ohm\n',R1)\n", +"printf('R2=%.2f ohm\n',R2)\n", +"printf('R3=%.2f ohm\n',R3)\n", +"printf('R4=%.2f ohm\n',R4)" + ] + } +], +"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 +} diff --git a/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/8-Measurement_Of_Resistance_Capacitance_And_Inductance.ipynb b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/8-Measurement_Of_Resistance_Capacitance_And_Inductance.ipynb new file mode 100644 index 0000000..8fa5995 --- /dev/null +++ b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/8-Measurement_Of_Resistance_Capacitance_And_Inductance.ipynb @@ -0,0 +1,870 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 8: Measurement Of Resistance Capacitance And Inductance" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.10: find_constants_of_unknown_impedance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_10,pg 8_49\n", +"//from hay's balance bridge \n", +"w=1000\n", +"R1=5.1*10^3\n", +"C1=2*10^-6\n", +"R2=7.9*10^3\n", +"R3=790\n", +"Rx=((w^2)*R1*(C1^2)*R2*R3)/(1+((w^2)*(R1^2)*(C1^2)))\n", +"Lx=R2*R3*C1/(1+((w^2)*(R1^2)*(C1^2)))\n", +"printf('unknown inductance and resistance\n')\n", +"printf('Rx=%.f ohm\n',Rx)\n", +"printf('Lx=%.5f H',Lx)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.11: calculate_unknown_capacitance_and_dissipation_factor.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_11,pg 8_56\n", +"R1=1.2*10^3\n", +"R2=4.7*10^3\n", +"C1=1*10^-6\n", +"C3=1*10^-6\n", +"f=0.5*10^3\n", +"w=2*%pi*f\n", +"Rx=R2*C1/C3\n", +"Cx=R1*C3/R2\n", +"D=w*Cx*Rx\n", +"printf('unknown capacitance and resistance\n')\n", +"printf('Rx=%.f ohm\n',Rx)\n", +"printf('Cx=%.8f F\n',Cx)\n", +"printf('dissipation factor\n')\n", +"printf('D=%.3f',D)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.12: find_deflection_of_galvanometer.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_12,pg 58\n", +"R1=200\n", +"R2=100\n", +"R3=1000\n", +"R4=2000\n", +"Rg=200\n", +"R41=2005//changed by delR\n", +"Si=12//senstivity\n", +"E=10\n", +"Vth=E*((R41/(R3+R41))-(R1/(R1+R2)))\n", +"Req=(R1*R2/(R1+R2))+(R3*R41/(R3+R41))\n", +"Ig=Vth/(Rg+Req)\n", +"theta=Si*Ig*10^6//deflection of galvanometer(mm)\n", +"printf('deflection of galvanometer\n')\n", +"printf('theta=%.4f mm',theta)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.13: find_deflection_of_galvanometer.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_13,pg 59\n", +"R1=1000\n", +"R2=1000\n", +"R3=119\n", +"R4=121\n", +"Rg=200\n", +"S1=1\n", +"E=5\n", +"Vth=E*((R4/(R3+R4))-(R1/(R1+R2)))\n", +"Req=(R1*R2/(R1+R2))+(R3*R4/(R3+R4))\n", +"Ig=Vth/(Rg+Req)\n", +"theta=S1*Ig*10^6//deflection of galvanometer(mm)\n", +"printf('deflection of galvanometer\n')\n", +"printf('theta=%.4f mm',theta)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.14: find_current_through_galanometer.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_14,pg 59\n", +"R=500\n", +"delR=20\n", +"E=10\n", +"Vth=E*delR/(4*R)\n", +"Req=R\n", +"Rg=125\n", +"Ig=Vth/(Req+Rg)\n", +"printf('current through galvanometer\n')\n", +"printf('Ig=%.8f A',Ig)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.15: calculate_smallest_change_in_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_15,pg 60\n", +"R=1000\n", +"E=20\n", +"Ig=1*10^-9\n", +"Req=R\n", +"//Ig=Vth/Req......Rg=0\n", +"delR=Ig*4*R^2/E\n", +"printf('change in resitance\n')\n", +"printf('delR=%.8f ohm',delR)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.16: calculate_balance_temperature_and_error.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_16,pg 61\n", +"//R4=Rv\n", +"R1=10*10^3\n", +"R2=10*10^3\n", +"R3=10*10^3\n", +"R4=R1*R3/R2\n", +"E=10\n", +"printf('bridge is balanced at 80deg. from graph when Rv=10k\n')\n", +"//at 60deg bridge is unbalanced \n", +"R4=9*10^3//from graph\n", +"e=E*((R4/(R3+R4))-(R1/(R1+R2)))//thevenin's voltage\n", +"printf('error voltage\n')\n", +"printf('e=%.4f V\n',e)\n", +"printf('negative sign indicates opposite polarity of error voltage')" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.17: find_value_of_unknown_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_17,pg 8_62\n", +"R1=100\n", +"R2=10\n", +"R3=4\n", +"R4=50\n", +"E=10\n", +"Rg=20\n", +"Vth=E*((R4/(R3+R4))-(R1/(R1+R2)))\n", +"Req=(R1*R2/(R1+R2))+(R3*R4/(R3+R4))\n", +"Ig=Vth/(Rg+Req)\n", +"//for null deflection\n", +"R4=R3*R1/R2\n", +"printf('unbalanced current in galvanometer\n')\n", +"printf('Ig=%.5f A\n',Ig)\n", +"printf('resistance for null deflection\n')\n", +"printf('R4=%.f ohm',R4)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.18: find_unknown_resisance_and_unbalance_in_bridge.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_18,pg 8_62\n", +"R1=1000\n", +"R2=100\n", +"R3=4*10^3\n", +"R4=40*10^3\n", +"Rth=(R1*R2/(R1+R2))+(R3*R4/(R3+R4))\n", +"Si=70\n", +"theta=3*10^-6//deflection\n", +"E=10\n", +"Rg=80\n", +"delR=(theta*(Rth+Rg)*((R3+R4)^2))/(Si*E*R3)\n", +"printf('change in resistance\n')\n", +"printf('delR=%.4f ohm',delR)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.19: find_series_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_19,pg 8_63\n", +"P=0.4\n", +"Rarm=150//resistance in each arm\n", +"I=sqrt(P/Rarm)//P=(I^2)*R\n", +"//applying KVL to loop ABCEFA\n", +"r=1\n", +"E=25\n", +"R=(-I*Rarm-I*Rarm+E-2*I*r)/(2*I)\n", +"printf('series resistance\n')\n", +"printf('R=%.4f ohm',R)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.1: calculate_R1_and_R2_of_ohmmeter.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_1,pg 8_6\n", +"Rh=1000\n", +"Rm=50\n", +"V=3\n", +"Ifsd=1*10^-3\n", +"R1=Rh-(Ifsd*Rm*Rh)/V\n", +"R2=(Ifsd*Rm*Rh)/(V-Ifsd*Rh)\n", +"printf('R1=%.2f ohm\n',R1)\n", +"printf('R2=%.2f ohm\n',R2)\n", +"//due to 5% voltage drop\n", +"V=V-0.05*V\n", +"R2=(Ifsd*Rm*Rh)/(V-Ifsd*Rh)\n", +"printf('change in value R2 \n')\n", +"printf('R2=%.2f ohm',R2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.20: find_unknown_resisance_Rx.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_20,pg 8_63\n", +"R1=10\n", +"R2=R1/0.5//given\n", +"Rba=1/1200//Rb/Ra\n", +"Rx=R2*Rba\n", +"printf('unknown resistance\n')\n", +"printf('Rx=%.4f ohm',Rx)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.21: find_constants_of_arm_CD.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_21,pg 8_64\n", +"w=2*%pi*1000\n", +"C1=0.2*10^-6\n", +"R2=500\n", +"R3=300\n", +"C3=0.1*10^-6\n", +"Z4=(%i*w*C1*R2)/((1/R3)+(%i*w*C3))//from basic balance equaton\n", +"Zx=Z4//unknown impedance\n", +"Rx=real(Zx)\n", +"Xl=imag(Zx)\n", +"Lx=Xl/w//Xl=w*Lx\n", +"printf('unknown resistance\n')\n", +"printf('Rx=%.2f ohm\n',Rx)\n", +"printf('unknown inductance\n')\n", +"printf('Lx=%.5f H',Lx)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.22: find_constants_of_Zx.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_22,pg 8_67\n", +"Z1=300\n", +"R2=200\n", +"w=2*%pi*10^3\n", +"C2=5*10^-6\n", +"Z2=R2-%i*(1/(w*C2))\n", +"R3=500\n", +"C3=0.2*10^-6\n", +"Z3=R3-%i*(1/(w*C3))\n", +"Z4=Z2*Z3/Z1//balance equation\n", +"Zx=Z4\n", +"printf('unknown impedance\n')\n", +"disp(Zx)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.23: find_unknown_impedance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_23,pg 8_67\n", +"Z1=10*10^3\n", +"Z2=50*10^3\n", +"w=2*%pi*2*10^3\n", +"C3=100*10^-6\n", +"R3=100*10^3\n", +"Z3=R3-%i*(1/(w*C3))\n", +"Z4=Z2*Z3/Z1\n", +"Zx=Z4\n", +"Rx=real(Zx)\n", +"Xc=-imag(Zx)\n", +"Cx=1/(Xc*w)\n", +"printf('unknown resistance\n')\n", +"printf('Rx=%.f ohm\n',Rx)\n", +"printf('unknown capacitance\n')\n", +"printf('Cx=%.8f F',Cx)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.24: find_unknown_impedance_and_dissipation_factor.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_24,pg 8_68\n", +"R2=4.8\n", +"r2=0.4\n", +"w=2*%pi*450\n", +"C2=0.5*10^-6\n", +"Z2=R2+r2-%i*(1/(w*C2))\n", +"Z3=200\n", +"Z4=2850\n", +"//I1*Z1=I2*Z2........null deflection detector\n", +"Z1=Z2*Z3/Z4\n", +"R1=real(Z1)\n", +"Xc1=-imag(Z1)\n", +"C1=1/(w*Xc1)\n", +"D=w*R1*C1//dissipation factor\n", +"printf('arm-1 resistance\n')\n", +"printf('R1=%.4f ohm\n',R1)\n", +"printf('arm-1 capacitance\n')\n", +"printf('C1=%.6f F\n',C1)\n", +"printf('dissipation factor\n')\n", +"printf('D=%.6f \n',D)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.25: determine_unknown_parameters_of_arm_AB.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_25,pg 8_70\n", +"R2=842\n", +"w=2*%pi*10^3\n", +"C2=0.135*10^-6\n", +"Z2=R2-%i*(1/(w*C2))\n", +"Z3=10\n", +"C4=10^-6\n", +"Z4=-%i*(1/(w*C4))\n", +"Z1=Z2*Z3/Z4\n", +"R1=real(Z1)\n", +"Xl1=imag(Z1)\n", +"L1=Xl1/w\n", +"printf('resistance of arm AB\n')\n", +"printf('R1=%.3f ohm\n',R1)\n", +"printf('inductance of arm AB\n')\n", +"printf('L1=%.4f H',L1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.26: find_resistance_and_inductance_of_coil.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_26,pg 8_71\n", +"//balance is obtained when\n", +"L1=47.8*10^-3\n", +"R1=1.36\n", +"//at balance 100(r1+jwL1)=100((R2+r2)+jwL2)\n", +"L2=L1\n", +"r1=32.7\n", +"r2=r1-R1\n", +"printf('inductance of branch-CD\n')\n", +"printf('L2=%.4f H\n',L2)\n", +"printf('resistance of branch-CD\n')\n", +"printf('r2=%.2f ohm',r2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.27: find_limiting_values_of_unknown_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_27,pg 8_72\n", +"R1=100\n", +"R2=100\n", +"R3=230\n", +"R4=R1*R3/R2\n", +"lerrR1=0.02/100\n", +"lerrR3=0.01/100\n", +"lerrR2=0.02/100//lerrR........limiting error in R\n", +"lerrR4=lerrR1+lerrR3+lerrR2\n", +"R4u=R4+lerrR4*R4\n", +"R4l=R4-lerrR4*R4//limiting ranges of R4\n", +"printf('limiting range of R4\n')\n", +"printf('upper limit=%.3f ohm\n',R4u)\n", +"printf('lower limit=%.3f ohm',R4l)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.2: find_unknown_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_2,pg 8_18\n", +"R1=10*10^3\n", +"R2=2*10^3\n", +"R3=5*10^3\n", +"//R4=Rx\n", +"R4=(R1*R3)/R2\n", +"printf('unknown resistance\n')\n", +"printf('R4=%.2f ohm',R4)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.3: find_current_through_galvanometer.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_3,pg 8_18\n", +"R1=7*10^3\n", +"R2=2*10^3\n", +"R3=4*10^3\n", +"R4=20*10^3\n", +"E=8\n", +"Rg=300\n", +"Vth=(E*R4/(R3+R4))-(E*R1 /(R1+R2))//voltage divider rule\n", +"Req=(R1*R2/(R1+R2))+(R3*R4/(R3+R4))\n", +"Ig=Vth/(Req+Rg)\n", +"printf('current through galvanometer\n')\n", +"printf('Ig=%.7f A',Ig)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.4: find_unknown_resisance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_4,pg 8_25\n", +"R3=100.03*10^-6\n", +"R2=100.24\n", +"R1=200\n", +"b=100.31\n", +"a=200\n", +"Ry=700*10^-6\n", +"Rx=R1*R3/R2\n", +"Rx=Rx+(b*Ry/(Ry+a+b))*((R1/R2)-(a/b))\n", +"printf('unknown resistance\n')\n", +"printf('Rx=%.7f ohm',Rx)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.5: find_constants_of_unknown_impedance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_5,pg 8_35\n", +"Z2=250\n", +"Z3=200\n", +"Z1=50\n", +"Z4=Z2*Z3/Z1//magnitude condition\n", +"theta1=80\n", +"theta2=0\n", +"theta3=30\n", +"theta4=theta2+theta3-theta1//angle condition\n", +"theta4=theta4*%pi/180//in radians\n", +"Rx=Z4*cos(theta4)//real part\n", +"Ry=Z4*sin(theta4)//imag. part\n", +"Z4=Rx+%i*Ry\n", +"printf('unknown impedance\n')\n", +"disp(Z4)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.6: determine_balance_of_bridge.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_6,pg 8_35\n", +"Z1=sqrt(((50*cos(40*%pi/180))^2)+(50*sin(40*%pi/180))^2)//angle in radians\n", +"Z2=sqrt(((100*cos(-90*%pi/180))^2)+(100*sin(-90*%pi/180))^2)\n", +"Z3=sqrt(((15*cos(45*%pi/180))^2)+(15*sin(45*%pi/180))^2)\n", +"Z4=sqrt(((30*cos(30*%pi/180))^2)+(30*sin(30*%pi/180))^2)\n", +"//mag(Z1*Z4)=mag(Z2*Z3)....magnitude condition\n", +"magl=Z1*Z4//lhs\n", +"magr=Z2*Z3//rhs\n", +"printf('magl=%.f\n',magl)\n", +"printf('magr=%.f\n',magr)\n", +"printf('lhs=rhs hence,magnitude condition is satisfied \n')\n", +"theta1=40\n", +"theta2=-90\n", +"theta3=45\n", +"theta4=30\n", +"//theta1+theta4=theta2+theta3.......angle condition\n", +"thetal=theta1+theta4//lhs\n", +"thetar=theta2+theta3//rhs\n", +"printf('thetal=%.f\n',thetal)\n", +"printf('thetar=%.f\n',thetar)\n", +"printf('angle condition is not satisfied \n')" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.7: find_equivalent_series_circuit.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_7,pg 8_37\n", +"C3=10*10^-6\n", +"R1=1.2*10^3\n", +"R2=100*10^3\n", +"R3=120*10^3\n", +"Rx=R2*R3/R1\n", +"Cx=R1*C3/R2\n", +"printf('equivalent series circuit\n')\n", +"printf('Rx=%.f ohm\n',Rx)\n", +"printf('Cx=%.9f F',Cx)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.8: find_equivalent_series_circuit.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_8,pg 8_39\n", +"L3=8*10^-3\n", +"R1=1*10^3\n", +"R2=25*10^3\n", +"R3=50*10^3\n", +"Rx=R2*R3/R1\n", +"Lx=R2*L3/R1\n", +"printf('equivalent series circuit\n')\n", +"printf('Rx=%.f ohm\n',Rx)\n", +"printf('Lx=%.5f H',Lx)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.9: find_components_of_branch_BC.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-8,Example8_9,pg 8_44\n", +"//from the bridge\n", +"C1=0.5*10^-6\n", +"R1=1200\n", +"R2=700\n", +"R3=300\n", +"Rx=R2*R3/R1\n", +"Lx=R2*R3*C1\n", +"printf('components of branch RC\n')\n", +"printf('Rx=%.f ohm\n',Rx)\n", +"printf('Lx=%.5f H\n',Lx)" + ] + } +], +"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 +} diff --git a/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/9-DC_Motors.ipynb b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/9-DC_Motors.ipynb new file mode 100644 index 0000000..7d1d6d0 --- /dev/null +++ b/Electronic_and_Electrical_Measuring_Instruments_Machines_by_Bakshi_And_Bakshi/9-DC_Motors.ipynb @@ -0,0 +1,1270 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 9: DC Motors" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.10: calculate_speed_on_new_load.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_10,pg 9_39\n", +"N1=800\n", +"I1=20\n", +"V=250\n", +"Ia1=I1\n", +"I2=50\n", +"Ia2=I2\n", +"Ra=0.2\n", +"Ise1=I1\n", +"Ise2=I2\n", +"Rse=0.3\n", +"Eb1=V-Ia1*Ra-Ise1*Rse\n", +"Eb2=V-Ia2*Ra-Ise2*Rse\n", +"//from speed equation\n", +"N2=N1*(Eb2/Eb1)*(Ia1/Ia2)\n", +"printf('speed of motor on new load\n')\n", +"printf('N2=%.3f r.p.m',N2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.11: find_new_speed_and_armature_current.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_11,pg 9_45\n", +"V=250\n", +"Rsh=250\n", +"Ra=0.25\n", +"Rx=Rsh\n", +"Ia1=20\n", +"Ish1=V/Rsh\n", +"Ish2=V/(Rsh+Rx)\n", +"N1=1500\n", +"Eb1=V-Ia1*Ra\n", +"//phi=k*Ish\n", +"//T1=T2\n", +"Ia2=Ish1*Ia1/Ish2//new current\n", +"Eb2=V-Ia2*Ra\n", +"//from speed equation\n", +"N2=N1*(((Eb1/Eb2)*(Ish2/Ish1))^-1)//new speed\n", +"printf('new current\n')\n", +"printf('Ia2=%.f A\n',Ia2)\n", +"printf('new speed\n')\n", +"printf('N2=%.3f r.p.m',N2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.12: find_external_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_12,pg 9_46\n", +"V=250\n", +"Ra=0.5\n", +"Rsh=250\n", +"Ia1=20\n", +"Ish1=V/Rsh\n", +"Eb1=V-Ia1*Ra\n", +"N1=600\n", +"N2=800\n", +"//T1=T2\n", +"//Ish1*Ia1=Ish2*Ia2\n", +"//Ish2*Ia2=20............(1)\n", +"//(N1/N2)=(Eb1/Eb2)*(Ish2/Ish1)...........(2)\n", +"//using (1) and (2)\n", +"//240*(Ish2^2)-187.5*Ish2+7.5=0.........(3)\n", +"b=-187.5\n", +"a=240\n", +"c=7.5\n", +"Ish2=(-b+sqrt(((b^2)-4*a*c)))/(2*a)//neglecting lower value\n", +"Rx=(V/Ish2)-Rsh\n", +"printf('resistance in shunt feild\n')\n", +"printf('Rx=%.3f ohm',Rx)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.13: calculate_speed_of_motor.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_13,pg 9_51\n", +"V=250\n", +"Ra=0.15\n", +"Rx=0.1\n", +"Rse=0.1\n", +"N1=800\n", +"Ise1=30\n", +"Ia1=30//Ia1=Ise1\n", +"I1=Ia1\n", +"//phi=k*Ise\n", +"//T2=T1+0.5*T1(increased by 50%)..........(1)\n", +"//Ise2=Ia2*Rx/(Rx+Rse)\n", +"//putting values of Rx and Rse Ise2=0.5*Ia2.........(2)\n", +"//putting (1) and (2) in torque equation\n", +"Ia2=sqrt(2700)\n", +"Ise2=0.5*Ia2//from (2)\n", +"Eb1=V-Ia1*Ra-Ise1*Rse\n", +"Eb2=V-Ia2*Ra-Ise2*Rse\n", +"//using speed equation\n", +"N2=N1*Eb2*Ise1/(Eb1*Ise2)\n", +"printf('speed of motor\n')\n", +"printf('N2=%.3f r.p.m',N2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.14: find_out_speed_of_motor.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_14,pg 9_52\n", +"V=220\n", +"Ise1=15\n", +"Ia1=Ise1\n", +"Ia2=10\n", +"Ise2=Ia2\n", +"I2=Ia2\n", +"N1=900\n", +"Ra=0.5\n", +"Rse=0.5\n", +"Rx=4\n", +"Eb1=V-Ia1*Ra-Ise1*Rse\n", +"Eb2=V-Ia2*Ra-Ise2*Rse-I2*Rx\n", +"N2=N1*Eb2*Ise1/(Eb1*Ise2)\n", +"printf('speed of motor\n')\n", +"printf('N2=%.3f r.p.m',N2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.15: find_speed_and_torque_of_motor.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_15,pg 9_64\n", +"P=6\n", +"V=500\n", +"A=2//wave wound\n", +"Z=1200\n", +"phi=20*10^-3//flux\n", +"Ra=0.5\n", +"Rsh=250\n", +"Il=20\n", +"Ish=V/Rsh\n", +"Ia=Il-Ish\n", +"Eb=V-Ia*Ra\n", +"N=Eb*60*A/(phi*P*Z)\n", +"Pm=Eb*Ia//mechanical power\n", +"w=2*%pi*N/60//angular velocity\n", +"Tg=Pm/w\n", +"ML=900//mechanical losses\n", +"Pout=Pm-ML\n", +"Tsh=Pout/w//usefull torque\n", +"Pin=V*Il\n", +"n=Pout*100/Pin//efficiency at load\n", +"printf('usefull torque\n')\n", +"printf('Tsh=%.2f Nm\n',Tsh)\n", +"printf('efficiency at load\n')\n", +"printf('n=%.2f',n)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.16: find_speed_on_full_load.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_16,pg 9_65\n", +"V=120\n", +"Ra=0.2\n", +"Rsh=60\n", +"//for full load\n", +"Il1=40\n", +"N1=1800\n", +"//for shunt motor\n", +"Ish=V/Rsh\n", +"Ia1=Il1-Ish\n", +"Eb1=V-Ia1*Ra\n", +"//for half load T2=T1/2\n", +"Ia2=Ia1*0.5//T=k*Ia\n", +"Eb2=V-Ia2*Ra\n", +"N2=N1*Eb2/Eb1//from torque equation\n", +"printf('speed of motor\n')\n", +"printf('N2=%.2f r.p.m',N2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.17: determine_armature_current_ansd_speed_of_machine.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_17,pg 9_66\n", +"Ra=0.08\n", +"Eb1=242\n", +"V=250\n", +"Ia=87\n", +"Vt=V//generator supply\n", +"Nm=1500\n", +"Ia1=(V-Eb1)/Ra\n", +"//at start N=0, Eb=0\n", +"Ias=V/Ra//Ia(start)\n", +"Ia2=120\n", +"Eb2=V-Ia2*Ra\n", +"Eg=Vt+Ia*Ra//generator e.m.f\n", +"Ng=Nm*Eg/Eb1//speed as generator\n", +"printf('speed as generator\n')\n", +"printf('Ng=%.2f r.p.m',Ng)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.18: determine_mechanical_power_on_full_load.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_18,pg 9_67\n", +"V=250\n", +"Po=59680\n", +"Rsh=250\n", +"Ra=0.04\n", +"n=80//efficiency\n", +"N1=1200\n", +"Il=Po*100/(V*n)//Pi=V*Il\n", +"Ish=V/Rsh\n", +"Ia=Il-Ish\n", +"Eb=V-Ia*Ra\n", +"Pm=Eb*Ia//gross mechanical power\n", +"SL=Pm-Po//stray losses\n", +"printf('gross mechanical power\n')\n", +"printf('Pm=%.3f W\n',Pm)\n", +"printf('stray losses\n')\n", +"printf('SL=%.2f W\n',SL)\n", +"//on no load\n", +"//Pg=S, Ebo*Iao=SL..........(1)\n", +"//Ebo=V-Iao*Ra............(2)\n", +"//putting (2) in (1)\n", +"//(Iao^2)-6250*Iao+278303.24=0\n", +"b=-6250\n", +"a=1\n", +"c=278303.24\n", +"Iao=(-b-sqrt((b^2)-4*a*c))/(2*a)\n", +"I=Iao-Ish//current drawn on no load\n", +"Ebo=V-Iao*Ra\n", +"No=N1*Ebo/Eb\n", +"printf('no load speed\n')\n", +"printf('No=%.3f r.p.m',No)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.19: calculate_full_load_speed.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_19,pg 9_69\n", +"V=250\n", +"P=4\n", +"Ra=0.1\n", +"Rsh=125\n", +"Vbr=2//brush drop\n", +"//no load condition\n", +"Ilo=4\n", +"No=1200\n", +"Il1=61\n", +"Ish=V/Rsh\n", +"Iao=Ilo-Ish\n", +"Ebo=V-Iao*Ra-Vbr\n", +"//full load condition\n", +"//phi1=phio-o.o5*phio (weakened by 5%)\n", +"//phi=phi1/phio\n", +"phi=0.95\n", +"Ia1=Il1-Ish\n", +"Eb1=V-Ia1*Ra-Vbr\n", +"N1=No*Eb1/(Ebo*phi)\n", +"printf('full load speed\n')\n", +"printf('N1=%.3f r.p.m',N1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.1: calculate_generated_emf.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_1,pg 9_14\n", +"P=4\n", +"Z=440\n", +"phi=0.07//flux(in Wb)\n", +"N=900\n", +"//for lap-wound\n", +"A=P\n", +"E=phi*P*N*Z/(60*A)\n", +"printf('e.m.f for lap wound\n')\n", +"printf('E=%.f V\n',E)\n", +"//for wave wound\n", +"A=2\n", +"E=phi*P*N*Z/(60*A)\n", +"printf('e.m.f for wave wound\n')\n", +"printf('E=%.f V\n',E)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.20: determine_full_load_speed_and_efficiency.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_20,pg 9_70\n", +"V=250\n", +"Ra=0.15\n", +"Rsh=166.67\n", +"No=1280\n", +"Il1=67\n", +"Ish=V/Rsh\n", +"Ia1=Il1-Ish\n", +"Eb1=V-Ia1*Ra\n", +"//on no load\n", +"Ilo=6.5\n", +"Ish=1.5\n", +"Iao=Ilo-Ish\n", +"Ebo=V-Iao*Ra\n", +"N1=Eb1*No/Ebo\n", +"Sr=(No-N1)*100/No//speed regulation\n", +"SL=Ebo*Iao\n", +"Po=Eb1*Ia1-SL//full load shaft output\n", +"hp=Po/746//horse power rating\n", +"Pi=V*Il1\n", +"n=Po*100/Pi\n", +"printf('full load speed\n')\n", +"printf('N1=%.3f r.p.m\n',N1)\n", +"printf('speed regulation\n')\n", +"printf('Sr=%.2f \n',Sr)\n", +"printf('hp rating of machine\n')\n", +"printf('hp=%.2f hp\n',hp)\n", +"printf('full load efficiency\n')\n", +"printf('n=%.2f ',n)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.21: find_speed_for_parallel_field_groups.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_21,pg 9_71\n", +"Ra=0.1\n", +"V=110\n", +"P=4\n", +"Ia1=50\n", +"I1=Ia1\n", +"Rse=0.02\n", +"N1=700\n", +"Eb1=V-Ia1*Ra-Ia1*Rse\n", +"//using torque equation T=k*phi*Ia\n", +"Ia2=sqrt(2)*Ia1\n", +"Eb2=V-Ia2*Ra-Ia2*Rse/4//parallel speed groups\n", +"//using speed equation N=k*Eb/phi\n", +"N2=N1*Eb2*2*Ia1/(Eb1*Ia2)\n", +"printf('speed of motor\n')\n", +"printf('N2=%.3f r.p.m',N2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.22: find_new_speed_and_armature_current.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_22,pg 9_73\n", +"P=4\n", +"Ia1=50\n", +"N1=2000\n", +"V=230\n", +"//coils connected in series\n", +"//phi1=k*Ia1*(4*n)=k*200*n\n", +"//coils connected in parallel groups of series coils\n", +"//phi2=k*((Ia2*2*n/2)+(Ia2*2*n/2))=k*2*n*Ia2\n", +"//phi1/phi2=100/Ia2........(1)\n", +"//N1/N2=phi2/phi1........(2)\n", +"//T=kN^2..........(3)\n", +"Ia2=(Ia1*(100^3))^(1/4)//using (1) in (3)\n", +"N2=(((N1^3)*Ia2)/Ia1)^(1/3)\n", +"printf('new speed of motor\n')\n", +"printf('N2=%.3f r.p.m',N2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.23: find_external_resistance.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_23,pg 9_76\n", +"V=200\n", +"Ia1=30\n", +"Ra=0.75\n", +"Rse=0.75\n", +"R=Ra+Rse\n", +"Eb1=V-Ia1*R\n", +"//N2=0.6*N1\n", +"N=0.6//N=N2/N1\n", +"//using T=k*Ia^2 and T=k*N^3\n", +"Ia2=sqrt(((0.6^3)*30^2))\n", +"//using speed equation N=k*Eb/Ia\n", +"Eb2=N*Eb1*Ia2/Ia1\n", +"//Eb2=V-Ia2*(R+Rx)\n", +"Rx=-(Eb2-V+Ia2*R)/Ia2\n", +"printf('extra resistance to reduce speed\n')\n", +"printf('Rx=%.3f ohm',Rx)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.24: estimate_supply_voltage.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_24,pg 9_77\n", +"R=1\n", +"V1=230\n", +"N1=300\n", +"Ia1=15\n", +"N2=375\n", +"//using torque equation T=k*N^2\n", +"Ia2=N2*Ia1/N1\n", +"//using speed equation N=k*Eb/Ia........(1)\n", +"Eb1=V1-Ia1*R\n", +"//case-2\n", +"//Eb2=V2-Ia2*R=V2-18.75......(2)\n", +"//putting (2) in (1)\n", +"V2=(N2*Eb1*Ia2/(N1*Ia1))+18.75\n", +"printf('new supply voltage\n')\n", +"printf('V2=%.3f V',V2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.25: find_efficiency_and_power_input.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_25,pg 9_78\n", +"V=400\n", +"Po1=18.5*10^3\n", +"Pi1=22.5*10^3\n", +"Rsh=200\n", +"Ra=0.4\n", +"Po2=9*10^3\n", +"I1=Pi1/V\n", +"Ish=V/Rsh\n", +"Ia1=I1-Ish\n", +"Acl=(Ia1^2)*Ra//armature copper loss\n", +"Scl=(Ish^2)*Rsh//shunt feild copper loss\n", +"TL=Pi1-Po1//total losses\n", +"SFl=TL-(Acl+Scl)//stray and friction loss\n", +"//case-2\n", +"Pm=Po2+SFl//mechanical power\n", +"//Pm=Eb2*Ia2.........(1)\n", +"//Eb2=V-Ia2*Ra.......(2)\n", +"//using (1) and (2)\n", +"//0.4*(Ia2^2)-400*Ia2+11022.75=0\n", +"a=0.4\n", +"b=-400\n", +"c=11022.775\n", +"Ia2=(-b-sqrt((b^2)-4*a*c))/(2*a)//neglecting higher value\n", +"Pi2=Po2+(Ia2^2)*Ra+(Ish^2)*Rsh+SFl\n", +"n=Po2*100/Pi2//efficiency\n", +"printf('power input in case-2\n')\n", +"printf('Pi2=%.3f W\n',Pi2)\n", +"printf('efficiency of motor\n')\n", +"printf('n=%.2f ',n)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.26: calculate_efficiency_and_armature_current.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_26,pg 9_79\n", +"V=250\n", +"Ilo=4\n", +"Ra=1\n", +"Rsh=250\n", +"Ish=V/Rsh\n", +"Il1=20\n", +"Iao=Ilo-Ish\n", +"Ia1=Il1-Ish\n", +"Ebo=V-Iao*Ra\n", +"Po=Ebo*Iao\n", +"Eb1=V-Ia1*Ra\n", +"P1=Eb1*Ia1\n", +"Pout=P1-Po\n", +"Pi=V*Il1\n", +"n=Pout*100/Pi\n", +"//fro max. efficiency\n", +"//const. losses=variable losses\n", +"Ia=sqrt(Po+(Ish^2)*Rsh)\n", +"Ebm=V-Ia*Ra\n", +"Pm=Ebm*Ia\n", +"Pout=Pm-Po\n", +"Pi=V*(Ia+Ish)\n", +"nm=Pout*100/Pi\n", +"printf('maximum efficiency\n')\n", +"printf('nm=%.2f',nm)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.27: calculate_back_emf.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_27,pg 9_81\n", +"V=250\n", +"FLo=16*10^3//full scale output\n", +"n=80\n", +"I=FLo*100/n//input\n", +"Il=I/V\n", +"Il=Il\n", +"Ia=1.5*Il\n", +"//at start\n", +"Ra=V/Ia\n", +"Rac=0.18//Ra actual\n", +"Ras=Ra-Rac//Ra starter\n", +"Ia=Il//Ia drops as motor starts\n", +"Eb=V-Ia*(Ra)\n", +"printf('back e.m.f\n')\n", +"printf('Eb=%.2f V',Eb)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.28: calculate_torque_and_efficiency.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_28,pg 9_82\n", +"Po=20*735.5//(in W)\n", +"V=230\n", +"N=1150\n", +"P=4\n", +"A=P\n", +"Z=882\n", +"Ia=73\n", +"Ish=1.6\n", +"T=60*Po/(2*%pi*N)\n", +"phi=T*A/(0.159*Ia*P*Z)//flux per pole\n", +"Il=Ia+Ish\n", +"Pin=V*Il\n", +"n=Po*100/Pin\n", +"printf('electromagnetic torque\n')\n", +"printf('T=%.3f Nm\n',T)\n", +"printf('flux per pole\n')\n", +"printf('phi=%.3f Wb\n',phi)\n", +"printf('efficiency of motor\n')\n", +"printf('n=%.3f',n)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.29: determine_efficiency_and_speed_of_motor.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_29,pg 9_83\n", +"Pr=12*10^3//rated output\n", +"V=200\n", +"Rsh=80\n", +"N1=800\n", +"n=0.9//efficiency\n", +"Out=0.8*Pr//output is 80% of rated\n", +"In=Out/n//input\n", +"TL=In-Out\n", +"//for max. efficiency\n", +"Iln=70//new current\n", +"//TL=Wc+(Ia1^2)*Ra\n", +"//bur Wc=(Ia1^2)*Ra\n", +"Wc=TL/2\n", +"Il=In/V\n", +"Ish=V/Rsh\n", +"Ia1=Il-Ish\n", +"Ra=Wc/(Ia1^2)\n", +"Ia2=Iln-Ish\n", +"Wcn=Wc//const. losses remain same\n", +"TL=(Ia2^2)*Ra+Wcn\n", +"Pi=V*Iln\n", +"n=(Pi-TL)*100/Pi\n", +"Eb1=V-Ia1*Ra\n", +"Eb2=V-Ia2*Ra\n", +"N2=N1*Eb2/Eb1\n", +"printf('speed of motor\n')\n", +"printf('N2=%.3f r.p.m',N2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.2: calculate_speed_and_generated_emf.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_2,pg 9_15\n", +"P=4\n", +"phi=21*10^-3//flux(in Wb)\n", +"N=1120\n", +"C=42//coils\n", +"tpC=8//turns per coil\n", +"t=C*tpC//total turns\n", +"Z=2*t\n", +"//for lap wound\n", +"A=P\n", +"E=phi*P*N*Z/(60*A)\n", +"printf('e.m.f for lap wound\n')\n", +"printf('E=%.f V\n',E)\n", +"//for wave wound\n", +"A=2\n", +"E=263.424\n", +"N=E*60*A/(phi*P*Z)\n", +"printf('speed of generator for wave wound\n')\n", +"printf('N=%.f r.p.m\n',N)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.30: calculate_efficiency_of_motor.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_30,pg 9_85\n", +"Po=8.952*10^3\n", +"V=440\n", +"Ra=1.1\n", +"Rsh=650\n", +"Rint=0.4\n", +"Rreg=50\n", +"Ml=450\n", +"Vbr=2//brush drop\n", +"Il=24\n", +"Rat=Ra+Rint//series connection\n", +"Rsht=Rsh+Rreg//series connection\n", +"Ish=V/Rsht\n", +"Ia=Il-Ish\n", +"Acl=(Ia^2)*Rat//armature copper loss\n", +"Fcl=(Ish^2)*Rsht//feild copper loss\n", +"Bdl=Vbr*Ia//brush drop loss\n", +"TL=Acl+Fcl+Bdl+Ml\n", +"n=Po*100/(Po+TL)\n", +"printf('efficiency of motor\n')\n", +"printf('n=%.2f ',n)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.31: calculate_speed_of_motor_combination.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_31,pg 9_85\n", +"//for first motor\n", +"N1=700\n", +"R=0.5//Ra+Rse\n", +"I1=70\n", +"V=500\n", +"Eb1=V-I1*R\n", +"K1=Eb1/(N1*I1)\n", +"//for second motor\n", +"N2=750\n", +"R=0.5\n", +"I2=70\n", +"V=500\n", +"Eb2=V-I2*R\n", +"K2=Eb2/(N2*I2)\n", +"//motors in series\n", +"It=70\n", +"Rt=2*R\n", +"Eb=V-It*Rt\n", +"N=Eb/(K1*It+K2*It)\n", +"printf('speed of motors\n')\n", +"printf('N=%.3f r.p.m',N)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.32: calculate_efficiency_and_power_output.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_32,pg 9_86\n", +"Po=7.46*10^3\n", +"V=250\n", +"Ilo=5\n", +"Ra=0.5\n", +"Rsh=250\n", +"Ish=V/Rsh\n", +"Iao=Ilo-Ish\n", +"Acl=(Iao^2)*Ra\n", +"Fcl=(Ish^2)*Rsh\n", +"Pi=V*Ilo\n", +"FWl=Pi-Acl-Fcl//friction and windage loss\n", +"//Pin=Eb*Ia=(V-Ia*Ra)*Ia\n", +"//0.5*(Ia^2)-250*Ia+8452=0\n", +"b=-250\n", +"a=0.5\n", +"c=8452\n", +"Ia=(-b-sqrt((b^2)-4*a*c))/(2*a)//neglecting higher value\n", +"TL=(Ia^2)*Ra+(Ish^2)*Rsh+FWl\n", +"n=Po*100/(Po+TL)\n", +"//for max. efficiency\n", +"Ia=sqrt((FWl+Fcl)/Ra)\n", +"Eb=V-Ia*Ra\n", +"Pm=Eb*Ia\n", +"//Po at nmax\n", +"Po=Pm-FWl\n", +"printf('maximum efficiency output\n')\n", +"printf('Po=%.3f W',Po)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.33: calculate_speed_on_given_load.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_33,pg 9_87\n", +"V=500\n", +"Ra=1.2\n", +"Rsh=500\n", +"Ish=V/Rsh\n", +"Ilo=4\n", +"Iao=Ilo-Ish\n", +"Ebo=V-Iao*Ra\n", +"Il1=26\n", +"Ish1=1\n", +"Ia1=Il1-Ish1\n", +"Eb1=V-Ia1*Ra\n", +"No=1000\n", +"N1=No*Eb1/Ebo\n", +"Rx=2.3//connected in series with armature\n", +"Eb2=V-Ia1*(Ra+Rx)\n", +"N2=N1*Eb2/Eb1\n", +"printf('speed of motor case-1\n')\n", +"printf('N2=%.3f r.p.m\n',N2)\n", +"Ish3=Ish1-0.15*Ish1//reduced by 15%\n", +"Ia3=Ish1*Ia1/(Ish3)\n", +"Eb3=V-Ia3*Ra\n", +"N3=N1*Eb3*Ish1/(Eb1*Ish3)\n", +"printf('speed of motor case-2\n')\n", +"printf('N3=%.3f r.p.m\n',N3)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.3: calculate_induced_emf.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_3,pg 9_20\n", +"V=220\n", +"Ia=30\n", +"Ra=0.75\n", +"Eb=V-Ia*Ra\n", +"printf('back e.m.f of motor\n')\n", +"printf('Ebb=%.2f V',Eb)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.4: calculate_back_emf_and_speed.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_4,pg 9_21\n", +"P=4\n", +"A=P\n", +"V=230\n", +"Ra=0.6\n", +"Z=250\n", +"phi=30*10^-3//flux(in Wb)\n", +"Ia=40\n", +"Eb=V-Ia*Ra\n", +"N=Eb*60*A/(phi*P*Z)\n", +"printf('back e.m.f\n')\n", +"printf('Eb=%.f V\n',Eb)\n", +"printf('speed of motor\n')\n", +"printf('N=%.f r.p.m',N)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.5: calculate_gross_torque.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_5,pg 9_24\n", +"P=4\n", +"A=P\n", +"Z=480\n", +"phi=20*10^-3//flux(in Wb)\n", +"Ia=50\n", +"Ta=0.159*phi*Ia*(P*Z/A)\n", +"printf('gross torque\n')\n", +"printf('Ta=%.3f N',Ta)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.6: calculate_induced_emf_and_lost_torque.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_6,pg 9_25\n", +"P=4\n", +"A=P\n", +"No=1000//speed of motor\n", +"Z=540\n", +"V=230\n", +"phi=25*10^-3//flux(In Wb)\n", +"Ra=0.8\n", +"Ebo=phi*P*No*Z/(60*A)//induced e.m.f\n", +"Iao=(V-Ebo)/Ra//armature current\n", +"SL=Ebo*Iao//stray losses\n", +"wo=2*%pi*No/60//angular velocity\n", +"Tf=Ebo*Iao/wo//loss torque\n", +"printf('induced e.m.f\n')\n", +"printf('Ebo=%.f V\n',Ebo)\n", +"printf('armature current\n')\n", +"printf('Ia=%.2f A\n',Iao)\n", +"printf('stray losses\n')\n", +"printf('Sl=%.2f W\n',SL)\n", +"printf('loss torque\n')\n", +"printf('Tf=%.3f Nm',Tf)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.7: calculate_speed.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_7,pg 9_37\n", +"P=4\n", +"Z=200\n", +"V=250\n", +"A=2\n", +"phi=25*10^-3\n", +"Ia=60\n", +"Il=Ia\n", +"Ra=0.15\n", +"Rse=0.2\n", +"Eb=V-Ia*(Ra+Rse)\n", +"N=Eb*60*A/(phi*P*Z)\n", +"printf('speed of motor\n')\n", +"printf('N=%.f r.p.m',N)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.8: find_armature_current_and_back_emf.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_8,pg 9_38\n", +"V=250\n", +"Il=20\n", +"Ra=0.3\n", +"Rsh=200\n", +"Ish=V/Rsh\n", +"Ia=Il-Ish\n", +"Eb=V-Ia*Ra\n", +"printf('back e.m.f\n')\n", +"printf('Eb=%.3f V',Eb)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.9: calculate_speed_on_full_load.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Chapter-9,Example9_9,pg 9_38\n", +"No=1000\n", +"V=220\n", +"Rsh=110\n", +"Ra=0.3\n", +"Ish=V/Rsh\n", +"Ilo=6\n", +"Iao=Ilo-Ish\n", +"Rao=0.3\n", +"Ebo=V-Iao*Ra\n", +"//on full load\n", +"Il=50\n", +"IaFL=Il-Ish\n", +"EbFL=V-IaFL*Ra\n", +"//N=k*Eb/phi\n", +"NFL=No*EbFL/Ebo\n", +"printf('speed at full load\n')\n", +"printf('NFL=%.3f r.p.m',NFL)" + ] + } +], +"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 +} |