📄 wndlib2.mdl
字号:
SrcBlock "tf1"
SrcPort 1
DstBlock "wg dot"
DstPort 1
}
Line {
SrcBlock "White Noise"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 50]
DstBlock "tf1"
DstPort 1
}
Branch {
DstBlock "tf"
DstPort 1
}
}
Annotation {
Position [516, 92]
VerticalAlignment top
FontName "Arial"
Text "`"
}
}
}
Block {
BlockType SubSystem
Name "wdryd2 "
Ports [1, 2, 0, 0, 0]
Position [195, 343, 270, 387]
FontName "Arial"
ShowName off
ShowPortLabels off
MaskType "wdryd2"
MaskDescription "Vertical Dryden filter with \ncoefficients "
"which vary with V"
MaskHelp "eval('fdchelp wdryd2')"
MaskPromptString "Scale length Lwg [m]:|Standard deviation "
"sigma_wg [m/s]:"
MaskStyleString "edit,edit"
MaskVariables "Lwg=@1;sigma_wg=@2;"
MaskDisplay "disp('Vertical\\nDryden filter\\nV~=const')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
MaskValueString "150|1"
System {
Name "wdryd2 "
Location [4, 42, 528, 436]
Open off
ScreenColor white
Block {
BlockType Inport
Name "V"
Position [25, 75, 45, 95]
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, 242, 125, 278]
FontName "Arial"
ShowName off
Inputs "+--"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1, 0, 0, 0]
Position [455, 240, 470, 260]
FontName "Arial"
ShowName off
Inputs "++"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1, 0, 0, 0]
Position [455, 90, 470, 110]
FontName "Arial"
ShowName off
Inputs "++"
}
Block {
BlockType RandomNumber
Name "White Noise"
Position [30, 240, 50, 260]
FontName "Arial"
Mean "0"
Variance "1"
Seed "20"
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "a0"
Ports [2, 1, 0, 0, 0]
Position [140, 340, 190, 375]
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, 444, 167]
Open off
ScreenColor white
Block {
BlockType Inport
Name "V"
Position [15, 30, 35, 50]
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 [365, 50, 380, 70]
FontName "Arial"
ShowName off
Inputs "2"
}
Block {
BlockType Fcn
Name "a0(V)"
Position [130, 30, 245, 50]
ForegroundColor magenta
FontName "Arial"
Expr "(u[1]/Lwg)^2"
}
Block {
BlockType Outport
Name "y = K*u"
Position [400, 50, 420, 70]
DropShadow on
FontName "Arial"
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "V"
SrcPort 1
DstBlock "a0(V)"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "y = K*u"
DstPort 1
}
Line {
SrcBlock "a0(V)"
SrcPort 1
Points [95, 0; 0, 15]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "input u"
SrcPort 1
Points [305, 0; 0, -15]
DstBlock "Product"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "a1"
Ports [2, 1, 0, 0, 0]
Position [140, 285, 190, 320]
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, 443, 159]
Open off
ScreenColor white
Block {
BlockType Inport
Name "V"
Position [15, 30, 35, 50]
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 [365, 50, 380, 70]
FontName "Arial"
ShowName off
Inputs "2"
}
Block {
BlockType Fcn
Name "a1(V)"
Position [130, 30, 245, 50]
ForegroundColor magenta
FontName "Arial"
Expr "2*(u[1]/Lwg)"
}
Block {
BlockType Outport
Name "y = K*u"
Position [400, 50, 420, 70]
DropShadow on
FontName "Arial"
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
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
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "y = K*u"
DstPort 1
}
Line {
SrcBlock "V"
SrcPort 1
DstBlock "a1(V)"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "b0"
Ports [2, 1, 0, 0, 0]
Position [355, 235, 410, 270]
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, 445, 169]
Open off
ScreenColor white
Block {
BlockType Inport
Name "V"
Position [20, 30, 40, 50]
ForegroundColor magenta
DropShadow on
FontName "Arial"
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "input u"
Position [20, 75, 40, 95]
DropShadow on
FontName "Arial"
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1, 0, 0, 0]
Position [370, 55, 385, 75]
FontName "Arial"
ShowName off
Inputs "2"
}
Block {
BlockType Fcn
Name "b0(V)"
Position [85, 30, 310, 50]
ForegroundColor magenta
FontName "Arial"
Expr "sigma_wg*sqrt(Lwg/u[1])*(u[1]/Lwg)^2"
}
Block {
BlockType Outport
Name "y = K*u"
Position [405, 55, 425, 75]
DropShadow on
FontName "Arial"
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "V"
SrcPort 1
DstBlock "b0(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 "b0(V)"
SrcPort 1
Points [35, 0; 0, 20]
DstBlock "Product"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "b0 "
Ports [2, 1, 0, 0, 0]
Position [355, 125, 410, 160]
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, 446, 156]
Open off
ScreenColor white
Block {
BlockType Inport
Name "V"
Position [20, 20, 40, 40]
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 "b0(V)"
Position [85, 20, 310, 40]
ForegroundColor magenta
FontName "Arial"
Expr "sigma_wg*sqrt(Lwg/u[1])*(u[1]/Lwg)^2"
}
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 "b0(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 "b0(V)"
SrcPort 1
Points [35, 0; 0, 20]
DstBlock "Product"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "b1"
Ports [2, 1, 0, 0, 0]
Position [355, 180, 410, 215]
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 "b1"
Location [4, 42, 444, 167]
Open off
ScreenColor white
Block {
BlockType Inport
Name "V"
Position [15, 30, 35, 50]
ForegroundColor magenta
DropShadow on
FontName "Arial"
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Inport
Name "input u"
Position [15, 75, 35, 95]
DropShadow on
FontName "Arial"
Port "2"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1, 0, 0, 0]
Position [365, 55, 380, 75]
FontName "Arial"
ShowName off
Inputs "2"
}
Block {
BlockType Fcn
Name "b0(V)"
Position [80, 30, 305, 50]
ForegroundColor magenta
FontName "Arial"
Expr "sigma_wg*sqrt(3*Lwg/u[1])*(u[1]/Lwg)"
}
Block {
BlockType Outport
Name
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -