Graphing in Mathcad.

Slides:



Advertisements
Similar presentations
Living with the lab Equilibrium of Non-Concurrent Force Systems support reactions weight of bridge deck on beam BEAM.
Advertisements

Linear regression quality of the fit and automating the analysis in Excel living with the lab © 2011 David Hall and the LWTL faculty team The Living with.
Introduction to linear regression living with the lab © 2011 David Hall and the LWTL faculty team The Living with the Lab label, the Louisiana Tech Logo,
Using fixed-cell references and built-in functions in Excel living with the lab © 2012 David Hall.
220  470  Gnd5V Currents Through Parallel Resistors 1 living with the lab © 2012 David Hall.
Introduction to Microsoft Excel living with the lab © 2012 David Hall.
Kirchoff’s Current Law (KCL) living with the lab University of Pennsylvania Library and Wikipedia Gustav Kirchoff (left) and Robert Bunsen (right) Bunsen.
Adding a Barrel Jack to a Battery Pack living with the lab © 2012 David Hall.
Building Circuits.
Measuring & Drawing a Barbed Fitting
Pump Fabrication Day Group A will draw their pump
What you Need to Know to Succeed
Connecting Switches.
Introduction to Excel.
Series and Parallel Resistors
Pump Project Requirements
Pump Efficiency Fluid Energy Out + - Electrical Energy In.
Introduction to the Arduino
Why Won’t My Arduino Work?
Robot Challenge Introduction
Troubleshooting Your Multimeter
Introduction to SolidWorks
Servo Library and Functions
Pump Project Overview.
Robot Assembly.
How to Use Dial Calipers
Controlling a Motor with Cascading Switches
Introduction to the Fishtank
Conservation of Mass
RGB LEDs.
Conservation of Mass Problem
Prototyping with Sheet Metal
Linkages and Mechanisms
Conductivity Sensor.
Introduction to Excel.
Servo Library and Functions
Troubleshooting Your Multimeter
Introduction to Statics
Relays.
using for loops to control LEDs
using the Arduino to make LEDs flash
Acquiring Data from an ADXL335 Accelerometer
Using Photoresistors with an Arduino
Introduction to Mathcad
What you Need to Know to Succeed
Torque and RPM of Gears
Conservation of Mass Problem
Data Types.
analog and digital measurements
Finishing your Project
Using “if” statements.
Controlling the Heater
Conservation of Mass
Design Project Forecast
Digital Input from Switches
Measuring & Drawing a Barbed Fitting
Cash Flow Diagrams <in> <out> $200 $300 $150 $100
Arduino: For Loops.
Non-Concurrent Force Systems
IR Object Detection IR detector IR LED IR light reflected off object
Radio Frequency Transmitter and Receiver
Brainstorming.
Conservation of Mass Problem
Equilibrium of Non-Concurrent Force Systems
Non-Concurrent Force Systems
Evaluating Design Alternatives
Counting Servo Gear Teeth (FS90R Servos)
Static Equilibrium Problem
Freshman Design Expo Presentations
Gearmotor Efficiency W table top gearmotor pulley string.
Presentation transcript:

Graphing in Mathcad

DISCLAIMER & USAGE The content of this presentation is for informational purposes only and is intended for students attending Louisiana Tech University only. The authors of this information do not make any claims as to the validity or accuracy of the information or methods presented. Any procedures demonstrated here are potentially dangerous and could result in damage and injury. Louisiana Tech University, its officers, employees, agents and volunteers, are not liable or responsible for any injuries, illness, damage or losses which may result from your using the materials or ideas, or from your performing the experiments or procedures depicted in this presentation. The Living with the Lab logos should remain attached to each slide, and the work should be attributed to Louisiana Tech University. If you do not agree, then please do not view this content. boosting application-focused learning through student ownership of learning platforms

Draw a FBD of the beam for x = 2 m. Class Problem: A stunt motorcycle driver rides a wheelie across a bridge. The combined weight of the rider and the motorcycle is 2.45 kN (about 550 lbs). Draw a FBD of the beam for x = 2 m. Determine the reactions at A and C for x = 2 m. Derive an equation for the reactions at A and C as a function of x. Enter the equation from (c) into Mathcad, and plot Ay and Cy versus x on the same plot. Assumptions: The tire will have frictional forces with the road that could lead to a non‐zero value for Ax. Ignore these forces when computing reactions. Ignore dynamic effects (bumps, bouncing, change in motorcycle angle, etc. ). Solution: 𝑦 𝑊=2.45𝑘𝑁 x=2m 5m 𝐴 𝑥 𝑥 𝐴 𝑦 𝐶 𝑦

