Introduction to Mathcad

Slides:



Advertisements
Similar presentations
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2012 David Hall.
Advertisements

User-defined functions in Arduino sketches living with the lab © 2012 David Hall.
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.
Building Circuits.
Measuring & Drawing a Barbed Fitting
Pump Fabrication Day Group A will draw their pump
What you Need to Know to Succeed
Controlling Servos with the Arduino
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
Line Following Tips photoresistor circuits
Pump Project Overview.
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
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
Using Photoresistors with an Arduino
What you Need to Know to Succeed
Line Following Tips photoresistor circuit
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
Implementing Switches Using Interrupts
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.
Graphing in Mathcad.
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
Reservoir Loop.
Freshman Design Expo Presentations
Gearmotor Efficiency W table top gearmotor pulley string.
Presentation transcript:

Introduction to 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

Mathcad is like a digital engineering notebook. Calculations are a critical part of engineering, and documenting these calculations is important. Mathcad is like a digital engineering notebook. Uses and benefits of Mathcad include: Live mathematical notations Units intelligence Powerful calculation capabilities Calculation presentation through graphs, plots, text, and images Source: https://www.ptc.com/en/products/mathcad

Mathcad Interface Ribbon user interface with tabs: Math, Input/Output, Functions, Matrices/Tables, Plots, Math Formatting, Text Formatting, Calculation, Document, & Resources Cursor identifying where you are on the worksheet Worksheet used to write all calculations and other documentation. Think of this as “smart” paper

Typing Calculations Versus Text Math Mode: Do you notice any subtle differences in the Math Mode versus the Text Mode? Text Mode: Both Math and Text Modes can be useful depending on what you are trying to accomplish. Text Mode allows you to input text in the worksheet, like comments or other forms of documentation that you do not need the worksheet to calculate. Math Mode allows you to input data (number and units) that may be used in your calculations. By default the worksheet is written in math mode. You need to tell the worksheet to shift to text mode. Under the Math tab, click Text Block (large block allotted for text) or Text Box (smaller box allotted for text).

Predefined Variables & Units Mathcad has predefined variables for commonly used values. Notice how the predefined variable turns green when you type. After you press = the predefined value appears. You should AVOID redefining the predefined variables by using them for different variables (e.g., setting g=10lbf, because g is already defined as gravity = 9.81 m/s2). Mathcad has predefined units and can move seamlessly between metric and US Customary units. Notice how the units turn blue when you type them or when they appear after the = sign. If using US Customary units, after you press = Mathcad will automatically convert to metric units. You should AVOID redefining the predefined units by using them for different variables (e.g., setting m=10lbf, because m is defined as meters)

Using Mathcad Use the example problem to build a Mathcad Worksheet Example Problem: For the forces and angles depicted below, what is the magnitude of the resultant force (provide answer in lbf), and what is the angle that the resultant force makes with the x-axis (provide answer in degrees)? 𝐹 1 =44.962 𝑙𝑏𝑓 𝐹 2 =850 𝑁 𝜃 1 =0.489 𝑟𝑎𝑑 𝜃 2 =18° First, set up your sheet like you would with any engineering problem – Use Engineering Format Insert text boxes to format the heading, label the problem, type the given information. Format the text in the Text Formatting tab.

Using Mathcad Use the example problem to build a Mathcad Worksheet Example Problem: For the forces and angles depicted below, what is the magnitude of the resultant force (provide answer in lbf), and what is the angle that the resultant force makes with the x-axis (provide answer in degrees)? 𝐹 1 =44.962 𝑙𝑏𝑓 What do you notice about these given values? 𝐹 2 =850 𝑁 𝜃 1 =0.489 𝑟𝑎𝑑 Do you need to convert the units before entering them into Mathcad? 𝜃 2 =18° No! Mathcad can seamlessly translate between the different unit systems. You can type the values as given in the problem. Once the initial format is set for the worksheet, you need to insert the given variables. Why are the equal signs preceded by “:”? When you are assigning a value to a variable, Mathcad needs to know this is your intent. The “=“ on your keyboard is used by Mathcad to calculate values. Assigning values uses a special equal sign “:=“ that you get by pressing <shift> ; To insert θ (or other Greek letters), click symbols section in the Math Tab. To place a subscript press <ctrl> -

You will likely need to do some preliminary calculations before getting to your solution. Notice how text is used like comments to help understand what is being calculated. Using Mathcad Break F1 and F2 into their x and y components. := is used to define the values being calculated = is used to calculate the answer Even though the answer is asked to be in lbf, intermediate calculations can be left in N. Notice, we do not type the units for F1 or θ1 since the units are already stored within the variable. Rule of Thumb: Type a unit whenever you type a number, not when you type a variable! Be aware of the direction of your forces. Since F2y is in the negative direction, you need to put a – sign here. Mathcad is smart, but not that smart!

Using Mathcad Notice R is defined using := then calculated with = To get the square root symbol you press \ To get exponents press ^ Initially the calculation will be given in Newtons Within the calculation box, erase the N and type lbf (must be lbf to calculate force) Notice θ is defined using := then calculated with = To get the division symbol you press / Initially the calculation will be in rad Within the calculation box, a unit box will appear, type deg

Formatting and Other Tips Use the Math Formatting tab to: Highlight math text Change the color of math text Change font type and size Edit the appearance of a number Result Format – General, Decimal, Scientific Notation Display Precision – Change number of decimal places Resources Tab Help feature – large library of information, includes sample text that you can copy and paste into your worksheet help you get started on a calculation. Tutorials – sample exercises to help familiarize yourself with Mathcad. Keyboard shortcuts – list of keyboard shortcuts that will make using Mathcad much easier.