📄 electricalmechanicalcomponents.mdl
字号:
Ports [0, 0, 0, 0, 0, 1]
Position [440, 505, 490, 555]
ForegroundColor "magenta"
DropShadow on
SourceBlock "driveline/Solver &\nInertias/Iner"
"tia"
SourceType "Inertia"
ShowPortLabels on
PortType "p1"
BlockClass "Inertia"
PhysicalDomain "driveline_domain"
I "0.1"
Ip "[]"
Iv "[]"
ShowLeft on
ShowRight off
}
Block {
BlockType PMIOPort
Name "In"
Position [15, 423, 45, 437]
ForegroundColor "magenta"
Port "1"
Side "Left"
}
Block {
BlockType PMIOPort
Name "Out"
Position [795, 288, 825, 302]
Orientation "left"
ForegroundColor "magenta"
Port "2"
Side "Right"
}
Line {
SrcBlock "P"
SrcPort 1
DstBlock "Clutch\nPressures"
DstPort 1
}
Line {
SrcBlock "Clutch\nPressures"
SrcPort 1
DstBlock "Goto"
DstPort 1
}
Line {
SrcBlock "Clutch\nPressures"
SrcPort 2
DstBlock "Goto1"
DstPort 1
}
Line {
SrcBlock "Clutch\nPressures"
SrcPort 3
DstBlock "Goto2"
DstPort 1
}
Line {
SrcBlock "Clutch\nPressures"
SrcPort 4
DstBlock "Goto3"
DstPort 1
}
Line {
SrcBlock "Clutch\nPressures"
SrcPort 5
DstBlock "Goto4"
DstPort 1
}
Line {
LineType "Connection"
Points [70, 430; 130, 0]
DstBlock "Clutch B"
DstPort LConn1
Branch {
ConnectType "SRC_SRC"
Points [0, -160]
Branch {
ConnectType "DEST_SRC"
DstBlock "Clutch A"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
Points [0, -80]
DstBlock "Clutch C"
DstPort LConn1
}
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "In"
SrcPort RConn1
Points [0, 0; 10, 0]
}
}
Line {
LineType "Connection"
Points [755, 295; 0, -95; 20, 0]
DstBlock "Ring Inertia"
DstPort LConn1
Branch {
ConnectType "SRC_SRC"
Points [-10, 0]
DstBlock "Ravigneaux"
DstPort RConn1
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "Out"
SrcPort RConn1
Points [0, 0; -25, 0]
}
}
Line {
LineType "Connection"
SrcBlock "Housing1"
SrcPort RConn1
Points [0, 0]
DstBlock "Clutch D"
DstPort LConn1
}
Line {
LineType "Connection"
Points [365, 175; 0, -100; 60, 0]
DstBlock "Large Sun (S1)\nInertia"
DstPort LConn1
Branch {
ConnectType "SRC_SRC"
DstBlock "Ravigneaux"
DstPort LConn1
}
Branch {
ConnectType "SRC_DEST"
Points [310, 175; 55, 0]
Branch {
ConnectType "SRC_SRC"
Points [-25, 0]
DstBlock "Clutch C"
DstPort RConn1
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "Clutch E"
SrcPort RConn1
Points [20, 0; 0, 80]
}
}
}
Line {
LineType "Connection"
Points [365, 415; 0, 115; 60, 0]
DstBlock "Small Sun (S2)\nInertia"
DstPort LConn1
Branch {
ConnectType "SRC_SRC"
DstBlock "Ravigneaux"
DstPort LConn3
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "Clutch B"
SrcPort RConn1
Points [0, 0; 75, 0]
}
}
Line {
LineType "Connection"
SrcBlock "Clutch A"
SrcPort RConn1
Points [15, 0; 0, 40]
Branch {
ConnectType "DEST_SRC"
Points [0, 40]
DstBlock "Clutch D"
DstPort RConn1
}
Branch {
ConnectType "DEST_SRC"
Points [30, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "Ravigneaux"
DstPort LConn2
}
Branch {
ConnectType "DEST_SRC"
Points [0, -45]
DstBlock "Carrier\nInertia"
DstPort RConn1
}
}
}
Line {
LineType "Connection"
SrcBlock "Housing2"
SrcPort RConn1
Points [0, 0]
DstBlock "Clutch E"
DstPort LConn1
}
Line {
SrcBlock "From2"
SrcPort 1
DstBlock "Clutch A"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Clutch B"
DstPort 1
}
Line {
SrcBlock "From3"
SrcPort 1
DstBlock "Clutch C"
DstPort 1
}
Line {
SrcBlock "From4"
SrcPort 1
DstBlock "Clutch D"
DstPort 1
}
Line {
SrcBlock "From5"
SrcPort 1
DstBlock "Clutch E"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [295, 119, 325, 151]
Floating off
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Threshold Calculation"
Ports [2, 2, 0, 1]
Position [125, 138, 250, 187]
Orientation "left"
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Threshold Calculation"
Location [34, 342, 457, 593]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "gear"
Position [20, 118, 50, 132]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "throttle"
Position [20, 53, 50, 67]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType TriggerPort
Name "run"
Ports []
Position [160, 15, 180, 35]
TriggerType "function-call"
ZeroCross off
}
Block {
BlockType Lookup2D
Name "interp_down"
Position [240, 117, 270, 153]
RowIndex "downth"
ColumnIndex "[1:4]"
OutputValues "downtab"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Lookup2D
Name "interp_up"
Position [240, 52, 270, 88]
RowIndex "upth"
ColumnIndex "[1:4]"
OutputValues "uptab"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "down_th"
Position [340, 128, 370, 142]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "up_th"
Position [335, 63, 365, 77]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "interp_up"
SrcPort 1
DstBlock "up_th"
DstPort 1
}
Line {
SrcBlock "interp_down"
SrcPort 1
DstBlock "down_th"
DstPort 1
}
Line {
SrcBlock "throttle"
SrcPort 1
Points [110, 0]
Branch {
DstBlock "interp_up"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "interp_down"
DstPort 1
}
}
Line {
SrcBlock "gear"
SrcPort 1
Points [85, 0]
Branch {
Points [0, -45]
DstBlock "interp_up"
DstPort 2
}
Branch {
Points [0, 20]
DstBlock "interp_down"
DstPort 2
}
}
}
}
Block {
BlockType SubSystem
Name "shift_logic"
Ports [3, 3]
Position [110, 29, 245, 101]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "Stateflow"
MaskDescription "Stateflow diagram"
MaskDisplay "plot(sf('Private','sfblk','xIcon'),"
"sf('Private','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Ho"
"rizontalAl','Center','VerticalAl','Bottom');"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "shift_logic"
Location [70, 200, 570, 460]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "speed"
Position [20, 101, 40, 119]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "up_th"
Position [20, 136, 40, 154]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "down_th"
Position [20, 171, 40, 189]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 210, 320, 250]
Outputs "1"
Port {
PortNumber 1
Name "CALC_TH"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function ElectricalMe"
"chanicalComponents 4"
Ports [3, 3]
Position [180, 100, 230, 180]
FunctionName "sf_sfun"
Parameters "TWAIT"
PortCounts "[3 3]"
Port {
PortNumber 2
Name "gear"
RTWStorageClass "Auto"
Data
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -