**This package is still under development. Be aware of often updates!**
# MaTan
Shortcut comes from **Mat**erial **An**analysis - ultimately is should contains modules allowing user to calculate metals and polymers properties from tensile, HDT (polymers) and DSC tests, as well as the others. There are few similar packages in PyPI, but none of them I found good to me, so I wrote new one.
For now it includes:
- ISO:527-1 (polymers analysis)
# Abstract
Nowadays, Python is one of the most popular programming languages, even in non-informatics fields like mechanical engineering, due to its simplicity, and computer analysis solvers using FEM methods are part of almost all components, albeit access to material data is sometimes hard due to inadequate data in the datasheets, problems with calculations, inconsistent information, etc. To overcome this problem, the Python package was created, which allows to calculate the stress, strains, tensile modulus, and other properties from force and elongation data from a machine. For now, it includes only polymer tests according to the ISO-527-1 standard, but in the future, other standards should be included.
Moreover, the package would need a graphical user interface, which could make it even simpler to use and, more importantly, allow users to upload their obtained results into OpenAccess databases and export plastic strains, tensile modulus, and other properties needed to perform FEM and other numerical analysis. That could make FEM methods even more accessible, which would lead to a decrease in the use of unnecessary materials and, due to this, less CO2 pollution.
# How to use it?
Just simply put elongation and force arrays into sample
Be aware that sometimes csv files can have diffrent extension depends on machine manufacturer. To be sure just check it using simples notepad, or try to read it by pandas.
```python
import matan as mt
import pandas as pd
path_to_your_CSV = r"path/to/your/CSV"
'''
Be aware that somethimes some software machines uses diffrent encoding! Check the documentation of pandas.read_csv for more
'''
test_data_frame = pd.read_csv(path_to_your_CSV)
elongation_array=df["elongation"]
force_array=df["force"]
# This uses N ewtons and mm by default to ensure [N/mm^2] as it is equal to MPa
# by default force units are Newtons and lenght units are mm
example=mt.sample(name="your sample name",
thickness = 5,
width= 5,
elongation_array=elongation_array,
force_array=force_array
)
# tensile modulus values between engineering value and real value
print(ext.eng_values.tensile_modulus,
ext.real_values.tensile_modulus)
# Engineering values
# Value of strenght
print(ext.eng_values.strength.value,
ext.eng_values.strength.strain)
# Values at break
print(ext.eng_values.at_break.stress,
ext.eng_values.at_break.strain)
# Yield strenght values
print(ext.eng_values.yield_strength.value,
ext.eng_values.yield_strength.strain)
# Real values
# Value of strenght
print(ext.real_values.strength.value,
ext.real_values.strength.strain)
# Values at break
print(ext.real_values.at_break.stress,
ext.real_values.at_break.strain)
# Yield strenght values
print(ext.real_values.yield_strength.value,
ext.real_values.yield_strength.strain)
```
Raw data
{
"_id": null,
"home_page": "https://codeberg.org/309631/matan",
"name": "MatAn",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "material analysis,ISO 527,ISO 527-1,polymers analysis",
"author": "Igor Cudnik",
"author_email": "igor.cudnik@student.put.poznan.pl",
"download_url": "",
"platform": null,
"description": "**This package is still under development. Be aware of often updates!**\n# MaTan\n\nShortcut comes from **Mat**erial **An**analysis - ultimately is should contains modules allowing user to calculate metals and polymers properties from tensile, HDT (polymers) and DSC tests, as well as the others. There are few similar packages in PyPI, but none of them I found good to me, so I wrote new one. \n\nFor now it includes:\n- ISO:527-1 (polymers analysis)\n\n# Abstract\n\nNowadays, Python is one of the most popular programming languages, even in non-informatics fields like mechanical engineering, due to its simplicity, and computer analysis solvers using FEM methods are part of almost all components, albeit access to material data is sometimes hard due to inadequate data in the datasheets, problems with calculations, inconsistent information, etc. To overcome this problem, the Python package was created, which allows to calculate the stress, strains, tensile modulus, and other properties from force and elongation data from a machine. For now, it includes only polymer tests according to the ISO-527-1 standard, but in the future, other standards should be included.\n\nMoreover, the package would need a graphical user interface, which could make it even simpler to use and, more importantly, allow users to upload their obtained results into OpenAccess databases and export plastic strains, tensile modulus, and other properties needed to perform FEM and other numerical analysis. That could make FEM methods even more accessible, which would lead to a decrease in the use of unnecessary materials and, due to this, less CO2 pollution.\n\n\n# How to use it?\n\nJust simply put elongation and force arrays into sample\n\nBe aware that sometimes csv files can have diffrent extension depends on machine manufacturer. To be sure just check it using simples notepad, or try to read it by pandas.\n\n```python\nimport matan as mt\nimport pandas as pd\n\npath_to_your_CSV = r\"path/to/your/CSV\"\n\n\n'''\nBe aware that somethimes some software machines uses diffrent encoding! Check the documentation of pandas.read_csv for more\n'''\ntest_data_frame = pd.read_csv(path_to_your_CSV)\n\nelongation_array=df[\"elongation\"]\nforce_array=df[\"force\"]\n\n# This uses N ewtons and mm by default to ensure [N/mm^2] as it is equal to MPa\n# by default force units are Newtons and lenght units are mm\nexample=mt.sample(name=\"your sample name\",\nthickness = 5,\nwidth= 5,\nelongation_array=elongation_array,\nforce_array=force_array\n)\n\n\n\n# tensile modulus values between engineering value and real value\nprint(ext.eng_values.tensile_modulus,\next.real_values.tensile_modulus)\n\n# Engineering values\n# Value of strenght\nprint(ext.eng_values.strength.value,\next.eng_values.strength.strain)\n\n# Values at break\nprint(ext.eng_values.at_break.stress,\next.eng_values.at_break.strain)\n\n# Yield strenght values\nprint(ext.eng_values.yield_strength.value,\next.eng_values.yield_strength.strain)\n\n# Real values\n# Value of strenght\nprint(ext.real_values.strength.value,\next.real_values.strength.strain)\n\n# Values at break\nprint(ext.real_values.at_break.stress,\next.real_values.at_break.strain)\n\n# Yield strenght values\nprint(ext.real_values.yield_strength.value,\next.real_values.yield_strength.strain)\n\n```\n",
"bugtrack_url": null,
"license": "GPLv3",
"summary": "Material analysis package to plot or extract properties like tensile modulus etc.",
"version": "0.1.5.2.6",
"project_urls": {
"Homepage": "https://codeberg.org/309631/matan"
},
"split_keywords": [
"material analysis",
"iso 527",
"iso 527-1",
"polymers analysis"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "93585486840a56812a694de8de9868ff5990bd3a7e3f18c011e63405107f5470",
"md5": "05ea3427a42f19c01eb606f756075815",
"sha256": "a86fe8fabdfa3e6047e055fa134e63dccce184135d2eaa8f6a64f0082a9008d0"
},
"downloads": -1,
"filename": "MatAn-0.1.5.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "05ea3427a42f19c01eb606f756075815",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 23260,
"upload_time": "2023-06-09T12:32:21",
"upload_time_iso_8601": "2023-06-09T12:32:21.293811Z",
"url": "https://files.pythonhosted.org/packages/93/58/5486840a56812a694de8de9868ff5990bd3a7e3f18c011e63405107f5470/MatAn-0.1.5.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-09 12:32:21",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": true,
"codeberg_user": "309631",
"codeberg_project": "matan",
"lcname": "matan"
}