Lecture 9 Modeling, Simulation, and Systems Engineering



Similar documents
Lecture 3 - Model-based Control Engineering

Echtzeittesten mit MathWorks leicht gemacht Simulink Real-Time Tobias Kuschmider Applikationsingenieur

Dynamic Process Modeling. Process Dynamics and Control

SECOND YEAR. Major Subject 3 Thesis (EE 300) 3 Thesis (EE 300) 3 TOTAL 3 TOTAL 6. MASTER OF ENGINEERING IN ELECTRICAL ENGINEERING (MEng EE) FIRST YEAR

Schnell und effizient durch Automatische Codegenerierung

Gasoline engines. Diesel engines. Hybrid fuel cell vehicles. Model Predictive Control in automotive systems R. Scattolini, A.

Research Methodology Part III: Thesis Proposal. Dr. Tarek A. Tutunji Mechatronics Engineering Department Philadelphia University - Jordan

dspace DSP DS-1104 based State Observer Design for Position Control of DC Servo Motor

MODELING, SIMULATION AND DESIGN OF CONTROL CIRCUIT FOR FLEXIBLE ENERGY SYSTEM IN MATLAB&SIMULINK

Software Development Principles Applied to Graphical Model Development

CONTROL SYSTEMS, ROBOTICS AND AUTOMATION Vol. XVI - Fault Accomodation Using Model Predictive Methods - Jovan D. Bošković and Raman K.

Product Development Flow Including Model- Based Design and System-Level Functional Verification

Introduction to Simulink & Stateflow. Coorous Mohtadi

Converting Models from Floating Point to Fixed Point for Production Code Generation

Master of Science (Electrical Engineering) MS(EE)

Introduction to MATLAB Gergely Somlay Application Engineer

Departments and Specializations

METHODOLOGICAL CONSIDERATIONS OF DRIVE SYSTEM SIMULATION, WHEN COUPLING FINITE ELEMENT MACHINE MODELS WITH THE CIRCUIT SIMULATOR MODELS OF CONVERTERS.

SYSTEMS, CONTROL AND MECHATRONICS

ELECTRICAL ENGINEERING

Entwicklung und Testen von Robotischen Anwendungen mit MATLAB und Simulink Maximilian Apfelbeck, MathWorks

Software Development with Real- Time Workshop Embedded Coder Nigel Holliday Thales Missile Electronics. Missile Electronics

Best Practices for Verification, Validation, and Test in Model- Based Design

Coursework for MS leading to PhD in Electrical Engineering. 1 Courses for Digital Systems and Signal Processing

Making model-based development a reality: The development of NEC Electronics' automotive system development environment in conjunction with MATLAB

Machine Learning with MATLAB David Willingham Application Engineer

Poznan University of Technology Faculty of Electrical Engineering

Caterpillar Automatic Code Generation

Introduction to Machine Learning and Data Mining. Prof. Dr. Igor Trajkovski

OpenFOAM Optimization Tools

2. Permanent Magnet (De-) Magnetization 2.1 Methodology

Virtual Prototyping of Aerospace Systems Using Integrated LMS Virtual.Lab and IMAGINE AMESim

FLUX / GOT-It Finite Element Analysis of electromagnetic devices Maccon GmbH

An Introduction to Applied Mathematics: An Iterative Process

MEL 807 Computational Heat Transfer (2-0-4) Dr. Prabal Talukdar Assistant Professor Department of Mechanical Engineering IIT Delhi

Thermal Modeling and Analysis of a Wind Turbine Generator

Masters of Science Program in Environmental and Renewable Energy Engineering

MASTER OF ENGINEERING Mechanical Engineering Program

Embedded Systems Engineering Certificate Program

Temperature Control Loop Analyzer (TeCLA) Software

Eli Levi Eli Levi holds B.Sc.EE from the Technion.Working as field application engineer for Systematics, Specializing in HDL design with MATLAB and

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

Interactive simulation of an ash cloud of the volcano Grímsvötn

Numerical Methods for Engineers

Is a Data Scientist the New Quant? Stuart Kozola MathWorks

College of Engineering Distance Education Graduate Degree Programs, Degree Requirements and Course Offerings

ME6130 An introduction to CFD 1-1

Evaluation Scheme Teaching Scheme. Theory Marks. Practical Marks Min for Passing ISE 10. Course code. Course. L T P Credits Min for Max Passing

Consulting, Engineering & Managed Service Provider

Applicazione di tecniche di controllo predittivo multivariabile ad impianti di produzione a Ciclo Combinato

What is Modeling and Simulation and Software Engineering?

Numerical Methods in MATLAB

Introduction to Engineering System Dynamics

Machine Learning and Data Mining. Regression Problem. (adapted from) Prof. Alexander Ihler

Simulation of Fluid-Structure Interactions in Aeronautical Applications

Ryan F. Schkoda, Ph.D. Postdoctoral Fellow Wind Turbine Drivetrain Testing Facility Charleston, SC

Neural Network Add-in

Customer Training Material. Lecture 2. Introduction to. Methodology ANSYS FLUENT. ANSYS, Inc. Proprietary 2010 ANSYS, Inc. All rights reserved.

NATIONAL SUN YAT-SEN UNIVERSITY

Verification by. Simulation. Verification by. Simulation. Verification by. Simulation / Model Check. Validation and Testing.

Trends in Embedded Software Engineering

Propulsion Gas Path Health Management Task Overview. Donald L. Simon NASA Glenn Research Center

Development of AUTOSAR Software Components within Model-Based Design

Theoretical Perspective

The details of the programme are given below. For a short description of the courses, Click here.

MathWorks Products and Prices North America Academic March 2013

Graduate Certificate in Systems Engineering

Why Adopt Model-Based Design for Embedded Control Software Development?

Dr. Raju Namburu Computational Sciences Campaign U.S. Army Research Laboratory. The Nation s Premier Laboratory for Land Forces UNCLASSIFIED

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

Evaluation of Real-time Emulators for Future Development of Fire Control Applications

Electrics & Electronics

Hybrid Modeling and Control of a Power Plant using State Flow Technique with Application

