Ph15010
This presentation is the property of its rightful owner.
Sponsored Links
1 / 28

PH15010 PowerPoint PPT Presentation


  • 61 Views
  • Uploaded on
  • Presentation posted in: General

PH15010. Laboratory Techniques - An Introduction to MATHCAD. Introduction. Review of Last Week Modelling Projectile Motion. Review of Last Week. Assessed Exercise Sheet Layout Spelling Units Inverse Trig functions Defining Your Own Functions. Sheet Layout. Change sheet to A4 format

Download Presentation

PH15010

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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Ph15010

PH15010

Laboratory Techniques -

An Introduction to MATHCAD


Introduction

Introduction

  • Review of Last Week

  • Modelling Projectile Motion


Review of last week

Review of Last Week

  • Assessed Exercise

    • Sheet Layout

    • Spelling

    • Units

    • Inverse Trig functions

    • Defining Your Own Functions


Sheet layout

Sheet Layout

  • Change sheet to A4 format

    • File|Page Setup…|Paper Size|A4

  • Put your initials/email in page header

    • Format|Header/Footers…

  • Use Page Breaks

    • Insert|Page Break


More layout spelling

More Layout & Spelling

  • Watch the right hand margin

  • Can force print in single column

    • File|Page Setup…|Print Single Page Width


Aligning regions

Aligning Regions

  • Align Regions

    • Select with mouse

    • Format|Align Regions|…

    • Or select button from toolbar


Aligning regions before and after

Aligning Regions –Before and After


Separating regions

Separating Regions

  • Overlapping Regions

    • Looks bad

    • Makes debugging difficult

  • Format|Separate Regions


Spelling check

Spelling Check

  • Check spelling in worksheet

    • Edit|Check Spelling…


Units

Units

  • Don’t do your own conversions on answers

  • Use mathCADs facilities


Unit conversions of answers

Unit conversions of answers


Inverse trig functions

Inverse Trig Functions

  • Sometimes written as sin-1(x)

  • Use asin(x), acos(x), atan(x) etc

  • Pronounced arcsin, arccos, arctan…


User defined functions in mathcad

User Defined Functions in MathCAD

  • Define Once

  • Use many times


User defined functions in mathcad 2

User Defined Functions in MathCAD #2

  • Bad Example:

  • Not using function

  • No point in using function


User defined functions in mathcad 3

User Defined Functions in MathCAD #3

  • Good Example:

  • Function Defined ONCE

  • Used several times


Example worksheet projectile motion

Example Worksheet - Projectile Motion

  • Projectile Motion

  • Cannon Ball

  • Neglect Air Resistance

  • Use standard equations of motion

  • Supplied parameters

    • vMuzzle, a, g

  • Copy worksheet from:http://users.aber.ac.uk/dpl/ph15010/handouts/cannonball.mcd


Projectile motion 2

Projectile Motion #2


Projectile motion 3

Projectile Motion #3

  • Use simple trig to get x- and y- components of velocity


Projectile motion 4

Projectile Motion #4

  • Function to model x-axis motion

    • pX(t)

  • position of X w.r.t. time


Projectile motion 5

Projectile Motion #5

  • Function to model y-axis motion

    • pY(t)

    • Uses s=ut+1/2at2

    • Watch sign of acceleration


Projectile motion 6 graph of px t py t vs t

Projectile Motion #6Graph of pX(t) & pY(t) vs t


Projectile motion 7

Projectile Motion #7

  • Want to:

    • Determine time of impact

    • Plot parabola of pY vs pX


Projectile motion 8

Projectile Motion #8

  • Determine time of impact

    • Zoom in on graph & estimate

    • Use Solve Block


Projectile motion 9 the solve block

Projectile Motion #9The solve block

  • MathCAD can solve systems of equations

  • Structure

    • <Guess Values>

    • given

    • <System of equations>

    • Find(v)=


The solve block

The Solve Block

Guess Value

‘Given’ followed by system of equations

Bold = sign

Find(t) function


Range variables

Range Variables

  • Like for…next loop in basic

  • Variable takes on a range of values

  • Can then plot pY(t) vs pX(t)


Projectile motion py vs px

Projectile MotionpY vs pX


Projectile motion py vs px1

Projectile MotionpY vs pX


  • Login