⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fdcwind.mdl

📁 library of aircraft models to be used with Simulink
💻 MDL
📖 第 1 页 / 共 5 页
字号:
Model {
  Name			  "fdcwind"
  Version		  3.00
  SimParamPage		  "Solver"
  SampleTimeColors	  off
  InvariantConstants	  off
  WideVectorLines	  off
  ShowLineWidths	  off
  ShowPortDataTypes	  off
  StartTime		  "0.0"
  StopTime		  "50.0"
  SolverMode		  "Auto"
  Solver		  "ode45"
  RelTol		  "1e-3"
  AbsTol		  "auto"
  Refine		  "1"
  MaxStep		  "auto"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  on
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  on
  OutputSaveName	  "yout"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  SaveFormat		  "Matrix"
  LimitMaxRows		  off
  MaxRows		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  "warning"
  MinStepSizeMsg	  "warning"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  IntegerOverflowMsg	  "warning"
  UnnecessaryDatatypeConvMsg "none"
  Int32ToFloatConvMsg	  "warning"
  SignalLabelMismatchMsg  "none"
  ConsistencyChecking	  "off"
  ZeroCross		  on
  SimulationMode	  "normal"
  BlockDataTips		  on
  BlockParametersDataTip  off
  BlockAttributesDataTip  off
  BlockPortWidthsDataTip  off
  BlockDescriptionStringDataTip	off
  BlockMaskParametersDataTip off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  OptimizeBlockIOStorage  on
  BufferReuse		  on
  BooleanDataType	  off
  RTWSystemTargetFile	  "grt.tlc"
  RTWInlineParameters	  off
  RTWRetainRTWFile	  off
  RTWTemplateMakefile	  "grt_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  ExtModeMexFile	  "ext_comm"
  ExtModeBatchMode	  off
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "normal"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  on
  Created		  "Sat Mar 15 15:38:43 2003"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "campa"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sat Feb 28 19:47:13 2004"
  ModelVersionFormat	  "1.%<AutoIncrement:162>"
  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		    "fdcwind"
    Location		    [206, 128, 697, 580]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    AutoZoom		    on
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      " F4 Phantom "
      Ports		      [3, 3, 0, 0, 0]
      Position		      [245, 291, 300, 409]
      DropShadow	      on
      FontName		      "Arial"
      SourceBlock	      "airlib/B747"
      SourceType	      "General Nonlinear Aircraft Model"
      GM1		      "[4.8768   11.79576   49.23861   33895.4489   16"
"5680.954   189543.35   0   2982.7995  0   17690.1]"
      CD_wind		      "[0.0205  0.3   0  0  -0.1]"
      CL_wind		      "[0.1    3.75    1.8    0    0.4]"
      Cm_body		      "[0.025  -0.4   -2.7    0    -0.58]"
      CY_body		      "[0   -0.68   0     0     0.0160    0.095]"
      Cl_body		      "[0    -0.16    -0.34   0.13    -0.013    0.008]"
      Cn_body		      "[0    0.125   -0.036    -0.270     0.001   -0.0"
"66]"
      x0		      "[204.7539671696894 0.0395294 -0.00488392967079 "
" 0 0 0   0 0.0395294 0   -70 -20 6065.68]"
    }
    Block {
      BlockType		      Clock
      Name		      "Clock"
      Position		      [350, 40, 370, 60]
      DisplayTime	      off
      Decimation	      "10"
    }
    Block {
      BlockType		      Sin
      Name		      "Cosine"
      Position		      [25, 60, 55, 80]
      ForegroundColor	      "blue"
      Amplitude		      "1"
      Frequency		      "1"
      Phase		      "pi/2"
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "F4 Rearranged"
      Ports		      [3, 1, 0, 0, 0]
      Position		      [245, 97, 305, 223]
      DropShadow	      on
      ShowPortLabels	      on
      MaskDescription	      "  The first input contains the wind velocity an"
"d acceleration.\n  The second input contains external forces and moments in b"
"ody axis.\n  The third input contains the deflections of elevators, ailerons,"
" rudder\n  and, flaps. For a list of outputs look under the mask.\n  NB : The"
" International measurement system (MKS) is adopted."
      MaskPromptString	      "Geometry and Mass : [cbar   b    S    Ix   Iy  "
" Iz   Jxy  Jxz  Jyz  m]|Aerodynamic D-Force Coefficients : [CD0 CDa CDq CDde "
"CDih]|Aerodynamic L-Force Coefficients : [CL0 CLa CLq CLde CLih]|Aerodynamic "
"Y-Moment Coefficients : [Cm0 Cma Cmq Cmde Cmih]|Aerodynamic Y-Force Coefficie"
"nts : [CY0 CYb CYp CYr CYda CYdr]|Aerodynamic X-moment Coefficients : [Cl0 Cl"
"b Clp Clr Clda Cldr]|Aerodynamic Z-moment Coefficients : [Cn0 Cnb Cnp Cnr Cnd"
"a Cndr]|Initial Condition x0 [v alpha beta p q r psi theta phi xe ye H]"
      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	      "GM1=@1;CD_wind=@2;CL_wind=@3;Cm_body=@4;CY_body"
"=@5;Cl_body=@6;Cn_body=@7;x0=@8;"
      MaskInitialization      "AM=zeros(6,19);\nAM(1,[1 2 9 11 12])=reshape(CD"
"_wind,1,5);\nAM(3,[1 2 9 11 12])=reshape(CL_wind,1,5);\nAM(5,[1 2 9 11 12])=r"
"eshape(Cm_body,1,5);\nAM(2,[1 5 8 10 13 14])=reshape(CY_body,1,6);\nAM(4,[1 5"
" 8 10 13 14])=reshape(Cl_body,1,6);\nAM(6,[1 5 8 10 13 14])=reshape(Cn_body,1"
",6);\n\nIx=GM1(4);Iy=GM1(5);Iz=GM1(6);\nJxy=GM1(7);Jxz=GM1(8);Jyz=GM1(9);\n\n"
"detI = Ix*Iy*Iz - 2*Jxy*Jxz*Jyz - Ix*Jyz^2 - Iy*Jxz^2 - Iz*Jxy^2;\nI1   = Iy*"
"Iz - Jyz^2;I2   = Jxy*Iz + Jyz*Jxz;\nI3   = Jxy*Jyz + Iy*Jxz;I4   = Ix*Iz - J"
"xz^2;\nI5   = Ix*Jyz + Jxy*Jxz;I6   = Ix*Iy - Jxy^2;\n\nPl  = I1/detI; Pm = I"
"2/detI; Pn = I3/detI;\nPpp = -(Jxz*I2 - Jxy*I3)/detI;Ppq = (Jxz*I1 - Jyz*I2 -"
" (Iy-Ix)*I3)/detI;\nPpr = -(Jxy*I1 + (Ix-Iz)*I2 - Jyz*I3)/detI;Pqq = (Jyz*I1 "
"- Jxy*I3)/detI;\nPqr = -((Iz-Iy)*I1 - Jxy*I2 + Jxz*I3)/detI;Prr = -(Jyz*I1 - "
"Jxz*I2)/detI;\n\nQl  = I2/detI; Qm = I4/detI; Qn = I5/detI;\nQpp = -(Jxz*I4 -"
" Jxy*I5)/detI;Qpq = (Jxz*I2 - Jyz*I4 - (Iy-Ix)*I5)/detI;\nQpr = -(Jxy*I2 + (I"
"x-Iz)*I4 - Jyz*I5)/detI;Qqq = (Jyz*I2 - Jxy*I5)/detI;\nQqr = -((Iz-Iy)*I2 - J"
"xy*I4 + Jxz*I5)/detI;Qrr = -(Jyz*I2 - Jxz*I4)/detI;\n\nRl  = I3/detI; Rm = I5"
"/detI; Rn = I6/detI;\nRpp = -(Jxz*I5 - Jxy*I6)/detI;\nRpq = (Jxz*I3 - Jyz*I5 "
"- (Iy-Ix)*I6)/detI;\nRpr = -(Jxy*I3 + (Ix-Iz)*I5 - Jyz*I6)/detI;\nRqq = (Jyz*"
"I3 - Jxy*I6)/detI;\nRqr = -((Iz-Iy)*I3 - Jxy*I5 + Jxz*I6)/detI;\nRrr = -(Jyz*"
"I3 - Jxz*I5)/detI;\n\nGM2 = [  Pl   Pm   Pn   Ppp  Ppq  Ppr  Pqq  Pqr  Prr ;"
"\n               Ql  Qm   Qn   Qpp  Qpq  Qpr  Qqq  Qqr  Qrr ;\n              "
" Rl  Rm   Rn   Rpp  Rpq  Rpr  Rqq  Rqr  Rrr ];\n\nxfix=1;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "[4.8768   11.79576   49.23861   33895.4489   16"
"5680.954   189543.35   0   2982.7995  0   17690.1]|[0.0205  0.3   0  0  -0.1]"
"|[0.1    3.75    1.8    0    0.4]|[0.025  -0.4   -2.7    0    -0.58]|[0   -0."
"68   0     0     0.0160    0.095]|[0    -0.16    -0.34   0.13    -0.013    0."
"008]|[0    0.125   -0.036    -0.270     0.001   -0.066]|[204.7515252  0.03952"
"94 0   0 0 0   0 0.0395294 0   -70 -20 6065.68]"
      System {
	Name			"F4 Rearranged"
	Location		[114, 249, 960, 803]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "uw,vw,ww"
	  Position		  [320, 443, 350, 457]
	  ForegroundColor	  "blue"
	  Port			  "1"
	  PortWidth		  "6"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "extFM"
	  Position		  [215, 168, 245, 182]
	  Port			  "2"
	  PortWidth		  "6"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "Deflect"
	  Position		  [80, 333, 110, 347]
	  Port			  "3"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Aerodynamics"
	  Ports			  [4, 4, 0, 0, 0]
	  Position		  [190, 254, 280, 351]
	  FontName		  "Arial"
	  ShowPortLabels	  on
	  System {
	    Name		    "Aerodynamics"
	    Location		    [190, 638, 880, 908]
	    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		      [45, 205, 65, 225]
	      DropShadow	      on
	      FontName		      "Arial"
	      Port		      "1"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	      DataType		      "auto"
	      SignalType	      "auto"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "yad1"
	      Position		      [50, 60, 70, 80]
	      DropShadow	      on
	      NamePlacement	      "alternate"
	      FontName		      "Arial"
	      Port		      "2"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	      DataType		      "auto"
	      SignalType	      "auto"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Vw,aw,bw"
	      Position		      [45, 170, 65, 190]
	      DropShadow	      on
	      NamePlacement	      "alternate"
	      FontName		      "Arial"
	      Port		      "3"
	      PortWidth		      "3"
	      SampleTime	      "-1"
	      DataType		      "auto"
	      SignalType	      "auto"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "uaero"
	      Position		      [290, 120, 310, 140]
	      DropShadow	      on
	      FontName		      "Arial"
	      Port		      "4"
	      PortWidth		      "-1"
	      SampleTime	      "-1"
	      DataType		      "auto"
	      SignalType	      "auto"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux3"
	      Ports		      [2, 1, 0, 0, 0]
	      Position		      [190, 162, 195, 233]
	      BackgroundColor	      "red"
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Selector"
	      Position		      [530, 37, 575, 63]
	      ShowName		      off
	      Elements		      "[1:3]"
	      InputPortWidth	      "6"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Selector1"
	      Position		      [530, 67, 575, 93]
	      ShowName		      off
	      Elements		      "[4:6]"
	      InputPortWidth	      "6"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Selector2"
	      Position		      [120, 202, 170, 228]
	      ShowName		      off
	      Elements		      "[4:12]"
	      InputPortWidth	      "12"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "aero"
	      Ports		      [3, 1, 0, 0, 0]
	      Position		      [345, 107, 405, 153]
	      ShowName		      off
	      FontName		      "Arial"
	      ShowPortLabels	      off
	      MaskType		      "Aeromod"
	      MaskDescription	      "Aerodynamic model of the DHC-2 'Beaver'"
"."
	      MaskHelp		      "eval('fdchelp aeromod')"
	      MaskDisplay	      "disp('Aeromod\\n(General)')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      System {
		Name			"aero"
		Location		[47, 74, 789, 572]
		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, 80, 40, 100]
		  DropShadow		  on
		  FontName		  "Arial"
		  Port			  "1"
		  PortWidth		  "-1"
		  SampleTime		  "-1"
		  DataType		  "auto"
		  SignalType		  "auto"
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "uaero"
		  Position		  [20, 260, 40, 280]
		  DropShadow		  on
		  FontName		  "Arial"
		  Port			  "2"
		  PortWidth		  "-1"
		  SampleTime		  "-1"
		  DataType		  "auto"
		  SignalType		  "auto"
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "ydl"
		  Position		  [20, 170, 40, 190]
		  DropShadow		  on
		  FontName		  "Arial"
		  Port			  "3"
		  PortWidth		  "-1"
		  SampleTime		  "-1"
		  DataType		  "auto"
		  SignalType		  "auto"
		  Interpolate		  on
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "0"
		  Ports			  [0, 0, 0, 0, 0]
		  Position		  [505, 15, 650, 45]
		  ForegroundColor	  "blue"
		  DropShadow		  on
		  ShowName		  off
		  OpenFcn		  "fdchelp aeromod"
		  FontName		  "Arial"
		  ShowPortLabels	  off
		  MaskDisplay		  "disp('AEROMOD\\nM.O. Rauw, October "
"1997')"
		  MaskIconFrame		  on
		  MaskIconOpaque	  on
		  MaskIconRotate	  "none"
		  MaskIconUnits		  "autoscale"
		  System {
		    Name		    "0"
		    Location		    [99, 72, 274, 227]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    AutoZoom		    on
		  }
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux"
		  Ports			  [1, 4, 0, 0, 0]
		  Position		  [75, 52, 80, 123]
		  BackgroundColor	  "black"
		  ShowName		  off
		  FontName		  "Arial"
		  Outputs		  "[1 1 1 9]"
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux1"
		  Ports			  [1, 4, 0, 0, 0]
		  Position		  [75, 238, 80, 297]
		  BackgroundColor	  "black"
		  ShowName		  off
		  FontName		  "Arial"
		  Outputs		  "4"
		}
		Block {
		  BlockType		  Fcn
		  Name			  "Fcn"
		  Position		  [215, 70, 255, 90]
		  ShowName		  off
		  FontName		  "Arial"
		  Expr			  "u[1]^2"
		}
		Block {
		  BlockType		  Fcn
		  Name			  "Fcn1"
		  Position		  [215, 90, 255, 110]
		  ShowName		  off
		  FontName		  "Arial"
		  Expr			  "u[1]^3"
		}
		Block {
		  BlockType		  Fcn
		  Name			  "Fcn2"
		  Position		  [215, 130, 255, 150]
		  ShowName		  off
		  FontName		  "Arial"
		  Expr			  "u[1]^2"
		}
		Block {
		  BlockType		  Fcn

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -