📄 bacs_do.mdl
字号:
Port {
PortNumber 1
Name "x-y"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Constant
Name "a"
Position [30, 55, 50, 75]
Value "a"
}
Block {
BlockType Outport
Name "f"
Position [420, 118, 450, 132]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "a"
SrcPort 1
Points [270, 0; 0, 50]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Sn"
SrcPort 1
Points [280, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "x"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "y"
SrcPort 1
Points [15, 0]
DstBlock "Sum"
DstPort 2
}
Line {
Name "x-y"
Labels [1, 1]
SrcBlock "Sum"
SrcPort 1
Points [35, 0]
Branch {
Points [0, 35]
DstBlock "Abs"
DstPort 1
}
Branch {
Points [0, -10]
DstBlock "Sign"
DstPort 1
}
}
Line {
SrcBlock "Sign"
SrcPort 1
DstBlock "Product"
DstPort 3
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Product"
DstPort 4
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "f"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "h1"
Position [525, 33, 555, 47]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "h2"
Position [525, 128, 555, 142]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "f1"
DstPort 2
}
Line {
SrcBlock "f1"
SrcPort 1
Points [-100, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "f"
SrcPort 1
Points [-95, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 55]
DstBlock "f1"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "f"
DstPort 2
}
Branch {
DstBlock "h2"
DstPort 1
}
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 40]
DstBlock "f"
DstPort 1
}
Branch {
DstBlock "h1"
DstPort 1
}
}
Line {
SrcBlock "q1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "trois_bacs"
Ports [2, 3, 0, 0, 0]
Position [200, 34, 285, 96]
ShowPortLabels on
MaskType "trois_bacs"
MaskDescription "Systemes de trois bacs d'O, deux pompes\n\n "
" | |\n \\./ "
" \\./\n| | | | | |\n| ba"
"c 1 | | bac 3 | | bac 2 |\n| | ___| |___| "
" |__\n|___________________________"
MaskPromptString "Section :|Hauteur initiale h10 :|Hauteur initia"
"le h30 :|Hauteur initiale h20 :|Coefficient ecoulement a13 :|Coefficient ecou"
"lement a32 :|Coefficient ecoulement a20 :|Sections ecoulement Sn"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||"
MaskEnableString "on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on"
MaskVariables "A=@1;h10=@2;h30=@3;h20=@4;a13=@5;a32=@6;a20=@7;"
"Sn=@8;"
MaskDisplay "disp('3 bacs') ;"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "pi*0.07^2|0|0|0|0.4729|0.4632|0.6179|5e-5"
System {
Name "trois_bacs"
Location [306, 298, 886, 628]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "q1"
Position [25, 28, 55, 42]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "q2"
Position [25, 238, 55, 252]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "Constant"
Position [515, 290, 535, 310]
Orientation "left"
NamePlacement "alternate"
ShowName off
Value "0"
}
Block {
BlockType Gain
Name "Gain"
Position [390, 25, 420, 55]
ShowName off
Gain "1/A"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain1"
Position [390, 120, 420, 150]
ShowName off
Gain "1/A"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain2"
Position [390, 230, 420, 260]
ShowName off
Gain "1/A"
SaturateOnIntegerOverflow on
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1, 0, 0, 0]
Position [440, 25, 470, 55]
ShowName off
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "h10"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1, 0, 0, 0]
Position [440, 120, 470, 150]
ShowName off
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "h30"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [1, 1, 0, 0, 0]
Position [440, 230, 470, 260]
ShowName off
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "h20"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [275, 28, 300, 52]
ShowName off
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1, 0, 0, 0]
Position [275, 123, 300, 147]
ShowName off
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1, 0, 0, 0]
Position [280, 226, 305, 264]
ShowName off
IconShape "rectangular"
Inputs "++-"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "f"
Ports [2, 1, 0, 0, 0]
Position [360, 72, 475, 108]
Orientation "left"
ShowName off
ShowPortLabels on
MaskType "f"
MaskDescription "Realise la fonction\n f = a . Sn . sign(x-"
"y) . sqrt(2.g.abs(x-y))\nLa sortie f est le debit entre deux bacs relies par "
"une section Sn de coefficient d'ecoulement a.\nLes entrees x et y sont les ha"
"uteurs amont et aval."
MaskPromptString "Valeur de Sn : "
" |Valeur de a :"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskVariables "Sn=@1;a=@2;"
MaskDisplay "disp(['f (a = ' num2str(a) ')']) ;"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Sn|a13"
System {
Name "f"
Location [113, 132, 614, 387]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "x"
Position [25, 123, 55, 137]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "y"
Position [25, 158, 55, 172]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Abs
Name "Abs"
Position [180, 160, 210, 190]
ShowName off
}
Block {
BlockType Gain
Name "Gain"
Position [230, 157, 285, 193]
Gain "2*9.81"
SaturateOnIntegerOverflow on
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1, 0, 0, 0]
Position [300, 160, 330, 190]
ShowName off
Operator "sqrt"
OutputSignalType "auto"
}
Block {
BlockType Product
Name "Product"
Ports [4, 1, 0, 0, 0]
Position [350, 92, 390, 153]
ShowName off
Inputs "4"
SaturateOnIntegerOverflow on
}
Block {
BlockType Signum
Name "Sign"
Position [225, 114, 260, 146]
ShowName off
}
Block {
BlockType Constant
Name "Sn"
Position [30, 15, 50, 35]
Value "Sn"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [90, 122, 120, 153]
ShowName off
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "x-y"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Constant
Name "a"
Position [30, 55, 50, 75]
Value "a"
}
Block {
BlockType Outport
Name "f"
Position [420, 118, 450, 132]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "a"
SrcPort 1
Points [270, 0; 0, 50]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Sn"
SrcPort 1
Points [280, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "x"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "y"
SrcPort 1
Points [15, 0]
DstBlock "Sum"
DstPort 2
}
Line {
Name "x-y"
Labels [1, 1]
SrcBlock "Sum"
SrcPort 1
Points [35, 0]
Branch {
Points [0, 35]
DstBlock "Abs"
DstPort 1
}
Branch {
Points [0, -10]
DstBlock "Sign"
DstPort 1
}
}
Line {
SrcBlock "Sign"
SrcPort 1
DstBlock "Product"
DstPort 3
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Product"
DstPort 4
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "f"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
}
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -