📄 landinggear.mdl
字号:
SourceType "Hydraulic Reference"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
ClassName "hydro_reference"
SchemaVersion "1"
LocalVarLogging "[]"
}
Block {
BlockType Reference
Name "Ideal Hydraulic\nPressure Source"
Tag "Factory Generic"
Ports [0, 0, 0, 0, 0, 1, 2]
Position [220, 375, 260, 415]
Orientation "down"
DialogController "NetworkEngine.DynNeDlgSource"
SourceBlock "fl_lib/Hydraulic/Hydraulic Sensors\nand Sources"
"/Ideal Hydraulic\nPressure Source"
SourceType "Ideal Hydraulic\nPressure Source"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
ClassName "pressure_src"
SchemaVersion "1"
flow_rate_Log "off"
pr_differential_Log "off"
power_Log "off"
LocalVarNames "|flow_rate|pr_differential|power"
LocalVarDescs "|Flow rate through the source (m^3/s)|Pressure "
"differential across the source (Pa)|Source power (W)"
LocalVarLogging "[0 0 0]"
}
Block {
BlockType Reference
Name "Joint Initial Condition"
Ports [0, 0, 0, 0, 0, 0, 1]
Position [220, 165, 260, 205]
DialogController "MECH.DynMechDlgSource"
SourceBlock "mblibv1/Sensors & \nActuators/Joint Initial Con"
"dition"
SourceType "msb"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhysicalDomain "mechanical"
ClassName "InitialCondition"
DialogClass "InitialConditionBlock"
InitialConditions "P1$false$0$m$deg$0$m/s$deg/s#P2$false$0$m$deg$0"
"$m/s$deg/s#P3$false$0$m$deg$0$m/s$deg/s#R1$false$0$m$deg$0$m/s$deg/s#R2$false"
"$0$m$deg$0$m/s$deg/s#R3$false$0$m$deg$0$m/s$deg/s#S$false$0$m$deg$0$m/s$deg/s"
}
Block {
BlockType Reference
Name "Machine\nEnvironment"
Tag "Factory ground"
Ports [0, 0, 0, 0, 0, 0, 1]
Position [140, 85, 180, 105]
DialogController "MECH.DialogSource"
SourceBlock "mblibv1/Bodies/Machine\nEnvironment"
SourceType "Mechanical"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PortType "env"
PhysicalDomain "Mechanical"
ClassName "Environment"
DialogTemplateClass "MECH.MachineEnvironment"
SyncWhenCopied "off"
Gravity "[0 -9.81 0]"
GravityUnits "m/s^2"
GravityAsSignal off
Dimensionality "Auto-detect"
AnalysisType "Forward dynamics"
LinearAssemblyTolerance "1e-3"
LinearAssemblyToleranceUnits "m"
AngularAssemblyTolerance "1e-3"
AngularAssemblyToleranceUnits "rad"
ConstraintSolverType "Stabilizing"
ConstraintRelTolerance "1e-4"
ConstraintAbsTolerance "1e-4"
UseRobustSingularityHandling off
StatePerturbationType "Fixed"
PerturbationSize "1e-5"
VisualizeMachine on
}
Block {
BlockType SubSystem
Name "Rectangular Link"
Ports [0, 0, 0, 0, 0, 2, 1]
Position [430, 98, 545, 142]
AncestorBlock "ElectricalMechanicalComponents/Links/Rectangula"
"r Link"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskPromptString "Length [X] (m)|Height [Y] (m)|Width [Z] (m)|Mat"
"erial 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 "0.1|2|0.05|1000|-90"
MaskTabNameString ",,,,"
System {
Name "Rectangular Link"
Location [527, 216, 841, 358]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Reference
Name "Body"
Ports [0, 0, 0, 0, 0, 1, 2]
Position [80, 30, 140, 70]
DialogController "MECH.DynMechDlgSource"
SourceBlock "mblibv1/Bodies/Body"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "workingframe"
RightPortType "workingframe"
LConnTagsString "CS1"
RConnTagsString "CS2|CS3"
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]$EULER X"
"-Y-Z$deg$CS1$false"
WorkingFrames "Left$CS1$[0 0 0]$ADJOINING$ADJOINING$m$[0 0"
" theta]$EULER X-Y-Z$deg$ADJOINING$true#Right$CS2$[0 b/2 0]$CG$CG$m$[0 0 0]$EU"
"LER X-Y-Z$deg$CG$true#Right$CS3$[1.2*a 0 0]$CG$CG$m$[0 0 0]$EULER X-Y-Z$deg$C"
"G$true"
}
Block {
BlockType Reference
Name "Revolute1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [175, 15, 225, 65]
DialogController "MECH.DynMechDlgSource"
SourceBlock "mblibv1/Joints/Revolute"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "blob"
RightPortType "blob"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
NumSAPorts "0"
CutJoint "off"
MarkAsCut "off"
Primitives "revolute"
PrimitiveProps "R1$Base$[0 0 1]$revolute"
ClassName "Joint"
DialogClass "JointBlock"
}
Block {
BlockType PMIOPort
Name "Adj CS"
Position [25, 43, 55, 57]
Port "1"
Side "Left"
}
Block {
BlockType PMIOPort
Name "Rev"
Position [250, 33, 280, 47]
Orientation "left"
Port "2"
Side "Right"
}
Block {
BlockType PMIOPort
Name "Cyl"
Position [190, 98, 220, 112]
Orientation "left"
Port "3"
Side "Left"
}
Line {
LineType "Connection"
SrcBlock "Body"
SrcPort RConn1
DstBlock "Revolute1"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Adj CS"
SrcPort RConn1
Points [0, 0]
DstBlock "Body"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Rev"
SrcPort RConn1
DstBlock "Revolute1"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "Cyl"
SrcPort RConn1
Points [-10, 0; 0, -45]
DstBlock "Body"
DstPort RConn2
}
}
}
Block {
BlockType Reference
Name "Revolute"
Ports [0, 0, 0, 0, 0, 2, 1]
Position [315, 82, 365, 133]
DialogController "MECH.DynMechDlgSource"
SourceBlock "mblibv1/Joints/Revolute"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "blob"
RightPortType "blob"
LConnTagsString "__newl0|SA1"
RConnTagsString "__newr0"
NumSAPorts "1"
CutJoint "off"
MarkAsCut "off"
Primitives "revolute"
PrimitiveProps "R1$World$[0 0 1]$revolute"
ClassName "Joint"
DialogClass "JointBlock"
}
Block {
BlockType Reference
Name "Simulink-PS\nConverter"
Ports [1, 0, 0, 0, 0, 0, 1]
Position [145, 435, 175, 465]
DialogController "NetworkEngine.DynNeUtilDlgSource"
SourceBlock "pm_libv1/Utilities/Simulink-PS\nConverter"
SourceType "Simulink-PS\nConverter"
ShowPortLabels off
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhysicalDomain "network_engine_domain"
LeftPortType "input"
RightPortType "output"
SubClassName "ps_input"
Unit "1"
PmDlgSchema "0"
}
Line {
LineType "Connection"
SrcBlock "Machine\nEnvironment"
SrcPort RConn1
DstBlock "Ground"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Ground"
SrcPort RConn1
Points [0, 0]
DstBlock "Revolute"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Revolute"
SrcPort RConn1
DstBlock "Rectangular Link"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Ground1"
SrcPort RConn1
Points [0, 0]
DstBlock "Hydraulic Cylinder"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Hydraulic Cylinder"
SrcPort RConn1
Points [5, 0; 0, -185]
DstBlock "Rectangular Link"
DstPort LConn2
}
Line {
LineType "Connection"
SrcBlock "Joint Initial Condition"
SrcPort RConn1
Points [10, 0; 0, -65]
DstBlock "Revolute"
DstPort LConn2
}
Line {
LineType "Connection"
SrcBlock "Hydraulic Reference"
SrcPort LConn1
DstBlock "Ideal Hydraulic\nPressure Source"
DstPort RConn2
}
Line {
LineType "Connection"
SrcBlock "Ideal Hydraulic\nPressure Source"
SrcPort LConn1
Points [0, -35]
DstBlock "Hydraulic Cylinder"
DstPort LConn2
}
Line {
LineType "Connection"
SrcBlock "Simulink-PS\nConverter"
SrcPort RConn1
Points [40, 0]
DstBlock "Ideal Hydraulic\nPressure Source"
DstPort RConn1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Simulink-PS\nConverter"
DstPort 1
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . 2 8 ( ! % "
"\" $ 3 0 0 $P $QA;F1I;F='96%R+T=R;W5N9#$ "
}
DataRecord {
Tag DataTag0
Data " %)30 . 2 8 ( ! % "
"\" $ 2 0 0 $@ $QA;F1I;F='96%R+T=R;W5N9 "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -