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

📄 combinedone.mdl

📁 The model consists of two systems, a climate control system and an electrical system. This allows fo
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	      Branch {
		DstBlock		"Flap Angle"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Sum2"
	      SrcPort		      1
	      DstBlock		      "Temp/Flap Angle"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Internal temp"
	      SrcPort		      1
	      DstBlock		      "Sum1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      DstBlock		      "Sum1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      Points		      [0, 0; 105, 0]
	      Branch {
		DstBlock		"Exit Temp (heater)"
		DstPort			1
	      }
	      Branch {
		Points			[0, -25]
		DstBlock		"Sum2"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Req Temp change"
	      SrcPort		      1
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	    Annotation {
	      Position		      [459, 88]
	      HorizontalAlignment     "left"
	      Text		      "Assumptions:\nTs = constant (radiator w"
"all temperature) \nD = 0.004m (channel diameter)\nL = 0.05m (radiator thickne"
"ss)\nN = 30000 (No of channels)\n\nk = 0.026 W/mK = constant (thermal conduct"
"ivity of air)\nCp = 1007 J/kgK = constant (specific heat of air)\nLaminar flo"
"w (hc = 3.66(k/D) = 23.8 W/m2K )"
	      FontName		      "Arial"
	      FontSize		      14
	    }
	    Annotation {
	      Position		      [37, 59]
	      HorizontalAlignment     "left"
	      Text		      "Heat Exchanger Equation:\nTout = Ts - ("
"Ts-Tin)e^[(-pi.D.L.hc)/(m_dot.Cp)] "
	      FontSize		      12
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Interior Dynamics"
	  Ports			  [1, 1]
	  Position		  [760, 417, 840, 513]
	  FontName		  "Arial"
	  FontSize		  14
	  ShowPortLabels	  on
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  MaskType		  "Vehicle Cabin Dynamics"
	  MaskDisplay		  "image(imread('car_int.jpg'))"
	  MaskIconFrame		  off
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "Interior Dynamics"
	    Location		    [315, 533, 804, 736]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "automatic"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Power"
	      Position		      [25, 38, 55, 52]
	      Port		      "1"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Integrator
	      Name		      "Tcabin"
	      Ports		      [1, 1]
	      Position		      [215, 30, 245, 60]
	      ExternalReset	      "none"
	      InitialConditionSource  "internal"
	      InitialCondition	      "291"
	      LimitOutput	      off
	      UpperSaturationLimit    "inf"
	      LowerSaturationLimit    "-inf"
	      ShowSaturationPort      off
	      ShowStatePort	      off
	      AbsoluteTolerance	      "auto"
	      Port {
		PortNumber		1
		Name			"Tcabin [K]"
		TestPoint		off
		LinearAnalysisOutput	off
		LinearAnalysisInput	off
		RTWStorageClass		"Auto"
	      }
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "dT/dt = Pnet/(pVCp)\np = 1.22 kg/m3\nV "
"= 2.5 m3\nCp = 1007 J/kgK"
	      Position		      [90, 26, 190, 64]
	      Gain		      "(1/3071)"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Tcabin "
	      Position		      [325, 38, 355, 52]
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "[]"
	    }
	    Line {
	      SrcBlock		      "dT/dt = Pnet/(pVCp)\np = 1.22 kg/m3\nV "
"= 2.5 m3\nCp = 1007 J/kgK"
	      SrcPort		      1
	      DstBlock		      "Tcabin"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Power"
	      SrcPort		      1
	      DstBlock		      "dT/dt = Pnet/(pVCp)\np = 1.22 kg/m3\nV "
"= 2.5 m3\nCp = 1007 J/kgK"
	      DstPort		      1
	    }
	    Line {
	      Name		      "Tcabin [K]"
	      Labels		      [0, 0]
	      SrcBlock		      "Tcabin"
	      SrcPort		      1
	      DstBlock		      "Tcabin "
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "Mass flow rate"
	  Position		  [605, 395, 635, 425]
	  FontName		  "Arial"
	  FontSize		  14
	  Gain			  "0.04"
	  Multiplication	  "Element-wise(K.*u)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [3, 1]
	  Position		  [290, 86, 295, 124]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  Inputs		  "3"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Recycle Air On"
	  Ports			  [2, 1]
	  Position		  [125, 107, 155, 143]
	  FontName		  "Arial"
	  FontSize		  14
	  SourceBlock		  "simulink3/Nonlinear/Manual Switch"
	  SourceType		  "Manual Switch"
	  sw			  "0"
	  action		  "0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Recycling Air"
	  Position		  [40, 103, 60, 127]
	  FontName		  "Arial"
	  FontSize		  14
	  Value			  "1"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Constant
	  Name			  "Recycling Air1"
	  Position		  [40, 158, 60, 182]
	  FontName		  "Arial"
	  FontSize		  14
	  Value			  "0"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Scope
	  Name			  "Req Tout"
	  Ports			  [1]
	  Position		  [1090, 314, 1120, 346]
	  FontName		  "Arial"
	  FontSize		  14
	  Floating		  off
	  Location		  [747, 475, 1071, 714]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "OneTimeTick"
	  ZoomMode		  "on"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "41.175"
	  YMax			  "41.22"
	  SaveToWorkspace	  off
	  SaveName		  "ScopeData1"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  on
	  MaxDataPoints		  "5000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Subsystem"
	  Ports			  [1, 1]
	  Position		  [920, 448, 1020, 482]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  ShowPortLabels	  on
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  MaskDisplay		  "disp('Kelvin to Ceicius')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "Subsystem"
	    Location		    [56, 501, 236, 626]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "automatic"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [75, 85, 105, 100]
	      Orientation	      "up"
	      Port		      "1"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [25, 25, 55, 55]
	      Value		      "273"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      Ports		      [2, 1]
	      Position		      [80, 30, 100, 50]
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "|-+"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [125, 33, 155, 47]
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "[]"
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Sum1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Subsystem1"
	  Ports			  [1, 1]
	  Position		  [230, 420, 330, 450]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  ShowPortLabels	  on
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  MaskDisplay		  "disp('Celcius to Kelvin')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "Subsystem1"
	    Location		    [631, 238, 1083, 444]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "automatic"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [75, 85, 105, 100]
	      Orientation	      "up"
	      Port		      "1"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [25, 25, 55, 55]
	      Value		      "273"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      Ports		      [2, 1]
	      Position		      [80, 30, 100, 50]
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "|++"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [125, 33, 155, 47]
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "[]"
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Sum1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [3, 1]
	  Position		  [665, 384, 705, 546]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  IconShape		  "rectangular"
	  Inputs		  "+++"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [515, 400, 535, 420]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  IconShape		  "round"
	  Inputs		  "|-+"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum2"
	  Ports			  [3, 1]
	  Position		  [365, 510, 395, 540]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  14
	  IconShape		  "round"
	  Inputs		  "++-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  DiscretePulseGenerator
	  Name			  "System Trigger"
	  Position		  [185, 133, 230, 167]
	  FontName		  "Arial"
	  FontSize		  14
	  PulseType		  "Time-based"
	  Amplitude		  "1"
	  Period		  "1/60"
	  PulseWidth		  "50"
	  PhaseDelay		  "0"
	  SampleTime		  "1"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Temperature Control Chart"
	  Ports			  [2, 4, 0, 1]
	  Position		  [245, 173, 390, 327]
	  BackgroundColor	  "lightBlue"
	  FontName		  "Arial"
	  FontSize		  14
	  ShowPortLabels	  on
	  TreatAsAtomicUnit	  on
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  MaskType		  "Stateflow"
	  MaskDescription	  "Stateflow diagram"
	  MaskDisplay		  "plot(sf('Private','sfblk','xIcon'),sf('Priv"
"ate','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizontal"
"Al','Center','VerticalAl','Bottom');"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  off
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "Temperature Control Chart"
	    Location		    [257, 457, 812, 717]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "SetPTemp"
	      Position		      [20, 101, 40, 119]
	      Port		      "1"
	      LatchInput	      off
	      PortDimensions	      "1"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "IntTemp"
	      Position		      [20, 136, 40, 154]
	      Port		      "2"
	      LatchInput	      off

⌨️ 快捷键说明

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