Tutorial#
How to use the coupon function.
[2]:
import struct_post as sp
Read coupon test data file#
[3]:
data = sp.coupon.coupon_csvdata_read(testdata_file_name = 'S1.csv',
force_index = 2,
strain_index = 3)
Read the coupon geo data#
Please download the following file Sample geo data as the template to record your coupon geo data.
[4]:
geodata = sp.coupon.coupon_sample_geodata_read(Excelfile_name = 'Sample Data.xlsx')
Coupon test analysis#
[5]:
#%matplotlib widget
sp.coupon.coupon_test_analysis(sample_name = data[0],
Force = data[1]['Force'],
Strain = data[1]['Strain'],
thickness = geodata[0].thickness,
width = geodata[0].width)
Sample: S1
Young's Modulus (E): 219532.93 MPa
Ultimate Tensile Strength (UTS): 401.99 MPa
Yield Strength: 281.19 MPa
----------------------------------------
[5]:
('S1',
{'E_MPa': np.float64(219532.9298272338),
'UTS_MPa': np.float64(401.98968479999996),
'Yield_Strength_MPa': np.float64(281.1897536467429)})
[6]:
geodata
[6]:
[coupon_SampleDetails(sample_name='S1', width=2.5, thickness=10, sample_file_name='S1.csv'),
coupon_SampleDetails(sample_name='S2', width=3, thickness=10.55, sample_file_name='S2.csv'),
coupon_SampleDetails(sample_name='S3', width=2, thickness=8, sample_file_name='S3.csv'),
coupon_SampleDetails(sample_name='S4', width=3.5, thickness=9, sample_file_name='S4.csv'),
coupon_SampleDetails(sample_name='S5', width=4, thickness=9, sample_file_name='S5.csv')]
[7]:
batch_results = sp.coupon.coupon_batch_analysis(Coupon_geodata = geodata,
force_index = 2,
strain_index = 3)
Sample: S1
Young's Modulus (E): 219532.93 MPa
Ultimate Tensile Strength (UTS): 401.99 MPa
Yield Strength: 281.19 MPa
----------------------------------------
Sample: S2
Young's Modulus (E): 183319.36 MPa
Ultimate Tensile Strength (UTS): 314.69 MPa
Yield Strength: 212.02 MPa
----------------------------------------
Sample: S3
Young's Modulus (E): 116481.44 MPa
Ultimate Tensile Strength (UTS): 507.19 MPa
Yield Strength: 460.07 MPa
----------------------------------------
Sample: S4
Young's Modulus (E): 174232.48 MPa
Ultimate Tensile Strength (UTS): 319.04 MPa
Yield Strength: 223.17 MPa
----------------------------------------
Sample: S5
Young's Modulus (E): 160867.60 MPa
Ultimate Tensile Strength (UTS): 279.24 MPa
Yield Strength: 229.89 MPa
----------------------------------------
[8]:
sp.coupon.coupon_results_save(Excelfile_name = 'Sample Data.xlsx',
analysis_results = batch_results)
The coupon test data analysis is complete.