b. Determine the reactions at A and C for x=2m 𝐹 𝑥 = 𝐴 𝑥 =0 𝑦 𝐴 𝑥 𝐴 𝑦 𝐶 𝑦 𝑊=2.45𝑘𝑁 b. Determine the reactions at A and C for x=2m 𝐹 𝑥 = 𝐴 𝑥 =0 𝑀 𝐴 =−2.45𝑘𝑁∙2𝑚+ 𝐶 𝑦 ∙5𝑚=0 + c. Derive the reactions for A and C as a function of x. Starting with Cy , replace the distance of “2m” with the variable “x.” 𝐶 𝑦 = 2.45𝑘𝑁∙2𝑚 5𝑚 =0.98𝑘𝑁 𝐶 𝑦 = 2.45𝑘𝑁∙2𝑚 5𝑚 ⟹ 𝐶 𝑦 (𝑥)= 2.45𝑘𝑁∙𝑥 5𝑚 𝐹 𝑦 = 𝐴 𝑦 + 𝐶 𝑦 −2.45𝑘𝑁=0 𝐴 𝑦 +0.98𝑘𝑁−2.45𝑘𝑁=0 Now, solve for Ay in terms of x, utilizing the equation for Cy as determined above. 𝐴 𝑦 =1.47𝑘𝑁 𝐴 𝑦 + 𝐶 𝑦 −2.45𝑘𝑁=0 𝐴 𝑦 =2.45𝑘𝑁− 𝐶 𝑦 ⇒ 𝐴 𝑦 (𝑥)=2.45𝑘𝑁− 2.45𝑘𝑁∙𝑥 5𝑚 𝐴 𝑦 (𝑥)=2.45𝑘𝑁−0.49∙𝑥

d. Enter the equation from (c) into Mathcad, and plot Ay and Cy versus x on the same plot. In preparation to put the equations derived in part c into Mathcad, it is good practice to parameterize the equations. To parameterize, means to assign a variable to all knowns. You can define these variables at the beginning of your Mathcad worksheet. Now if any of these known values change you only have to make adjustments to the beginning of the sheet and the Mathcad recalculates all of the answers accordingly. Parameterized variables: 𝑊=2.45𝑘𝑁 𝑙=5𝑚 If we define these variables at the beginning of our Mathcad worksheet, we can use these forms of the equations for C(x) and Ay(x). From part c. 𝐶 𝑦 𝑥 = 2.45𝑘𝑁∙𝑥 5𝑚 ⟹ 𝐶 𝑦 (𝑥)= 𝑊∙𝑥 𝑙 𝐴 𝑦 𝑥 =2.45𝑘𝑁− 2.45𝑘𝑁∙𝑥 5𝑚 ⟹ 𝐴 𝑦 (𝑥)=𝑊− 𝑊∙𝑥 𝑙

Second value in the list d. Enter the equation from (c) into Mathcad, and plot Ay and Cy versus x on the same plot. Notice these X and x are different. X is defined to equal 2m, but x is used as the function variable. Mathcad is case sensitive. You can use that to your advantage. Step 1: Early in the spreadsheet define the parameterized variables. Enter the parameterized form of the equations. Be sure to write the functions as Ay(x) and Cy(x). Use a colon to assign the left hand side to the right hand side, which will display as := on your screen. Step 2: Set the first, second and last values of the variable x. The increment in x will be set to the second value minus the first value; that is, the increment will be 0.2 below (0.2 = 0.2 – 0). Key Stroke: x : 0m , 0.2m 5m (notice how the structure appears once you type the comma) Second value in the list Starting value Ending value

Step 3: Go to the “Plots” tab and click “Insert Plot” and choose “XY Plot” Step 4: Enter the appropriate independent and dependent variables. The independent variables are the x values. The dependent variables are the Ay and Cy ; we will plot two lines on one graph. Step 5: Add the second plot on the graph by pressing <shift> <enter>. Notice how the graph starts at 0m and ends at 5m.

Step 6: Customize the plot through formatting. Move the y-axis to a more intuitive location by clicking on the label and dragging it to a different location. Change line colors. Add markers. Adjust line thickness.