Download presentation
Presentation is loading. Please wait.
1
Graphing in Mathcad
2
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
3
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 π΄ π₯ π₯ π΄ π¦ πΆ π¦
4
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βπ₯
5
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π βΉ π΄ π¦ (π₯)=πβ πβπ₯ π
6
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
7
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.
8
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.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.