📄 ice3start.mdl
字号:
}
Block {
BlockType Reference
Name "Spherical"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [225, 45, 275, 95]
SourceBlock "mblibv1/Joints/Spherical"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "blob"
RightPortType "blob"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
NumSAPorts "0"
CutJoint "off"
MarkAsCut "off"
Primitives "spherical"
PrimitiveProps "S$INERTIAL$[0 0 0]$spherical"
ClassName "Joint"
DialogClass "JointBlock"
}
Block {
BlockType Reference
Name "Spherical1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [230, 130, 280, 180]
SourceBlock "mblibv1/Joints/Spherical"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "blob"
RightPortType "blob"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
NumSAPorts "0"
CutJoint "off"
MarkAsCut "off"
Primitives "spherical"
PrimitiveProps "S$INERTIAL$[0 0 0]$spherical"
ClassName "Joint"
DialogClass "JointBlock"
}
Block {
BlockType Reference
Name "Spherical2"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [230, 210, 280, 260]
SourceBlock "mblibv1/Joints/Spherical"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "blob"
RightPortType "blob"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
NumSAPorts "0"
CutJoint "off"
MarkAsCut "off"
Primitives "spherical"
PrimitiveProps "S$INERTIAL$[0 0 0]$spherical"
ClassName "Joint"
DialogClass "JointBlock"
}
Block {
BlockType Reference
Name "Spherical3"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [230, 290, 280, 340]
SourceBlock "mblibv1/Joints/Spherical"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "blob"
RightPortType "blob"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
NumSAPorts "0"
CutJoint "off"
MarkAsCut "off"
Primitives "spherical"
PrimitiveProps "S$INERTIAL$[0 0 0]$spherical"
ClassName "Joint"
DialogClass "JointBlock"
}
Block {
BlockType PMIOPort
Name "Adj CS"
Position [25, 193, 55, 207]
Port "1"
Side "Left"
}
Block {
BlockType PMIOPort
Name "Pist1"
Position [300, 63, 330, 77]
Orientation "left"
Port "2"
Side "Right"
}
Block {
BlockType PMIOPort
Name "Pist2"
Position [300, 148, 330, 162]
Orientation "left"
Port "3"
Side "Left"
}
Block {
BlockType PMIOPort
Name "Pist3"
Position [300, 228, 330, 242]
Orientation "left"
Port "4"
Side "Right"
}
Block {
BlockType PMIOPort
Name "Pist4"
Position [300, 308, 330, 322]
Orientation "left"
Port "5"
Side "Left"
}
Block {
BlockType PMIOPort
Name "Load"
Position [240, 388, 270, 402]
Orientation "left"
Port "6"
Side "Right"
}
Line {
LineType "Connection"
SrcBlock "Body"
SrcPort RConn1
DstBlock "Spherical"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Adj CS"
SrcPort RConn1
Points [10, 0]
DstBlock "Body"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Pist1"
SrcPort RConn1
DstBlock "Spherical"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "Pist2"
SrcPort RConn1
DstBlock "Spherical1"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "Pist3"
SrcPort RConn1
DstBlock "Spherical2"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "Pist4"
SrcPort RConn1
DstBlock "Spherical3"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "Body"
SrcPort RConn2
DstBlock "Spherical1"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Body"
SrcPort RConn3
DstBlock "Spherical2"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Body"
SrcPort RConn4
DstBlock "Spherical3"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Load"
SrcPort RConn1
DstBlock "Body"
DstPort RConn5
}
}
}
Block {
BlockType SubSystem
Name "Engine Block"
Ports [0, 1, 0, 0, 0, 3, 3]
Position [80, 44, 220, 236]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskPromptString "Length [X] (m)|Height [Y] (m)|Width [Z] (m)"
"|Material Density (kg/m^3)|Angle (degrees)"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "a=@1;b=@2;c=@3;rho=@4;theta=@5;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "d_crank|d_crank|l_crank|rho|0"
MaskTabNameString ",,,,"
System {
Name "Engine Block"
Location [296, 74, 942, 730]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Reference
Name "Body"
Ports [0, 0, 0, 0, 0, 1, 5]
Position [80, 47, 180, 423]
SourceBlock "mblibv1/Bodies/Body"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "workingframe"
RightPortType "workingframe"
LConnTagsString "CS1"
RConnTagsString "CS2|CS3|CS4|CS5|CS6"
ClassName "Body"
DialogClass "MechanicalBodyBlock"
Mass "rho*a*b*c"
MassUnits "kg"
InertiaUnits "kg*m^2"
Inertia "rho*a*b*c*[(b^2+c^2) 0 0; 0 (a^2+c^2) 0"
"; 0 0 (a^2+b^2)]/12"
Shape "Cylinder"
ShapeDims "[1 1]"
ShapeUnits "m"
ShapeUse "false"
Density "1"
DensityUnits "kg/m^3"
DensityUse "false"
CG "Left$CG$[0 b/2 0]$CS1$CS1$m$[0 0 0]$Eul"
"er X-Y-Z$deg$CS1$false"
WorkingFrames "Left$CS1$[0 0 0]$ADJOINING$ADJOINING$m$"
"[0 0 0]$Euler X-Y-Z$deg$ADJOINING$true#Right$CS2$[(r_crank+a*sin(alfr)) a*cos"
"(alfr) -c/2]$CG$CG$m$[0 0 -alf]$Euler X-Y-Z$deg$CG$true#Right$CS3$[-(r_crank+"
"a*sin(alfr)) a*cos(alfr) -c/6]$CG$CG$m$[0 0 alf]$Euler X-Y-Z$deg$CG$true#Righ"
"t$CS4$[(r_crank+a*sin(alfr)) a*cos(alfr) c/6]$CG$CG$m$[0 0 -alf]$Euler X-Y-Z$"
"deg$CG$true#Right$CS5$[-(r_crank+a*sin(alfr)) a*cos(alfr) c/2]$CG$CG$m$[0 0 a"
"lf]$Euler X-Y-Z$deg$CG$true#Right$CS6$[0 0 0]$CG$CG$m$[0 0 0]$Euler X-Y-Z$deg"
"$CG$true"
}
Block {
BlockType Reference
Name "Continuous Angle"
Tag "Factory continuousAngle"
Ports [2, 1]
Position [420, 440, 525, 500]
SourceBlock "mblibv1/Utilities/Continuous Angle"
SourceType ""
ShowPortLabels on
rad "deg"
rads "deg/s"
}
Block {
BlockType Gain
Name "Gain"
Position [425, 550, 455, 580]
Gain "1/6"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Joint Initial Condition"
Ports [0, 0, 0, 0, 0, 0, 1]
Position [165, 460, 205, 500]
SourceBlock "mblibv1/Sensors & \nActuators/Joint Ini"
"tial Condition"
SourceType "msb"
ShowPortLabels on
PhysicalDomain "mechanical"
ClassName "InitialCondition"
DialogClass "InitialConditionBlock"
InitialConditions "P1$false$0$m$rad$0$m/s$rad/s#P2$false$0"
"$m$rad$0$m/s$rad/s#P3$false$0$m$rad$0$m/s$rad/s#R1$true$0$m$rad$100$m/s$rad/s"
"#R2$false$0$m$rad$0$m/s$rad/s#R3$false$0$m$rad$0$m/s$rad/s#S$false$0$m$rad$0$"
"m/s$rad/s"
}
Block {
BlockType Reference
Name "Joint Sensor"
Ports [0, 2, 0, 0, 0, 1]
Position [350, 438, 390, 502]
SourceBlock "mblibv1/Sensors & \nActuators/Joint Sen"
"sor"
SourceType "msb"
ShowPortLabels on
PhysicalDomain "Mechanical"
PortType "blob"
Muxed "off"
Pose "off"
Angle "on"
AngleUnits "deg"
ArcVelocity "on"
ArcVelocityUnits "deg/s"
ArcAcceleration "off"
ArcAccelerationUnits "deg/s^2"
CoordPosition "on"
CoordPositionUnits "m"
Velocity "off"
VelocityUnits "m/s"
Acceleration "off"
AccelerationUnits "m/s^2"
Quaternion "on"
QuaternionDT "off"
QuaternionDDT "off"
QuaternionUnits "off"
OutputVector "[ 1 1 ]"
ActiveIO "on"
Width "2"
ClassName "JointSensor"
DialogClass "MechanicalSensorBlock"
Primitive "R1"
Force "off"
ForceUnits "N"
Torque "off"
TorqueUnits "N-m"
ReferenceFrame "Absolute (INERTIAL)"
ReactionSensedSide "Base"
ReactionReferenceFrame "Absolute (World)"
ReactionForce "off"
ReactionForceUnits "N"
ReactionMoment "off"
ReactionMomentUnits "N-m"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [545, 446, 560, 544]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "RPM"
Ports [1]
Position [490, 549, 520, 581]
Floating off
Location [44, 391, 368, 630]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "17600"
YMax "17875"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Reference
Name "Revolute"
Ports [0, 0, 0, 0, 0, 2, 2]
Position [255, 372, 305, 423]
SourceBlock "mblibv1/Joints/Revolute"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "blob"
RightPortType "blob"
LConnTagsString "__newl0|SA1"
RConnTagsString "__newr0|SA1"
NumSAPorts "2"
CutJoint "off"
MarkAsCut "off"
Primitives "revolute"
PrimitiveProps "R1$Base$[0 0 1]$revolute"
ClassName "Joint"
DialogClass "JointBlock"
}
Block {
BlockType PMIOPort
Name "Adj CS"
Position [15, 228, 45, 242]
Port "1"
Side "Left"
}
Block {
BlockType PMIOPort
Name "Cyl1"
Position [215, 78, 245, 92]
Orientation "left"
Port "2"
Side "Right"
}
Block {
BlockType PMIOPort
Name "Cyl2"
Position [215, 153, 245, 167]
Orientation "left"
Port "3"
Side "Left"
}
Block {
BlockType PMIOPort
Name "Cyl3"
Position [210, 228, 240, 242]
Orientation "left"
Port "4"
Side "Left"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -