A core Course on Modeling Introduction to Modeling 0LAB0 0LBB0 0LCB0 0LDB0 P.5.

Slides:



Advertisements
Similar presentations
A core course on Modeling kees van Overveld Week-by-week summary.
Advertisements

Chapter 6 Differential Equations
Running a model's adjoint to obtain derivatives, while more efficient and accurate than other methods, such as the finite difference method, is a computationally.
A core Course on Modeling Introduction to Modeling 0LAB0 0LBB0 0LCB0 0LDB0 S.13.
Computer Graphics 4: Bresenham Line Drawing Algorithm, Circle Drawing & Polygon Filling By:Kanwarjeet Singh.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Response to a Sinusoidal Input Frequency Analysis of an RC Circuit.
Lecture 7: Basis Functions & Fourier Series
M 1 and M 2 – Masses of the two objects [kg] G – Universal gravitational constant G = 6.67x N m 2 /kg 2 or G = 3.439x10 -8 ft 4 /(lb s 4 ) r – distance.
Artificial Intelligence 13. Multi-Layer ANNs Course V231 Department of Computing Imperial College © Simon Colton.
Customer Support Center Measurement Business Headquarters YOKOGAWA
Digital Coding of Analog Signal Prepared By: Amit Degada Teaching Assistant Electronics Engineering Department, Sardar Vallabhbhai National Institute of.
University of Ioannina - Department of Computer Science Wavelets and Multiresolution Processing (Background) Christophoros Nikou Digital.
AOSC 634 Air Sampling and Analysis Lecture 3 Measurement Theory Performance Characteristics of Instruments Dynamic Performance of Sensor Systems Response.
Lecture 9: D/A and A/D Converters
Lecture 4 Ordinary Differential Equations Purpose of lecture: Solve the full 2 nd order homogeneous ODE Solve these 2 nd order inhomogeneous ODEs Introduction.
MAT 594CM S10Fundamentals of Spatial ComputingAngus Forbes Week 2 : Dynamics & Numerical Methods Goal : To write a simple physics simulation Topics: Intro.
EE 2B1 – Analogue Electronics Dr. T. Collins
EE-2027 SaS 06-07, L11 1/12 Lecture 11: Fourier Transform Properties and Examples 3. Basis functions (3 lectures): Concept of basis function. Fourier series.
Proportions This PowerPoint was made to teach primarily 8th grade students proportions. This was in response to a DLC request (No. 228).
Development of Empirical Models From Process Data
AOSC 634 Air Sampling and Analysis Lecture 2 Measurement Theory Performance Characteristics of instruments Dynamic Performance of Sensor Systems Response.
Lecture 2 Differential equations
1 ECE 3336 Introduction to Circuits & Electronics Note Set #12 Frequency Response More About Filters Spring 2015, TUE&TH 5:30-7:00 pm Dr. Wanda Wosik.
Ch 3.9: Forced Vibrations We continue the discussion of the last section, and now consider the presence of a periodic external force:
S1-1 SECTION 1 REVIEW OF FUNDAMENTALS. S1-2 n This section will introduce the basics of Dynamic Analysis by considering a Single Degree of Freedom (SDOF)
Motion of a mass at the end of a spring Differential equation for simple harmonic oscillation Amplitude, period, frequency and angular frequency Energetics.
Pulse Modulation 1. Introduction In Continuous Modulation C.M. a parameter in the sinusoidal signal is proportional to m(t) In Pulse Modulation P.M. a.
Dr Martin Hendry, Dept of Physics and Astronomy University of Glasgow, UK Astronomical Data Analysis I 11 lectures, beginning autumn 2008.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Pegasus Lectures, Inc. COPYRIGHT 2006 Volume I Companion Presentation Frank R. Miele Pegasus Lectures, Inc. Ultrasound Physics & Instrumentation 4 th Edition.
GG 313 Lecture 26 11/29/05 Sampling Theorem Transfer Functions.
Seismometry Seismology and the Earth’s Deep Interior Seismometer – The basic Principles u x x0x0 ugug umum xmxm x x0x0 xrxr uground displacement x r displacement.
1 Chapter 8 Ordinary differential equation Mathematical methods in the physical sciences 3rd edition Mary L. Boas Lecture 5 Introduction of ODE.
CISE315 SaS, L171/16 Lecture 8: Basis Functions & Fourier Series 3. Basis functions: Concept of basis function. Fourier series representation of time functions.
Decisions from Data: The Role of Simulation Gail Burrill Gail Burrill Michigan State University
Lecture 2 Differential equations
Copyright © Cengage Learning. All rights reserved. 11 Infinite Sequences and Series.
Uniform Quantization It was discussed in the previous lecture that the disadvantage of using uniform quantization is that low amplitude signals are drastically.
Progress in identification of damping: Energy-based method with incomplete and noisy data Marco Prandina University of Liverpool.
1 A Core Course on Modeling      Contents      Change needs Time Introduction to Processes States and State Charts Applying State Charts Time.
Boundary Value Problems l Up to this point we have solved differential equations that have all of their initial conditions specified. l There is another.
APPLICATION OF THE LAPLACE TRANSFORM
1 EEE 431 Computational Methods in Electrodynamics Lecture 18 By Dr. Rasime Uyguroglu
CONTROL OF MULTIVARIABLE SYSTEM BY MULTIRATE FAST OUTPUT SAMPLING TECHNIQUE B. Bandyopadhyay and Jignesh Solanki Indian Institute of Technology Mumbai,
Digital Image Processing
Linear Constant-Coefficient Difference Equations
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Geology 6600/7600 Signal Analysis 26 Oct 2015 © A.R. Lowry 2015 Last time: Wiener Filtering Digital Wiener Filtering seeks to design a filter h for a linear.
The accuracy of averages We learned how to make inference from the sample to the population: Counting the percentages. Here we begin to learn how to make.
Ch 9.6: Liapunov’s Second Method In Section 9.3 we showed how the stability of a critical point of an almost linear system can usually be determined from.
Math for CS Fourier Transforms
DYNAMIC BEHAVIOR OF PROCESSES :
CIVE Engineering Mathematics 2.2 (20 credits) Statistics and Probability Lecture 6 Confidence intervals Confidence intervals for the sample mean.
Copyright © Cengage Learning. All rights reserved Applications of Taylor Polynomials.
Lecture 1.4. Sampling. Kotelnikov-Nyquist Theorem.
Chapter 4 Dynamical Behavior of Processes Homework 6 Construct an s-Function model of the interacting tank-in-series system and compare its simulation.
Linear Constant-Coefficient Difference Equations
MESB374 System Modeling and Analysis Transfer Function Analysis
Chapter 4 Dynamical Behavior of Processes Homework 6 Construct an s-Function model of the interacting tank-in-series system and compare its simulation.
Introduction to Recurrence Relations
Control Systems With Embedded Implementation (CSEI)
Ch 3.9: Forced Vibrations We continue the discussion of the last section, and now consider the presence of a periodic external force:
ME375 Handouts - Fall 2002 MESB374 Chapter8 System Modeling and Analysis Time domain Analysis Transfer Function Analysis.
Soutenance de thèse vendredi 24 novembre 2006, Lorient
A core course on Modeling kees van Overveld
COMS 161 Introduction to Computing
Numerical Analysis Lecture 38.
DIGITAL CONTROL SYSTEM WEEK 3 NUMERICAL APPROXIMATION
Presentation transcript:

