Presentation is loading. Please wait.

Presentation is loading. Please wait.

Graphing in Mathcad.

Similar presentations


Presentation on theme: "Graphing in Mathcad."β€” Presentation transcript:

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.


Download ppt "Graphing in Mathcad."

Similar presentations


Ads by Google