1 / 40

CEE162/262c: Modeling and Simulation for Civil and Environmental Engineers

Course details Instructor: Oliver Fringer, Dept. of Civil and Environmental Engineering, Terman Bldg. Room M17, fringer@stanford.edu TA: Vivien Chua, vchua@stanford.edu Office hours: 1:00-4:00 pm F Course web page: fluid.stanford.edu/~fringer/teaching/cee262c

margie
Download Presentation

CEE162/262c: Modeling and Simulation for Civil and Environmental Engineers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Course details Instructor: Oliver Fringer, Dept. of Civil and Environmental Engineering, Terman Bldg. Room M17, fringer@stanford.edu TA: Vivien Chua, vchua@stanford.edu Office hours: 1:00-4:00 pm F Course web page: fluid.stanford.edu/~fringer/teaching/cee262c Lectures: 10:00-11:30 TTh, Bldg. 550 Rm. 550D TA session: 2:00-4:00 pm M, location TBA Grading 4 Assignments: 60% Midterm: 20% Final exam: 20% CEE162/262c: Modeling and Simulation for Civil and Environmental Engineers References (all on reserve in engineering library): Dym, C. L (2004) Principles of Mathematical Modeling, ed. 2, Elsevier. Kreyszig, E. (1999) Advanced Engineering Mathematics, ed. 8, Wiley. Meyer, W. J. (1984) Concepts of Mathematical Modeling, Dover. Moin, P. (2001), Fundamentals of Engineering Numerical Analysis, Cambridge. Mooney, D., and R. Swift (1999), A Course in Mathematical Modeling, MAA. Nazaroff, W. W., and L. Alvarez-Cohen (2001), Environmental Engineering Science, Wiley. Nelson, B. L (2002) Stochastic Modelling, Dover. Computer software: Matlab on the CEE lab machines or from stanford machines that can be accessed with your sunet id. You may also use matlab on your own workstation. Octave is a free version of matlab that can also be used although it does not have all of matlab's features see www.octave.org CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  2. Real world/Problem of interest Question Model Data Theory Simulation General picture of modeling Compare/Verify Prediction/Explanation Result CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  3. Verification is key Complex models can be difficult to verify (e.g. "model has many bells and whistles but there is no guarantee that they all work") Simple models can be restrictive (e.g. "this model works for this case only") Problem vs. Model Complexity Simple model for a complex problem. Complex model for a complex problem. Harder Typical problem? Problem/abstraction Complexity Simple model for a simple problem. Complex model for an easy problem. Model Complexity/Resolution Harder CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  4. Basic Modeling Ideas • Dimensional analysis • Scaling • Will the model scale up/down? • Resolution • How detailed does the answer need to be? • Conservation principles • Resource constraints CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  5. Types of Models • Descriptive (predict a result) vs. Prescriptive (optimize for a given set of conditions) • Linear vs. nonlinear • Discrete vs. continuous • Deterministic vs. stochastic • Empirical vs. analytical CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  6. Dimensional Analysis and ODEs Overview • Dimensional analysis • Buckingham Pi theorem • Nondimensionalization of an ODE • Analytical solution of a linear ODE using an integrating factor • Numerical solution of a nonlinear ODE (only showing the results) • Linearization of the nonlinear ODE and obtaining an approximate linearized solution References: Dym, Ch 2; Mooney & Swift, Ch 5; Kreyszig, Ch 2 CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  7. Dimensional analysis • Dimensional analysis seeks to describe a phenomenon based on dimensional arguments alone [V] = L/T [r]=M/L3 [h] = L [m] = M [d] = L [g] = L/T2 Write V in terms of the other parameters: [V]2 = [g][h] r d m height h V (velocity) g CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  8. Buckingham Pi Theorem • Given a set of n dimensional parameters defined by m fundamental dimensions, we can define the behavior of the system in terms of a single relationship among n-m nondimensional variables • Dimensional parameters: • Nondimensional parameters: CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  9. Dimensional analysis of the bouncing ball problem • Eight parameters, n=8 • m=3 fundamental dimensions, m=3. • n-m=5 nondimensional parameters. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  10. Computing the nondimensional parameters: • Choose m dimensional variables that contain all of the dimensions involved, i.e. Mass, Length, Time (M,L,T): • Write down the nondimensional numbers as a product of these m dimensional variables and the remaining n-m dimensional variables: • Solve for the powers that make the parameters dimensionless. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  11. We can almost always determine the powers without any algebra • From this we know that CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  12. Practical Buckingham Pi • Choose m dimensional variables that contain all of the dimensions involved, i.e. Mass, Length, Time (M,L,T): • Create M, L, T scales from these three variables: • Use these three to nondimensionalize the remaining 5: CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  13. Interpreting nondimensional variables • Nondimensional lengths: • Nondimensional on its own: CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  14. Interpreting nondimensional variables • In terms of forces: • In terms of time scales: CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  15. Interpreting nondimensional variables • In terms of forces: • In terms of mass scales: CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  16. Deriving relationships empirically • Fix these: • Perform experiments to relate these: Plot same data a different way: d is no longer relevant! CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  17. Can theory explain empirical result? CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  18. Modeling the effects of drag • The balance of forces on a falling ball is given by V CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  19. Nondimensionalize CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  20. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  21. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  22. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  23. Tennis Ball dropped from 1 m in air P4 = 3192  Buoyant force is 3200 times larger than viscous force on ball. P5 = 170  Ball weighs 170 times more than the buoyant force. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  24. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  25. Comparing the two models (after dropping the primes and assuming dy/dt<0, a3<< a2) Viscosity/Weight Linear, constant coefficients inhomogeneous Nonlinear, constant coefficients inhomogeneous Pressure/Weight We can solve the linear equation analytically. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  26. Solution of the linear ODE CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  27. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  28. Solution for the falling ball: CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  29. Result of plotting The solution with small a1 cannot be plotted because the effect of roundoff error is too large when written in this way. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  30. We can use the Taylor series to determine the limiting case of a1=0: CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  31. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  32. System of equations and its numerical solution bounce.m CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  33. bouncealpha.m Decreasing CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  34. bouncealpha.m CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  35. Linearization about a known solution CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  36. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  37. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  38. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  39. Overview of the regular perturbation expansion CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

  40. CEE162/262c Lecture 1: Overview and dimensional analysis of ODEs

More Related