EGR_102_Lab_05A_HW

# EGR_102_Lab_05A_HW - EGR 102 Introduction to Engineering...

This preview shows page 1. Sign up to view the full content.

EGR 102 Introduction to Engineering Modeling Lab 5A Homework Part 1. The ultimate tensile stress of a material is measured in Pascals ( N/m 2 ) in metric units; or in PSI ( lb f /in 2 ) in English units. Write a MATLAB function that takes as input a stress in Pascals, then converts the stress value to psi, and outputs that value. Use the unit conversions: 1 lb f = 4.448 N and 39.370 in = 1 m Test the function twice in the Command Window using 6x10 8 N/m 2 (Aluminum) and 2x10 9 N/m 2 (Steel). Part 2 . The pressure P ( Pa ) of an ideal gas in a container can be calculated from the number of moles of the gas n ( mol ), the volume V ( m 3 ) of the container, and the temperature it is being held at T ( K ) using the equation PV=nRT . The universal gas constant is R = 8.314472 Pa·m 3 /K·mol . The mass of the gas m ( kg ) is related to the number of moles n and the gas’ molar mass M ( kg/mol ) using m = Mn . Five gases have the following molar masses: Gas Type Air Oxygen Helium Nitrogen Water Vapor
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 04/23/2011 for the course EGR 102 taught by Professor Hinds during the Spring '09 term at Michigan State University.

Ask a homework question - tutors are online