Announcements Next Tuesday (March 12 th ). Department meeting. – Ms. Liron’s office hours start at 2:15pm TAKE NOTES! fill in the blanks! 1.

Slides:



Advertisements
Similar presentations
David Luebke 1 6/7/2014 CS 332: Algorithms Skip Lists Introduction to Hashing.
Advertisements

David Luebke 1 6/7/2014 ITCS 6114 Skip Lists Hashing.
Chapter 12 Array Processing and Table Handling. Defining Series of Input Fields Coding record with 24 independent hourly fields is cumbersome 01Temp-Rec.
Acceleration Acceleration Velocity-time graph Questions.
Velocity-time graph’s
Graphing data.
Outline of Talk Introduction Toolbox functionality Results Conclusions and future development.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 14 – Student Grades Application: Introducing.
Java vs. You.
Grade 3 Topic IV Mass and Volume of Solids and Liquids Office of Academics - Department of Science.
Introduction to Fluid Mechanics
Variables.
Hydrodynamics.
Motion of a mousetrap car
7A MP 1 Exam 1.Safety: Write down 2 safety procedures to follow in the laboratory. Point test away from yourself and everyone else. Wear goggles to protect.
Logical Ops’ on Arrays When we need to compare arrays, find a number within an array, isolate all invalid numbers… 1. Logical Operators 2. Logical Operations.
Introduction to Engineering Microsoft Excel - 3 Agenda Formulas Excel Function Library.
2009 AP B Free Response #1 Lab Use Monster Pop-ups from Oriental Trading Company and clay. The height reached by the toy can be estimated visually but.
Library Functions... 1.Old functions 2.Vocabulary 3.Rounding numbers 4.Generating random numbers 5.mod() 6.Properties of mod() 7.Ex1: even or odd? 8.Ex2:
MATLAB FUNDAMENTALS: MATRIX/ARRAY FUNCTIONS THE COLON MATRIX/ARRAY MANIPULATION INPUT/OUTPUT HP 100 – MATLAB Wednesday, 9/3/2014
David Luebke 1 10/25/2015 CS 332: Algorithms Skip Lists Hash Tables.
1 CSE 326: Data Structures: Hash Tables Lecture 12: Monday, Feb 3, 2003.
Writing Program Code in BASIC Write a program to prompt for and accept values into TWO variables, numx and numy. The program should square the value stored.
Review for Exam2 Key Ideas 1. Key Ideas: Boolean Operators (2 > 3) || (3 < 29.3) A.True B.False C.Impossible to determine (22 > 3) && (3 > 29.3) A.True.
Bell Work What is one thing you would like to know about how to graph data?  Adapted from :
Agenda 9/23/13 Hand in Great Graphing homework Quiz: Graphing Motion Rearranging equations practice Discuss homework p. 44, p. 49 Notes/ Discussion: Kinematic.
1. Example 1 – Averages 2. Example 2 – Rolling Dice 3. Example 3 – Number Analysis 4. Example 4 - Divisibility ( while ) Additional Examples on for Loops.
Library Functions... 1.Old functions 2.Vocabulary 3.Rounding numbers 4.Generating random numbers 5.mod() 6.Properties of mod() 7.Ex1: even or odd? 8.Ex2:
Loops Wrap Up 10/21/13. Topics *Sentinel Loops *Nested Loops *Random Numbers.
Do Now I would like you to answer the question for the Activating Strategy on page one of the Scientific Method packet. Do this by yourself 1.
Databases and Speadsheets
Lab 1 B Objectives 1.Calibrate a thermometer 2.Dimension analysis 3.Generate a graph on excel.
Section 2.4 Graphs of Motion. Why Use Graphs? Show relationships between distance, velocity, acceleration, and time Visual and clear way of representing.
AP Physics 1D Kinematics Lab. Objective To practice generating and analyzing position vs. time, velocity vs. time, and acceleration vs. time graphs based.
Sensitivity Analysis A systematic way of asking “what-if” scenario questions in order to understand what outcomes could possibly occur that would effect.
On Reynolds Stresses over Wind Waves Tel-Aviv University School of Mechanical Engineering Supported by Israel Science Foundation Lev Shemer and Andrey.
Arrays. The array data structure Array is a collection of elements, that have the same data type Integers (int) Floating point numbers (float, double)
LAB SESSION ONE DIMENSIONAL ARRAY.
Excel-Introduction Business –E.g., Creating budget Chemistry –E.g., Analyzing chemical’s temperature vs. time Psychology –E.g., Test scores English –E.g.,
CS6045: Advanced Algorithms Data Structures. Hashing Tables Motivation: symbol tables –A compiler uses a symbol table to relate symbols to associated.
Iterative Structures (Loops) CS 1401 Spring 2013 Shirley Moore, Instructor February 28, 2013.
Week 7 - Wednesday.  What did we talk about last time?  Recursive running time  Master Theorem  Symbol tables.
Wednesday, Sept. 19, 2007 PHYS , Fall 2007 Dr. Jaehoon Yu 1 PHYS 1443 – Section 002 Lecture #7 Wednesday, Sept. 19, 2007 Dr. Jaehoon Yu Motion.
Uniform Motion, Speed and Graphs Introduction to Physics.
Algebra: Patterns & Graphing
P.S Notes “Measuring Motion”. Pg. 323 Practice Q’s m/s towards shore m/s towards first base 3. 60,000 m or 60 km.
Motion Position, Speed and Velocity Graphs of Motion Acceleration.
Physical Modeling of the Atmospheric Boundary Layer in the UNH Flow Physics Facility Stephanie Gilooly and Gregory Taylor-Power Advisors: Dr. Joseph Klewicki,
84 Interpreting Graphs 83 10/30/15 Starter: Quiz Application Notes Glue here when done Connection : Complete Ws Exit: A plane traveled North 1500 miles.
Motion graphs Position (displacement) vs. time Distance vs. time
Lab: Linear Motion Experimental Procedure:
Data Types Variables are used in programs to store items of data e.g a name, a high score, an exam mark. The data stored in a variable is entered from.
Velocity and Acceleration
General Information Lab -3 Bernoulli Equation
Aerodynamic Force Measurement
Lab: Linear Motion Experimental Procedure:
CS 1428 Exam I Review.
LAB #6 Volume Flow Rate and Centerline Speed in a Tube Wind Tunnel
Air Volume Flow Rate and Centerline Velocity in a Tube Wind Tunnel
Physics P2 Forces.
Rate of Change and Instantaneous Velocity
Chapter 2: Motion Section 1: Describing Motion
Review Question Consider an unconfined aquifer overlying impermeable bedrock with the following properties Porosity 27% Specific retention 12% Thickness.
How to Describe & Recognize Motion
Controlling the Chunk Size in Deduplication Systems
Calculating Speed from a Distance-Time Graph
Graphing data.
Chapter 11: Motion Section 1 Part 2- Graphs of Speed
CS 1428 Exam I Review.
Presentation transcript:

Announcements Next Tuesday (March 12 th ). Department meeting. – Ms. Liron’s office hours start at 2:15pm TAKE NOTES! fill in the blanks! 1

Exam2 – Coding Review 2

Topics Library functions: ceil(), floor(), round(), mod() Loops – while – for Arrays – Create: [], rand() – Analyze: sum(), prod(), min(), max(), mean() – Dimensioning: length(), size(), numel() – Slicing/referencing: vector(k), matrix(r,c), array(_:_) – Concatenating: [] – Traversing: for k = 1:____ – Deleting: =[]; Plotting basics – plot(x,y) %plots y vs. x graph 3

Example - A wind tunnel AE 315 Experimental Aerodynamics Lab Source:

Wind Tunnels Soruce:

What can you put in the test section? The photograph shows a stainless steel model of a Mk I which was used in 1941 for wind tunnel investigations into high speed dive characteristics. Source: dkanal.jpg/350px-Windkanal.jpg dkanal.jpg/350px-Windkanal.jpg NASA wind tunnel

Models (2) Helios wind tunnel model Source: ersity_of_thessaloniki_helios.htm ersity_of_thessaloniki_helios.htm Formula1 cars Source: ?CategoryID=42 ?CategoryID=42

Models (3/3) This is the motivation for the realization of an extensive wind tunnel model of the city part "Kleinbasel" at the scale 1:300. The model covers an area of a bit less than 3 km² of urban roughness densely covered by over houses as it is typical for Basel and other european urban environments of comparable size. Source:

Random question… What happens to the water in a tube?

Models linked to the outside Source:

What you link to the models A multi-tube manometer Source:

Some visual results… Source: Source: o.uk/en/products/p32 02.html o.uk/en/products/p32 02.html Source: com/Display_Pages /EWT.html com/Display_Pages /EWT.html

Velocity Distribution 13

Requirements – Method 1 Assume the static pressure is 32 inches, and the temperature is 78F (537Rankine) Let the user indicate how many pitot tubes were recorded. Trap when invalid. It should be above 5. Loop to generate the table of data. Store all data in one array, as values are calculated. – Total pressure: prompt user number between 30 and 32 inches. (Assume valid inputs given at this time) – Calculate velocity associated each time Display the table, with headers. Plot the local velocities vs. the pitot tube number Calculate the min, max, and average velocity. 14

Example These are just guidelines 15

Brainstorm Keywords? Algorithm ideas? 16

Algorithm clc clear … develop your algorithm please! 17

Code– part1 clc clear %set up constant data %prompt user for nb of tubes _______________________________ while_______________________________ _______________________________ end %loop for each tube for _______________________________ %store tube number in column 1 _______________________________ %generate water height (32-35), store in column2 _______________________________ %calculate velocity, store in column3 _______________________________ end 18

continued… %display header ___________________________________________________________________________________ %display table ___________________________________________________________________________________ %plot velocity vs. tube number ____________________________________________________ %find min, max, average ____________________________________________________ 19

Requirements – Method 2 Assume the static pressure is 32 inches, and the temperature is 78F (537Rankine) Let the user indicate how many pitot tubes were recorded. Trap when invalid. It should be above 5. Without a loop, create the table. – Total pressure: Generate random floats between 30 and 32 inches. Display the table with headers. Plot the local velocities vs. the pitot tube number Calculate the min, max, and average velocity. 20

Algorithm/Code clc clear %set up constant data %prompt user for nb of tubes while end % create column of tube number % generate column of water height (32-35) % calculate velocity % combine all columns into 1 table %display header %display table %plot velocity vs. tube number %find min, max, average 21

STUDY HARD! Practice tonight. Take the notes you just took, and code the example! The more practice, the easier it gets! 22