sim11ex6.mdl
上传用户:eighthdate
上传日期:2014-05-24
资源大小:270k
文件大小:9k
源码类别:

其他行业

开发平台:

Matlab

  1. Model {
  2.   Name   "sim11ex6"
  3.   Version   2.09
  4.   SimParamPage   Solver
  5.   SampleTimeColors   off
  6.   InvariantConstants   off
  7.   WideVectorLines   off
  8.   ShowLineWidths   off
  9.   PaperOrientation   landscape
  10.   PaperType   usletter
  11.   PaperUnits   inches
  12.   StartTime   "0.0"
  13.   StopTime   "2"
  14.   Solver   ode45
  15.   RelTol   "1e-3"
  16.   AbsTol   "1e-3"
  17.   Refine   "1"
  18.   MaxStep   ".01"
  19.   InitialStep   "auto"
  20.   FixedStep   "auto"
  21.   MaxOrder   5
  22.   OutputOption   RefineOutputTimes
  23.   OutputTimes   "[]"
  24.   LoadExternalInput   off
  25.   ExternalInput   "[t, u]"
  26.   SaveTime   off
  27.   TimeSaveName   "tout"
  28.   SaveState   off
  29.   StateSaveName   "xout"
  30.   SaveOutput   off
  31.   OutputSaveName   "yout"
  32.   LoadInitialState   off
  33.   InitialState   "xInitial"
  34.   SaveFinalState   off
  35.   FinalStateName   "xFinal"
  36.   LimitMaxRows   off
  37.   MaxRows   "1000"
  38.   Decimation   "1"
  39.   AlgebraicLoopMsg   warning
  40.   MinStepSizeMsg   warning
  41.   UnconnectedInputMsg   warning
  42.   UnconnectedOutputMsg   warning
  43.   UnconnectedLineMsg   warning
  44.   ConsistencyChecking   off
  45.   ZeroCross   on
  46.   SimulationMode   normal
  47.   RTWSystemTargetFile   "grt.tlc"
  48.   RTWInlineParameters   off
  49.   RTWRetainRTWFile   off
  50.   RTWTemplateMakefile   "grt_vc.tmf"
  51.   RTWMakeCommand   "make_rtw"
  52.   RTWGenerateCodeOnly   off
  53.   ExtModeMexFile   "ext_comm"
  54.   ExtModeBatchMode   off
  55.   BlockDefaults {
  56.     Orientation     right
  57.     ForegroundColor     black
  58.     BackgroundColor     white
  59.     DropShadow     off
  60.     NamePlacement     normal
  61.     FontName     "Helvetica"
  62.     FontSize     10
  63.     FontWeight     normal
  64.     FontAngle     normal
  65.     ShowName     on
  66.   }
  67.   AnnotationDefaults {
  68.     HorizontalAlignment     center
  69.     VerticalAlignment     middle
  70.     ForegroundColor     black
  71.     BackgroundColor     white
  72.     DropShadow     off
  73.     FontName     "Helvetica"
  74.     FontSize     10
  75.     FontWeight     normal
  76.     FontAngle     normal
  77.   }
  78.   LineDefaults {
  79.     FontName     "Helvetica"
  80.     FontSize     9
  81.     FontWeight     normal
  82.     FontAngle     normal
  83.   }
  84.   System {
  85.     Name     "sim11ex6"
  86.     Location     [106, 52, 959, 598]
  87.     Open     on
  88.     ScreenColor     white
  89.     Block {
  90.       BlockType       Fcn
  91.       Name       " Fault clearedn"
  92.       Position       [290, 266, 400, 304]
  93.       Orientation       left
  94.       Expr       "1.4625*sin(u)"
  95.     }
  96.     Block {
  97.       BlockType       Gain
  98.       Name       "60*pi/H"
  99.       Position       [165, 159, 240, 241]
  100.       Gain       "pi*60/5"
  101.     }
  102.     Block {
  103.       BlockType       Fcn
  104.       Name       "During fault"
  105.       Position       [285, 356, 400, 394]
  106.       Orientation       left
  107.       Expr       "0.65*sin(u)"
  108.     }
  109.     Block {
  110.       BlockType       Gain
  111.       Name       "Rad. to Degreen"
  112.       Position       [480, 162, 550, 238]
  113.       Gain       "180/pi"
  114.     }
  115.     Block {
  116.       BlockType       Scope
  117.       Name       "Scope"
  118.       Ports       [1, 0, 0, 0, 0]
  119.       Position       [605, 176, 655, 224]
  120.       ShowName       off
  121.       Floating       off
  122.       Location       [188, 365, 512, 604]
  123.       Open       on
  124.       Grid       on
  125.       TickLabels       on
  126.       ZoomMode       on
  127.       TimeRange       "auto"
  128.       YMin       "-5"
  129.       YMax       "5"
  130.       SaveToWorkspace       off
  131.       SaveName       "ScopeData"
  132.       LimitMaxRows       on
  133.       MaxRows       "5000"
  134.       Decimation       "1"
  135.       SampleInput       off
  136.       SampleTime       "0"
  137.     }
  138.     Block {
  139.       BlockType       Step
  140.       Name       "Step"
  141.       Position       [15, 158, 65, 212]
  142.       Time       ".01"
  143.       Before       "0.8"
  144.       After       "0.8"
  145.     }
  146.     Block {
  147.       BlockType       Sum
  148.       Name       "Sum"
  149.       Ports       [2, 1, 0, 0, 0]
  150.       Position       [110, 174, 135, 221]
  151.       Inputs       "+-"
  152.     }
  153.     Block {
  154.       BlockType       Integrator
  155.       Name       "integ1"
  156.       Ports       [1, 1, 0, 0, 0]
  157.       Position       [270, 182, 305, 218]
  158.       ExternalReset       none
  159.       InitialConditionSource      internal
  160.       InitialCondition       "0"
  161.       LimitOutput       off
  162.       UpperSaturationLimit      "inf"
  163.       LowerSaturationLimit      "-inf"
  164.       ShowSaturationPort      off
  165.       ShowStatePort       off
  166.       AbsoluteTolerance       "auto"
  167.     }
  168.     Block {
  169.       BlockType       Integrator
  170.       Name       "integ2"
  171.       Ports       [1, 1, 0, 0, 0]
  172.       Position       [350, 182, 385, 218]
  173.       ExternalReset       none
  174.       InitialConditionSource      internal
  175.       InitialCondition       "0.46055"
  176.       LimitOutput       off
  177.       UpperSaturationLimit      "inf"
  178.       LowerSaturationLimit      "-inf"
  179.       ShowSaturationPort      off
  180.       ShowStatePort       off
  181.       AbsoluteTolerance       "auto"
  182.     }
  183.     Block {
  184.       BlockType       Clock
  185.       Name       "t"
  186.       Position       [250, 315, 275, 345]
  187.       Orientation       left
  188.       Location       [30, 40, 140, 75]
  189.     }
  190.     Block {
  191.       BlockType       Switch
  192.       Name       "tc = 0.3"
  193.       Position       [160, 263, 220, 397]
  194.       Orientation       left
  195.       Threshold       "0.3"
  196.     }
  197.     Line {
  198.       SrcBlock       "integ1"
  199.       SrcPort       1
  200.       DstBlock       "integ2"
  201.       DstPort       1
  202.     }
  203.     Line {
  204.       SrcBlock       "Step"
  205.       SrcPort       1
  206.       DstBlock       "Sum"
  207.       DstPort       1
  208.     }
  209.     Line {
  210.       SrcBlock       "Rad. to Degreen"
  211.       SrcPort       1
  212.       DstBlock       "Scope"
  213.       DstPort       1
  214.     }
  215.     Line {
  216.       SrcBlock       "Sum"
  217.       SrcPort       1
  218.       DstBlock       "60*pi/H"
  219.       DstPort       1
  220.     }
  221.     Line {
  222.       SrcBlock       "60*pi/H"
  223.       SrcPort       1
  224.       DstBlock       "integ1"
  225.       DstPort       1
  226.     }
  227.     Line {
  228.       SrcBlock       " Fault clearedn"
  229.       SrcPort       1
  230.       DstBlock       "tc = 0.3"
  231.       DstPort       1
  232.     }
  233.     Line {
  234.       SrcBlock       "During fault"
  235.       SrcPort       1
  236.       DstBlock       "tc = 0.3"
  237.       DstPort       3
  238.     }
  239.     Line {
  240.       SrcBlock       "tc = 0.3"
  241.       SrcPort       1
  242.       Points       [-70, 0; 0, -120]
  243.       DstBlock       "Sum"
  244.       DstPort       2
  245.     }
  246.     Line {
  247.       SrcBlock       "t"
  248.       SrcPort       1
  249.       DstBlock       "tc = 0.3"
  250.       DstPort       2
  251.     }
  252.     Line {
  253.       SrcBlock       "integ2"
  254.       SrcPort       1
  255.       Points       [30, 0]
  256.       Branch {
  257. Points [0, 85]
  258. DstBlock " Fault clearedn"
  259. DstPort 1
  260.       }
  261.       Branch {
  262. Points [20, 0]
  263. Branch {
  264.   DstBlock   "Rad. to Degreen"
  265.   DstPort   1
  266. }
  267. Branch {
  268.   Points   [0, 175]
  269.   DstBlock   "During fault"
  270.   DstPort   1
  271. }
  272.       }
  273.     }
  274.     Annotation {
  275.       Position       [632, 237]
  276.       Text       "delta"
  277.     }
  278.     Annotation {
  279.       Position       [327, 47]
  280.       VerticalAlignment       top
  281.       FontSize       12
  282.       Text       "EXAMPLE  11.6"
  283.     }
  284.     Annotation {
  285.       Position       [352, 77]
  286.       VerticalAlignment       top
  287.       FontSize       12
  288.       Text       "NUMERICAL SOLUTION OF THE SWING EQUATION  "
  289.       "(ONE MACHINE SYSTEM)"
  290.     }
  291.     Annotation {
  292.       Position       [332, 112]
  293.       VerticalAlignment       top
  294.       FontSize       12
  295.       Text       "Change the clrearing time of faut"
  296.     }
  297.     Annotation {
  298.       Position       [327, 137]
  299.       VerticalAlignment       top
  300.       FontSize       12
  301.       Text       "to find the critical clearing time"
  302.     }
  303.     Annotation {
  304.       Position       [252, 177]
  305.       VerticalAlignment       top
  306.       Text       "X2'"
  307.     }
  308.     Annotation {
  309.       Position       [322, 182]
  310.       VerticalAlignment       top
  311.       Text       "x2"
  312.     }
  313.     Annotation {
  314.       Position       [255, 267]
  315.       VerticalAlignment       top
  316.       Text       "Pe"
  317.     }
  318.     Annotation {
  319.       Position       [257, 387]
  320.       VerticalAlignment       top
  321.       Text       "Pe_"
  322.     }
  323.     Annotation {
  324.       Position       [422, 177]
  325.       VerticalAlignment       top
  326.       Text       "x1"
  327.     }
  328.     Annotation {
  329.       Position       [577, 177]
  330.       VerticalAlignment       top
  331.       Text       "delta"
  332.     }
  333.     Annotation {
  334.       Position       [317, 437]
  335.       VerticalAlignment       top
  336.       FontSize       12
  337.       Text       "To change the clearing time of fault open "
  338.       "the switch ndialog box and change the Threshold"
  339.       " setting.            "
  340.     }
  341.     Annotation {
  342.       Position       [52, 137]
  343.       VerticalAlignment       top
  344.       Text       "Pm = 0.8"
  345.     }
  346.   }
  347. }