statetest.mdl
来自「利用matalab编制的转子动力学计算软件。其中模型利用有限元建模」· MDL 代码 · 共 298 行
MDL
298 行
Model { Name "statetest" Version 3.00 SimParamPage "Solver" SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off ShowPortDataTypes off StartTime "0.0" StopTime "10" SolverMode "Auto" Solver "ode23tb" 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 on 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 "oneshot" 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 off Created "Mon Oct 25 15:14:19 1999" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" ModifiedDateFormat "%<Auto>" LastModifiedDate "Tue Oct 26 08:20:14 1999" ModelVersionFormat "1.%<AutoIncrement:4>" 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 "statetest" Location [324, 81, 824, 382] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType Constant Name "Constant" Position [40, 140, 70, 170] Value "0" } Block { BlockType Demux Name "Demux" Ports [1, 2, 0, 0, 0] Position [330, 91, 335, 129] BackgroundColor "black" ShowName off Outputs "2" } Block { BlockType Mux Name "Mux" Ports [4, 1, 0, 0, 0] Position [145, 49, 150, 171] ShowName off Inputs "4" DisplayOption "bar" } Block { BlockType Scope Name "Scope" Ports [1, 0, 0, 0, 0] Position [405, 54, 435, 86] Floating off Location [140, 428, 464, 667] Open on NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%<SignalLabel>" } Grid "on" TimeRange "auto" YMin "-1" YMax "1" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "Scope1" Ports [1, 0, 0, 0, 0] Position [405, 129, 435, 161] Floating off Location [491, 437, 815, 676] Open on NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%<SignalLabel>" } Grid "on" TimeRange "auto" YMin "-1" YMax "1" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Sin Name "Sine Wave" Position [40, 50, 70, 80] Amplitude "200" Frequency "2*pi" Phase "0" SampleTime "0" } Block { BlockType StateSpace Name "State-Space" Position [195, 93, 255, 127] A "A" B "B" C "C" D "D" X0 "0" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "State-Space" DstPort 1 } Line { SrcBlock "State-Space" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 Points [50, 0] DstBlock "Scope" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 Points [50, 0] DstBlock "Scope1" DstPort 1 } Line { SrcBlock "Sine Wave" SrcPort 1 Points [30, 0] Branch { DstBlock "Mux" DstPort 1 } Branch { Points [0, 30] DstBlock "Mux" DstPort 2 } } Line { SrcBlock "Constant" SrcPort 1 Points [30, 0] Branch { DstBlock "Mux" DstPort 4 } Branch { Points [0, -30] DstBlock "Mux" DstPort 3 } } Annotation { Position [296, 40] Text "Must load state space variables A,B,C,D first" } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?