Introduction to Modelling and Simulation

Similar documents
Planning and Scheduling of batch processes. Prof. Cesar de Prada ISA-UVA

Feedback Basics. David M. Auslander Mechanical Engineering University of California at Berkeley. copyright 1998, D.M. Auslander

Modeling and Analysis of Dynamic Systems

Session-Based Queueing Systems

Computer Science, Informatik 4 Communication and Distributed Systems. Simulation. Discrete-Event System Simulation. Dr.

ISE/OR 762 Stochastic Simulation Techniques

INC 693, 481 Dynamics System and Modelling: Introduction to Modelling Dr.-Ing. Sudchai Boonto Assistant Professor

Process Control Hardware Fundamentals

Ways to study a system System

AC&ST AUTOMATIC CONTROL AND SYSTEM THEORY SYSTEMS AND MODELS. Claudio Melchiorri

Introduction to Process Control

DESIGN OF FUZZY ESTIMATOR TO ASSIST FAULT RECOVERY IN A NON LINEAR SYSTEM K.

Development of Dynamic Models. Chapter 2. Illustrative Example: A Blending Process

Theoretical Models of Chemical Processes

Slides 9: Queuing Models

Discrete-event simulations

Mathematical Modeling of Chemical Processes. Aisha Osman Mohamed Ahmed Department of Chemical Engineering Faculty of Engineering, Red Sea University

Simulation & Modeling Event-Oriented Simulations

Modeling and Control Overview

Stéphane Lafortune. August 2006

Alireza Mousavi Brunel University

Waiting Line Models: Queuing Theory Basics. Metodos Cuantitativos M. En C. Eduardo Bustos Farias 1

An object-oriented design process. Weather system description. Layered architecture. Process stages. System context and models of use

Discrete Event Systems

Real-time Systems: Scheduling Periodic Tasks

CHAPTER 22 GEOGRAPHIC INFORMATION SYSTEMS

Industrial Automation (Automação de Processos Industriais)

Queuing Theory. The present section focuses on the standard vocabulary of Waiting Line Models.

Towards a formal description of models and workflows

Queuing Analysis. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall

ELG4112. Electromechanical Systems and Mechatronics

Queuing Theory. Using the Math. Management Science

Basic Queueing Theory

ISM Evolution. Elscolab. Nederland BV

Subject: Introduction to Process Control. Week 01, Lectures 01 02, Spring Content

Network Analysis of Fuzzy Bi-serial and Parallel Servers with a Multistage Flow Shop Model

SWGDRUG GLOSSARY. Independent science-based organization that has the authority to grant

1.2. Introduction to Modeling. P (t) = r P (t) (b) When r > 0 this is the exponential growth equation.

Modeling of Material Flow Problems

INTRODUCTION TO THE SIMULATION OF ENERGY AND STORAGE SYSTEMS

5. Coupling of Chemical Kinetics & Thermodynamics

Discrete-time linear systems

HELLA AGLAIA MOBILE VISION GMBH

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

Using Neural Networks for Identification and Control of Systems

Training Path FNT IT Infrastruktur Management

A SYSTEM VIEW TO URBAN PLANNING: AN INTRODUCTION

Modeling and Experimentation: Compound Pendulum

The simplified model now consists only of Eq. 5. Degrees of freedom for the simplified model: 2-1

HACCP Concept. Overview of HACCP Principles. HACCP Principles. Preliminary Tasks Development of the HACCP Plan

Management of intermodal container terminals using feedback control

SoSe 2018 M. Werner 2 / 29 osg.informatik.tu-chemnitz.de

Lecture 6: Time-Dependent Behaviour of Digital Circuits

5/15/18. Operations Research: An Introduction Hamdy A. Taha. Copyright 2011, 2007 by Pearson Education, Inc. All rights reserved.

System Model. Real-Time systems. Giuseppe Lipari. Scuola Superiore Sant Anna Pisa -Italy

Chap 4. Software Reliability

Overview of HACCP Principles. OFFICE OF THE TEXAS STATE CHEMIST Texas Feed and Fertilizer Control Service Agriculture Analytical Service

Compact Orifice FlowMeter

Systems Simulation Chapter 6: Queuing Models

MECHANICAL ENGINEERING (ME)

LABORATORY MANAGEMENT PLAN (LMP) TABLE OF CONTENTS 4. UNIVERSITY OF PITTSBURGH LMP PART I CHEMICAL WASTE REMOVAL FROM LABORATORIES...

Slides 12: Output Analysis for a Single Model

Modeling Basics: 4. Numerical ODE Solving In Excel 5. Solving ODEs in Mathematica

Digitalization in Shipping

Advanced Chemical Reaction Engineering Prof. H. S. Shankar Department of Chemical Engineering IIT Bombay. Lecture - 03 Design Equations-1