(!' ) "' # "*# "!(!' +,

Lecture 1. Introduction - Course mechanics History Modern control engineering. EE392m - Winter 2003 Control Engineering 1-1

IEEE Projects in Embedded Sys VLSI DSP DIP Inst MATLAB Electrical Android

Master of Science in Electrical Engineering Graduate Program:

Recurrent Neural Networks

BSEE Degree Plan Bachelor of Science in Electrical Engineering:

Introduction to the Finite Element Method (FEM)

NEURAL NETWORK FUNDAMENTALS WITH GRAPHS, ALGORITHMS, AND APPLICATIONS

The SAMANTA platform. Emeritus Expert SNECMA. Department Prognostic Health Monitoring Systems SNECMA

Time Response Analysis of DC Motor using Armature Control Method and Its Performance Improvement using PID Controller

Real-Time Systems Versus Cyber-Physical Systems: Where is the Difference?

Sanjeev Kumar. contribute

Real Time Simulation for Off-Road Vehicle Analysis. Dr. Pasi Korkealaakso Mevea Ltd., May 2015

Neural Network Design in Cloud Computing

Applied Computational Economics and Finance

Express Introductory Training in ANSYS Fluent Lecture 1 Introduction to the CFD Methodology

Online Tuning of Artificial Neural Networks for Induction Motor Control

Model-Based Design for Hybrid Electric Vehicle Systems

DCMS DC MOTOR SYSTEM User Manual

Module 6 Case Studies

Neural network software tool development: exploring programming language options

Model Based Systems Engineering for Aircraft Systems How does Modelica Based Tools Fit?

Performance Study based on Matlab Modeling for Hybrid Electric Vehicles

Industrial Automation course

Model Based System Engineering (MBSE) For Accelerating Software Development Cycle

Transcription:

Lecture 9 Modeling, Simulation, and Systems Engineering Development steps Model-based control engineering Modeling and simulation Systems platform: hardware, systems software. Control Engineering 9-1

Control Engineering Technology Science abstraction concepts simplified models Engineering building new things constrained resources: time, money, Technology repeatable processes Control platform technology Control engineering technology Control Engineering 9-2

Controls development cycle Analysis and modeling Control algorithm design using a simplified model System trade study - defines overall system design Simulation Detailed model: physics, or empirical, or data driven Design validation using detailed performance model System development Control application software Real-time software platform Hardware platform Validation and verification Performance against initial specs Software verification Certification/commissioning Control Engineering 9-3

Algorithms/Analysis Much more than real-time control feedback computations modeling identification tuning optimization feedforward feedback estimation and navigation user interface diagnostics and system self-test system level logic, mode change Control Engineering 9-4

Model-based Control Development System and software Controls analysis Conceptual Analysis Application code: Simulink Validation and verification Deployment Control design model: x(t+1) = x(t) + u(t) Detailed simulation model Hardware-in-theloop sim Physical plant Conceptual control algorithm: u = -k(x-x d ) Detailed control application: saturation, initialization, BIT, fault recovery, bumpless transfer Prototype controller Deployed controller Systems platform: Run-time code, OS Hardware platform Control Engineering 9-5

Controls Analysis Conceptual Analysis Data model x(t+1) Fault = x(t) model + u(t) Control design model: x(t+1) = x(t) + u(t) Identification & tuning Accomodation algorithm: Conceptual u = -k(x-x d control ) algorithm: u = -k(x-x d ) Application code: Simulink Detailed simulation model Detailed control application: saturation, initialization, BIT, fault recovery, manual/auto mode, bumpless transfer, startup/shutdown Control Engineering 9-6

The rest of the lecture Modeling and Simulation Deployment Platform Controls Software Development Control Engineering 9-7

Modeling in Control Engineering Control in a system perspective Physical system Measurement system Sensors Control computing Control handles Actuators Control analysis perspective Control computing Physical system Measurement model System model Control handle model Control Engineering 9-8

Models Why spend much time talking about models? Modeling and simulation could take 80% of control analysis effort. Model is a mathematical representations of a system Models allow simulating and analyzing the system Models are never exact Modeling depends on your goal A single system may have many models Large libraries of standard model templates exist A conceptually new model is a big deal (economics, biology) Main goals of modeling in control engineering conceptual analysis detailed simulation Control Engineering 9-9

Modeling approaches Controls analysis uses deterministic models. Randomness and uncertainty are usually not dominant. White box models: physics described by ODE and/or PDE Dynamics, Newton mechanics x & = f ( x, t) Space flight: add control inputs u and measured outputs y x& = f ( x, u, t) y = g( x, u, t) Control Engineering 9-10

Orbital mechanics example Newton s mechanics fundamental laws dynamics r v& = γm + Fpert( t) 3 r r& = v 1643-1736 r 1749-1827 Laplace computational dynamics (pencil & paper computations) deterministic model-based prediction v x & = f ( x, t) Control Engineering 9-11 x = r r r v v v 1 2 3 1 2 3

Sampled and continuous time Sampled and continuous time together Continuous time physical system + digital controller ZOH = Zero Order Hold A/D, Sample Control computing D/A, ZOH Sensors Physical system Actuators Control Engineering 9-12

Control Engineering 9-13 Servo-system modeling Mid-term problem First principle model: electro-mechanical + computer sampling Parameters follow from the specs m M F c b β g u gu I I T fi F y x c y x b Mx F x y c x y b y my I = + = = + + = + + + & & & && & & & &&, 0 ) ( ) ( ) ( ) ( β

Finite state machines TCP/IP State Machine Control Engineering 9-14

Hybrid systems Combination of continuous-time dynamics and a state machine Thermostat example Analytical tools are not fully established yet Simulation analysis tools are available Stateflow by Mathworks off x = 70 on x = 72 x& = Kx x 70 x = 75 x& = K ( h x 75 x) x Control Engineering 9-15

Include functions of spatial variables electromagnetic fields mass and heat transfer fluid dynamics structural deformations PDE models For controls simulation, model reduction step is necessary Usually done with FEM/CFD data Example: fit step response Example: sideways heat equation T inside =u 2 T T = k 2 t x T (0) = u; T y = x x= 1 x T (1) = 0 T outside =0 y heat flux Control Engineering 9-16

Simulation ODE solution dynamical model: x & = Euler integration method: Runge-Kutta method: ode45 in Matlab f ( x, t) x ( t + d ) = x( t) + d f x( t), t Can do simple problems by integrating ODEs Issues with modeling of engineered systems: ( ) stiff systems, algebraic loops mixture of continuous and sampled time state machines and hybrid logic (conditions) systems build of many subsystems large projects, many people contribute different subsystems Control Engineering 9-17

Simulation environment Simulink by Mathworks Matlab functions and analysis Stateflow state machines Block libraries Subsystem blocks developed independently Engineered for developing large simulation models Controller can be designed in the same environment Supports generation of run-rime control code Ptolemeus - UC Berkeley Control Engineering 9-18

Model development and validation Model development is a skill White box models: first principles Black box models: data driven Gray box models: with some unknown parameters Identification of model parameters necessary step Assume known model structure Collect plant data: special experiment or normal operation Tweak model parameters to achieve a good fit Control Engineering 9-19

First Principle Models - Aerospace Aircraft models Component and subsystem modeling and testing CFD analysis Wind tunnel tests to adjust models (fugde factors) Flight tests update aerodynamic tables and flight dynamics models NASA Langley 1998 HARV F/A-18 Airbus 380: $13B development Control Engineering 9-20

Step Response Model - Process Dynamical matrix control (DMC) Industrial processes measured outputs control inputs Control Engineering 9-21

Approximate Maps Analytical expressions are rarely sufficient in practice Models are computable off line pre-compute simple approximation on-line approximation Models contain data identified in the experiments nonlinear maps interpolation or look-up tables AI approximation methods Neural networks Fuzzy logic Direct data driven models Control Engineering 9-22

Empirical Models - Maps Aerospace and automotive have most developed modeling approaches Aerodynamic tables Engine maps turbines jet engines automotive - ICE Example TEF=Trailing Edge Flap Control Engineering 9-23

Empirical Models - Maps Process control mostly uses empirical models Process maps in semiconductor manufacturing Epitaxial growth (semiconductor process) process map for run-to-run control Control Engineering 9-24

Multivariable B-splines Regular grid in multiple variables Tensor product of B-splines Used as a basis of finite-element models y( u, v) = w j, k j, kb j( u) Bk ( v) Control Engineering 9-25

Neural Networks Any nonlinear approximator might be called a Neural Network RBF Neural Network Polynomial Neural Network B-spline Neural Network Wavelet Neural Network MPL - Multilayered Perceptron Nonlinear in parameters Works for many inputs 1 1 = w = + 1,0 + f w1, j y j, y j w2,0 f w j j y ( x) 2, j f ( x) 1 = 1 + e e x x y y=f(x) Linear in parameters x x j Control Engineering 9-26

Multi-Layered Perceptrons Network parameter computation training data set parameter identification y ( x) = F( x; θ ) Noninear LS problem V = j y ( j) F( x Iterative NLS optimization Levenberg-Marquardt Backpropagation ( j) ; θ ) variation of a gradient descent 2 min Y = [ (1) ( N ) y K y ] x (1) K x ( N ) Control Engineering 9-27

Neural Net application Internal Combustion Engine maps Experimental map: data collected in a steady state regime for various combinations of parameters 2-D table NN map approximation of the experimental map MLP was used in this example works better for a smooth surface spark advance RPM Control Engineering 9-28

Fuzzy Logic Function defined at nodes. Interpolation scheme Fuzzyfication/de-fuzzyfication = interpolation Linear interpolation in 1-D y( x) = j j y j µ ( x) j j µ ( x) j µ j ( x) = 1 Marketing (communication) and social value Computer science: emphasis on interaction with a user EE - emphasis on mathematical analysis Control Engineering 9-29

Local Modeling Based on Data Data mining in the loop Honeywell Prague product Multidimensional Data Cube Heat Loads Relational Database Heat demand Query point ( What if? ) Outdoor temperature Time of day Forecasted variable Explanatory variables Control Engineering 9-30

System platform for control computing Workstations advanced process control enterprise optimizers computing servers (QoS/admission control) Specialized controllers: PLC, DCS, motion controllers, hybrid controllers Control Engineering 9-31

System platform for control computing Embedded: µp + software DSP MPC555 FPGA ASIC / SoC Control Engineering 9-32

Embedded processor range Control Engineering 9-33

System platform, cont d Analog/mixed electric circuits power controllers RF circuits Analog/mixed other Gbs optical networks EM = Electr-opt Modulator AGC = Auto Gain Control Control Engineering 9-34

Control Software Algorithms Validation and Verification Control Engineering 9-35

System development cycle Control Engineering 9-36 Ford Motor Company

Control application software development cycle Matlab+toolboxes Simulink Stateflow Real-time Workshop Control Engineering 9-37

Real-time Embedded Software Mission critical RT-OS with hard real-time guarantees C-code for each thread generated from Simulink Primus Epic, B787, A380 Control Engineering 9-38

Hardware-in-the-loop simulation Aerospace Process control Automotive Control Engineering 9-39

System development cycle Control Engineering 9-40 Cadence