Assignment 4: VBA Programming

Similar documents
Assignment 4: VBA Programming

Assignment 5: VBA Programming

This procedure covers the determination of the moment of inertia about the neutral axis.

29. Define Stiffness matrix method. 30. What is the compatibility condition used in the flexibility method?

Introduction to Structural Member Properties

Software Verification

Experimental Lab. Principles of Superposition

SPECIFIC VERIFICATION Chapter 5

External Pressure... Thermal Expansion in un-restrained pipeline... The critical (buckling) pressure is calculated as follows:

Assignment 4:Rail Analysis and Stopping/Passing Distances

FLEXIBILITY METHOD FOR INDETERMINATE FRAMES

Software Verification


Large-Amplitude Periodic Oscillations in Suspension Bridges

Sample Final Exam 02 Physics 106 (Answers on last page)

Excel for Scientists and Engineers Numerical Method s. E. Joseph Billo

Due Date 1 (for confirmation of final grade): Monday May 10 at 11:59pm Due Date 2 (absolute latest possible submission): Friday May 14 at 5pm

D : SOLID MECHANICS. Q. 1 Q. 9 carry one mark each. Q.1 Find the force (in kn) in the member BH of the truss shown.


UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING. BEng (HONS) CIVIL ENGINEERING SEMESTER 1 EXAMINATION 2016/2017 MATHEMATICS & STRUCTURAL ANALYSIS

Roark s Formulas for Excel Superposition Wizard

ENGR 1181 Lab 6: Beam Bending

Large-Amplitude Periodic Oscillations in Suspension Bridges

Purpose: Materials: WARNING! Section: Partner 2: Partner 1:

3.5 Reinforced Concrete Section Properties

Analysis III for D-BAUG, Fall 2017 Lecture 11

2 marks Questions and Answers

Lab Exercise #5: Tension and Bending with Strain Gages

host structure (S.F.D.)

Parametric Identification of a Cable-stayed Bridge using Substructure Approach

Lecture 15 Strain and stress in beams

SECTION A. 8 kn/m. C 3 m 3m

Structures - Experiment 3B Sophomore Design - Fall 2006

Dr. Hazim Dwairi. Example: Continuous beam deflection

National Exams May 2015

Section 2-2: Constant velocity means moving at a steady speed in the same direction

MEMS Report for Lab #3. Use of Strain Gages to Determine the Strain in Cantilever Beams

DEPARTMENT OF MECHANICAL ENIGINEERING, UNIVERSITY OF ENGINEERING & TECHNOLOGY LAHORE (KSK CAMPUS).

1.050: Beam Elasticity (HW#9)

MASSACHUSETTS INSTITUTE OF TECHNOLOGY /ESD.77 MSDO /ESD.77J Multidisciplinary System Design Optimization (MSDO) Spring 2010.

Linear Motion with Constant Acceleration

17-Nov-2015 PHYS MAXWELL WHEEL. To test the conservation of energy in a system with gravitational, translational and rotational energies.

PHY 123 Lab 9 Simple Harmonic Motion

D : SOLID MECHANICS. Q. 1 Q. 9 carry one mark each.

CHENDU COLLEGE OF ENGINEERING &TECHNOLOGY DEPARTMENT OF CIVIL ENGINEERING SUB CODE & SUB NAME : CE2351-STRUCTURAL ANALYSIS-II UNIT-1 FLEXIBILITY

Physics 201 Quiz 1. Jan 14, 2013

IDE 110 Mechanics of Materials Spring 2006 Final Examination FOR GRADING ONLY

PURE BENDING. If a simply supported beam carries two point loads of 10 kn as shown in the following figure, pure bending occurs at segment BC.

Mechatronics II Laboratory EXPERIMENT #1 MOTOR CHARACTERISTICS FORCE/TORQUE SENSORS AND DYNAMOMETER PART 1

PHYSICS LAB FREE FALL. Date: GRADE: PHYSICS DEPARTMENT JAMES MADISON UNIVERSITY

Mechatronics II Laboratory EXPERIMENT #1: FORCE AND TORQUE SENSORS DC Motor Characteristics Dynamometer, Part I

B.Tech. Civil (Construction Management) / B.Tech. Civil (Water Resources Engineering)

SOLUTION T 1 + U 1-2 = T C(31.5)(2.5)A10 6 B(0.2)D = 1 2 (7)(v 2) 2. v 2 = 2121 m>s = 2.12 km>s. Ans. (approx.

If the mass of the wrecking ball is 3700, what is the tension in the cable that makes an angle of 40 with the vertical?

FIXED BEAMS IN BENDING

3.032 Problem Set 1 Fall 2007 Due: Start of Lecture,

SSC-JE MAINS ONLINE TEST SERIES / CIVIL ENGINEERING SOM + TOS

Physics 12 Final Exam Review Booklet # 1

Moments practice exam questions

2. Mass, Force and Acceleration

Multi Linear Elastic and Plastic Link in SAP2000


Finite Element Modelling with Plastic Hinges

Lab 10: Ballistic Pendulum

PHYA2. General Certificate of Education Advanced Subsidiary Examination June Mechanics, Materials and Waves. (JUN11PHYA201) WMP/Jun11/PHYA2 PMT

Q1. Which of the following is the correct combination of dimensions for energy?

8-5 Conjugate-Beam method. 8-5 Conjugate-Beam method. 8-5 Conjugate-Beam method. 8-5 Conjugate-Beam method

Chapter 12. Static Equilibrium and Elasticity

Measurement of Bone Strength and Stiffness using 3-Point Bending

Physics 1050 Experiment 6. Moment of Inertia

PRACTICE 2 PROYECTO Y CONSTRUCCIÓN DE PUENTES. 1º Máster Ingeniería de Caminos. E.T.S.I. Caminos, canales y puertos (Ciudad Real) 01/06/2016

2D Liquefaction Analysis for Bridge Abutment

Assumptions: beam is initially straight, is elastically deformed by the loads, such that the slope and deflection of the elastic curve are

ENGN1300: Structural Analysis. Homework 5 Due Wednesday March 12, 2010

Principles of Almen Strip Selection

AERO 214. Lab II. Measurement of elastic moduli using bending of beams and torsion of bars

SPMT Loadout Ramp Design Spreadsheet (

needed to buckle an ideal column. Analyze the buckling with bending of a column. Discuss methods used to design concentric and eccentric columns.

Chapter Objectives. Design a beam to resist both bendingand shear loads

CE 2302 STRUCTURAL ANALYSIS I UNIT-I DEFLECTION OF DETERMINATE STRUCTURES

ENG1001 Engineering Design 1

PHYA2. General Certificate of Education Advanced Subsidiary Examination January Mechanics, Materials and Waves

FORCE & MOTION Instructional Module 6

= 50 ksi. The maximum beam deflection Δ max is not = R B. = 30 kips. Notes for Strength of Materials, ET 200

Chapter 7 FORCES IN BEAMS AND CABLES

5 G R A TINGS ENGINEERING DESIGN MANUAL. MBG Metal Bar Grating METAL BAR GRATING MANUAL MBG METAL BAR GRATING NAAMM

PHY 123 Lab 6 - Angular Momentum

Which expression gives the elastic energy stored in the stretched wire?

Geology Geomath Computer Lab Quadratics and Settling Velocities

GATE SOLUTIONS E N G I N E E R I N G

Faculty of Engineering and Department of Physics Engineering Physics 131 Midterm Examination Monday February 24, 2014; 7:00 pm 8:30 pm

JUT!SI I I I TO BE RETURNED AT THE END OF EXAMINATION. THIS PAPER MUST NOT BE REMOVED FROM THE EXAM CENTRE. SURNAME: FIRST NAME: STUDENT NUMBER:

Mechanics of Solids. Mechanics Of Solids. Suraj kr. Ray Department of Civil Engineering

2. Determine the deflection at C of the beam given in fig below. Use principal of virtual work. W L/2 B A L C

Appendix J. Example of Proposed Changes

PHYS 2211L - Principles of Physics Laboratory I

Interpretation of Pile Integrity Test (PIT) Results

Remember... Average rate of change slope of a secant (between two points)

BEAMS AND PLATES ANALYSIS

Bending Load & Calibration Module

Transcription:

CEE 3804: Computer Applications in Civil Engineering Spring 2015 Date Due: February 24, 2015 Assignment 4: VBA Programming Instructor: Trani Problem 1 This problem deals with a beam supported at both ends and with a single load W at a known location. The beam is shown in Figure 1. Figure 1. A simple beam supported at both ends with a load W at some known location. Adapted from: http:// www.engineersedge.com/beam_bending/beam_bending3.htm. Nomenclature for beam deflection and stress calculation equations. W = load (N) E = Modulus of elasticity (N/m 2 ) I = Moment of inertia (m 4 ) x = Distance from left side of the beam to the loading point (m) v = Distance from right hand side beam end point to the loading point (m) l = beam length (m) a, b = distances from each beam end point towards the loading point (m) Let: = Wbx 6EIl (l 2 x 2 b 2 ) = Wav 6EIl (l 2 v 2 a 2 ) CEE 3804 Trani Page 1 of 5

where: = deflection of the beam from left datum point (section a) in meters = deflection of the beam from right hand side datum point (section b) in meters Create a VBA Sub Procedure to estimate the deflections of the beam ( and ) as a function of known quantities W, E, I, l,a, and b. Your subroutine should take as inputs the following beam parameters: W, E, I, l, a and b. These values will be entered by the user in the worksheet in the range A6-C11 (I suggest column A defines the parameter names, column B defines their numerical values and column C defines the units of each parameter. The output of the VBA Sub Procedure consists of the values of beam deflections ( and ) and their stations (values of x and v). These values should be passed back to the worksheet and written in column format below the range of cells used to define the input parameters (i.e., below row 11). Write a loop inside the Sub Procedure to write the output back to the worksheet. The values of ( and ) should be calculated every 0.1 meter along the beam using incremental values of x and v needed to estimate ( and ). Make sure to clear the table before writing back to the spreadsheet as demonstrated in class. Test your VBA Sub procedure using the following values for the beam model parameters. Assume a steel beam is 8 meters long and has the following parameters. W = 6000 N E = 200e9 N/m-m I = 0.001 m 4 l = 8 meters a = 3 meters b = 5 meters Task 3: Plot the results of the beam deflections as a continuous distance (from the left datum of the beam) and verify that the deflections make sense. Note that I added a negative sign to the deflection equations to show the deflections downwards. Task 4: Create a second VBA Sub procedure to estimate the reactions on both ends of the beam. Write the results back to the spreadsheet in the area of your choice. Show all your screen captures of the output and the VBA code. CEE 3804 Trani Page 2 of 5

Problem 2 A civil engineer is designing an acceleration ramp on a highway using data provided b truck manufacturer. The truck manufacturer provides a mathematical model based on the solution of two differential equations of motion to predict the velocity and distance profiles of the truck asa function of time. The equations are shown below. The velocity profile is, where: V t = is the velocity (m/s) of the truck as a function of time (t) V 0 = is the initial velocity of the truck (m/s) k 1 = is an acceleration constant (m/s 2 ) k 2 = is another acceleration constant (1/s) S t = is the distance traveled by the truck (m) t = is the time (seconds) Create a VBA subroutine to estimate the velocitnd distance profiles ( V t and S t ) for any time ( t ), initial velocity, and truck acceleration constants ( k 1 and k 2 ). Test your subroutine with the following parameters: V 0 = 0 m/s k 1 = 1.0 (m/s 2 ) k 2 = 0.03 (1/ s) t = 60 (seconds) Use the computer program created in Task 1 to examine the sensitivity of V t and S t with time ( t ). Create a table in Excel for values of ( t ) starting at time = 0 and ending at 90 seconds (steps of 1 second). Use these values to estimate the velocitnd distance traveled every second. As usual, create the headers for the table in VBA code in the same VBA subroutine. Pass the output results to the spreadsheet and create a plot outside VBA showing the variations of V t and S t with time ( t ). Find the speed and distance traveled by the truck after 90 seconds. Task 3: Plot the velocitnd distance profiles of the truck (in Excel) as the results of the analysis in Task 2. CEE 3804 Trani Page 3 of 5

Task 4: Find the length of the acceleration ramp needed for this vehicle if the design speed of the highway is 65 mph (~29 m/s). Comment on the process to select such value. CEE 3804 Trani Page 4 of 5

Problem 3 Figure 2 illustrates the basic forces acting on a suspension bridge. The weight per unit length (w) is 168 kn/meter for the bridge in question. Formulas to calculate the horizontal (H) and vertical (V) forces acting on the bridge tower are: V = 1 2 ws H = ws2 8d T = H 2 + V 2 where: w is the load applied on the suspension cable per unit length (kn/m), S is the span of the suspension bridge (meters), d is the maximum dip (meters) of the cable (see Figure 2) and T is the suspension cable tension (N). Figure 2. Suspension Bridge. Create a simple VBA program to calculate the values of V, H and T. Produce three outputs in your subroutine and send them back to a separate worksheet that acts as user interface. In your program declare all variables explicitly (use the Option Explicit command as shown in class). Test your program with the following values: w = 168kN/meter, S = 200 meters, d 20 meters Test your program and predict the tension in the bridge cable if w is 173 kn/m, S = 230 meters, d 24 meters. CEE 3804 Trani Page 5 of 5