Stress Strain calculation in matlab

29 views (last 30 days)
Ilksen Altuntas
Ilksen Altuntas on 18 Feb 2023
Answered: William Rose on 22 Feb 2023
I have about 1000 force and stroke values from a tensile test data. How can I transfer these values to matlab program? I need to show these operations on code. But since it is close to 1000, how should I find stress strain for each value by writing code?
  2 Comments
the cyclist
the cyclist on 18 Feb 2023
How are these values stored now? The method for getting them into MATLAB will depend on that. Can you upload the data? (You can use the paper clip icon in the INSERT section of the toolbar.)
It sounds like you might have very little MATLAB experience. I suggest you try the free MATLAB Onramp tutorial.
Cameron
Cameron on 22 Feb 2023
Force and stroke won't get you a stress-strain curve. You need to divide the force by the cross sectional area to get stress, and you need either an extensometer or strain gage to monitor strain. In the case of a dog-bone specimen, you can make an assumption that all straining occurs in the reduced area section, but this will likely not be very accurate of local strain. So as it stands, you cannot get an accurate value for yield, elongation at fracture, etc. for your given force and stroke inputs.

Sign in to comment.

Answers (1)

William Rose
William Rose on 22 Feb 2023
Good advice from @the cyclist, as always. And from @Cameron also.
If you just have a text file with 2 columns of numbers, do something like
A=load('testdata1.txt');
and you will get a matrix 'A' with two columns of data, which you can manipulate as you wish.
If you have a text file with headers, then you can do
B=importdata('testdata.txt');
which creates a structure 'B'. The column headers are in the cell array B.colheaders, and the data is in the double array B.data, which you can use for your calculations.
Try it.

Categories

Find more on Stress and Strain in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!