Modeling with First-Order Equations

Dynamic Modeling. For the mechanical translational system shown in Figure 1, determine a set of first order

EE C128 / ME C134 Feedback Control Systems

Use of Differential Equations In Modeling and Simulation of CSTR

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER I EXAMINATION MH4702/MAS446/MTH437 Probabilistic Methods in OR

Identification of Non-linear Dynamical Systems

Steve Pietersen Office Telephone No

Traffic Flow Theory & Simulation

Construction Operation Simulation

A First Course on Kinetics and Reaction Engineering Example 23.1

CHAPTER 7 MODELING AND CONTROL OF SPHERICAL TANK LEVEL PROCESS 7.1 INTRODUCTION

CEE 271: Applied Mechanics II, Dynamics Lecture 1: Ch.12, Sec.1-3h

On the problem of control and observation: a general overview

بسمه تعالي کنترل صنعتي 2 دکتر سید مجید اسما عیل زاده گروه کنترل دانشکده مهندسي برق دانشگاه علم و صنعت ایران پاییس 90

Development of Dynamic Models. Chapter 2. Illustrative Example: A Blending Process

Basic Procedures for Common Problems

Process Control and Instrumentation Prof. D. Sarkar Department of Chemical Engineering Indian Institute of Technology, Kharagpur

STATE OF COLORADO DESIGN CRITERIA FOR POTABLE WATER SYSTEMS WATER QUALITY CONTROL DIVISION. Price: $5.00. Revised March 31, 1997

7. Queueing Systems. 8. Petri nets vs. State Automata

Name: October 24, 2014 ID Number: Fall Midterm I. Number Total Points Points Obtained Total 40

