You are on page 1of 2

ENG-COMP/Task 1/March 3rd

__________________________________________________________________________________

 Please do this task in the editor window and save it as a M-file script.
 Your file should include appropriate comments to identify each problem and to describe your
calculation process.
 Please start your script with the comments:
% Name :
% NIM :
% Task #1
 Divide each problem script using cell mode.
 When you finish, send the M-file to martinus.dewa@sampoernauniversity.ac.id before
10.40AM today. Late submission will not be accepted.
 You can open course presentation slide, your book, and browse everything from internet to
get the data you need, but discussing the problems and copying MATLAB® code from your
friend is strictly prohibited. (I will know if you do it).
_________________________________________________________________________________

1. Create MATLAB® code to perform the calculation of APF (Atomic Packing Factor) and
theoretical density of these metals (assume there is no thermal expansion):

a. Aluminium (at 25°C)


b. Aluminium (at 200°C)
c. Iron (at 25°C)
c. Iron (at 1000°C)

2. Tensile test is one way to get the strength of one material. The test was conducted on a steel
rod specimen. The cross section surface of the specimen is circle with the initial diameter
D0 : 6mm and initial gauge length L0 : 25mm as shown on the following picture:

D0: 6 mm

L0:25mm

After the test,the tensile test machine gave the result as shown on the following Load vs
Elongation curve :
Tensile Test Result
18000

16000

14000

12000
Load - F (Newton)

10000

8000

6000

4000

2000

0
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Elongation - Δl (mm)

Load (F) and elongation (Δl) are dependent to the dimension of the specimen. To make them
independent, The curve must be transform into Stress (σ) vs Strain (e) curve by using these
equations:

𝐹 (𝑙𝑜𝑎𝑑 𝑖𝑛 𝑁)
σ (Stress in MPa) =
𝐴0 (𝑖𝑛𝑖𝑡𝑖𝑎𝑙 𝑠𝑢𝑟𝑓𝑎𝑐𝑒 𝑎𝑟𝑒𝑎 𝑖𝑛 𝑚𝑚2 )

and

𝛥𝑙 (𝑒𝑙𝑜𝑛𝑔𝑎𝑡𝑖𝑜𝑛 𝑖𝑛 𝑚𝑚)
e (Strain) =
𝐿0 (𝑖𝑛𝑖𝑡𝑖𝑎𝑙 𝑔𝑎𝑢𝑔𝑒 𝑙𝑒𝑛𝑔𝑡ℎ 𝑖𝑛 𝑚𝑚)

Create MATLAB® code to show a table containing the data of load (F), stress (σ), elongation
(Δl), and strain (e).

Hint: Use the points on the curve for calculating the stress and strain from load and
elongation.

You might also like