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

📄 sim36.mdl

📁 matlab源代码,适用于开发研究,带来很好的学习效果.
💻 MDL
📖 第 1 页 / 共 4 页
字号:
    Block {
      BlockType		      SubSystem
      Name		      "Throttle & Manifold"
      Ports		      [2, 1]
      Position		      [95, 213, 195, 282]
      DropShadow	      on
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Throttle & Manifold"
	Location		[-37, 82, 975, 743]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Throttle Ang."
	  Position		  [130, 85, 150, 105]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Engine Speed, N"
	  Position		  [230, 255, 250, 275]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Saturate
	  Name			  "0 <= theta <= 90"
	  Position		  [215, 83, 235, 107]
	  NamePlacement		  "alternate"
	  UpperLimit		  "90"
	  LowerLimit		  "0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Atmospheric\nPressure, Pa\n(bar)"
	  Position		  [200, 145, 220, 165]
	  Value			  "1.0"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Intake Manifold"
	  Ports			  [2, 2]
	  Position		  [315, 213, 550, 282]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Intake Manifold"
	    Location		    [2, 82, 1014, 721]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "mdot Input \n(g/s)"
	      Position		      [80, 125, 100, 145]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "N (rad/sec)"
	      Position		      [275, 185, 295, 205]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [375, 106, 380, 224]
	      BackgroundColor	      "black"
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Pumping"
	      Position		      [425, 154, 490, 176]
	      Expr		      "-0.366 + 0.08979*u[1]*u[2] - 0.0337*u[2"
"]*u[1]*u[1] + 0.0001*u[1]*u[2]*u[2]"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "RT/Vm"
	      Position		      [195, 115, 290, 155]
	      Gain		      "0.41328"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [150, 125, 170, 145]
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "|+-"
	    }
	    Block {
	      BlockType		      Integrator
	      Name		      "p0 = 0.543 bar"
	      Ports		      [1, 1]
	      Position		      [310, 106, 340, 164]
	      InitialCondition	      ".543"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "mdot to \nCylinder\n (g/s)"
	      Position		      [550, 155, 570, 175]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Manifold Pressure,\nPm (bar)"
	      Position		      [410, 40, 430, 60]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "mdot Input \n(g/s)"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "RT/Vm"
	      SrcPort		      1
	      DstBlock		      "p0 = 0.543 bar"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "N (rad/sec)"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Pumping"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "p0 = 0.543 bar"
	      SrcPort		      1
	      Points		      [0, 0; 5, 0]
	      Branch {
		DstBlock		"Mux"
		DstPort			1
	      }
	      Branch {
		Points			[0, -85]
		DstBlock		"Manifold Pressure,\nPm (bar)"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "RT/Vm"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Pumping"
	      SrcPort		      1
	      Points		      [0, 0; 20, 0]
	      Branch {
		Points			[0, 90; -355, 0]
		DstBlock		"Sum"
		DstPort			2
	      }
	      Branch {
		DstBlock		"mdot to \nCylinder\n (g/s)"
		DstPort			1
	      }
	    }
	    Annotation {
	      Position		      [543, 225]
	    }
	    Annotation {
	      Position		      [227, 77]
	    }
	    Annotation {
	      Position		      [516, 536]
	    }
	    Annotation {
	      Position		      [473, 449]
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Throttle"
	  Ports			  [3, 1]
	  Position		  [280, 83, 585, 167]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Throttle"
	    Location		    [2, 82, 1014, 721]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Throttle Angle,\ntheta (deg)"
	      Position		      [65, 65, 85, 85]
	      NamePlacement	      "alternate"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Manifold Pressure,\nPm (bar)"
	      Position		      [65, 110, 85, 130]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Atmospheric Pressure,\nPa (bar) "
	      Position		      [65, 180, 85, 200]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      MinMax
	      Name		      "MinMax"
	      Ports		      [2, 1]
	      Position		      [240, 100, 265, 215]
	      ShowName		      off
	      Function		      "min"
	      Inputs		      "2"
	      Port {
		PortNumber		1
		Name			"pratio"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [3, 1]
	      Position		      [470, 22, 490, 338]
	      ShowName		      off
	      Inputs		      "3"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product1"
	      Ports		      [2, 1]
	      Position		      [180, 112, 210, 143]
	      ShowName		      off
	      Inputs		      "*/"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product2"
	      Ports		      [2, 1]
	      Position		      [180, 167, 210, 198]
	      ShowName		      off
	      Inputs		      "/*"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Sonic Flow "
	      Position		      [345, 190, 365, 210]
	      Value		      "1.0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [150, 275, 170, 295]
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "+-|"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch"
	      Position		      [420, 148, 445, 212]
	      ShowName		      off
	      Threshold		      "0.5"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "f(theta)"
	      Position		      [110, 64, 440, 86]
	      NamePlacement	      "alternate"
	      Expr		      "2.821 - 0.05231*u + 0.10299*u*u - 0.000"
"63*u*u*u"
	    }
	    Block {
	      BlockType		      Signum
	      Name		      "flow direction"
	      Position		      [300, 269, 335, 301]
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "g(pratio)"
	      Position		      [315, 148, 390, 172]
	      NamePlacement	      "alternate"
	      Expr		      "2*sqrt(u - u*u)"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Throttle \nFlow, mdot\n (g/s)"
	      Position		      [535, 170, 555, 190]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Manifold Pressure,\nPm (bar)"
	      SrcPort		      1
	      Points		      [40, 0]
	      Branch {
		Points			[0, 55]
		Branch {
		  Points		  [0, 110]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Branch {
		  DstBlock		  "Product2"
		  DstPort		  1
		}
	      }
	      Branch {
		DstBlock		"Product1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Product2"
	      SrcPort		      1
	      DstBlock		      "MinMax"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product1"
	      SrcPort		      1
	      DstBlock		      "MinMax"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Atmospheric Pressure,\nPa (bar) "
	      SrcPort		      1
	      Points		      [70, 0]
	      Branch {
		Points			[0, 0]
		Branch {
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Branch {
		  DstBlock		  "Product2"
		  DstPort		  2
		}
	      }
	      Branch {
		Points			[0, -55]
		DstBlock		"Product1"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "g(pratio)"
	      SrcPort		      1
	      DstBlock		      "Switch"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sonic Flow "
	      SrcPort		      1
	      DstBlock		      "Switch"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Switch"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "flow direction"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "flow direction"
	      DstPort		      1
	    }
	    Line {
	      Name		      "pratio"
	      Labels		      [1, 0]
	      SrcBlock		      "MinMax"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Points			[0, 20]
		DstBlock		"Switch"
		DstPort			2
	      }
	      Branch {
		DstBlock		"g(pratio)"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Throttle Angle,\ntheta (deg)"
	      SrcPort		      1
	      DstBlock		      "f(theta)"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "Throttle \nFlow, mdot\n (g/s)"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "f(theta)"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Annotation {
	      Position		      [470, 442]
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Mass Airflow Rate"
	  Position		  [610, 220, 630, 240]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "0 <= theta <= 90"
	  SrcPort		  1
	  DstBlock		  "Throttle"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Throttle Ang."
	  SrcPort		  1
	  DstBlock		  "0 <= theta <= 90"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Throttle"
	  SrcPort		  1
	  Points		  [35, 0; 0, 70; -330, 0; 0, 35]
	  DstBlock		  "Intake Manifold"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Engine Speed, N"
	  SrcPort		  1
	  DstBlock		  "Intake Manifold"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Intake Manifold"
	  SrcPort		  2
	  Points		  [20, 0; 0, 40; -410, 0; 0, -180]
	  DstBlock		  "Throttle"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Intake Manifold"
	  SrcPort		  1
	  DstBlock		  "Mass Airflow Rate"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Atmospheric\nPressure, Pa\n(bar)"
	  SrcPort		  1
	  DstBlock		  "Throttle"
	  DstPort		  3

⌨️ 快捷键说明

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