Skip to main content

Analyzes TRA files for stress and strain

Project description

Python Package to extract information about the Stress, Strain and Young Modulus from a set of .TRA files

Set up Instructions

Run the following command in the conda/miniconda terminal to install the package: pip install extrudion

Import the package in your Jupyter project or Python script: import extrudion as ex

Available commands:

Analyze a whole directory ex.analyzeDirectory(folder_path, cut_off = True, sample_thickness = 10) plots all the .TRA files in the given directory.

returns a pandas DataFrame containing

Arguments:

  • folder_path can be left empty to analyze the current working directory (e.g. ex.analyzeDirectory() )

  • folder_path can be a relative path to a folder within the current working directory (e.g. ex.analyzeDirectory('data') )

  • folder_path can be the absolute path (e.g. ex.analyzeDirectory('C:\Users\Desktop\extrusion_data') )

  • cut_off is by default True and must not be specified. If it is true, cuts the data at the max value of Stress

  • sample_thickeness is the value in mm of the size of the sample. The surface of the sample is sample_thickeness * 10 converted in meters squared. If not specified, a value of 10 mm is assumed.

The results are saved in analysis.csv file in the same directory.

Analyze a single file ex.analyzeFile(*file_path*, folder=[], cut_off = True, sample_thickeness = 10)

analyzeFile, analyzes a single file and returns the pandas.Dataframe with the results as shown below. -folder must be specified as a second argument -cut_off and sample_thickness can be specified as a third argument as shown above.

Mathematical Formulas

Stress = Force['N'] / sample_thickness / 10 * 10^3

returns gives the stress in kPa

Strain = ln( length['mm'] / initial length ['mm'] )

Young Modulus = slope of the best line fit for the curve

Intercept = the incercet of the previous fit

Yield Stress and Strain are the point of intersection for the Young modulus line shifted by 0.02 in the Strain and the data.

Example

image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

extrudion-2.1.3.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

extrudion-2.1.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file extrudion-2.1.3.tar.gz.

File metadata

  • Download URL: extrudion-2.1.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.13 Windows/10

File hashes

Hashes for extrudion-2.1.3.tar.gz
Algorithm Hash digest
SHA256 898a848d17763a6b103e20cdda39bfa70323877d4aa36710773aab3e3c029c0f
MD5 fce825a8bfac95d562d80f6b2c2ef13a
BLAKE2b-256 9d6d1ff341151baf08bb2b96a7581feb8397454de884732584c750323309b176

See more details on using hashes here.

File details

Details for the file extrudion-2.1.3-py3-none-any.whl.

File metadata

  • Download URL: extrudion-2.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.13 Windows/10

File hashes

Hashes for extrudion-2.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2d10ff97bd1b94abd62f5f533c8b077ebfba2875f160ce099111ab53e4517fab
MD5 22ecacc7a8bc0cf5b6bf9b8a8bc70818
BLAKE2b-256 79f0d58b1d2bd96e96eacd2852df9a4297493cf51e4841f2ae066350b1cd8815

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page