Simulation with Software Tools

Similar documents
Lectures & Excercises

Modeling and Simulation of Dynamical Systems

The Cantor Handbook. Alexander Rieder

Free Software Alternatives to Commercial Math Software

NAG at Manchester. Michael Croucher (University of Manchester)

Module 4. Computer-Aided Design (CAD) systems

Program Proposal for a Direct Converted Program. BS in COMPUTER SCIENCE

Isn t it Saturday? IMO Trainning Camp NUK, 2004_06_19 2

Lecture 1: What is MATLAB?

MatODE. Wouter Caarls and Erik Schuitema {w.caarls, December 21, 2011

Introduction to Octave/Matlab. Deployment of Telecommunication Infrastructures

Open Source Software for Higher Mathematics

MBS MODELLING WITH SIMMECHANICS: CASE STUDIES IN RESEARCH AND EDUCATION

Modelling and Simulation for Engineers

Cloth Simulation. COMP 768 Presentation Zhen Wei

MATLAB The first steps. Edited by Péter Vass

Towards Generic Models

MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras

Scientific Computing for Physical Systems. Spring semester, 2018

Tutorial - Exporting Models to Simulink

Hands-on Lab. LabVIEW Simulation Tool Kit

Introduction to Multi-body Dynamics

Introduction to Simulink

Thursday 1/8 1 * syllabus, Introduction * preview reading assgt., chapter 1 (modeling) * HW review chapters 1, 2, & 3

Program Changes Communications Engineering

Cloth Simulation. Tanja Munz. Master of Science Computer Animation and Visual Effects. CGI Techniques Report

Elementary Computing CSC /01/2015 M. Cheng, Computer Science 1

Introduction to Physical Modelling Rory Adams Senior Application Engineer

MathWorks Technology Session at GE Physical System Modeling with Simulink / Simscape

DAQ in MATLAB HANS-PETTER HALVORSEN,

Physically Based Modeling

JOINT DEGREE IN COMPUTER ENGINEERING AND MATHEMATICS

Solving the shallow-water equations by a pseudo-spectral method

System modeling using Simulink and Simscape

Numerical Methods in Engineering Sciences

ChE 400: Applied Chemical Engineering Calculations Tutorial 6: Numerical Solution of ODE Using Excel and Matlab

Introduction to GAP. (Groups, Algorithms, Programming) Henry Hutasoit, SSE RWTH Aachen Seminar Language in Scientific Computing

AC : MATHEMATICAL MODELING AND SIMULATION US- ING LABVIEW AND LABVIEW MATHSCRIPT

Physically based modelling Computer Graphics I February 27, 2003

Introduction to Scientific Computing Tool Scilab

Mass-Spring Systems. Last Time?

Introduction to Simulink. Todd Atkins

Figure 1: Control & Simulation Loop

ME 121 MATLAB Lesson 01 Introduction to MATLAB

Application 7.6A The Runge-Kutta Method for 2-Dimensional Systems

Introduction to MATLAB

Solving Optimal Control Problems with ACADO Toolkit

April 11, 2019 CONTEST DESCRIPTION. EVENT: IT Office Software Applications LEVEL: Secondary Post-Secondary

ENGR 253 LAB #1 - MATLAB Introduction

SIMULINK Tutorial. Select File-New-Model from the menu bar of this window. The following window should now appear.

System Design S.CS301

2018, Controllab Products B.V. Author: Ir. C. Kleijn, Ir. M. A. Groothuis. Disclaimer

A/D Converter. Sampling. Figure 1.1: Block Diagram of a DSP System

SimTK 1.5 Workshop Installation and Components. Jack Middleton September 25, 2008

Using MATLAB, SIMULINK and Control System Toolbox

Physics Tutorial 2: Numerical Integration Methods

LEARNING TO PROGRAM WITH MATLAB. Building GUI Tools. Wiley. University of Notre Dame. Craig S. Lent Department of Electrical Engineering

ROSE-HULMAN INSTITUTE OF TECHNOLOGY

John Hsu Nate Koenig ROSCon 2012

Introduction to the SageMath software

1 extrema notebook. November 25, 2012

Advanced Programming in Engineering Saurabh Srivastava, Thomas Weinhart Martin Robinson, and Stefan Luding MSM, CTW, UTwente, NL

Teaching Engineering Analysis Using VBA for Excel. Abstract. Introduction

An Introduction to MATLAB See Chapter 1 of Gilat

Simulation of Mechatronic Systems

DYNAMICS FOR ANIMATION. Rémi Ronfard, Animation, M2R MOSIG

Scientific Computing: Lecture 1

MIDDLEWARE A Brief Overview

NMT EE 589 & UNM ME 482/582 ROBOT ENGINEERING. Dr. Stephen Bruder NMT EE 589 & UNM ME 482/582

Modern techniques bring system-level modeling to the automation industry

Directions: You can view this Slide Show in full screen mode by following Palettes Slide Show Start Presentation (see below screen shot)

CURRICULUM VITAE: DI MARTIN BERNAUER. DI Martin Bernauer. Chemnitz University of Technology Faculty of Mathematics D Chemnitz Germany

An Educational Rigid-Body Dynamics Physics Engine TJHSST Senior Research Project Proposal Computer Systems Lab

The Department of Engineering Science The University of Auckland Welcome to ENGGEN 131 Engineering Computation and Software Development

Structure and Synthesis of Robot Motion

Topics in Computer Animation

MATLAB MATLAB mat lab funtool

Chemical Reaction Engineering - Part 4 - Integration Richard K. Herz,

Solving systems of nonlinear equations with arbitrary precision

FIS2VJ - Physics II

ANIMATION AS AN INTERACTIVE TOOL

Dr Richard Greenaway

2007 Maplesoft, a division of Waterloo Maple Inc.

VIBRATION ISOLATION USING A MULTI-AXIS ROBOTIC PLATFORM G.

Interactive Educational Software for Dynamic Systems Control

LAB #8 Numerical Methods

Application 2.4 Implementing Euler's Method

University of Alberta

SCILAB: Comparison with other mathematical interpreters

EE 350. Continuous-Time Linear Systems. Recitation 1. 1

Unlocking the Power of OPNET Modeler

INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX

CDA6530: Performance Models of Computers and Networks. Chapter 4: Using Matlab for Performance Analysis and Simulation

As CCS starts up, a splash screen similar to one shown below will appear.

AMS 27L LAB #1 Winter 2009

Scientific Computing with Octave. Octave, GNUPlot and Other Tools Dr. Michael Rakijas Benedict G. Archer Sept. 18, 1999

the bridge between Vehicle Component and ECU Development

CSCI 6906: Fundamentals of Computational Neuroimaging. Thomas P. Trappenberg Dalhousie University

ROC-HJ: Reachability analysis and Optimal Control problems - Hamilton-Jacobi equations

ECON 502 INTRODUCTION TO MATLAB Nov 9, 2007 TA: Murat Koyuncu

Transcription:

Seminar Modeling and Simulation of Dynamical Systems Presented by the IEEE Control Systems Society Santa Clara Valley Sunnyvale, 5 February 011 1 Session 5 Simulation with Software Tools Karl Mathia 1

Session 5: Software Tools Topics: Example: Simple Pendulum Dynamical model: Differential equation Discrete time Dynamics: numerical integration Software: Commercial Open source 3 Example: Simple Pendulum Dynamical model: differential equation Several methods available: Moment equation Force equation Lagrange s method Euler s method 4

Example: Simple Pendulum Moment equation Force equation 5 Example: Simple Pendulum Moment equation: With: 6 3

Example: Simple Pendulum Differential equation: =0 (unforced) As state equation: 1 ml () t ( k l () t m g sin( ()) t l M ()) in t k 1 g () t 0 sin( ()) t M (), in t 0 m m l l 7 Example: Simple Pendulum State equation: vector-valued, nonlinear function x, x x, u M 1 1 1 k 1 x () t 0 sin( x1( t)) x( t) in x () t 0 x () t ut () m ml 8 4

Example: Simple Pendulum Simulation of dynamics: num. integration Simple approximation: 9 Example: Simple Pendulum More sophisticated: Runge-Kutta 4 th order 10 5

Session 5: Software Tools Good news: We don t need to worry about numerical integration. There are many software packages available to perform such computations. Commercial SW and Open Source SW 11 Session 5: Software Tools Commercial Software: LabView (presented earlier) MathCad (presented earlier) Matlab (general) Simulink (graphical programming) Mathematica (general) Maple (general) SPICE (simulates electrical circuits) 1 6

Session 5: Software Tools Pendulum in Matlab: function xdot = pend(t, x) xdot(1,1) = x(); xdot() = -k/m*x() - w0_*sin(x(1)) + 1/(m*l^)*u; ------Calling Function-------- t = linspace (0.0, 5.0, 501); x0 = [pi-0.01; 0.0]; [tt,xa] = ode45(@pend,t,x0); % time axis in [s] % initial condition 13 Session 5: Software Tools Pendulum in Matlab: representations 14 7

Session 5: Software Tools Open Source Software: GNU Octave (emulates Matlab) Scilab (emulates Matlab) Maxima (symbolic processing) Python (scripting language) Bullet Physics Open Dynamics Engine and many other packages 15 Session 5: Software Tools Pendulum in GNU Octave: function xdot = pend(x, t) xdot(1,1) = x(); xdot() = -k/m*x() - w0_*sin(x(1)) + 1/(m*l^)*u; ------Calling Function-------- t = linspace (0.0, 5.0, 501); x0 = [pi-0.01; 0.0]; xa = lsode("pend", x0, t); % time axis in [s] % initial condition 16 8

Bullet Physics (Open Source) Software Development Kit (SDK), Library: Collision detection, rigid body dynamics, cloth Open source (Zlib lic.) C++ PlayStation 3, Xbox 360, Multi-core CPUs Animation Movies Computer Games 17 Bullet Physics: SDK, Library 01 : Destroying Los Angeles Remember: this is open source software! 18 9

Open Dynamics Engine Open source SDK: Simulating rigid body dynamics Advanced joints, collision detection with friction Simulating vehicles, objects in virtual reality environments, virtual creatures C/C++ API 19 Open Dynamics Engine Physics-based skater animation Youri Dimitrov, Cheng Zhang, 008 (http://www.cse.ohio-state.edu/~zhangche/788parent.htm) 0 10

Session 3: Simulation Annotated bibliography http://www.mathworks.com. Home page of Matlab, a "technical computing language." http://www.wolfram.com. Application for computations. http://www.gnu.org/software/octave. GNU Octave is a highlevel language, primarily intended for numerical computations. http://www.scilab.org. Home page of Scilab, free and open source software for numerical computation. http://bulletphysics.org/wordpress. Bullet Physics website with downloadable distribution, tutorials, documentation, demos. http://www.ode.org. ODE is an open source, high performance library for simulating rigid body dynamics. 1 Session 5: Software Tools Q & A 11

Program Welcome Session 1 Session Session 3 08:45 09:10am 09:10 10:00am 10:10 11:00am 11:10 1:00am Coffee and bagels, Seminar kickoff at 9:00am Mathematical models of dynamical systems Dr. P.K. Menon, Optimal Synthesis System Identification - Theory and Practice Dr. Mark B. Tischler, Ames Research Center Visualization and Virtual Environments Dr. Hadi Aggoune, Cogswell Polytech. College Lunch Session 4 Session 5 1:00 1:40pm 1:40 01:30pm 01:40 :30pm Sandwiches, sodas, discussions and product demos Applications of Hardware-in-the-Loop Simulators Christoph Wimmer, National Instruments Simulation with Software Tools Elliot English, Dr. Martin Aalund, Dr. Karl Mathia 3 Sponsors http://www.adi.com http://www.applimotion.com http://www.cogswell.edu http://www.ni.com http://www.willowgarage.com 4 1