YORK UNIVERSITY FACULTY OF ARTS DEPARTMENT OF MATHEMATICS AND STATISTICS MATH , YEAR APPLIED OPTIMIZATION (TEST #4 ) (SOLUTIONS)

Integrated Dynamic Decision Analysis: a method for PSA in dynamic process system

Advanced Computer Networks Lecture 3. Models of Queuing

Intelligent Sensor Management for Brewing Processes

CSE 4201, Ch. 6. Storage Systems. Hennessy and Patterson

Drug Analysis Service. Training Manual

Control Synthesis of Discrete Manufacturing Systems using Timed Finite Automata

The prediction of passenger flow under transport disturbance using accumulated passenger data

Paper Reference. Paper Reference(s) 6684/01 Edexcel GCE Statistics S2 Advanced/Advanced Subsidiary. Friday 23 May 2008 Morning Time: 1 hour 30 minutes

Basic Analysis of Data

AUTOMATIC CONTROL COMMUNICATION SYSTEMS LINKÖPINGS UNIVERSITET AUTOMATIC CONTROL COMMUNICATION SYSTEMS LINKÖPINGS UNIVERSITET

Magnetron Sputter Coater Design Software. The most important thing we build is trust. Probe and perfect magnetron design with Opera

Bangladesh Weather and Climate Services Regional Project (BWCSRP)

CHE302 LECTURE V LAPLACE TRANSFORM AND TRANSFER FUNCTION. Professor Dae Ryook Yang

FIRE DEPARMENT SANTA CLARA COUNTY

Transcription:

Introduction to Modelling and Simulation Prof. Cesar de Prada Dpt. Systems Engineering and Automatic Control EII, University of Valladolid, Spain prada@autom.uva.es

Digital simulation Methods and tools oriented to imitate or predict the responses of a systems against certain changes or stimulus using a computer. Modern name: digital twins

Modelling and Simulation Capture the behaviour of key variables of a process by means of mathematical relations and solve them in a computer with a specific purpose dx = dt y = f (x, u, p) g(x, u) Process Model Simulation 3

Aims of the simulation Study of a process, what if? analysis Design (process, control, ) Testing a control system before actual implementation in the plant Personnel training Operation optimization Essays in a virtual plant.. Decision support Digital Twin (real-time, simulation fed with plant data running in parallel to the real process) 4

Advantages of using simulation Performs changes that, if implemented in the process, will be Very costly, Too slow / fast dangerous, etc. Reproduces the experiment as many times as desired under the same conditions Saves time Provides safety Allows sensitivity studies Provides a model that can be used for many purposes Allows experimenting with systems that are not built yet 5

Simulation environment Training Optimization, Calibration,.. Control, design,.. Models Hardware, software Numerical methods 6

Models Simulation is based on mathematical models of the processes. Mathematical models are set of equations relating the variables of a process and being able to provide an adequate representation of its behaviour. They are always approximations of the real world Adequacy of a model depends on their intended use: It is a balance between accuracy in the representation of the real world and easiness in the mathematical handling of the model There are a wide variety of models according to the type of processes they represent and their aims. 7

Adequate representation y Proceso u time y m time Model + adequacy and facility of use in the intended application time 8

State space models d x(t) = f (x(t),u(t),t) dt y(t) = g(x, u(t), t) Manipulated variables and disturbances u x y Model responses x States 9

Continuous versus discrete event systems q h Continuous processes: Their variables evolve continuously in time and can have any value within a certain range Discrete event systems: Their variables only change values at certain time instants and they take values only from a discrete set of values 10

Continuous versus discrete event systems Continuous processes: Described usually by means of DAEs or PDEs. Main interest: Compute the trajectory of some variables Discrete events processes: Described usually as sequences of activities. Main interest: Statistical behavior of some variables 11

Discrete events simulation Oriented to describe and solve the evolution of processes described by a set of ordered activities (activity network), and provide tools for analyzing the statistical behavior of some variables Examples: Single objects Manufacturing (shoes, cars,..) Maintenance systems Offices Hospitals Services,. 12

Example: Telephone switchboard Calls arrive with a certain statistical distribution. If there is no line available, the call is retain waiting to be served. Which is the average waiting time? How many lines should be installed, so that the average waiting time is less than a given threshold? 13

Example: Manufacturing shopflow The products follow a set of stages, with a certain elapsed time in each machine, queuing to be treated until the next machine id free. Which is the average length of each queue? How many machines should be installed in parallel at each stage to keep the average queue length below a certain value? 14

Tuna canning factory 15

Time Main elements of discrete-events Sequence of tasks simulation Events that activate the tasks or are activated by the tasks Entities involved in the tasks Resources required, generated or consumed in the tasks Waiting queues, storage rooms, etc. 16

Main elements of discrete-events simulation Tasks: load, move, unload Entities: boxes Resources: People, trucks,.. Events: Boxes arrival, Green/Red light truck busy,... 17

Activity network Ordered sequence of tasks activated by time or event 18

Discrete-Events models Description of the set of logic relations governing the interactions among the systems elements Places Transitions Petri Nets GRAFCET Queues, state conditions, Resources Condition fulfilled 19

Discrete-events simulation Task network Boundary conditions Results Executed N times according to the statistical distribution given by the boundary conditions Results of the N simulations are analysed in order to infer its statistical properties 20

Software MicroSaint, Witness, ARENA SIMIO Animation Useful for debugging Important for presentation and explotation of the simulation Requires time and resources 21

Continuous processes 22

Static and dynamic models q q = kρ h h Static model: Gives relations among the variables corresponding to an equilibrium state Aρ d h d t = q kρ h Dynamic model: Gives relations among the variables over time 23

Dynamic response h q time 24

Static and dynamic models Static models: Describe systems in equilibrium Algebraic equations Design oriented Dynamic models in continuous time Describe the time evolution of a system ODEs, DAEs and PDEs General purpose use 25

Sampled data models Computer u(kt) D/A Process y(t) y(kt) A/D Discrete time models They relate the process variables at the sampling times kt Equations in differences y((k+1)t) = f( y(kt), u(kt) ) K = 0, 1, 2, 26

Methods to obtain models Using knowledge, nature laws, reasoning, Using experimentation and data analysis 27

First principles models There are obtained using knowledge on the system and reasoning based on the application of laws of nature (mass and energy balances, laws of the application, domain, ) There are based on a set of hypothesis on the system They have general validity if the hypothesis are respected Development of the models requires good knowledge of the system and good command of the physical laws. 28

Example: Tank Parameters q F A cross section ρ density, k constant h Mass conservation Accumulation= inflow q outflow F dm dt m dh A dt = qρ Fρ = Aρh = q k F h = k Non-linear differential equation h V = Ah Algebraic equation 29

Identification The model is obtained from input-output data collected from experiments, using some type of model fitting U t U Process Y Y t Model 30

Practical models + A practical model is always a mixture of knowledge and experimentation 31

Modelling / Simulation Under which conditions can the model be used? Model aims, precision, Coded for a certain computation Has been solved adequately? Hypothesis Modelling Parameterization Coding Experimentation Knowledge Experiments Simulation language All stages must be validated 32

Modelling methodology Knowledge of the process Modelling requires specific techniques as well as human and material resources time Aims, model type Hypothesis Model formulation Parameter estimation Model evaluation Explotation 33

Hypothesis c i q q c h h d Vc d t d V d t = qc i = q F Fc V F Perfect mixture = Ah c( t) dv dt F Plug flow h Ah V = ci ( t ) = ci ( t ) = ci ( t ) v Av F = q F V = Ah 34

Continuous model types Lump models Distributed parameters No-linear Linear Time Frequency. 35