Model { Name "suspsscl" Version 2.00 SimParamPage Solver SampleTimeColors off WideVectorLines off PaperOrientation landscape StartTime "0.0" StopTime "2" Solver ode45 RelTol "1e-3" AbsTol "1e-6" 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" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg warning MinStepSizeMsg warning UnconnectedInputMsg warning UnconnectedOutputMsg warning UnconnectedLineMsg warning ConsistencyChecking off ZeroCross on 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 } System { Name "suspsscl" Location [166, 210, 619, 443] Open on ScreenColor white Block { BlockType StateSpace Name "Matrix\nGain" Position [240, 165, 270, 195] Orientation left A "[]" B "[]" C "[]" D "K" X0 "0" MaskType "Matrix Gain" MaskDescription "Matrix Gain." MaskHelp "Multiplies input vector by entered matrix " "to produce output vector (y=Au)." MaskPromptString "Gain matrix:" MaskStyleString "edit" MaskInitialization "K=@1; " MaskDisplay "disp('K')" MaskIconFrame on MaskIconOpaque on MaskIconRotate off MaskIconUnits autoscale MaskValueString "K" } Block { BlockType Mux Name "Mux" Position [335, 56, 370, 134] Inputs "5" } Block { BlockType Scope Name "Scope" Position [395, 20, 425, 50] Floating off Location [188, 365, 512, 604] Open off Grid on TickLabels on ZoomMode on TimeRange "auto" YMin "-0.0045 " YMax "0.0025 " SaveToWorkspace off SaveName "ScopeData" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Sum Name "Sum" Position [135, 57, 165, 88] Inputs "+-" } Block { BlockType SubSystem Name "Suspension\nModel" Position [225, 56, 285, 134] ShowPortLabels on System { Name "Suspension\nModel" Location [171, 119, 907, 463] Open on ScreenColor white Block { BlockType Inport Name "U" Position [55, 65, 75, 85] Port "1" PortWidth "-1" SampleTime "-1" } Block { BlockType Inport Name "W" Position [60, 240, 80, 260] Port "2" PortWidth "-1" SampleTime "-1" } Block { BlockType Gain Name "Damper 1" Position [365, 125, 395, 155] Orientation left Gain "b1" } Block { BlockType Gain Name "Damper 2" Position [220, 245, 250, 275] Gain "b2" } Block { BlockType Derivative Name "Derivative" Position [110, 235, 140, 265] } Block { BlockType Integrator Name "Integrator" Position [425, 70, 455, 100] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Integrator Name "Integrator1" Position [500, 70, 530, 100] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Integrator Name "Integrator2" Position [425, 180, 455, 210] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Integrator Name "Integrator3" Position [500, 180, 530, 210] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Integrator Name "Integrator4" Position [635, 25, 665, 55] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Gain Name "Mass 1" Position [355, 69, 395, 101] Gain "1/m1" } Block { BlockType Gain Name "Mass 2" Position [355, 181, 395, 209] Gain "1/m2" } Block { BlockType Gain Name "Spring 1" Position [365, 25, 395, 55] Orientation left Gain "k1" } Block { BlockType Gain Name "Spring 2" Position [220, 190, 250, 220] Gain "k2" } Block { BlockType Sum Name "Sum" Position [305, 69, 335, 101] Inputs "+--" } Block { BlockType Sum Name "Sum1" Position [305, 166, 335, 224] Inputs "++-++" } Block { BlockType Sum Name "Sum2" Position [565, 77, 595, 108] Inputs "+-" MaskIconFrame on MaskIconOpaque on MaskIconRotate off MaskIconUnits autoscale } Block { BlockType Sum Name "Sum3" Position [165, 187, 195, 218] Inputs "-+" MaskIconFrame on MaskIconOpaque on MaskIconRotate off MaskIconUnits autoscale } Block { BlockType Sum Name "Sum4" Position [165, 242, 195, 273] Inputs "+-" MaskIconFrame on MaskIconOpaque on MaskIconRotate off MaskIconUnits autoscale } Block { BlockType Sum Name "Sum5" Position [425, 122, 455, 153] Orientation left Inputs "+-" } Block { BlockType Outport Name "x1" Position [630, 215, 650, 235] Port "1" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "d/dt(x1)" Position [630, 270, 650, 290] Port "2" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "y1" Position [630, 85, 650, 105] Port "3" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "d/dt(y1)" Position [630, 160, 650, 180] Port "4" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "int(y1)" Position [685, 30, 705, 50] Port "5" OutputWhenDisabled held InitialOutput "0" } Line { SrcBlock "Integrator4" SrcPort 1 DstBlock "int(y1)" DstPort 1 } Line { SrcBlock "Integrator3" SrcPort 1 Points [15, 0] Branch { DstBlock "Sum2" DstPort 2 } Branch { Points [0, 115; -505, 0; 0, -115] DstBlock "Sum3" DstPort 1 } } Line { SrcBlock "Integrator1" SrcPort 1 Points [5, 0] Branch { DstBlock "Sum2" DstPort 1 } Branch { Points [0, 140] DstBlock "x1" DstPort 1 } } Line { SrcBlock "Sum5" SrcPort 1 Points [-10, 0] Branch { Points [0, 30] DstBlock "d/dt(y1)" DstPort 1 } Branch { DstBlock "Damper 1" DstPort 1 } } Line { SrcBlock "W" SrcPort 1 Points [5, 0] Branch { DstBlock "Derivative" DstPort 1 } Branch { Points [0, -40] DstBlock "Sum3" DstPort 2 } } Line { SrcBlock "Derivative" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { SrcBlock "U" SrcPort 1 Points [180, 0] Branch { Points [0, 120] DstBlock "Sum1" DstPort 3 } Branch { DstBlock "Sum" DstPort 1 } } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "Damper 2" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "Spring 2" DstPort 1 } Line { SrcBlock "Spring 2" SrcPort 1 DstBlock "Sum1" DstPort 4 } Line { SrcBlock "Damper 2" SrcPort 1 Points [5, 0; 0, -45] DstBlock "Sum1" DstPort 5 } Line { SrcBlock "Spring 1" SrcPort 1 Points [-85, 0; 0, 45] Branch { Points [0, 100] DstBlock "Sum1" DstPort 2 } Branch { DstBlock "Sum" DstPort 2 } } Line { SrcBlock "Sum2" SrcPort 1 Points [10, 0] Branch { Points [0, -55] Branch { DstBlock "Integrator4" DstPort 1 } Branch { DstBlock "Spring 1" DstPort 1 } } Branch { Labels [1, 0] DstBlock "y1" DstPort 1 } } Line { SrcBlock "Integrator" SrcPort 1 Points [10, 0] Branch { Points [5, 0] Branch { Points [0, 195] DstBlock "d/dt(x1)" DstPort 1 } Branch { DstBlock "Integrator1" DstPort 1 } } Branch { DstBlock "Sum5" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Mass 1" DstPort 1 } Line { SrcBlock "Mass 1" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Damper 1" SrcPort 1 Points [-70, 0] Branch { DstBlock "Sum" DstPort 3 } Branch { DstBlock "Sum1" DstPort 1 } } Line { SrcBlock "Integrator2" SrcPort 1 Points [10, 0] Branch { DstBlock "Sum5" DstPort 2 } Branch { Points [0, 95; -320, 0] DstBlock "Sum4" DstPort 2 } Branch { DstBlock "Integrator3" DstPort 1 } } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Mass 2" DstPort 1 } Line { SrcBlock "Mass 2" SrcPort 1 DstBlock "Integrator2" DstPort 1 } Annotation { Position [542, 184] Text "x2" } Annotation { Position [482, 187] Text "v2" } Annotation { Position [409, 188] Text "a2" } Annotation { Position [543, 75] Text "x1" } Annotation { Position [483, 77] Text "v1" } Annotation { Position [409, 75] Text "a1" } } } Block { BlockType Step Name "W" Position [175, 100, 205, 130] Time "0" Before "0" After "-.1" } Block { BlockType Step Name "r" Position [30, 50, 60, 80] Time "0" Before "0" After "0" } Line { SrcBlock "Suspension\nModel" SrcPort 3 Points [10, 0] Branch { Points [0, -60] DstBlock "Scope" DstPort 1 } Branch { DstBlock "Mux" DstPort 3 } } Line { SrcBlock "Suspension\nModel" SrcPort 5 DstBlock "Mux" DstPort 5 } Line { SrcBlock "Suspension\nModel" SrcPort 4 DstBlock "Mux" DstPort 4 } Line { SrcBlock "Suspension\nModel" SrcPort 2 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Suspension\nModel" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "W" SrcPort 1 DstBlock "Suspension\nModel" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Suspension\nModel" DstPort 1 } Line { SrcBlock "r" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Matrix\nGain" SrcPort 1 Points [-135, 0; 0, -100] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 Points [20, 0; 0, 85] DstBlock "Matrix\nGain" DstPort 1 } } }