<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://fweb.wallawalla.edu/class-wiki/index.php?action=history&amp;feed=atom&amp;title=Textbook_problem_6.13_Octave_Script</id>
	<title>Textbook problem 6.13 Octave Script - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://fweb.wallawalla.edu/class-wiki/index.php?action=history&amp;feed=atom&amp;title=Textbook_problem_6.13_Octave_Script"/>
	<link rel="alternate" type="text/html" href="https://fweb.wallawalla.edu/class-wiki/index.php?title=Textbook_problem_6.13_Octave_Script&amp;action=history"/>
	<updated>2026-04-05T19:24:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://fweb.wallawalla.edu/class-wiki/index.php?title=Textbook_problem_6.13_Octave_Script&amp;diff=10231&amp;oldid=prev</id>
		<title>Frohro: Created page with &#039; % This file is the solution for Problem 6.13 in the text on induction machines.  %  See the notes from March 2 and following.  It demonstrates using inline  % fuctions in Gnu Oc…&#039;</title>
		<link rel="alternate" type="text/html" href="https://fweb.wallawalla.edu/class-wiki/index.php?title=Textbook_problem_6.13_Octave_Script&amp;diff=10231&amp;oldid=prev"/>
		<updated>2011-03-11T00:54:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039; % This file is the solution for Problem 6.13 in the text on induction machines.  %  See the notes from March 2 and following.  It demonstrates using inline  % fuctions in Gnu Oc…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; % This file is the solution for Problem 6.13 in the text on induction machines.&lt;br /&gt;
 %  See the notes from March 2 and following.  It demonstrates using inline&lt;br /&gt;
 % fuctions in Gnu Octave, and using fsolve.&lt;br /&gt;
 %&lt;br /&gt;
 %  Rob Frohne and EMEC Class 2011&lt;br /&gt;
 %&lt;br /&gt;
 %&lt;br /&gt;
 s=.035&lt;br /&gt;
 R1=.21&lt;br /&gt;
 X1=.26&lt;br /&gt;
 X2=.26&lt;br /&gt;
 Xm=10.1&lt;br /&gt;
 V1=230/sqrt(3)&lt;br /&gt;
 P=15000&lt;br /&gt;
 nph=3&lt;br /&gt;
 np=4&lt;br /&gt;
 %x(1) = real(I2), x(2) = imag(I2), x(3) = Rr&lt;br /&gt;
 a = @(x) [x(3)./s+x(3).*(1+X2./Xm)+X1.*x(3)./s./Xm];&lt;br /&gt;
 b = @(x) [X1.*(1+X2./Xm)-R1.*x(3)./s./Xm+X2];&lt;br /&gt;
 fcn = @(x) [x(1).*a(x)-x(2).*b(x)-V1, x(2).*a(x)+x(1).*b(x),x(1)-sqrt(181.5/x(3))];&lt;br /&gt;
 [x,fval,info]=fsolve(fcn,[37,0,.13],optimset(&amp;quot;ComplexEqn&amp;quot;, &amp;quot;Off&amp;quot;));&lt;br /&gt;
 I2=complex(x(1),x(2))&lt;br /&gt;
 Rr=x(3)&lt;br /&gt;
 &lt;br /&gt;
 wr=2*pi.*[-60:.01:800].*2./np;&lt;br /&gt;
 wa=2*pi*60*2/np;&lt;br /&gt;
 s=(wa-wr)./wa;&lt;br /&gt;
 &lt;br /&gt;
 Il=V1./(R1+j*X1+(j*Xm.*(Rr./s+j*X2))./(Rr./s+j*X2+j*Xm));&lt;br /&gt;
 I2=Il*j*Xm./(j*Xm+Rr./s+j*X2);&lt;br /&gt;
 T=abs(I2.*I2).*Rr.*(1-s)./s./wr;&lt;br /&gt;
 figure(1)&lt;br /&gt;
 subplot(2,1,1)&lt;br /&gt;
 plot(wr*60/2/pi,T)&lt;br /&gt;
 title(&amp;#039;Torque&amp;#039;)&lt;br /&gt;
 xlabel(&amp;#039;rotor speed (RPM)&amp;#039;)&lt;br /&gt;
 subplot(2,1,2)&lt;br /&gt;
 plot(s,T)&lt;br /&gt;
 xlabel(&amp;#039;slip, s&amp;#039;)&lt;/div&gt;</summary>
		<author><name>Frohro</name></author>
	</entry>
</feed>