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

其他行业

开发平台:

Matlab

  1. Model {
  2.   Name   "sim12ex3"
  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   "10"
  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     "sim12ex3"
  86.     Location     [143, 258, 892, 951]
  87.     Open     on
  88.     ScreenColor     white
  89.     Block {
  90.       BlockType       Gain
  91.       Name       "1/R"
  92.       Position       [285, 168, 340, 222]
  93.       Orientation       left
  94.       Gain       "20"
  95.     }
  96.     Block {
  97.       BlockType       TransferFcn
  98.       Name       "Governor"
  99.       Position       [140, 92, 205, 138]
  100.       Numerator       "[1]"
  101.       Denominator       "[0.2   1]"
  102.     }
  103.     Block {
  104.       BlockType       TransferFcn
  105.       Name       "Inertia & load"
  106.       Position       [415, 87, 495, 133]
  107.       Numerator       "[1]"
  108.       Denominator       "[10  0.8]"
  109.     }
  110.     Block {
  111.       BlockType       Integrator
  112.       Name       "Integrator"
  113.       Ports       [1, 1, 0, 0, 0]
  114.       Position       [260, 238, 290, 282]
  115.       Orientation       left
  116.       ExternalReset       none
  117.       InitialConditionSource      internal
  118.       InitialCondition       "0"
  119.       LimitOutput       off
  120.       UpperSaturationLimit      "inf"
  121.       LowerSaturationLimit      "-inf"
  122.       ShowSaturationPort      off
  123.       ShowStatePort       off
  124.       AbsoluteTolerance       "auto"
  125.     }
  126.     Block {
  127.       BlockType       Gain
  128.       Name       "KI"
  129.       Position       [165, 237, 215, 283]
  130.       Orientation       left
  131.       Gain       "7"
  132.     }
  133.     Block {
  134.       BlockType       Step
  135.       Name       "Step Input"
  136.       Position       [270, 22, 310, 58]
  137.       Time       "100"
  138.       Before       "0.2"
  139.       After       ".2"
  140.     }
  141.     Block {
  142.       BlockType       Sum
  143.       Name       "Sum"
  144.       Ports       [2, 1, 0, 0, 0]
  145.       Position       [360, 90, 385, 125]
  146.       Inputs       "-+"
  147.     }
  148.     Block {
  149.       BlockType       Sum
  150.       Name       "Sum1"
  151.       Ports       [2, 1, 0, 0, 0]
  152.       Position       [95, 97, 115, 133]
  153.       Inputs       "--"
  154.     }
  155.     Block {
  156.       BlockType       ToWorkspace
  157.       Name       "To Workspace"
  158.       Position       [595, 34, 640, 66]
  159.       VariableName       "Dw"
  160.       Buffer       "1000"
  161.       Decimation       "1"
  162.       SampleTime       "0"
  163.     }
  164.     Block {
  165.       BlockType       TransferFcn
  166.       Name       "Turbine"
  167.       Position       [240, 93, 310, 137]
  168.       Numerator       "[1]"
  169.       Denominator       "[0.5  1]"
  170.     }
  171.     Block {
  172.       BlockType       Scope
  173.       Name       "delta w"
  174.       Ports       [1, 0, 0, 0, 0]
  175.       Position       [600, 90, 640, 130]
  176.       Floating       off
  177.       Location       [188, -403, 512, -164]
  178.       Open       off
  179.       Grid       on
  180.       TickLabels       on
  181.       ZoomMode       on
  182.       TimeRange       "auto"
  183.       YMin       "-5"
  184.       YMax       "5"
  185.       SaveToWorkspace       off
  186.       SaveName       "ScopeData"
  187.       LimitMaxRows       on
  188.       MaxRows       "5000"
  189.       Decimation       "1"
  190.       SampleInput       off
  191.       SampleTime       "0"
  192.     }
  193.     Line {
  194.       SrcBlock       "Governor"
  195.       SrcPort       1
  196.       DstBlock       "Turbine"
  197.       DstPort       1
  198.     }
  199.     Line {
  200.       SrcBlock       "Turbine"
  201.       SrcPort       1
  202.       DstBlock       "Sum"
  203.       DstPort       2
  204.     }
  205.     Line {
  206.       SrcBlock       "Sum"
  207.       SrcPort       1
  208.       DstBlock       "Inertia & load"
  209.       DstPort       1
  210.     }
  211.     Line {
  212.       SrcBlock       "Sum1"
  213.       SrcPort       1
  214.       DstBlock       "Governor"
  215.       DstPort       1
  216.     }
  217.     Line {
  218.       SrcBlock       "Integrator"
  219.       SrcPort       1
  220.       DstBlock       "KI"
  221.       DstPort       1
  222.     }
  223.     Line {
  224.       SrcBlock       "KI"
  225.       SrcPort       1
  226.       Points       [-130, 0; 0, -155]
  227.       DstBlock       "Sum1"
  228.       DstPort       1
  229.     }
  230.     Line {
  231.       SrcBlock       "1/R"
  232.       SrcPort       1
  233.       Points       [-225, 0; 0, -70]
  234.       DstBlock       "Sum1"
  235.       DstPort       2
  236.     }
  237.     Line {
  238.       SrcBlock       "Step Input"
  239.       SrcPort       1
  240.       Points       [15, 0; 0, 60]
  241.       DstBlock       "Sum"
  242.       DstPort       1
  243.     }
  244.     Line {
  245.       SrcBlock       "Inertia & load"
  246.       SrcPort       1
  247.       Points       [15, 0]
  248.       Branch {
  249. Points [0, 85]
  250. DstBlock "1/R"
  251. DstPort 1
  252.       }
  253.       Branch {
  254. Points [25, 0]
  255. Branch {
  256.   Points   [0, 150]
  257.   DstBlock   "Integrator"
  258.   DstPort   1
  259. }
  260. Branch {
  261.   Points   [25, 0]
  262.   Branch {
  263.     DstBlock     "delta w"
  264.     DstPort     1
  265.   }
  266.   Branch {
  267.     Points     [0, -60]
  268.     DstBlock     "To Workspace"
  269.     DstPort     1
  270.   }
  271. }
  272.       }
  273.     }
  274.     Annotation {
  275.       Position       [283, 15]
  276.       Text       "0.2u(t)"
  277.     }
  278.     Annotation {
  279.       Position       [324, 337]
  280.       FontSize       12
  281.       Text       "Simulation diagram for Example 12.3"
  282.     }
  283.   }
  284. }