This repository contains a file data.csv that is actual data from a stress-strain test conducted in a standard test frame (MTS machine). The columns of data have the following format
time | Axial Displacement | Axial (engineering) Strain | Axial Force |
---|---|---|---|
(s) | (in) | (in/in) | (lbf) |
Complete the function definition for the function named convert_to_true_stress_and_strain(filename::String)
. This function should take the name of a file (e.g. "data1.csv"
) as an string argument and return a tuple (
Recall that the definition of engineering stress is
where parse_width_and_thickness(filename::String)
returns as a tuple. There is also a function read_data_file(filename::String)
that will read the CSV file and return only the raw data as a two-dimensional Array
of Float64
s.
The conversion between engineering
The conversion between engineering and true stress is
Use broadcasted operations to make your code compact and efficient. No for
loops!
Complete the function compute_toughness(filename::String)
to compute the materials toughness. Recall that toughness is the area under the stress-strain curve, i.e.
Use the true stress and strain values computed in Problem 1, then use a trapezoid rule to do the integration. Again, you should use broadcasted operations for the computation.
To see if you answers are correct, run the following command at the Terminal command line from the repository's root directory
julia --project=. -e "using Pkg; Pkg.test()"
the tests will run and report if passing or failing.