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

其他行业

开发平台:

Matlab

  1. Model {
  2.   Name   "sim12ex4"
  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   "25"
  14.   Solver   ode45
  15.   RelTol   "1e-3"
  16.   AbsTol   "1e-3"
  17.   Refine   "1"
  18.   MaxStep   ".1"
  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     "sim12ex4"
  86.     Location     [86, 58, 868, 751]
  87.     Open     on
  88.     ScreenColor     white
  89.     Block {
  90.       BlockType       TransferFcn
  91.       Name       "   Governor 2"
  92.       Position       [170, 382, 235, 428]
  93.       Numerator       "[1]"
  94.       Denominator       "[0.3   1]"
  95.     }
  96.     Block {
  97.       BlockType       TransferFcn
  98.       Name       " Governor 1"
  99.       Position       [165, 167, 230, 213]
  100.       Numerator       "[1]"
  101.       Denominator       "[0.2   1]"
  102.     }
  103.     Block {
  104.       BlockType       TransferFcn
  105.       Name       " Turbine 1"
  106.       Position       [290, 168, 360, 212]
  107.       Numerator       "[1]"
  108.       Denominator       "[0.5  1]"
  109.     }
  110.     Block {
  111.       BlockType       Scope
  112.       Name       " delta w  "
  113.       Ports       [1, 0, 0, 0, 0]
  114.       Position       [630, 468, 665, 512]
  115.       Floating       off
  116.       Location       [645, 523, 969, 762]
  117.       Open       off
  118.       Grid       on
  119.       TickLabels       on
  120.       ZoomMode       on
  121.       TimeRange       "auto"
  122.       YMin       "-5"
  123.       YMax       "5"
  124.       SaveToWorkspace       off
  125.       SaveName       "ScopeData"
  126.       LimitMaxRows       on
  127.       MaxRows       "5000"
  128.       Decimation       "1"
  129.       SampleInput       off
  130.       SampleTime       "0"
  131.     }
  132.     Block {
  133.       BlockType       Gain
  134.       Name       "1/R1"
  135.       Position       [320, 85, 365, 125]
  136.       Orientation       left
  137.       Gain       "20"
  138.     }
  139.     Block {
  140.       BlockType       Gain
  141.       Name       "1/R2"
  142.       Position       [330, 487, 385, 533]
  143.       Orientation       left
  144.       Gain       "16"
  145.     }
  146.     Block {
  147.       BlockType       Clock
  148.       Name       "Clock"
  149.       Position       [685, 320, 705, 340]
  150.       Orientation       down
  151.       Location       [30, 40, 140, 75]
  152.     }
  153.     Block {
  154.       BlockType       Clock
  155.       Name       "Clock1"
  156.       Position       [195, 240, 215, 260]
  157.       Orientation       left
  158.       Location       [30, 40, 140, 75]
  159.     }
  160.     Block {
  161.       BlockType       Step
  162.       Name       "DPLn"
  163.       Position       [385, 160, 405, 180]
  164.       Orientation       down
  165.       Time       "100"
  166.       Before       "0.1875"
  167.       After       ".1875"
  168.     }
  169.     Block {
  170.       BlockType       Gain
  171.       Name       "Gain"
  172.       Position       [415, 307, 450, 343]
  173.       Orientation       left
  174.       Gain       "2"
  175.     }
  176.     Block {
  177.       BlockType       TransferFcn
  178.       Name       "Inertia & load 1n"
  179.       Position       [480, 202, 560, 248]
  180.       Numerator       "[1]"
  181.       Denominator       "[10  0.6]"
  182.     }
  183.     Block {
  184.       BlockType       TransferFcn
  185.       Name       "Inertia & load 2"
  186.       Position       [480, 372, 560, 418]
  187.       Numerator       "[1]"
  188.       Denominator       "[8  0.9]"
  189.     }
  190.     Block {
  191.       BlockType       Integrator
  192.       Name       "Integrator"
  193.       Ports       [1, 1, 0, 0, 0]
  194.       Position       [485, 310, 515, 340]
  195.       Orientation       left
  196.       ExternalReset       none
  197.       InitialConditionSource      internal
  198.       InitialCondition       "0"
  199.       LimitOutput       off
  200.       UpperSaturationLimit      "inf"
  201.       LowerSaturationLimit      "-inf"
  202.       ShowSaturationPort      off
  203.       ShowStatePort       off
  204.       AbsoluteTolerance       "auto"
  205.     }
  206.     Block {
  207.       BlockType       Mux
  208.       Name       "Mux"
  209.       Ports       [2, 1, 0, 0, 0]
  210.       Position       [597, 415, 628, 450]
  211.       Orientation       down
  212.       Inputs       "2"
  213.     }
  214.     Block {
  215.       BlockType       Mux
  216.       Name       "Mux1"
  217.       Ports       [3, 1, 0, 0, 0]
  218.       Position       [690, 415, 730, 455]
  219.       Orientation       down
  220.       Inputs       "3"
  221.     }
  222.     Block {
  223.       BlockType       Mux
  224.       Name       "Mux2"
  225.       Ports       [3, 1, 0, 0, 0]
  226.       Position       [200, 276, 245, 334]
  227.       Orientation       left
  228.       Inputs       "3"
  229.     }
  230.     Block {
  231.       BlockType       Mux
  232.       Name       "Mux3"
  233.       Ports       [2, 1, 0, 0, 0]
  234.       Position       [130, 236, 160, 294]
  235.       Orientation       left
  236.       Inputs       "2"
  237.     }
  238.     Block {
  239.       BlockType       Scope
  240.       Name       "Scope 2  DP"
  241.       Ports       [1, 0, 0, 0, 0]
  242.       Position       [75, 318, 120, 362]
  243.       Orientation       left
  244.       Floating       off
  245.       Location       [90, 508, 414, 747]
  246.       Open       off
  247.       Grid       on
  248.       TickLabels       on
  249.       ZoomMode       on
  250.       TimeRange       "auto"
  251.       YMin       "-5"
  252.       YMax       "5"
  253.       SaveToWorkspace       off
  254.       SaveName       "ScopeData"
  255.       LimitMaxRows       on
  256.       MaxRows       "5000"
  257.       Decimation       "1"
  258.       SampleInput       off
  259.       SampleTime       "0"
  260.     }
  261.     Block {
  262.       BlockType       Sum
  263.       Name       "Sum"
  264.       Ports       [3, 1, 0, 0, 0]
  265.       Position       [410, 207, 430, 243]
  266.       Inputs       "-+-"
  267.     }
  268.     Block {
  269.       BlockType       Sum
  270.       Name       "Sum1"
  271.       Ports       [1, 1, 0, 0, 0]
  272.       Position       [90, 172, 110, 208]
  273.       Inputs       "-"
  274.     }
  275.     Block {
  276.       BlockType       Sum
  277.       Name       "Sum2"
  278.       Ports       [2, 1, 0, 0, 0]
  279.       Position       [545, 308, 565, 337]
  280.       Orientation       left
  281.       Inputs       "+-"
  282.     }
  283.     Block {
  284.       BlockType       Sum
  285.       Name       "Sum3"
  286.       Ports       [2, 1, 0, 0, 0]
  287.       Position       [415, 377, 435, 413]
  288.       Inputs       "++"
  289.     }
  290.     Block {
  291.       BlockType       Sum
  292.       Name       "Sum4"
  293.       Ports       [1, 1, 0, 0, 0]
  294.       Position       [100, 387, 120, 423]
  295.       Inputs       "-"
  296.     }
  297.     Block {
  298.       BlockType       TransferFcn
  299.       Name       "Turbine 2"
  300.       Position       [295, 383, 365, 427]
  301.       Numerator       "[1]"
  302.       Denominator       "[0.6  1]"
  303.     }
  304.     Block {
  305.       BlockType       ToWorkspace
  306.       Name       "t  nDw1nDw2"
  307.       Position       [685, 470, 735, 515]
  308.       Orientation       down
  309.       VariableName       "Dw"
  310.       Buffer       "1000"
  311.       Decimation       "1"
  312.       SampleTime       "0"
  313.     }
  314.     Block {
  315.       BlockType       ToWorkspace
  316.       Name       "t, Pm1, Pm2, P12"
  317.       Position       [30, 255, 105, 275]
  318.       Orientation       left
  319.       VariableName       "DP"
  320.       Buffer       "1000"
  321.       Decimation       "1"
  322.       SampleTime       "0"
  323.     }
  324.     Line {
  325.       SrcBlock       "Gain"
  326.       SrcPort       1
  327.       Points       [-20, 0]
  328.       Branch {
  329. Points [0, 60]
  330. DstBlock "Sum3"
  331. DstPort 1
  332.       }
  333.       Branch {
  334. Points [0, -90]
  335. DstBlock "Sum"
  336. DstPort 3
  337.       }
  338.       Branch {
  339. DstBlock "Mux2"
  340. DstPort 3
  341.       }
  342.     }
  343.     Line {
  344.       SrcBlock       "Clock"
  345.       SrcPort       1
  346.       DstBlock       "Mux1"
  347.       DstPort       1
  348.     }
  349.     Line {
  350.       SrcBlock       "Mux1"
  351.       SrcPort       1
  352.       DstBlock       "t  nDw1nDw2"
  353.       DstPort       1
  354.     }
  355.     Line {
  356.       SrcBlock       "Inertia & load 1n"
  357.       SrcPort       1
  358.       Points       [25, 0]
  359.       Branch {
  360. Points [15, 0; 0, 150]
  361. Branch {
  362.   Points   [105, 0]
  363.   DstBlock   "Mux1"
  364.   DstPort   2
  365. }
  366. Branch {
  367.   DstBlock   "Mux"
  368.   DstPort   1
  369. }
  370.       }
  371.       Branch {
  372. Points [0, 90]
  373. DstBlock "Sum2"
  374. DstPort 1
  375.       }
  376.       Branch {
  377. Points [0, -120]
  378. DstBlock "1/R1"
  379. DstPort 1
  380.       }
  381.     }
  382.     Line {
  383.       SrcBlock       "Inertia & load 2"
  384.       SrcPort       1
  385.       Points       [25, 0]
  386.       Branch {
  387. Points [30, 0]
  388. Branch {
  389.   DstBlock   "Mux"
  390.   DstPort   2
  391. }
  392. Branch {
  393.   Points   [105, 0]
  394.   DstBlock   "Mux1"
  395.   DstPort   3
  396. }
  397.       }
  398.       Branch {
  399. Points [0, -65]
  400. DstBlock "Sum2"
  401. DstPort 2
  402.       }
  403.       Branch {
  404. Points [0, 115]
  405. DstBlock "1/R2"
  406. DstPort 1
  407.       }
  408.     }
  409.     Line {
  410.       SrcBlock       "1/R2"
  411.       SrcPort       1
  412.       Points       [-265, 0; 0, -105]
  413.       DstBlock       "Sum4"
  414.       DstPort       1
  415.     }
  416.     Line {
  417.       SrcBlock       "Turbine 2"
  418.       SrcPort       1
  419.       DstBlock       "Sum3"
  420.       DstPort       2
  421.     }
  422.     Line {
  423.       SrcBlock       "Sum4"
  424.       SrcPort       1
  425.       DstBlock       "   Governor 2"
  426.       DstPort       1
  427.     }
  428.     Line {
  429.       SrcBlock       "Sum3"
  430.       SrcPort       1
  431.       DstBlock       "Inertia & load 2"
  432.       DstPort       1
  433.     }
  434.     Line {
  435.       SrcBlock       "Integrator"
  436.       SrcPort       1
  437.       DstBlock       "Gain"
  438.       DstPort       1
  439.     }
  440.     Line {
  441.       SrcBlock       "Sum2"
  442.       SrcPort       1
  443.       DstBlock       "Integrator"
  444.       DstPort       1
  445.     }
  446.     Line {
  447.       SrcBlock       "1/R1"
  448.       SrcPort       1
  449.       Points       [-260, 0; 0, 85]
  450.       DstBlock       "Sum1"
  451.       DstPort       1
  452.     }
  453.     Line {
  454.       SrcBlock       "DPLn"
  455.       SrcPort       1
  456.       DstBlock       "Sum"
  457.       DstPort       1
  458.     }
  459.     Line {
  460.       SrcBlock       "Sum1"
  461.       SrcPort       1
  462.       DstBlock       " Governor 1"
  463.       DstPort       1
  464.     }
  465.     Line {
  466.       SrcBlock       "Sum"
  467.       SrcPort       1
  468.       DstBlock       "Inertia & load 1n"
  469.       DstPort       1
  470.     }
  471.     Line {
  472.       SrcBlock       " Turbine 1"
  473.       SrcPort       1
  474.       Points       [0, 35]
  475.       DstBlock       "Sum"
  476.       DstPort       2
  477.     }
  478.     Line {
  479.       SrcBlock       "Mux"
  480.       SrcPort       1
  481.       DstBlock       " delta w  "
  482.       DstPort       1
  483.     }
  484.     Line {
  485.       SrcBlock       " Governor 1"
  486.       SrcPort       1
  487.       Points       [30, 0]
  488.       Branch {
  489. DstBlock " Turbine 1"
  490. DstPort 1
  491.       }
  492.       Branch {
  493. Points [0, 95]
  494. DstBlock "Mux2"
  495. DstPort 1
  496.       }
  497.     }
  498.     Line {
  499.       SrcBlock       "   Governor 2"
  500.       SrcPort       1
  501.       Points       [30, 0]
  502.       Branch {
  503. DstBlock "Turbine 2"
  504. DstPort 1
  505.       }
  506.       Branch {
  507. Points [0, -100]
  508. DstBlock "Mux2"
  509. DstPort 2
  510.       }
  511.     }
  512.     Line {
  513.       SrcBlock       "Clock1"
  514.       SrcPort       1
  515.       DstBlock       "Mux3"
  516.       DstPort       1
  517.     }
  518.     Line {
  519.       SrcBlock       "Mux3"
  520.       SrcPort       1
  521.       DstBlock       "t, Pm1, Pm2, P12"
  522.       DstPort       1
  523.     }
  524.     Line {
  525.       SrcBlock       "Mux2"
  526.       SrcPort       1
  527.       Points       [-15, 0]
  528.       Branch {
  529. Points [0, 35]
  530. DstBlock "Scope 2  DP"
  531. DstPort 1
  532.       }
  533.       Branch {
  534. Points [0, -25]
  535. DstBlock "Mux3"
  536. DstPort 2
  537.       }
  538.     }
  539.     Annotation {
  540.       Position       [70, 247]
  541.       Text       "To Workspace"
  542.     }
  543.     Annotation {
  544.       Position       [713, 525]
  545.       Text       "To Workspace"
  546.     }
  547.     Annotation {
  548.       Position       [374, 574]
  549.       FontSize       12
  550.       Text       "Simulation block diagram for Example 12.4"
  551.     }
  552.   }
  553. }