📄 wndlib1.mdl
字号:
Library {
Name "wndlib1"
Version 3.00
BlockDataTips on
BlockParametersDataTip on
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar off
StatusBar off
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Fri Mar 21 00:17:12 2003"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "Dutchroll"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Mon Mar 01 15:14:19 2004"
ModelVersionFormat "1.%<AutoIncrement:13>"
ConfigurationManager "none"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "wndlib1"
Location [24, 57, 469, 225]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "BLwind"
Ports [1, 1, 0, 0, 0]
Position [20, 31, 105, 79]
FontName "Arial"
FontSize 11
ShowPortLabels off
MaskType "Windprofile in Earth's boundary layer"
MaskDescription "Wind profile in Earth's boundary layer. Specify"
" magnitude, horizontal direction and vertical direction as a function of the "
"altitude (H). Input: state vector x, from the aircraft model. Output: [uw, vw"
", ww], resolved along aircraft's body-axes."
MaskHelp "eval('browse blwind')"
MaskPromptString "Wind speed function V(H) [m/s]:|Horizontal wind"
" direction function, psi_w(H) [deg]:|Vertical wind direction function, theta"
"_w(H) [deg]:"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskVariables "Vw=&1;psi_w=&2;theta_w=&3;"
MaskInitialization "blockname = gcb;\nVwblock = [blockname, '/Vw [m"
"//s]'];\npsiblock = [blockname,'/psi_w [rad]'];\nthetablock = [blockname,'/th"
"eta_w [rad]'];\n\nset_param(Vwblock,'Expr',Vw);\nset_param(psiblock,'Expr',[p"
"si_w,'*pi/180']);\nset_param(thetablock,'Expr',[theta_w,'*pi/180']);"
MaskDisplay "disp('Windprofile in\\nEarth''s boun-\\ndary la"
"yer');"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1*(u[1]^0.2545 - 0.4097)/1.3470|180|0"
System {
Name "BLwind"
Location [35, 74, 791, 564]
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 [20, 98, 50, 112]
FontName "Arial"
FontSize 11
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3, 0, 0, 0]
Position [415, 415, 420, 455]
BackgroundColor "black"
ShowName off
Outputs "3"
Port {
PortNumber 1
Name "psi"
TestPoint off
RTWStorageClass "Auto"
}
Port {
PortNumber 2
Name "theta"
TestPoint off
RTWStorageClass "Auto"
}
Port {
PortNumber 3
Name "phi"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Gain
Name "Gain"
Position [310, 348, 345, 382]
ShowName off
FontName "Arial"
FontSize 11
Gain "-1"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "ww"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Saturate
Name "H profile\nboundaries\n(0-300 m)"
Position [160, 95, 185, 115]
FontName "Arial"
FontSize 11
UpperLimit "300"
LowerLimit "0"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1, 0, 0, 0]
Position [235, 239, 240, 341]
ShowName off
FontName "Arial"
FontSize 11
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1, 0, 0, 0]
Position [415, 238, 420, 392]
ShowName off
FontName "Arial"
FontSize 11
Inputs "3"
DisplayOption "bar"
Port {
PortNumber 1
Name "[uw vw ww]'\n(Earth axes)"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Mux
Name "Mux3"
Ports [3, 1, 0, 0, 0]
Position [475, 85, 480, 125]
BackgroundColor "black"
ShowName off
FontName "Arial"
Inputs "3"
DisplayOption "none"
}
Block {
BlockType Selector
Name "Selector"
Position [95, 67, 125, 143]
ShowName off
FontName "Arial"
FontSize 11
Elements "12"
InputPortWidth "12"
}
Block {
BlockType Selector
Name "Selector1"
Position [130, 302, 160, 328]
ShowName off
FontName "Arial"
FontSize 11
Elements "2"
InputPortWidth "3"
Port {
PortNumber 1
Name "psi_w"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Selector
Name "Selector2"
Position [235, 397, 265, 473]
ShowName off
FontName "Arial"
FontSize 11
Elements "[7 8 9]"
InputPortWidth "12"
Port {
PortNumber 1
Name "[psi,theta,phi]"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Fcn
Name "Vw [m/s]"
Position [255, 62, 445, 78]
FontName "Arial"
FontSize 11
Expr "1*(u[1]^0.2545 - 0.4097)/1.3470"
}
Block {
BlockType Fcn
Name "Vw_hor"
Position [130, 254, 215, 276]
FontName "Arial"
FontSize 11
Expr "u[1]*cos(u[3])"
}
Block {
BlockType Fcn
Name "Vw_hor1"
Position [285, 255, 380, 275]
FontName "Arial"
FontSize 11
Expr "u[1]*cos(u[2]-pi)"
Port {
PortNumber 1
Name "uw"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Fcn
Name "Vw_hor2"
Position [285, 305, 380, 325]
FontName "Arial"
FontSize 11
Expr "u[1]*sin(u[2]-pi)"
Port {
PortNumber 1
Name "vw"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Fcn
Name "Vw_vert"
Position [130, 355, 215, 375]
FontName "Arial"
FontSize 11
Expr "u[1]*sin(u[3])"
}
Block {
BlockType Fcn
Name "psi_w [rad]"
Position [255, 97, 445, 113]
FontName "Arial"
FontSize 11
Expr "180*pi/180"
}
Block {
BlockType Reference
Name "rot x"
Ports [2, 1, 0, 0, 0]
Position [625, 327, 660, 358]
ShowName off
FontName "Arial"
FontSize 11
SourceBlock "fdctools/rot x"
SourceType "Rotation around X-axis"
}
Block {
BlockType Reference
Name "rot y"
Ports [2, 1, 0, 0, 0]
Position [560, 316, 595, 349]
ShowName off
FontName "Arial"
FontSize 11
SourceBlock "fdctools/rot y"
SourceType "Rotation around Y-axis"
}
Block {
BlockType Reference
Name "rot z"
Ports [2, 1, 0, 0, 0]
Position [495, 305, 530, 340]
ShowName off
FontName "Arial"
FontSize 11
SourceBlock "fdctools/rot z"
SourceType "Rotation around Z-axis"
}
Block {
BlockType SubSystem
Name "t"
Ports [0, 0, 0, 0, 0]
Position [12, 14, 179, 50]
ForegroundColor "blue"
DropShadow on
ShowName off
OpenFcn "browse blwind"
FontName "Arial"
FontSize 11
ShowPortLabels off
MaskDisplay "disp('Wind profile in Earth''s boundary\\nl"
"ayer. M.O. Rauw, March 2004')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "t"
Location [19, 102, 144, 192]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType Fcn
Name "theta_w [rad]"
Position [255, 137, 445, 153]
FontName "Arial"
FontSize 11
Expr "0*pi/180"
}
Block {
BlockType Outport
Name "[uw, vw, ww]' \n(Body axes)"
Position [695, 338, 725, 352]
FontName "Arial"
FontSize 11
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "x"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Selector"
DstPort 1
}
Branch {
Points [0, 330]
DstBlock "Selector2"
DstPort 1
}
}
Line {
Name "[uw vw ww]'\n(Earth axes)"
Labels [1, 0]
SrcBlock "Mux2"
SrcPort 1
DstBlock "rot z"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -25]
DstBlock "Vw_hor1"
DstPort 1
}
Branch {
Points [0, 25]
DstBlock "Vw_hor2"
DstPort 1
}
}
Line {
Name "vw"
FontName "Arial"
Labels [-1, 1]
SrcBlock "Vw_hor2"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
Name "uw"
FontName "Arial"
Labels [-1, 1]
SrcBlock "Vw_hor1"
SrcPort 1
DstBlock "Mux2"
DstPort 1
}
Line {
Name "ww"
FontName "Arial"
Labels [-1, 1]
SrcBlock "Gain"
SrcPort 1
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "Vw_hor"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Vw_vert"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "rot x"
SrcPort 1
DstBlock "[uw, vw, ww]' \n(Body axes)"
DstPort 1
}
Line {
SrcBlock "rot z"
SrcPort 1
DstBlock "rot y"
DstPort 1
}
Line {
SrcBlock "rot y"
SrcPort 1
DstBlock "rot x"
DstPort 1
}
Line {
SrcBlock "Vw [m/s]"
SrcPort 1
Points [10, 0]
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "psi_w [rad]"
SrcPort 1
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "theta_w [rad]"
SrcPort 1
Points [10, 0]
DstBlock "Mux3"
DstPort 3
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [20, 0; 0, 75; -400, 0; 0, 85]
Branch {
DstBlock "Vw_hor"
DstPort 1
}
Branch {
Points [0, 50]
Branch {
Points [0, 50]
DstBlock "Vw_vert"
DstPort 1
}
Branch {
DstBlock "Selector1"
DstPort 1
}
}
}
Line {
SrcBlock "H profile\nboundaries\n(0-300 m)"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "psi_w [rad]"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Vw [m/s]"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "theta_w [rad]"
DstPort 1
}
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "H profile\nboundaries\n(0-300 m)"
DstPort 1
}
Line {
Name "psi_w"
Labels [1, 0]
SrcBlock "Selector1"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
Name "psi"
Labels [2, 0]
SrcBlock "Demux1"
SrcPort 1
Points [50, 0; 0, -90]
DstBlock "rot z"
DstPort 2
}
Line {
Name "theta"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -