📄 wndlib2.mdl
字号:
Name "White Noise"
Position [30, 70, 50, 90]
FontName "Arial"
Mean "0"
Variance "1"
Seed "10"
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "t"
Ports [0, 0, 0, 0, 0]
Position [10, 5, 150, 40]
ForegroundColor blue
DropShadow on
FontName "Arial"
ShowName off
OpenFcn "fdchelp vdryd1"
ShowPortLabels off
MaskDisplay "disp('Lateral Dryden filter\\nMarc Rauw, "
"October 1997')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "t"
Location [99, 72, 274, 227]
Open off
ScreenColor white
}
}
Block {
BlockType TransferFcn
Name "tf"
Position [105, 60, 215, 100]
FontName "Arial"
ShowName off
Numerator "[b1 b0]"
Denominator "[1 a1 a0]"
}
Block {
BlockType TransferFcn
Name "tf1"
Position [105, 110, 215, 150]
FontName "Arial"
ShowName off
Numerator "[b1 b0 0]"
Denominator "[1 a1 a0]"
}
Block {
BlockType Outport
Name "vg"
Position [255, 70, 275, 90]
DropShadow on
FontName "Arial"
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Block {
BlockType Outport
Name "vg dot"
Position [255, 120, 275, 140]
DropShadow on
FontName "Arial"
Port "2"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "White Noise"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 50]
DstBlock "tf1"
DstPort 1
}
Branch {
DstBlock "tf"
DstPort 1
}
}
Line {
SrcBlock "tf1"
SrcPort 1
DstBlock "vg dot"
DstPort 1
}
Line {
SrcBlock "tf"
SrcPort 1
DstBlock "vg"
DstPort 1
}
Annotation {
Position [516, 92]
VerticalAlignment top
FontName "Arial"
Text "`"
}
}
}
Block {
BlockType SubSystem
Name "vdryd2 "
Ports [1, 2, 0, 0, 0]
Position [195, 288, 270, 332]
FontName "Arial"
ShowName off
ShowPortLabels off
MaskType "vdryd2"
MaskDescription "Lateral Dryden filter with \ncoefficients "
"which vary with V"
MaskHelp "eval('fdchelp vdryd2')"
MaskPromptString "Scale length Lvg [m]:|Standard deviation "
"sigma_vg [m/s]:"
MaskStyleString "edit,edit"
MaskVariables "Lvg=@1;sigma_vg=@2;"
MaskDisplay "disp('Lateral\\nDryden filter\\nV~=const')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
MaskValueString "150|1"
System {
Name "vdryd2 "
Location [4, 42, 532, 430]
Open off
ScreenColor white
Block {
BlockType Inport
Name "V"
Position [25, 70, 45, 90]
ForegroundColor magenta
DropShadow on
FontName "Arial"
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1, 0, 0, 0]
Position [110, 237, 125, 273]
FontName "Arial"
ShowName off
Inputs "+--"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1, 0, 0, 0]
Position [455, 235, 470, 255]
FontName "Arial"
ShowName off
Inputs "++"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1, 0, 0, 0]
Position [455, 85, 470, 105]
FontName "Arial"
ShowName off
Inputs "++"
}
Block {
BlockType RandomNumber
Name "White Noise"
Position [30, 235, 50, 255]
FontName "Arial"
Mean "0"
Variance "1"
Seed "10"
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "a0"
Ports [2, 1, 0, 0, 0]
Position [135, 335, 185, 370]
Orientation left
FontName "Arial"
ShowPortLabels off
MaskDisplay "plot(0,0,100,100,[100,0,100],[0,50,100]);dis"
"p(' K(u1)')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "a0"
Location [4, 42, 442, 155]
Open off
ScreenColor white
Block {
BlockType Inport
Name "V"
Position [15, 20, 35, 40]
ForegroundColor magenta
DropShadow on
FontName "Arial"
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "input u"
Position [15, 65, 35, 85]
DropShadow on
FontName "Arial"
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1, 0, 0, 0]
Position [365, 45, 380, 65]
FontName "Arial"
ShowName off
Inputs "2"
}
Block {
BlockType Fcn
Name "a0(V)"
Position [130, 20, 245, 40]
ForegroundColor magenta
FontName "Arial"
Expr "(u[1]/Lvg)^2"
}
Block {
BlockType Outport
Name "y = K*u"
Position [400, 45, 420, 65]
DropShadow on
FontName "Arial"
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "a0(V)"
SrcPort 1
Points [95, 0; 0, 20]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "input u"
SrcPort 1
Points [305, 0; 0, -15]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "y = K*u"
DstPort 1
}
Line {
SrcBlock "V"
SrcPort 1
DstBlock "a0(V)"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "a1"
Ports [2, 1, 0, 0, 0]
Position [135, 280, 185, 315]
Orientation left
FontName "Arial"
ShowPortLabels off
MaskDisplay "plot(0,0,100,100,[100,0,100],[0,50,100]);dis"
"p(' K(u1)')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "a1"
Location [4, 42, 448, 157]
Open off
ScreenColor white
Block {
BlockType Inport
Name "V"
Position [20, 25, 40, 45]
ForegroundColor magenta
DropShadow on
FontName "Arial"
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "input u"
Position [20, 65, 40, 85]
DropShadow on
FontName "Arial"
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1, 0, 0, 0]
Position [370, 45, 385, 65]
FontName "Arial"
ShowName off
Inputs "2"
}
Block {
BlockType Fcn
Name "a1(V)"
Position [135, 25, 250, 45]
ForegroundColor magenta
FontName "Arial"
Expr "2*(u[1]/Lvg)"
}
Block {
BlockType Outport
Name "y = K*u"
Position [405, 45, 425, 65]
DropShadow on
FontName "Arial"
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "V"
SrcPort 1
DstBlock "a1(V)"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "y = K*u"
DstPort 1
}
Line {
SrcBlock "input u"
SrcPort 1
Points [305, 0; 0, -15]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "a1(V)"
SrcPort 1
Points [95, 0; 0, 15]
DstBlock "Product"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "b0"
Ports [2, 1, 0, 0, 0]
Position [355, 230, 410, 265]
FontName "Arial"
ShowPortLabels off
MaskDisplay "plot(0,0,100,100,[0,100,0],[0,50,100]);disp("
"'K(u1) ')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "b0"
Location [4, 42, 452, 165]
Open off
ScreenColor white
Block {
BlockType Inport
Name "V"
Position [15, 25, 35, 45]
ForegroundColor magenta
DropShadow on
FontName "Arial"
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "input u"
Position [15, 70, 35, 90]
DropShadow on
FontName "Arial"
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1, 0, 0, 0]
Position [370, 50, 385, 70]
FontName "Arial"
ShowName off
Inputs "2"
}
Block {
BlockType Fcn
Name "b0(V)"
Position [80, 25, 305, 45]
ForegroundColor magenta
FontName "Arial"
Expr "sigma_vg*sqrt(Lvg/u[1])*(u[1]/Lvg)^2"
}
Block {
BlockType Outport
Name "y = K*u"
Position [405, 50, 425, 70]
DropShadow on
FontName "Arial"
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "input u"
SrcPort 1
Points [310, 0; 0, -15]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "b0(V)"
SrcPort 1
Points [40, 0; 0, 20]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "y = K*u"
DstPort 1
}
Line {
SrcBlock "V"
SrcPort 1
DstBlock "b0(V)"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "b0 "
Ports [2, 1, 0, 0, 0]
Position [355, 120, 410, 155]
FontName "Arial"
ShowPortLabels off
MaskDisplay "plot(0,0,100,100,[0,100,0],[0,50,100]);disp("
"'K(u1) ')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "b0 "
Location [4, 42, 443, 165]
Open off
ScreenColor white
Block {
BlockType Inport
Name "V"
Position [15, 25, 35, 45]
ForegroundColor magenta
DropShadow on
FontName "Arial"
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "input u"
Position [15, 70, 35, 90]
DropShadow on
FontName "Arial"
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1, 0, 0, 0]
Position [360, 50, 375, 70]
FontName "Arial"
ShowName off
Inputs "2"
}
Block {
BlockType Fcn
Name "b0(V)"
Position [75, 25, 300, 45]
ForegroundColor magenta
FontName "Arial"
Expr "sigma_vg*sqrt(Lvg/u[1])*(u[1]/Lvg)^2"
}
Block {
BlockType Outport
Name "y = K*u"
Position [395, 50, 415, 70]
DropShadow on
FontName "Arial"
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "input u"
SrcPort 1
Points [300, 0; 0, -15]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "b0(V)"
SrcPort 1
Points [35, 0; 0, 20]
DstBlock "Product"
DstPort 1
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -