effective use of python in transportation engineering teaching

24
Mehmet M. Kunt Eastern Mediterranean Univeristy SciPy 2010 June 28July 3 Austin, Texas

Upload: others

Post on 11-Feb-2022

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Effective use of Python in Transportation Engineering Teaching

Mehmet M. KuntEastern Mediterranean Univeristy

SciPy 2010June 28‐ July 3Austin, Texas

Page 2: Effective use of Python in Transportation Engineering Teaching

OutlineTransportation engineering teaching for civil engineering studentsObjectiveWhat is expected?Current SituationCoding of the ConceptExamplesBenefits

Page 3: Effective use of Python in Transportation Engineering Teaching

Transportation engineering teaching in civil engineering

Third year courseFundamentals of transportation engineering in one semesterMost of the students have no background on transportation engineeringUse of commercial software is limited:

BudgetCommercial software are specialized so one software will not cover all the subjectsPython is versatile and flexible so any problem can be solved

Page 4: Effective use of Python in Transportation Engineering Teaching

ObjectiveUsing a software tool that will help the students to

Understand the conceptCheck their hand calculation accuracyUse software for what‐if analysis

Page 5: Effective use of Python in Transportation Engineering Teaching

What is expected?The students need to learn, understand and use engineering principles to solve the problems.

Page 6: Effective use of Python in Transportation Engineering Teaching

Current SituationVisual examples as given in textbooks are limitedDoing what if analysis may take away precious teaching timeThe students may have problem in

Understanding the problem, how to solve it?Selecting the appropriate formula for the solutionUsing the right unit in the calculations (i.e., radians vsdegrees)

Page 7: Effective use of Python in Transportation Engineering Teaching

Current SituationSurveying students on learning styles

Visual learning style is mainly usedProblem solving duration estimation

Hand calculation (with a calculator)Using Python

Post‐test survey of students

Page 8: Effective use of Python in Transportation Engineering Teaching

Current SituationDuration in minutes for one problem

Surveying students on learning styles

Visual is most preferredProblem solving duration estimation

Hand calculation (with a calculator)Using Python

Page 9: Effective use of Python in Transportation Engineering Teaching

Current Situation

Surveying students on learning styles

Visual is most preferredProblem solving duration estimation

Hand calculation (with a calculator)Using Python

Average duration = 5 min

Page 10: Effective use of Python in Transportation Engineering Teaching

Coding of the conceptEquationsPython Code

Page 11: Effective use of Python in Transportation Engineering Teaching

c

ss R

L2

cs RLA =4

5

40AL

LX sss −=

6

7

2

3

3366 AL

AL

Y sss −=

⎟⎠⎞

⎜⎝⎛= −

XYd 1tan

22 YXc +=

( )scs RYp θcos1−−=

scs RXk θsin−=

( ) ⎟⎠⎞

⎜⎝⎛ Δ+=

2tan' pRT c

sradcc LRL −Δ=

Spiral CurveInput:Δ, Rc, Ls

Page 12: Effective use of Python in Transportation Engineering Teaching

Coding of the concept‐Python Modules

Python 2.6.5NumpyMatplotlib

Page 13: Effective use of Python in Transportation Engineering Teaching

Coding of the concept‐Python Functions

Python 2.6.5Numpy

Degree to radian conversion (pi)Array calculationsArray statistics – average(), mean (), std()Linear algebra – lstsq()Trigonometric functions

Page 14: Effective use of Python in Transportation Engineering Teaching

Portland Cement Concrete Pavement Thickness Design based on Costs of subbase and pavement

Vertical Curve – Sag or Crest, finding the lowest or highest point

Page 15: Effective use of Python in Transportation Engineering Teaching
Page 16: Effective use of Python in Transportation Engineering Teaching

Limiting Stress

Page 17: Effective use of Python in Transportation Engineering Teaching
Page 18: Effective use of Python in Transportation Engineering Teaching

CIVL361 TRANSPORTATION ENGINEERINGInstructor: Dr. Mehmet M. Kunt

Computer Name: datron-86c6bb17 Date : 2010-06-28IP Number is : 94.79.97.87

Input Variables=============================================================g1 = -2.7 %; g2 = 1.5 %; Length of the Curve = 3.5 sta=============================================================

RESULTS===========================================================THIS IS A SAG VERTICAL CURVE

Rate of change of grade is 1.200 %/StaLocation of lowest point is 2.25 sta from BVCStation of PI = 150 + 0 staElevation of PI = 25.0 mStation of BVC = 148 + 25 staElevation of BVC = 29.73 mStation of lowest point = 150 + 50 staElevation of lowest point = 26.69 m===========================================================

Page 19: Effective use of Python in Transportation Engineering Teaching
Page 20: Effective use of Python in Transportation Engineering Teaching

CIVL361 TRANSPORTATION ENGINEERINGInstructor: Dr. Mehmet M. Kunt

Computer Name: datron-86c6bb17 Date : 2010-06-28IP Number is : 94.79.97.87

Input Variables=============================================================g1 = 2.7 %; g2 = -1.5 %; Length of the Curve = 3.5 sta=============================================================

RESULTS===========================================================THIS IS A CREST VERTICAL CURVE

Rate of change of grade is -1.200 %/StaLocation of highest point is 2.25 sta from BVCStation of PI = 150 + 0 staElevation of PI = 25.0 mStation of BVC = 148 + 25 staElevation of BVC = 20.27 mStation of highest point = 150 + 50 staElevation of highest point = 23.31 m===========================================================

Page 21: Effective use of Python in Transportation Engineering Teaching
Page 22: Effective use of Python in Transportation Engineering Teaching
Page 23: Effective use of Python in Transportation Engineering Teaching

BenefitsTime savings (one problem for 24 students saved two‐8 hr day)Efficient, accurate, reliable problem solving environmentAllows the instructor to discuss more cases, advanced issueAllows build‐up of knowledge without forcing the students to memorize the examples or assumptionsThe attention will be on using the right input and obtaining the right decisions 

Page 24: Effective use of Python in Transportation Engineering Teaching