modelInverseDoublePendulum3

Inverted double pendulum
Diagram of InverseDoublePendulum3

Extends from Modelica_LinearSystems2.Controller.Templates.Internal.PlantTemplate (MIMO plant template).

Information

Model of a simple inverted double pendulum system using Modelica_Controller.Examples.Components.InverseDoublePendulum. The physical Model is used in Modelica_LinearSystems2.Examples.StateSpace.inverseDoublePendulumController where it is being linearized an used as a base for linear controller design. The results are used to control the crane system in Modelica_Controller.Examples.InverseDoublePendulum.mo

Parameters

TypeNameDefaultDescription
Integern (from PlantTemplate)1System order
Integerm (from PlantTemplate)1Number of inputs
BooleanadditionalMeasurableOutputs (from PlantTemplate)trueEnable additional output vector of dimension l
Integerl (from PlantTemplate)1Number of measurable outputs
Modelica.Units.SI.Massm_trolley1Mass of trolley
Modelica.Units.SI.Massm_load4Mass of load on 2nd arm
Modelica.Units.SI.Lengthlength1Total length of double pendulum (i.e. length of each arm = length/2)
Modelica.Units.SI.Positions_start0.0Initial position of trolley relative to world
Modelica.Units.SI.Velocityv_start0.0Initial velocity of trolley relative to world
Modelica.Units.SI.Anglephi1_start90.0/180*piInitial rotation angle of 1st arm relative to trolley
Modelica.Units.SI.Anglephi2_start0Initial rotation angle of 2nd arm relative to 1st arm
Modelica.Units.SI.AngularVelocityw1_start0.0Initial angular velocity of 1st arm relative to trolley
Modelica.Units.SI.AngularVelocityw2_start0.0Initial angular velocity of 2nd arm relative to 1st arm
BooleancartDisturbancefalseTrue, if cart disturbance should be enabled
BooleanbodyDisturbancefalseTrue, if body disturbance should be enabled
BooleansecondAnglefalseInclude 2nd angle of double pendulum in output ym
RealpiModelica.Constants.pi

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutput[n]y (from PlantTemplate)
Modelica.Blocks.Interfaces.RealInput[m]u (from PlantTemplate)
Modelica.Blocks.Interfaces.RealOutput[l]ym (from PlantTemplate)
Modelica.Blocks.Interfaces.RealInputdist
Modelica.Blocks.Interfaces.RealInputdist2

Components

TypeNameDefaultDescription
Realdist1_s
Realdist2_v0
Realdist3_phi10
Realdist4_w10
Realdist5_phi20
Realdist6_w20
Components.InverseDoublePenduluminverseDoublePendulum
Modelica.Blocks.Routing.Multiplex6multiplex6
Modelica.Blocks.Routing.Multiplex3multiplex3
Modelica.Blocks.Routing.Multiplex2multiplex2