summaryrefslogtreecommitdiff
path: root/620/CH18/EX18.3
diff options
context:
space:
mode:
Diffstat (limited to '620/CH18/EX18.3')
-rw-r--r--620/CH18/EX18.3/example18_3.sce20
-rw-r--r--620/CH18/EX18.3/example18_3.txt24
-rw-r--r--620/CH18/EX18.3/example18_3.xcos1
3 files changed, 45 insertions, 0 deletions
diff --git a/620/CH18/EX18.3/example18_3.sce b/620/CH18/EX18.3/example18_3.sce
new file mode 100644
index 000000000..3c33d7c2a
--- /dev/null
+++ b/620/CH18/EX18.3/example18_3.sce
@@ -0,0 +1,20 @@
+v1=4160;
+v2=230;
+r=4;
+disp("Part a");
+i2=v2/r;
+i1=v2*i2/i1;
+disp("the primary current (in A) is"); disp(i1);
+disp("Part b");
+pout=v2^2/r;
+eff=0.98;
+pin=pout/eff;
+i1=pin/v1;
+disp("the primary current (in A) with 98% efficiency is"); disp(i1);
+disp("Part c");
+loss=pin-pout;
+disp("The losses (in W) is"); disp(loss);
+disp("Part d");
+p=v2*i2;
+disp("The rating of the transformer (in kVA) is"); disp(p/1000);
+
diff --git a/620/CH18/EX18.3/example18_3.txt b/620/CH18/EX18.3/example18_3.txt
new file mode 100644
index 000000000..763b02cdd
--- /dev/null
+++ b/620/CH18/EX18.3/example18_3.txt
@@ -0,0 +1,24 @@
+Part a
+
+ the primary current (in A) is
+
+ 1102.0833
+
+ Part b
+
+ the primary current (in A) with 98% efficiency is
+
+ 3.2439659
+
+ Part c
+
+ The losses (in W) is
+
+ 269.89796
+
+ Part d
+
+ The rating of the transformer (in kVA) is
+
+ 13.225
+ \ No newline at end of file
diff --git a/620/CH18/EX18.3/example18_3.xcos b/620/CH18/EX18.3/example18_3.xcos
new file mode 100644
index 000000000..a3a8b9639
--- /dev/null
+++ b/620/CH18/EX18.3/example18_3.xcos
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><XcosDiagram background="-1"><!--Xcos - 1.0 - scilab-5.3.3 - 20110720 1111--><mxGraphModel as="model"><root><mxCell id="-6d875474:1383b18dc14:-7fff"/><mxCell id="-6d875474:1383b18dc14:-8000" parent="-6d875474:1383b18dc14:-7fff"/><BasicBlock dependsOnT="1" id="-6d875474:1383b18dc14:-7fdf" interfaceFunctionName="IdealTransformer" parent="-6d875474:1383b18dc14:-8000" simulationFunctionName="IdealTransformer" simulationFunctionType="DEFAULT" style="IdealTransformer"><ScilabString as="exprs" height="1" width="1"><data column="0" line="0" value="4160/230"/></ScilabString><ScilabDouble as="realParameters" height="1" width="1"><data column="0" line="0" realPart="1.0"/></ScilabDouble><ScilabDouble as="integerParameters" height="0" width="0"/><Array as="objectsParameters" scilabClass="ScilabList"/><ScilabDouble as="nbZerosCrossing" height="1" width="1"><data column="0" line="0" realPart="0.0"/></ScilabDouble><ScilabDouble as="nmode" height="1" width="1"><data column="0" line="0" realPart="0.0"/></ScilabDouble><Array as="oDState" scilabClass="ScilabList"/><Array as="equations" scilabClass="ScilabTList"><ScilabString height="1" width="5"><data column="0" line="0" value="modelica"/><data column="1" line="0" value="model"/><data column="2" line="0" value="inputs"/><data column="3" line="0" value="outputs"/><data column="4" line="0" value="parameters"/></ScilabString><ScilabString height="1" width="1"><data column="0" line="0" value="IdealTransformer"/></ScilabString><ScilabString height="2" width="1"><data column="0" line="0" value="p1"/><data column="0" line="1" value="n1"/></ScilabString><ScilabString height="2" width="1"><data column="0" line="0" value="p2"/><data column="0" line="1" value="n2"/></ScilabString><Array scilabClass="ScilabList"><ScilabString height="1" width="1"><data column="0" line="0" value="N"/></ScilabString><Array scilabClass="ScilabList"><ScilabDouble height="1" width="1"><data column="0" line="0" realPart="18.08695652173913"/></ScilabDouble></Array><ScilabDouble height="1" width="1"><data column="0" line="0" realPart="0.0"/></ScilabDouble></Array></Array><mxGeometry as="geometry" height="40.0" width="40.0" x="180.0" y="60.0"/></BasicBlock><ImplicitOutputPort connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fc4" ordering="1" parent="-6d875474:1383b18dc14:-7fdf" style="ImplicitOutputPort;align=right;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="40.0" y="6.0"/></ImplicitOutputPort><ImplicitInputPort connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fc6" ordering="1" parent="-6d875474:1383b18dc14:-7fdf" style="ImplicitInputPort;align=left;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="-8.0" y="6.0"/></ImplicitInputPort><ImplicitOutputPort connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fc3" ordering="2" parent="-6d875474:1383b18dc14:-7fdf" style="ImplicitOutputPort;align=right;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="40.0" y="26.0"/></ImplicitOutputPort><ImplicitInputPort connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fc5" ordering="2" parent="-6d875474:1383b18dc14:-7fdf" style="ImplicitInputPort;align=left;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="-8.0" y="26.0"/></ImplicitInputPort><BasicBlock dependsOnU="1" id="-6d875474:1383b18dc14:-7fd1" interfaceFunctionName="Resistor" parent="-6d875474:1383b18dc14:-8000" simulationFunctionName="resistor" simulationFunctionType="DEFAULT" style="Resistor"><ScilabString as="exprs" height="1" width="1"><data column="0" line="0" value="4"/></ScilabString><ScilabDouble as="realParameters" height="1" width="1"><data column="0" line="0" realPart="4.0"/></ScilabDouble><ScilabDouble as="integerParameters" height="0" width="0"/><Array as="objectsParameters" scilabClass="ScilabList"/><ScilabDouble as="nbZerosCrossing" height="1" width="1"><data column="0" line="0" realPart="0.0"/></ScilabDouble><ScilabDouble as="nmode" height="1" width="1"><data column="0" line="0" realPart="0.0"/></ScilabDouble><Array as="oDState" scilabClass="ScilabList"/><Array as="equations" scilabClass="ScilabTList"><ScilabString height="1" width="5"><data column="0" line="0" value="modelica"/><data column="1" line="0" value="model"/><data column="2" line="0" value="inputs"/><data column="3" line="0" value="outputs"/><data column="4" line="0" value="parameters"/></ScilabString><ScilabString height="1" width="1"><data column="0" line="0" value="Resistor"/></ScilabString><ScilabString height="1" width="1"><data column="0" line="0" value="p"/></ScilabString><ScilabString height="1" width="1"><data column="0" line="0" value="n"/></ScilabString><Array scilabClass="ScilabList"><ScilabString height="1" width="1"><data column="0" line="0" value="R"/></ScilabString><Array scilabClass="ScilabList"><ScilabDouble height="1" width="1"><data column="0" line="0" realPart="4.0"/></ScilabDouble></Array></Array></Array><mxGeometry as="geometry" height="40.0" width="40.0" x="340.0" y="50.0"/></BasicBlock><ImplicitOutputPort connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fc9" ordering="1" parent="-6d875474:1383b18dc14:-7fd1" style="ImplicitOutputPort;align=right;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="40.0" y="16.0"/></ImplicitOutputPort><ImplicitInputPort connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fca" ordering="1" parent="-6d875474:1383b18dc14:-7fd1" style="ImplicitInputPort;align=left;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="-8.0" y="16.0"/></ImplicitInputPort><BasicBlock dependsOnU="1" id="-6d875474:1383b18dc14:-7fa8" interfaceFunctionName="SineVoltage" parent="-6d875474:1383b18dc14:-8000" simulationFunctionName="SineVoltage" simulationFunctionType="DEFAULT" style="SineVoltage"><ScilabString as="exprs" height="5" width="1"><data column="0" line="0" value="4160"/><data column="0" line="1" value="0"/><data column="0" line="2" value="1"/><data column="0" line="3" value="0"/><data column="0" line="4" value="0"/></ScilabString><ScilabDouble as="realParameters" height="5" width="1"><data column="0" line="0" realPart="4160.0"/><data column="0" line="1" realPart="0.0"/><data column="0" line="2" realPart="1.0"/><data column="0" line="3" realPart="0.0"/><data column="0" line="4" realPart="0.0"/></ScilabDouble><ScilabDouble as="integerParameters" height="0" width="0"/><Array as="objectsParameters" scilabClass="ScilabList"/><ScilabDouble as="nbZerosCrossing" height="1" width="1"><data column="0" line="0" realPart="0.0"/></ScilabDouble><ScilabDouble as="nmode" height="1" width="1"><data column="0" line="0" realPart="0.0"/></ScilabDouble><Array as="oDState" scilabClass="ScilabList"/><Array as="equations" scilabClass="ScilabTList"><ScilabString height="1" width="5"><data column="0" line="0" value="modelica"/><data column="1" line="0" value="model"/><data column="2" line="0" value="inputs"/><data column="3" line="0" value="outputs"/><data column="4" line="0" value="parameters"/></ScilabString><ScilabString height="1" width="1"><data column="0" line="0" value="SineVoltage"/></ScilabString><ScilabString height="1" width="1"><data column="0" line="0" value="p"/></ScilabString><ScilabString height="1" width="1"><data column="0" line="0" value="n"/></ScilabString><Array scilabClass="ScilabList"><ScilabString height="5" width="1"><data column="0" line="0" value="V"/><data column="0" line="1" value="phase"/><data column="0" line="2" value="freqHz"/><data column="0" line="3" value="offset"/><data column="0" line="4" value="startTime"/></ScilabString><Array scilabClass="ScilabList"><ScilabDouble height="1" width="1"><data column="0" line="0" realPart="4160.0"/></ScilabDouble><ScilabDouble height="1" width="1"><data column="0" line="0" realPart="0.0"/></ScilabDouble><ScilabDouble height="1" width="1"><data column="0" line="0" realPart="1.0"/></ScilabDouble><ScilabDouble height="1" width="1"><data column="0" line="0" realPart="0.0"/></ScilabDouble><ScilabDouble height="1" width="1"><data column="0" line="0" realPart="0.0"/></ScilabDouble></Array></Array></Array><mxGeometry as="geometry" height="60.0" width="50.0" x="30.0" y="50.0"/></BasicBlock><ImplicitOutputPort connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fa0" ordering="1" parent="-6d875474:1383b18dc14:-7fa8" style="ImplicitOutputPort;align=right;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="50.0" y="26.0"/></ImplicitOutputPort><ImplicitInputPort connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fa1" ordering="1" parent="-6d875474:1383b18dc14:-7fa8" style="ImplicitInputPort;align=left;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="-8.0" y="26.0"/></ImplicitInputPort><ImplicitLink id="-6d875474:1383b18dc14:-7f9e"><mxGeometry as="geometry"><mxPoint as="sourcePoint" x="26.0" y="80.0"/><mxPoint as="targetPoint" x="170.0" y="90.0"/><Array as="points" scilabClass=""><mxPoint x="30.0" y="180.0"/><mxPoint x="170.0" y="180.0"/></Array></mxGeometry><mxCell as="parent" id="-6d875474:1383b18dc14:-8000" parent="-6d875474:1383b18dc14:-7fff"/><ImplicitInputPort as="source" connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fa1" ordering="1" parent="-6d875474:1383b18dc14:-7fa8" style="ImplicitInputPort;align=left;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="-8.0" y="26.0"/></ImplicitInputPort><ImplicitInputPort as="target" connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fc5" ordering="2" parent="-6d875474:1383b18dc14:-7fdf" style="ImplicitInputPort;align=left;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="-8.0" y="26.0"/></ImplicitInputPort></ImplicitLink><ImplicitLink id="-6d875474:1383b18dc14:-7f94"><mxGeometry as="geometry"><mxPoint as="sourcePoint" x="84.0" y="80.0"/><mxPoint as="targetPoint" x="170.0" y="70.0"/><Array as="points" scilabClass=""><mxPoint x="80.0" y="40.0"/><mxPoint x="170.0" y="40.0"/></Array></mxGeometry><mxCell as="parent" id="-6d875474:1383b18dc14:-8000" parent="-6d875474:1383b18dc14:-7fff"/><ImplicitOutputPort as="source" connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fa0" ordering="1" parent="-6d875474:1383b18dc14:-7fa8" style="ImplicitOutputPort;align=right;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="50.0" y="26.0"/></ImplicitOutputPort><ImplicitInputPort as="target" connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fc6" ordering="1" parent="-6d875474:1383b18dc14:-7fdf" style="ImplicitInputPort;align=left;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="-8.0" y="6.0"/></ImplicitInputPort></ImplicitLink><ImplicitLink id="-6d875474:1383b18dc14:-7f93"><mxGeometry as="geometry"><mxPoint as="sourcePoint" x="224.0" y="70.0"/><mxPoint as="targetPoint" x="330.0" y="70.0"/></mxGeometry><mxCell as="parent" id="-6d875474:1383b18dc14:-8000" parent="-6d875474:1383b18dc14:-7fff"/><ImplicitOutputPort as="source" connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fc4" ordering="1" parent="-6d875474:1383b18dc14:-7fdf" style="ImplicitOutputPort;align=right;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="40.0" y="6.0"/></ImplicitOutputPort><ImplicitInputPort as="target" connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fca" ordering="1" parent="-6d875474:1383b18dc14:-7fd1" style="ImplicitInputPort;align=left;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="-8.0" y="16.0"/></ImplicitInputPort></ImplicitLink><ImplicitLink id="-6d875474:1383b18dc14:-7f92"><mxGeometry as="geometry"><mxPoint as="sourcePoint" x="384.0" y="70.0"/><mxPoint as="targetPoint" x="220.0" y="90.0"/><Array as="points" scilabClass=""><mxPoint x="230.0" y="160.0"/><mxPoint x="390.0" y="160.0"/></Array></mxGeometry><mxCell as="parent" id="-6d875474:1383b18dc14:-8000" parent="-6d875474:1383b18dc14:-7fff"/><ImplicitOutputPort as="source" connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fc3" ordering="2" parent="-6d875474:1383b18dc14:-7fdf" style="ImplicitOutputPort;align=right;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="40.0" y="26.0"/></ImplicitOutputPort><ImplicitOutputPort as="target" connectable="0" dataColumns="1" dataLines="1" dataType="REAL_MATRIX" id="-6d875474:1383b18dc14:-7fc9" ordering="1" parent="-6d875474:1383b18dc14:-7fd1" style="ImplicitOutputPort;align=right;verticalAlign=middle;spacing=10;rotation=0"><mxGeometry as="geometry" height="8.0" width="8.0" x="40.0" y="16.0"/></ImplicitOutputPort></ImplicitLink></root></mxGraphModel><mxCell as="defaultParent" id="-6d875474:1383b18dc14:-8000" parent="-6d875474:1383b18dc14:-7fff"/></XcosDiagram> \ No newline at end of file