📄 wndlib1.mdl
字号:
Labels [2, 0]
SrcBlock "Demux1"
SrcPort 2
Points [115, 0; 0, -95]
DstBlock "rot y"
DstPort 2
}
Line {
Name "phi"
Labels [2, 0]
SrcBlock "Demux1"
SrcPort 3
Points [180, 0; 0, -100]
DstBlock "rot x"
DstPort 2
}
Line {
Name "[psi,theta,phi]"
Labels [-1, 1]
SrcBlock "Selector2"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Annotation {
Position [275, 219]
ForegroundColor "red"
Text "Determine wind-speed components in Earth-fi"
"xed reference \nframe, given the total windspeed and wind direction:"
FontName "Arial"
FontSize 11
}
Annotation {
Position [595, 219]
ForegroundColor "red"
Text "Resolve the resulting windspeed vector alon"
"g the X,Y, and Z\naxes of the Body-fixed reference frame of the aircraft:"
FontName "Arial"
FontSize 11
}
Annotation {
Position [360, 37]
VerticalAlignment "top"
ForegroundColor "red"
Text "Wind velocity and direction as a function o"
"f the altitude:"
FontName "Arial"
FontSize 11
}
}
}
Block {
BlockType SubSystem
Name "Cwind"
Ports [1, 1, 0, 0, 0]
Position [20, 105, 105, 145]
FontName "Arial"
FontSize 11
ShowPortLabels off
MaskType "Constant 3D wind vector"
MaskDescription "Constant wind vector. Specify wind velocity, ho"
"rizontal wind direction, and vertical wind direction. Note: the horizontal wi"
"nd direction equals zero when the wind is blowing FROM the North! The vertica"
"l wind direction is positive when blowing upwards."
MaskHelp "eval('browse cwind')"
MaskPromptString "Windspeed [m/s]:|Horizontal wind direction [deg"
"]:|Vertical wind direction [deg]:"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskVariables "Vw=@1;psi_w_deg=@2;gamma_w_deg=@3;"
MaskInitialization "psi_w = psi_w_deg * pi/180;\ngamma_w = gamma_w_"
"deg * pi/180;"
MaskDisplay "disp('Constant\\n3D wind vector')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "15|180|0"
System {
Name "Cwind"
Location [25, 89, 812, 446]
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, 298, 50, 312]
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 [440, 285, 445, 325]
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 [335, 223, 370, 257]
ShowName off
FontName "Arial"
FontSize 11
Gain "-1"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "ww"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1, 0, 0, 0]
Position [105, 79, 110, 201]
BackgroundColor "black"
ShowName off
FontName "Arial"
FontSize 11
Inputs "3"
DisplayOption "none"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1, 0, 0, 0]
Position [260, 114, 265, 216]
ShowName off
FontName "Arial"
FontSize 11
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1, 0, 0, 0]
Position [440, 113, 445, 267]
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 Selector
Name "Selector1"
Position [155, 177, 185, 203]
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 [80, 267, 110, 343]
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 Constant
Name "Vw (const)"
Position [20, 91, 85, 109]
FontName "Arial"
FontSize 11
Value "Vw"
}
Block {
BlockType Fcn
Name "Vw_hor"
Position [155, 129, 240, 151]
FontName "Arial"
FontSize 11
Expr "u[1]*cos(u[3])"
}
Block {
BlockType Fcn
Name "Vw_hor1"
Position [310, 130, 405, 150]
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 [310, 180, 405, 200]
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 [155, 230, 240, 250]
FontName "Arial"
FontSize 11
Expr "u[1]*sin(u[3])"
}
Block {
BlockType Constant
Name "gamma_w (const)"
Position [20, 170, 85, 190]
FontName "Arial"
FontSize 11
Value "gamma_w"
}
Block {
BlockType Constant
Name "psi_w (const)"
Position [20, 131, 85, 149]
FontName "Arial"
FontSize 11
Value "psi_w"
}
Block {
BlockType Reference
Name "rot x"
Ports [2, 1, 0, 0, 0]
Position [655, 202, 690, 233]
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 [590, 191, 625, 224]
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 [520, 180, 555, 215]
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 [15, 14, 150, 47]
ForegroundColor "blue"
DropShadow on
ShowName off
OpenFcn "browse cwind"
FontName "Arial"
FontSize 11
ShowPortLabels off
MaskDisplay "disp('Constant wind vector\\nM.O. Rauw, Mar"
"ch 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 Outport
Name "[uw, vw, ww]' \n(Body axes)"
Position [725, 213, 755, 227]
FontName "Arial"
FontSize 11
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "rot x"
SrcPort 1
DstBlock "[uw, vw, ww]' \n(Body axes)"
DstPort 1
}
Line {
SrcBlock "Vw (const)"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "gamma_w (const)"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "psi_w (const)"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 50]
Branch {
Points [0, 50]
DstBlock "Vw_vert"
DstPort 1
}
Branch {
DstBlock "Selector1"
DstPort 1
}
}
Branch {
DstBlock "Vw_hor"
DstPort 1
}
}
Line {
SrcBlock "Vw_vert"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Vw_hor"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
Name "ww"
FontName "Arial"
Labels [-1, 1]
SrcBlock "Gain"
SrcPort 1
DstBlock "Mux2"
DstPort 3
}
Line {
Name "uw"
FontName "Arial"
Labels [-1, 1]
SrcBlock "Vw_hor1"
SrcPort 1
DstBlock "Mux2"
DstPort 1
}
Line {
Name "vw"
FontName "Arial"
Labels [-1, 1]
SrcBlock "Vw_hor2"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 25]
DstBlock "Vw_hor2"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "Vw_hor1"
DstPort 1
}
}
Line {
SrcBlock "rot y"
SrcPort 1
DstBlock "rot x"
DstPort 1
}
Line {
SrcBlock "rot z"
SrcPort 1
DstBlock "rot y"
DstPort 1
}
Line {
Name "[uw vw ww]'\n(Earth axes)"
Labels [1, 0]
SrcBlock "Mux2"
SrcPort 1
DstBlock "rot z"
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, -85]
DstBlock "rot z"
DstPort 2
}
Line {
Name "theta"
Labels [2, 0]
SrcBlock "Demux1"
SrcPort 2
Points [120, 0; 0, -90]
DstBlock "rot y"
DstPort 2
}
Line {
Name "phi"
Labels [2, 0]
SrcBlock "Demux1"
SrcPort 3
Points [185, 0; 0, -95]
DstBlock "rot x"
DstPort 2
}
Line {
Name "[psi,theta,phi]"
Labels [1, 0]
SrcBlock "Selector2"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "x"
SrcPort 1
DstBlock "Selector2"
DstPort 1
}
Annotation {
Position [610, 79]
ForegroundColor "red"
Text "Resolve the resulting windspeed vector alon"
"g the X,Y, and Z\naxes of the Body-fixed reference frame of the aircraft:"
FontName "Arial"
FontSize 11
}
Annotation {
Position [285, 79]
ForegroundColor "red"
Text "Determine wind-speed components in Earth-fi"
"xed reference \nframe, given the total windspeed and wind direction:"
FontName "Arial"
FontSize 11
}
}
}
Annotation {
Position [275, 107]
VerticalAlignment "top"
Text "<-- Constant wind (i.e. constant wind magnitude"
" and direction)"
FontName "Arial"
FontSize 11
}
Annotation {
Position [107, 2]
VerticalAlignment "top"
ForegroundColor "blue"
Text "FDC Toolbox - Wind library"
FontName "Times New Roman"
FontSize 14
FontWeight "bold"
}
Annotation {
Position [273, 37]
VerticalAlignment "top"
Text "<-- Wind profile in Earth's boundary layer. Spe"
"cify magnitude\nand direction of wind velocity as a function of altitude. \n("
"The Earth's boundary layer extends from 0 to 300 m)."
FontName "Arial"
FontSize 11
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -