Simulation & Modelling Systems Engineering Training Programme for DRDO Scientists at IAT, Pune 2 nd July 2003 Lecture-2: Simulation Types, Tools and Simulators.

Slides:



Advertisements
Similar presentations
1 1 Mechanical Design and Production Dept, Faculty of Engineering, Zagazig University, Egypt. Mechanical Design and Production Dept, Faculty of Engineering,
Advertisements

1.1 Designed and Presented by Dr. Ayman Elshenawy Elsefy Dept. of Systems & Computer Eng.. Al-Azhar University
Introduction to Programming in C++ John Galletly.
Getting started with Simulink An introductory tutorial ES205 Analysis and Design of Engineering Systems Rose-Hulman Institute of Technology © R. Layton.
© 2011 Xilinx, Inc. All Rights Reserved This material exempt per Department of Commerce license exception TSU Simulink Basics.
1 ICS103 Programming in C Lecture 5: Introduction to Functions.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
MotoHawk Training Model-Based Design of Embedded Systems.
Chapter 2- Visual Basic Schneider
1 A Tool for System Simulation: SIMULINK Can be used for simulation of various systems: – Linear, nonlinear; Input signals can be arbitrarily generated:
Design Realization lecture 23
Programming Languages Structure
SIMULINK Dr. Samir Al-Amer. SIMULINK SIMULINK is a power simulation program that comes with MATLAB Used to simulate wide range of dynamical systems To.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
HossamTalaat - MATLAB Course - KSU - 21/1/24 1 IEEE Student Branch - College of Engineering - KSU Getting started with Simulink By Prof. Hossam Talaat.
Simulink ® From Simulink® 7 Getting Started Guide.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Programmable Logic Controllers (PLCs) This course deals with PLCs, Programmable Logic Controllers. PLCs are the industrial computer/controllers that are.
© 2011 Xilinx, Inc. All Rights Reserved Intro to System Generator This material exempt per Department of Commerce license exception TSU.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 1 The Systems.
CS102 Introduction to Computer Programming
The Software Development Cycle Defining and understanding the problem.
VIRTUAL PROTOTYPING of ROBOTS DYNAMICS E. Tarabanov.
Upgrade to Real Time Linux Target: A MATLAB-Based Graphical Control Environment Thesis Defense by Hai Xu CLEMSON U N I V E R S I T Y Department of Electrical.
PROGRAMMING LANGUAGES Prof. Lani Cantonjos. PROGRAM - set of step-by-step instructions that tells or directs the computer what to do. PROGRAMMING LANGUAGE.
OBJECT ORIENTED SYSTEM ANALYSIS AND DESIGN. COURSE OUTLINE The world of the Information Systems Analyst Approaches to System Development The Analyst as.
Computational Physics Introduction 3/30/11. Goals  Calculate solutions to physics problems  All physics problems can be formulated mathematically. 
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
ECEN/MAE 3723 – Systems I MATLAB Lecture 2. Lecture Overview What is Simulink? How to use Simulink  Getting Start with Simulink  Building a model Example.
Chapter 12 Computer Programming. Chapter Contents Chapter 12: Computer Programming 2  Section A: Programming Basics  Section B: Procedural Programming.
1 ICS103 Programming in C Lecture 7: Introduction to Functions.
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
Principles of Software Development 1 Principles Of Software Design and Development Types of language / Choosing a language.
Problem Transient Response By: Matt Lausmann ME 114 Granda Assignment #3.
FEMA-MES SYSTEM. VERSION 2.0 ON LIVE LINUX PLATFORM Wacław PRZYBYŁO Jarosław KALINOWSKI.
Introduction to Matlab Module #9 Page 1 Introduction to Matlab Module #9 – Simulink Topics 1.Simulink Textbook Reading Assignments Practice Problems.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
Introduction to MATLAB for Engineers Third Edition William J. Palm III Chapter 10 Simulink PowerPoint to accompany Copyright © The McGraw-Hill Companies,
SIMULINK-Tutorial 1 Class ECES-304 Presented by : Shubham Bhat.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VII Introduction to SIMULINK Rajeev Madazhy
EE3417 – Introduction to Simulink
Simulink Simulink is a graphical extension to MATLAB for modeling and simulation of systems. In Simulink, systems are drawn on screen as block diagrams.
INTRODUCTION TO SIMULINK by Yasmin Hanum Md Thayoob & Aidil Azwin Zainul Abidin.
Program design and algorithm development We will consider the design of your own toolbox to be included among the toolboxes already available with your.
Simulink by Dr. Amin Danial Asham. References  MATLAB Help  Telemark University College - Department of Electrical Engineering, Information Technology.
Simulink  ? 1 Simulink  ( Simu lation and Link ) is an extension of Matlab Offers modeling, simulation, and analysis of dynamical systems; i.e., a system.
Oman College of Management and Technology Course – MM Topic 7 Production and Distribution of Multimedia Titles CS/MIS Department.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
A computer contains two major sets of tools, software and hardware. Software is generally divided into Systems software and Applications software. Systems.
S3-1 ADM703, Section 3, August 2005 Copyright  2005 MSC.Software Corporation SECTION 3 SUSPENSION SYSTEM.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
LECTURE 5 Nangwonvuma M/ Byansi D. Components, interfaces and integration Infrastructure, Middleware and Platforms Techniques – Data warehouses, extending.
Getting started with Simulink
Modelling & Simulation of Semiconductor Devices Lecture 1 & 2 Introduction to Modelling & Simulation.
Getting started with Simulink An introductory tutorial.
Linear Constant-Coefficient Difference Equations
- Graphical extension to MATLAB for modeling and simulation of systems
Computer Application in Engineering Design
Introduction to Computer CC111
ECEN/MAE 3723 – Systems I MATLAB Lecture 2.
MATLAB DENC 2533 ECADD LAB 9.
Chapter 1: Introduction to Computers and Programming
سیمولینک کنترل خطی در متلب
Fundamental Operation
Chapter 2- Visual Basic Schneider
Getting Started With Simulink
Introduction to Systems Analysis and Design Stefano Moshi Memorial University College System Analysis & Design BIT
Basic Concepts of Algorithm
Presentation transcript:

Simulation & Modelling Systems Engineering Training Programme for DRDO Scientists at IAT, Pune 2 nd July 2003 Lecture-2: Simulation Types, Tools and Simulators

Lecture Outline Software Simulation & Languages Concept of a Simulator. Engineering Simulators. Basic Philosophy of Simulator Building Examples of Software Simulators. Examples of Hardware Based Simulators.

Why Software Simulation? –Software simulation is usually a low cost, quick turn- around time option for most of the design cycles. –Ability to solve complex mathematical equations (e.g. CFD) enhances the utility of software simulation to the design & development process. –Availability of fast and powerful digital computers have rendered software simulation quite popular. –Pure software simulations can come fairly close to real system, as an aid in crucial decision making.

What is Software Simulation? –Software simulation pertains to solution of a purely mathematical model. –Software simulation generates system response to inputs, without actual product realization. –In involves writing a program that is executed on a computer, to create the ‘real’ situation. –Software simulations can be both “Offline” as well as “real-time” simulation.

Software Simulation Tools –Software simulation is carried out by programming a digital computer suitably. –Programming is usually carried out in a higher level language, either general purpose or special purpose. –Extensive graphic support is needed to set up a software simulation. –Operating System also plays an important role in setting up a software simulation.

Software Simulation Languages –General purpose simulation languages are usually not designed for specific needs of simulation. –FORTRAN, C, C++ etc. are examples of such general purpose languages which can be used for setting up a software simulation. –These are designed for many different applications and programming effort, to create a specific simulation, can be quite large. –However, these are highly portable across different computer hardware, Operating System & Compiler, resulting in cost-effective simulations.

Software Simulation Languages –Special purpose simulation languages are designed keeping in mind, specific needs of simulation. –These contain a library of pre-defined macros (or “tools”) which minimize overall programming effort. –CSMP is a popular language for continuous system simulation. –For discrete system models, GPSS, SIMLIB, ALGOL, SIMSCRIPT II, SIMULA, etc. are used. –Non-portability is usually the main drawback for these special purpose language, making them costly.

Software Simulation Languages –Another class of languages, called symbolic language, also find use in setting up simulations. –These provide a library of mathematical functions which can be put together to create a simulation. –MATLAB is one such symbolic language that has acquired significant popularity as a simulation language, mainly because of programming simplicity. –Provision of a variety of tool boxes in MATLAB has made it applicable to a large set of Engg. problems.

Software Simulation in CSMP Y = INTGRL(IC,x), Y(0) = IC Y = LIMIT(P1,P2,x) Y=STEP(P) Y = EXP(x) Y = ABS(x) Y = ALOG(x) Y = SIN(x) Y = COS(x) Y = SQRT(x) Y = AMAX1(x1, x2, …, xn) Y = AMIN1(x1, x2, …, xn) INCON – Initial Conditions CONST – Constant PARAM – Parameter TIMER – Time Interval PRINT – Printing Variables PRTPLT – Plotting Data TITLE – Output Heading LABEL – Intermediate Headings END – End of Program ENDJOB – Task Completion CSMP provides for following macros.

Example of CSMP Code Suspension System - (Step Response) M KD F X TITLE SUSPENSION SYSTEM PARAM D = (5.56,16.9,39.5,56.5) X2DOT = (1.0/M)*(K*F – K*X – D*XDOT) XDOT = INTGRL(0.0,X2DOT) X = INTGRL(0.0,XDOT) CONST M = 2.0, F = 1.0, K = TIMER DELT=0.005, FINTIM=1.5, PRDEL=0.05, OUTDEL=0.05 PRINT X, XDOT, X2DOT PRTPLT X LABEL DISPLACE. VS. TIME END STOP

Software Simulation in SIMULINK Discrete: Unit Delay, Integrator, 0 Order Hold, 1 st Order Hold, DTF, DSS, Dfilter, Dzero-Pole Sources: Constant, Signal Generator, Step, Sine, Chirp, Clock, File, Random No. Linear: Gain, Sum, Integrator, TFunction, State-Space, Zero- Pole, Derivative, Dot Product Tool Boxes: Communication, DSP, Control, Fuzzy, System ID, NNET, StateFlow, NCD Connections: In, Out, Mux, Demux, From, Goto, Data Store/Read, Memory, Enable, Trigger, Ground, Terminator, IC, Subsystem, Selector, Width Nonlinear: Abs, Math, Trig., Floor, MinMax, Product, Logic, Relation, Sign, Rate Limit, Saturation, Function, …. Etc. Sinks: Scope, X-Y Graph, Display, File, Stop SIMULINK provides following functional groups.

Example of SIMULINK Model Suspension System - (Step Response) M KD F X

Simulation in FORTRAN or C Suspension System - (Step Response) M KD F X Main Program Data Structures Data Communication Strategy Integration Subroutine Plotting Subroutine

Flight Simulation –Flight simulation pertains to solution and visualization of controlled aircraft motion. –There are many levels at which flight simulation is performed, depending on the need. –At the lowest end, we have “Design Simulation”, which is a purely mathematical exercise. It contains highly idealized sub-system models. –Next, is the Engineering Simulator, in which more accurate and detailed models of many sub-systems are available. However, no hardware is included.

Flight Simulation –“Iron Bird” simulation is the next level of flight simulation wherein a majority of sub-system hardware, excepting aircraft, are integrated with software models. –“Pilot-in-Loop” simulation caters for man-machine interface development and is usually carried out at number of stages. –In-Flight simulation is a technique used to check out new sub-system designs (especially Control Laws) on an existing proven aircraft. –Ground based Real Time Simulation, on a motion platform, is closest to “Flight Simulation”.

Summary of Software Simulation –Software simulation is a design tool that needs to be configured based on specific needs. –Computer, Operating System and Languages play an important role in software based simulations. –Simulator is the system that is capable of performing simulations as per the need. –Next part of lecture deals with simulator related issues.