A core Course on Modeling Introduction to Modeling 0LAB0 0LBB0 0LCB0 0LDB0 P.5

Dynamic Models: dealing with time Examples of recursive functions for equal-interval sampling and infinitesimal time. Contents: Equal intervals Infinitesimal intervals Equal intervals revisited

t  i  K(t)  K i u(t)  u i u’(t)  (u(t+  )-u(t))/  = (u i+1 -u i )/  v’(t)  (v(t+  )-v(t))/  = (v i+1 -v i )/  So u i+1 = u i +  v i v i+1 = v i +  a i = v i+1 = v i +  a i = = v i +  K i /m = = v i +  K i /m = = v i +  C(u rest -u i ) /m = v i +  C(u rest -u i ) /m Recursive function Q curr =F(Q prev,P prev ): u curr =F 1 (u prev,v prev )=u prev +  v prev v curr =F 2 (v prev,u prev )= =v prev +  C(u rest -u prev ) /m, =v prev +  C(u rest -u prev ) /m, with suitable u 0 and v 0 Equal intervals : a mass-spring system with damping. From physics, we know K=ma where K=C(u rest -u) and a=u’’. Write v=u’, then a=v’. Here, K=K(t), u=u(t). Let us approximate by sampling. For   0: u(t+  )= =u(i  +  ) =u((i+1)  ) =u i+1, and similar for v Remember: order of evaluation F 1, F 2 is irrelevant out

t  i  K(t)  K i u(t)  u i u’(t)  (u(t+  )-u(t))/  = (u i+1 -u i )/  v’(t)  (v(t+  )-v(t))/  = (v i+1 -v i )/  So u i+1 = u i +  v i v i+1 = v i +  a i = v i+1 = v i +  a i = = v i +  K i /m = = v i +  K i /m = = v i +  C(u rest -u i ) /m = v i +  C(u rest -u i ) /m Recursive function Q curr =F(Q prev,P prev ): u curr =F 1 (u prev,v prev )=u prev +  v prev v curr =F 2 (v prev,u prev )= =v prev +  C(u rest -u prev ) /m, =v prev +  C(u rest -u prev ) /m, with suitable u 0 and v 0 Equal intervals : a mass-spring system with damping. From physics, we know K=ma where K=C(u rest -u) and a=u’’. Write v=u’, then a=v’. Here, K=K(t), u=u(t). Let us approximate by sampling. For   0: -v-v-v-v ( -  v prev ) ( -  v i ) out

Equal intervals WARNING:   0 is not the same as '  =small'.   0 is not the same as '  =small'. The substitutions for u’(t) and v’(t) are approximations only. As we will see in a later example, aliasing errors are worse when the sampled signal changes rapidly, compared to the sampling rate. Concrete: unless  is much smaller than the period of the oscillation (=  m/C), the approximations are bad – with the risk of instability.

out Infinitesimal intervals the mass-spring system with damping revisited. From physics, we know K=ma where K=C(u rest -u) and a=u’’. For some purposes the numerical solution (sampling) is not acceptable. Interested in outcome?  use better numerical methods Interested in insight?  try to use symbolic methods, i.e.: analysing differential equations Only possible in very few special cases In particular: linear (sets of) DE’s.

Infinitesimal intervals the mass-spring system with damping revisited. From physics, we know K=ma where K=C(u rest -u) and a=u’’. Here, K=K(t), u=u(t). Let us try a solution of the form u=u rest +A sin(t/T) u’’= -AT -2 sin(t/T) Substitute back: -mAT -2 sin(t/T)=C(u rest -u rest -Asin(t/T) ), mT -2 =C, or T=  m/C ( =:T 0 ) out

Infinitesimal intervals the mass-spring system with damping revisited. From physics, we know K=ma where K=C(u rest -u) and a=u’’. Here, K=K(t), u=u(t). try u=u rest +Ae t, then C+  +m 2 =0, or 1,2 =(-  (  2 -4mC))/2m 1,2 =(-  (  2 -4mC))/2m Let  0 =  (4mC). For  =  0  critical damping; for  <  0  oscillations; T=T 0 /  (1- (  /  0 ) 2 ) for  >  0  super critical damping (further details: lectures ‘dynamical systems’) out -v-v-v-v By substituting u = Ae t into C(u rest -u)-  u’=mu’’ and using u’=A e t ; u’’=A 2 e t. C(u rest -u rest -Ae t )-  A e t =mA 2 e t Must hold for any t, so indeed C +  + m 2 =0

Equal intervals revisited playing a CD. Sound on a CD is represented as a series of samples/sec of the amplitude. Playing the sound: take a sample P i Do a calculation to process the sound (e.g., Q i+1 =  Q i +(1-  )P i ) Next, output Q i+1 to the speaker. So again Q i+1 =F(Q i,P i ) If  is (close to) 0, we get the original samples; if  is closer to 1, Q i+1 is more similar to Q i, so no fast changes in Q: higher frequencies are reduced: low-pass filtering

Equal intervals revisited The reconstructed sound will contain a pitch that was not present initially. The reconstructed sound will contain a pitch that was not present initially. (sampling  aliasing) (sampling  aliasing) samples taken every 1/44100 sec original sound the reconstructed signal A remedy to aliasing, is to apply a low- pass filter on the input signal. This is also a dynamic system of the form Q curr =F(Q prev,P prev ) (details fall beyond the scope of this lecture)

Summary From the purpose, propose clever exposed and hidden quantities From the purpose, determine what time-concept you need: partial order or total order If total order: unknown or known intervals? What determines (sampling) intervals? If emphasis on verification or specification: consider statecharts and process models If emphasis on simulation or prediction: use Q curr =F(Q prev,P prev ) interested in outcomes?  use simplest possible numerical techniques, be aware for accuracy (perhaps decrease   performance !!) interested in insight?  try symbolic methods