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

📄 sga__suspension_skyhook_quarter_semiactive.mdl

📁 这是一个经典的遗传算法标准源程序
💻 MDL
📖 第 1 页 / 共 4 页
字号:
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Derivative
	  Name			  "Derivative"
	  Position		  [220, 156, 335, 204]
	}
	Block {
	  BlockType		  Derivative
	  Name			  "Derivative1"
	  Position		  [480, 26, 595, 74]
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sine Wave"
	  Ports			  [0, 1]
	  Position		  [25, 282, 85, 328]
	  BackgroundColor	  "magenta"
	  DropShadow		  on
	  SineType		  "Time based"
	  Amplitude		  "0.015"
	  Frequency		  "2"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "accelerator"
	  Ports			  [1]
	  Position		  [685, 34, 715, 66]
	  Floating		  off
	  Location		  [1, 49, 1025, 739]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  SaveName		  "ScopeData2"
	  DataFormat		  "StructureWithTime"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "displacement"
	  Ports			  [1]
	  Position		  [535, 279, 565, 311]
	  Floating		  off
	  Location		  [667, 381, 991, 620]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  DataFormat		  "StructureWithTime"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [410, 173, 440, 187]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Sine Wave"
	  SrcPort		  1
	  Points		  [0, -10; 20, 0]
	  Branch {
	    DstBlock		    "displacement"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -115]
	    DstBlock		    "Derivative"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Derivative"
	  SrcPort		  1
	  Points		  [0, 0; 50, 0]
	  Branch {
	    Points		    [0, -130]
	    DstBlock		    "Derivative1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Out1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Derivative1"
	  SrcPort		  1
	  DstBlock		  "accelerator"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "sin_spectrum"
      Ports		      [1]
      Position		      [685, 289, 715, 321]
      FontSize		      12
      Floating		      off
      Location		      [616, 449, 939, 688]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData7"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "skyhook controller for\n 1/4 semi active suspen"
"sion systems"
      Ports		      [3, 2]
      Position		      [400, 517, 715, 793]
      FontSize		      12
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      MaskDisplay	      "image(imread('SGA__suspension_skyhook_quarter.j"
"pg'));"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"skyhook controller for\n 1/4 semi active susp"
"ension systems"
	Location		[2, 74, 1014, 744]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [125, 223, 155, 237]
	  FontSize		  12
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In2"
	  Position		  [125, 303, 155, 317]
	  FontSize		  12
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In3"
	  Position		  [125, 383, 155, 397]
	  FontSize		  12
	  Port			  "3"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " Skyhook Controller for 1/4 vehicle suspens"
"ion system"
	  Description		  "Practical skyhook controller"
	  Ports			  [1, 1]
	  Position		  [305, 157, 595, 463]
	  BackgroundColor	  "red"
	  DropShadow		  on
	  FontSize		  12
	  FunctionName		  "SGA__suspension_skyhook_quater_sfuncion"
	  Parameters		  "Cfirm,Csoft,Csh"
	  MaskDescription	  "Pratical Skyhook controller for semi active"
" suspension systems\n\n    if ( Cfirm/Csh ) < Sprung_Velocity/(Unsprung_Veloc"
"ity-Sprung_Velocity)\n\n          u_control             = Cfirm*(Unsprung_Vel"
"ocity-Sprung_Velocity);\n          c_semi_skyhook = Cfirm;\n\n    elseif (Cso"
"ft/Csh) < Sprung_Velocity/(Unsprung_Velocity-Sprung_Velocity)&(Cfirm/Csh)>Spr"
"ung_Velocity/(Unsprung_Velocity-Sprung_Velocity)\n\n          u_control      "
"      =  Csh*Sprung_Velocity;\n          c_semi_skyhook = Csh*Sprung_Velocity"
"/(Unsprung_Velocity-Sprung_Velocity);\n\n    else\n\n        u_control       "
"      = Csoft*(Unsprung_Velocity-Sprung_Velocity);\n        c_semi_skyhook = "
"Csoft;\n\n    end\n"
	  MaskHelp		  "Skyhook control for 1/4 sem-iactive suspens"
"ion systems\n-- SGALAB Demonstration Case\n%Revision -\n%Date                "
"  Name        Description of Change                             Where\n%17-Ju"
"l-2003     Yi Chen     Initial version                                       "
"       Chongqing\n%09-Jan-2007    Yi Chen     Update it as SGALAB demo       "
"              Glasgow\n%HISTORY$  leo.chen.yi@gmail.com"
	  MaskPromptString	  "Max Damping Of Skyhook|Min Damping Of skyho"
"ok|Expecting Damping Of Skyhook"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVarAliasString	  ",,"
	  MaskVariables		  "Cfirm=@1;Csoft=@2;Csh=@3;"
	  MaskDisplay		  "image(imread('SGA__suspension_skyhook_quate"
"r.jpg'));"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "3000|1000|1800"
	  MaskTabNameString	  ",,"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 2]
	  Position		  [640, 213, 710, 402]
	  BackgroundColor	  "yellow"
	  ShowName		  off
	  FontSize		  12
	  Outputs		  "2"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [3, 1]
	  Position		  [180, 187, 230, 433]
	  BackgroundColor	  "yellow"
	  ShowName		  off
	  FontSize		  12
	  Inputs		  "3"
	  DisplayOption		  "signals"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [735, 253, 765, 267]
	  FontSize		  12
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out2"
	  Position		  [735, 348, 765, 362]
	  FontSize		  12
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  " Skyhook Controller for 1/4 vehicle suspens"
"ion system"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Skyhook Controller for 1/4 vehicle suspens"
"ion system"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In2"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  Points		  [0, 0]
	  DstBlock		  "Out2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In3"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Annotation {
	  Name			  "unsprung_velocity"
	  Position		  [101, 215]
	  BackgroundColor	  "yellow"
	  UseDisplayTextAsClickCallback	off
	  FontSize		  12
	}
	Annotation {
	  Name			  "sprung_velocity"
	  Position		  [64, 298]
	  BackgroundColor	  "yellow"
	  UseDisplayTextAsClickCallback	off
	  FontSize		  12
	}
	Annotation {
	  Name			  "road_velocity"
	  Position		  [71, 378]
	  BackgroundColor	  "yellow"
	  UseDisplayTextAsClickCallback	off
	  FontSize		  12
	}
	Annotation {
	  Name			  "skyhook control force"
	  Position		  [815, 228]
	  BackgroundColor	  "yellow"
	  UseDisplayTextAsClickCallback	off
	  FontSize		  12
	}
	Annotation {
	  Name			  "skyhook damping"
	  Position		  [812, 332]
	  BackgroundColor	  "yellow"
	  UseDisplayTextAsClickCallback	off
	  FontSize		  12
	}
	Annotation {
	  Name			  "Skyhook control for 1/4 sem-iactive suspens"
"ion systems\n-- SGALAB Demonstration Case"
	  Position		  [82, 26]
	  HorizontalAlignment	  "left"
	  BackgroundColor	  "lightBlue"
	  UseDisplayTextAsClickCallback	off
	  FontSize		  14
	}
	Annotation {
	  Name			  "%Revision -\n%Date                  Name   "
"     Description of Change                             Where\n%17-Jul-2003   "
"  Yi Chen     Initial version                                              Ch"
"ongqing\n%09-Jan-2007    Yi Chen     Update it as SGALAB demo                "
"     Glasgow\n%HISTORY$  leo.chen.yi@gmail.com\n"
	  Position		  [76, 95]
	  HorizontalAlignment	  "left"
	  UseDisplayTextAsClickCallback	off
	  FontSize		  12
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "skyhook damping"
      Ports		      [1]
      Position		      [880, 709, 910, 741]
      FontSize		      12
      Floating		      off
      Location		      [616, 449, 939, 688]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData4"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "unsprung velocity"
      Ports		      [1]
      Position		      [1475, 634, 1505, 666]
      FontSize		      12
      Floating		      off
      Location		      [5, 44, 1029, 762]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-22.5"
      YMax		      "22.5"
      SaveName		      "ScopeData6"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Line {
      SrcBlock		      "Road type Switch"
      SrcPort		      1
      Points		      [0, 0; 75, 0]
      Branch {
	Points			[0, 120]
	DstBlock		"Derivative"
	DstPort			1
      }
      Branch {
	Points			[225, 0]
	Branch {
	  Points		  [0, 65]
	  DstBlock		  "sin_spectrum"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "1/4 vehicle semi-active suspension system"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "1/4 vehicle semi-active suspension system"
      SrcPort		      1
      Points		      [35, 0]
      Branch {
	DstBlock		"Body Acc"
	DstPort			1
      }
      Branch {
	Points			[0, -50; 240, 0; 0, 790; -1460, 0; 0, -280]
	DstBlock		"Integrator1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "1/4 vehicle semi-active suspension system"
      SrcPort		      3
      DstBlock		      "Suspension Deformation"
      DstPort		      1
    }
    Line {
      SrcBlock		      "1/4 vehicle semi-active suspension system"
      SrcPort		      2
      DstBlock		      "k1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "k1"
      SrcPort		      1
      DstBlock		      "Tire Loads"
      DstPort		      1
    }
    Line {
      SrcBlock		      "skyhook controller for\n 1/4 semi active suspen"
"sion systems"
      SrcPort		      1
      Points		      [85, 0]
      Branch {
	DstBlock		"control force"
	DstPort			1
      }
      Branch {
	Points			[0, -165]
	DstBlock		"1/4 vehicle semi-active suspension system"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "skyhook controller for\n 1/4 semi active suspen"
"sion systems"
      SrcPort		      2
      DstBlock		      "skyhook damping"
      DstPort		      1
    }
    Line {
      SrcBlock		      "1/4 vehicle semi-active suspension system"
      SrcPort		      4
      Points		      [80, 0; 0, 185]
      Branch {
	DstBlock		"unsprung velocity"
	DstPort			1
      }
      Branch {
	Points			[0, 240; -1340, 0; 0, -325]
	DstBlock		"skyhook controller for\n 1/4 semi active susp"
"ension systems"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Integrator1"
      SrcPort		      1
      DstBlock		      "skyhook controller for\n 1/4 semi active suspen"
"sion systems"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Derivative"
      SrcPort		      1
      Points		      [75, 0; 0, 110; -395, 0; 0, 275]
      DstBlock		      "skyhook controller for\n 1/4 semi active suspen"
"sion systems"
      DstPort		      3
    }
    Line {
      SrcBlock		      "sin"
      SrcPort		      1
      DstBlock		      "Road type Switch"
      DstPort		      1
    }
    Line {
      SrcBlock		      " white noise"
      SrcPort		      1
      DstBlock		      "Road type Switch"
      DstPort		      2
    }
    Annotation {
      Name		      "q"
      Position		      [949, 227]
      UseDisplayTextAsClickCallback off
      FontSize		      12
    }
    Annotation {
      Name		      "fd"
      Position		      [936, 409]
      UseDisplayTextAsClickCallback off
      FontSize		      12
    }
    Annotation {
      Name		      "unsprung_velocity"
      Position		      [296, 545]
      BackgroundColor	      "yellow"
      UseDisplayTextAsClickCallback off
      FontSize		      12
    }
    Annotation {
      Name		      "sprung_velocity"
      Position		      [289, 633]
      BackgroundColor	      "yellow"
      UseDisplayTextAsClickCallback off
      FontSize		      12
    }
    Annotation {
      Name		      "road_velocity"
      Position		      [291, 728]
      BackgroundColor	      "yellow"
      UseDisplayTextAsClickCallback off
      FontSize		      12
    }
    Annotation {
      Name		      "skyhook control force"
      Position		      [885, 568]
      BackgroundColor	      "yellow"
      UseDisplayTextAsClickCallback off
      FontSize		      12
    }
    Annotation {
      Name		      "skyhook damping"
      Position		      [792, 707]
      BackgroundColor	      "yellow"
      UseDisplayTextAsClickCallback off
      FontSize		      12
    }
    Annotation {
      Name		      "dz1"
      Position		      [1358, 451]
      UseDisplayTextAsClickCallback off
      FontSize		      12
    }
    Annotation {
      Name		      "Skyhook control for 1/4 sem-iactive suspension "
"systems - Sin Road\n-- SGALAB Demonstration Case"
      Position		      [62, 46]
      HorizontalAlignment     "left"
      BackgroundColor	      "lightBlue"
      UseDisplayTextAsClickCallback off
      FontSize		      14
    }
    Annotation {
      Name		      "%Revision -\n%Date                  Name       "
" Description of Change                             Where\n%17-Jul-2003     Yi"
" Chen     Initial version                                              Chongq"
"ing\n%09-Jan-2007    Yi Chen     Update it as SGALAB demo                    "
" Glasgow\n%HISTORY$  leo.chen.yi@gmail.com\n"
      Position		      [56, 115]
      HorizontalAlignment     "left"
      UseDisplayTextAsClickCallback off
      FontSize		      12
    }
    Annotation {
      Position		      [1221, 438]
      UseDisplayTextAsClickCallback off
    }
  }
}

⌨️ 快捷键说明

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