⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 modele_nl.mdl

📁 自动控制回路在3个水箱中的测试和反馈
💻 MDL
📖 第 1 页 / 共 2 页
字号:
Model {
  Name			  "modele_nl"
  Version		  3.00
  SimParamPage		  "Solver"
  SampleTimeColors	  off
  InvariantConstants	  off
  WideVectorLines	  off
  ShowLineWidths	  off
  ShowPortDataTypes	  off
  StartTime		  "0.0"
  StopTime		  "2000"
  SolverMode		  "SingleTasking"
  Solver		  "ode45"
  RelTol		  "1e-3"
  AbsTol		  "1e-6"
  Refine		  "1"
  MaxStep		  "auto"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  on
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  on
  OutputSaveName	  "yout"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  SaveFormat		  "Matrix"
  LimitMaxRows		  off
  MaxRows		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  "warning"
  MinStepSizeMsg	  "warning"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  IntegerOverflowMsg	  "warning"
  UnnecessaryDatatypeConvMsg "none"
  Int32ToFloatConvMsg	  "warning"
  SignalLabelMismatchMsg  "none"
  ConsistencyChecking	  "off"
  ZeroCross		  on
  SimulationMode	  "normal"
  BlockDataTips		  on
  BlockParametersDataTip  on
  BlockAttributesDataTip  off
  BlockPortWidthsDataTip  off
  BlockDescriptionStringDataTip	off
  BlockMaskParametersDataTip off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  OptimizeBlockIOStorage  off
  BufferReuse		  on
  BooleanDataType	  off
  RTWSystemTargetFile	  "grt.tlc"
  RTWInlineParameters	  off
  RTWRetainRTWFile	  off
  RTWTemplateMakefile	  "grt_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  RTWUserButton		  " RTI Settings...  rti_settings"
  ExtModeMexFile	  "ext_comm"
  ExtModeBatchMode	  off
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "oneshot"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  off
  Created		  "Wed Jul 19 14:30:37 2000"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Wed Nov 29 13:23:55 2000"
  ModelVersionFormat	  "1.%<AutoIncrement:7>"
  ConfigurationManager	  "none"
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "modele_nl"
    Location		    [2, 70, 1022, 720]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    AutoZoom		    on
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      "trois_bacs"
      Ports		      [2, 3, 0, 0, 0]
      Position		      [220, 74, 305, 136]
      ShowPortLabels	      on
      MaskType		      "trois_bacs"
      MaskDescription	      "Systemes de trois bacs d'O, deux pompes\n\n    "
"   |                                      |\n     \\./                       "
"            \\./\n|           |       |           |      |            |\n| ba"
"c 1 |       | bac 3 |      |  bac 2 |\n|           | ___|           |___|    "
"        |__\n|___________________________"
      MaskPromptString	      "Section :|Hauteur initiale h10 :|Hauteur initia"
"le h30 :|Hauteur initiale h20 :|Coefficient ecoulement a13 :|Coefficient ecou"
"lement a32 :|Coefficient ecoulement a20 :|Sections ecoulement Sn"
      MaskStyleString	      "edit,edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on"
      MaskCallbackString      "|||||||"
      MaskEnableString	      "on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on"
      MaskVariables	      "A=@1;h10=@2;h30=@3;h20=@4;a13=@5;a32=@6;a20=@7;"
"Sn=@8;"
      MaskDisplay	      "disp('3 bacs') ;"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.0154|0|0|0|0.4753|0.4833|0.9142|5e-5"
      System {
	Name			"trois_bacs"
	Location		[310, 294, 890, 624]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "q1"
	  Position		  [25, 28, 55, 42]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "q2"
	  Position		  [25, 238, 55, 252]
	  Port			  "2"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [515, 290, 535, 310]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Value			  "0"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [390, 25, 420, 55]
	  ShowName		  off
	  Gain			  "1/A"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [390, 120, 420, 150]
	  ShowName		  off
	  Gain			  "1/A"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain2"
	  Position		  [390, 230, 420, 260]
	  ShowName		  off
	  Gain			  "1/A"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [440, 25, 470, 55]
	  ShowName		  off
	  ExternalReset		  "none"
	  InitialConditionSource  "internal"
	  InitialCondition	  "h10"
	  LimitOutput		  off
	  UpperSaturationLimit	  "inf"
	  LowerSaturationLimit	  "-inf"
	  ShowSaturationPort	  off
	  ShowStatePort		  off
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator1"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [440, 120, 470, 150]
	  ShowName		  off
	  ExternalReset		  "none"
	  InitialConditionSource  "internal"
	  InitialCondition	  "h30"
	  LimitOutput		  off
	  UpperSaturationLimit	  "inf"
	  LowerSaturationLimit	  "-inf"
	  ShowSaturationPort	  off
	  ShowStatePort		  off
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator2"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [440, 230, 470, 260]
	  ShowName		  off
	  ExternalReset		  "none"
	  InitialConditionSource  "internal"
	  InitialCondition	  "h20"
	  LimitOutput		  off
	  UpperSaturationLimit	  "inf"
	  LowerSaturationLimit	  "-inf"
	  ShowSaturationPort	  off
	  ShowStatePort		  off
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [275, 28, 300, 52]
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [275, 123, 300, 147]
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum2"
	  Ports			  [3, 1, 0, 0, 0]
	  Position		  [280, 226, 305, 264]
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "++-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "f"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [360, 72, 475, 108]
	  Orientation		  "left"
	  ShowName		  off
	  ShowPortLabels	  on
	  MaskType		  "f"
	  MaskDescription	  "Realise la fonction\n  f = a . Sn . sign(x-"
"y) . sqrt(2.g.abs(x-y))\nLa sortie f est le debit entre deux bacs relies par "
"une section Sn de coefficient d'ecoulement a.\nLes entrees x et y sont les ha"
"uteurs amont et aval."
	  MaskPromptString	  "Valeur de Sn :                             "
"                                                               |Valeur de a :"
	  MaskStyleString	  "edit,edit"
	  MaskTunableValueString  "on,on"
	  MaskCallbackString	  "|"
	  MaskEnableString	  "on,on"
	  MaskVisibilityString	  "on,on"
	  MaskVariables		  "Sn=@1;a=@2;"
	  MaskDisplay		  "disp(['f  (a = ' num2str(a) ')']) ;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "Sn|a13"
	  System {
	    Name		    "f"
	    Location		    [115, 130, 616, 385]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    AutoZoom		    on
	    Block {
	      BlockType		      Inport
	      Name		      "x"
	      Position		      [25, 123, 55, 137]
	      Port		      "1"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	      DataType		      "auto"
	      SignalType	      "auto"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "y"
	      Position		      [25, 158, 55, 172]
	      Port		      "2"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	      DataType		      "auto"
	      SignalType	      "auto"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Abs
	      Name		      "Abs"
	      Position		      [180, 160, 210, 190]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [230, 157, 285, 193]
	      Gain		      "2*9.81"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Math\nFunction"
	      Ports		      [1, 1, 0, 0, 0]
	      Position		      [300, 160, 330, 190]
	      ShowName		      off
	      Operator		      "sqrt"
	      OutputSignalType	      "auto"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [4, 1, 0, 0, 0]
	      Position		      [350, 92, 390, 153]
	      ShowName		      off
	      Inputs		      "4"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Signum
	      Name		      "Sign"
	      Position		      [225, 114, 260, 146]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Sn"
	      Position		      [30, 15, 50, 35]
	      Value		      "Sn"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1, 0, 0, 0]
	      Position		      [90, 122, 120, 153]
	      ShowName		      off
	      IconShape		      "rectangular"
	      Inputs		      "+-"
	      SaturateOnIntegerOverflow	on
	      Port {
		PortNumber		1
		Name			"x-y"
		TestPoint		off
		RTWStorageClass		"Auto"
	      }
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "a"
	      Position		      [30, 55, 50, 75]
	      Value		      "a"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "f"
	      Position		      [420, 118, 450, 132]
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "[]"
	    }
	    Line {
	      SrcBlock		      "a"
	      SrcPort		      1
	      Points		      [270, 0; 0, 50]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sn"
	      SrcPort		      1
	      Points		      [280, 0]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "x"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "y"
	      SrcPort		      1
	      Points		      [15, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      Name		      "x-y"
	      Labels		      [1, 1]
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [35, 0]
	      Branch {
		Points			[0, 35]
		DstBlock		"Abs"
		DstPort			1
	      }
	      Branch {
		Points			[0, -10]
		DstBlock		"Sign"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Sign"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Math\nFunction"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "f"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      DstBlock		      "Math\nFunction"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Abs"
	      SrcPort		      1
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "f1"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [365, 182, 480, 218]
	  Orientation		  "left"
	  ShowName		  off
	  ShowPortLabels	  on
	  MaskType		  "f"
	  MaskDescription	  "Realise la fonction\n  f = a . Sn . sign(x-"
"y) . sqrt(2.g.abs(x-y))\nLa sortie f est le debit entre deux bacs relies par "
"une section Sn de coefficient d'ecoulement a.\nLes entrees x et y sont les ha"
"uteurs amont et aval."
	  MaskPromptString	  "Valeur de Sn :                             "
"                                                               |Valeur de a :"
	  MaskStyleString	  "edit,edit"
	  MaskTunableValueString  "on,on"
	  MaskCallbackString	  "|"
	  MaskEnableString	  "on,on"
	  MaskVisibilityString	  "on,on"
	  MaskVariables		  "Sn=@1;a=@2;"
	  MaskDisplay		  "disp(['f  (a = ' num2str(a) ')']) ;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "Sn|a32"
	  System {
	    Name		    "f1"
	    Location		    [113, 132, 614, 387]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -