📄 sh_dir_act_relief_valve.mdl
字号:
RTWMemSecDataParameters "Inherit from model"
ClassName "sensor_flow_rate"
SchemaVersion "1"
LocalVarLogging "[]"
}
Block {
BlockType Reference
Name "Ideal Hydraulic Flow\nRate Source"
Tag "Factory Generic"
Ports [0, 0, 0, 0, 0, 1, 2]
Position [150, 230, 190, 270]
Orientation "down"
NamePlacement "alternate"
DialogController "NetworkEngine.DynNeDlgSource"
FontName "Arial"
SourceBlock "fl_lib/Hydraulic/Hydraulic Sensors\nand Sources"
"/Ideal Hydraulic Flow\nRate Source"
SourceType "Ideal Hydraulic Flow\nRate 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 "flow_rate_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 "PS-Simulink\nConverter"
Ports [0, 1, 0, 0, 0, 1]
Position [340, 70, 370, 100]
DialogController "NetworkEngine.DynNeUtilDlgSource"
FontName "Arial"
SourceBlock "pm_libv1/Utilities/PS-Simulink\nConverter"
SourceType "PS-Simulink\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_output"
Unit "l/min"
PmDlgSchema "0"
Port {
PortNumber 1
Name "Flow rate"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "PS-Simulink\nConverter1"
Ports [0, 1, 0, 0, 0, 1]
Position [340, 165, 370, 195]
DialogController "NetworkEngine.DynNeUtilDlgSource"
FontName "Arial"
SourceBlock "pm_libv1/Utilities/PS-Simulink\nConverter"
SourceType "PS-Simulink\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_output"
Unit "bar"
PmDlgSchema "0"
Port {
PortNumber 1
Name "Pressure"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType SubSystem
Name "Pressure-relief valve,\ndirect-acting"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [277, 230, 323, 285]
Orientation "down"
FontName "Arial"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Pressure-relief valve, direct-acting"
MaskDescription "This custom block simulates a direct-acting pre"
"ssure-relief valve bulit of a variable orifice and hydro-mechanical converter"
". The pressure setting is determined by the piston area and the spring preloa"
"d force\npres_set = preload_force/piston_area"
MaskPromptString "Piston area (m^2)|Preload force (N)"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "A=@1;F=@2;"
MaskDisplay "plot(0,0); plot(80,60);\nplot([20 20 60 60 20],"
"[10 50 50 10 10]);\nplot([20 60],[40 40]);\npatch([46 60 46],[45 40 35],[0 0 "
"0]);\nplot([0 20],[30 30]);\nplot([60 80],[30 30]);\nplot([20 10 10 40 40],[3"
"0 40 55 55 50]);"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "0.8e-4|200"
MaskTabNameString ","
System {
Name "Pressure-relief valve,\ndirect-acting"
Location [76, 223, 672, 621]
Open off
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 "D1"
Tag "Factory Generic"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [410, 151, 450, 179]
NamePlacement "alternate"
DialogController "NetworkEngine.DynNeDlgSource"
FontName "Arial"
SourceBlock "fl_lib/Mechanical/Translational\nElements/T"
"ranslational Damper"
SourceType "Translational Damper"
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 "damper_transl"
SchemaVersion "1"
D "240"
D_unit "s*N/m"
force_Log "off"
rel_velocity_Log "off"
power_Log "off"
LocalVarNames "|force|rel_velocity|power"
LocalVarDescs "|Damping force (N)|Damper relative velocity"
" (m/s)|Power dissipated in the damper (W)"
LocalVarLogging "[0 0 0]"
}
Block {
BlockType Reference
Name "Hard Stop"
Tag "Factory Generic"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [385, 15, 425, 35]
DialogController "NetworkEngine.DynNeDlgSource"
FontName "Arial"
SourceBlock "fl_lib/Mechanical/Translational\nElements/T"
"ranslational Hard\nStop"
SourceType "Translational Hard\nStop"
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 "hardstop_transl"
SchemaVersion "1"
upper_bnd "0.009"
upper_bnd_unit "m"
lower_bnd "-0.001"
lower_bnd_unit "m"
stiff_up "1e+06"
stiff_up_unit "N/m"
stiff_low "1e+08"
stiff_low_unit "N/m"
D_up "650"
D_up_unit "s*N/m"
D_low "650"
D_low_unit "s*N/m"
contact_force_Log "off"
rel_displacement_Log "off"
LocalVarNames "|contact_force|rel_displacement"
LocalVarDescs "|Contact force (N)|Slider-case relative dis"
"placement (m)"
LocalVarLogging "[0 0]"
}
Block {
BlockType Reference
Name "Ideal Translational\nMotion Sensor"
Tag "Factory Generic"
Ports [0, 0, 0, 0, 0, 1, 3]
Position [255, 195, 295, 235]
DialogController "NetworkEngine.DynNeDlgSource"
FontName "Arial"
SourceBlock "fl_lib/Mechanical/Mechanical Sensors\nand S"
"ources/Ideal Translational\nMotion Sensor"
SourceType "Ideal Translational\nMotion Sensor"
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 "sensor_transl_motion"
SchemaVersion "1"
offset "0"
offset_unit "m"
LocalVarLogging "[]"
}
Block {
BlockType Reference
Name "MTR"
Tag "Factory Generic"
Ports [0, 0, 0, 0, 0, 1]
Position [530, 90, 550, 110]
NamePlacement "alternate"
DialogController "NetworkEngine.DynNeDlgSource"
FontName "Arial"
SourceBlock "fl_lib/Mechanical/Translational\nElements/M"
"echanical\nTranslational\nReference"
SourceType "Mechanical\nTranslational\nReference"
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 "reference_transl"
SchemaVersion "1"
LocalVarLogging "[]"
}
Block {
BlockType Reference
Name "MTR1"
Tag "Factory Generic"
Ports [0, 0, 0, 0, 0, 1]
Position [15, 85, 35, 105]
Orientation "left"
NamePlacement "alternate"
DialogController "NetworkEngine.DynNeDlgSource"
FontName "Arial"
SourceBlock "fl_lib/Mechanical/Translational\nElements/M"
"echanical\nTranslational\nReference"
SourceType "Mechanical\nTranslational\nReference"
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 "reference_transl"
SchemaVersion "1"
LocalVarLogging "[]"
}
Block {
BlockType Reference
Name "Mass"
Tag "Factory Generic"
Ports [0, 0, 0, 0, 0, 1]
Position [265, 130, 305, 170]
Orientation "down"
NamePlacement "alternate"
DialogController "NetworkEngine.DynNeDlgSource"
FontName "Arial"
SourceBlock "fl_lib/Mechanical/Translational\nElements/M"
"ass"
SourceType "Mass"
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 "mass"
SchemaVersion "1"
mass "0.124"
mass_unit "kg"
force_Log "off"
velocity_Log "off"
LocalVarNames "|force|velocity"
LocalVarDescs "|Inertia force (N)|Mass absolute velocity ("
"m/s)"
LocalVarLogging "[0 0]"
}
Block {
BlockType Reference
Name "Orifice with\nVariable Area Round\nHoles"
Tag "Factory Generic"
Ports [0, 0, 0, 0, 0, 2, 1]
Position [375, 277, 410, 328]
DialogController "NetworkEngine.DynNeDlgSource"
FontName "Arial"
SourceBlock "fl_lib/Hydraulic/Hydraulic Elements/Orifice"
" with\nVariable Area Round\nHoles"
SourceType "Orifice with\nVariable Area Round\nHoles"
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 "orifice_vrb_rnd_holes"
SchemaVersion "1"
or_diam "0.006"
or_diam_unit "m"
or_numb "6"
or_numb_unit "1"
C_d "0.6"
C_d_unit "1"
x_0 "-0.0002"
x_0_unit "m"
or "1"
or_unit "1"
Re_cr "12"
Re_cr_unit "1"
A_leak "1e-7"
A_leak_unit "m^2"
flow_rate_Log "off"
pr_drop_Log "off"
Re_Log "off"
orif_opening_Log "off"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -