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

其他行业

开发平台:

Matlab

  1. Model {
  2.   Name   "sim12ex1"
  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   ".05"
  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     "sim12ex1"
  86.     Location     [137, 147, 882, 840]
  87.     Open     on
  88.     ScreenColor     white
  89.     Block {
  90.       BlockType       TransferFcn
  91.       Name       "   Governor"
  92.       Position       [140, 147, 205, 193]
  93.       Numerator       "[1]"
  94.       Denominator       "[0.2   1]"
  95.     }
  96.     Block {
  97.       BlockType       Gain
  98.       Name       "1/R"
  99.       Position       [290, 260, 335, 310]
  100.       Orientation       left
  101.       Gain       "20"
  102.     }
  103.     Block {
  104.       BlockType       Step
  105.       Name       "DPLn"
  106.       Position       [280, 74, 325, 116]
  107.       Time       "100"
  108.       Before       "0.2"
  109.       After       ".2"
  110.     }
  111.     Block {
  112.       BlockType       TransferFcn
  113.       Name       "Inertia & loadn"
  114.       Position       [435, 137, 515, 183]
  115.       Numerator       "[1]"
  116.       Denominator       "[10  0.8]"
  117.     }
  118.     Block {
  119.       BlockType       Sum
  120.       Name       "Sum"
  121.       Ports       [2, 1, 0, 0, 0]
  122.       Position       [380, 142, 400, 178]
  123.       Inputs       "-+"
  124.     }
  125.     Block {
  126.       BlockType       Sum
  127.       Name       "Sum1"
  128.       Ports       [1, 1, 0, 0, 0]
  129.       Position       [95, 152, 115, 188]
  130.       Inputs       "-"
  131.     }
  132.     Block {
  133.       BlockType       ToWorkspace
  134.       Name       "To Workspace"
  135.       Position       [595, 70, 645, 100]
  136.       VariableName       "Dw"
  137.       Buffer       "1000"
  138.       Decimation       "1"
  139.       SampleTime       "0"
  140.     }
  141.     Block {
  142.       BlockType       TransferFcn
  143.       Name       "Turbine"
  144.       Position       [245, 148, 315, 192]
  145.       Numerator       "[1]"
  146.       Denominator       "[0.5  1]"
  147.     }
  148.     Block {
  149.       BlockType       Scope
  150.       Name       "delta w"
  151.       Ports       [1, 0, 0, 0, 0]
  152.       Position       [605, 138, 650, 182]
  153.       Floating       off
  154.       Location       [188, 365, 512, 604]
  155.       Open       off
  156.       Grid       on
  157.       TickLabels       on
  158.       ZoomMode       on
  159.       TimeRange       "auto"
  160.       YMin       "-5"
  161.       YMax       "5"
  162.       SaveToWorkspace       off
  163.       SaveName       "ScopeData"
  164.       LimitMaxRows       on
  165.       MaxRows       "5000"
  166.       Decimation       "1"
  167.       SampleInput       off
  168.       SampleTime       "0"
  169.     }
  170.     Line {
  171.       SrcBlock       "DPLn"
  172.       SrcPort       1
  173.       Points       [15, 0; 0, 55]
  174.       DstBlock       "Sum"
  175.       DstPort       1
  176.     }
  177.     Line {
  178.       SrcBlock       "Inertia & loadn"
  179.       SrcPort       1
  180.       Points       [20, 0]
  181.       Branch {
  182. Points [20, 0]
  183. Branch {
  184.   Points   [0, -75]
  185.   DstBlock   "To Workspace"
  186.   DstPort   1
  187. }
  188. Branch {
  189.   DstBlock   "delta w"
  190.   DstPort   1
  191. }
  192.       }
  193.       Branch {
  194. Points [0, 125]
  195. DstBlock "1/R"
  196. DstPort 1
  197.       }
  198.     }
  199.     Line {
  200.       SrcBlock       "Sum1"
  201.       SrcPort       1
  202.       DstBlock       "   Governor"
  203.       DstPort       1
  204.     }
  205.     Line {
  206.       SrcBlock       "Sum"
  207.       SrcPort       1
  208.       DstBlock       "Inertia & loadn"
  209.       DstPort       1
  210.     }
  211.     Line {
  212.       SrcBlock       "Turbine"
  213.       SrcPort       1
  214.       DstBlock       "Sum"
  215.       DstPort       2
  216.     }
  217.     Line {
  218.       SrcBlock       "   Governor"
  219.       SrcPort       1
  220.       DstBlock       "Turbine"
  221.       DstPort       1
  222.     }
  223.     Line {
  224.       SrcBlock       "1/R"
  225.       SrcPort       1
  226.       Points       [-215, 0; 0, -115]
  227.       DstBlock       "Sum1"
  228.       DstPort       1
  229.     }
  230.     Annotation {
  231.       Position       [350, 350]
  232.       FontSize       12
  233.       Text       "Simulation block diagram for Example 12.1"
  234.     }
  235.   }
  236. }