This package consists of functionalities useful for basic engineering studies.
Current Implementation : Finite Element Analysis on 2D problems has been implemented.\
In Progress : Literally everything.
[Github Repo Link](https://github.com/sayanbiswas023/mechy)\
[Pypi link](https://pypi.org/project/mechy/)
#INSTALLATION GUIDE:
```
pip install mech
```
```
pip3 install mechy
```
#DOCUMENTATION:
##2D Finite Element Analysis
Here is a demo code to display all outputs of a 2D Finite Element Analysis on a dogbone.
```
from mechy import FEM
FILE_PATH='demo_examples/2d_test.txt'
plot_type='all'
s=FEM()
s.fem2d(FILE_PATH,plot_type)
```
![Displacement_X](https://raw.githubusercontent.com/sayanbiswas023/mechy/master/mechy/images/u1.png)
![stress_11](https://raw.githubusercontent.com/sayanbiswas023/mechy/master/mechy/images/s11.png)
![stress_22](https://raw.githubusercontent.com/sayanbiswas023/mechy/master/mechy/images/s22.png)
![strain_12](https://raw.githubusercontent.com/sayanbiswas023/mechy/master/mechy/images/e12.png)
```
plot_type='all'
```
Variable plot_type should be among the list of possible output demands :
``` ['u1','u2','s11','s22','s12','e11','e22','e12','all']
```
The input file format is similar to standard simulating softwares as abaqus
```
### Input file syntax:
*Material
500, 0.06 # E and nu
*Node
1, 0.0, 0.0
2, 0.0, 1.0
3, 1.0, 1.0
4, 1.0, 0.0
*Element
1, 1, 2, 3, 4 # elemId, nodeid of vertices
*Step
*Boundary
1, 1, 2, 0.0 # nodeId, dof1, dof2, value
2, 1, 1, 0.0
3, 1, 1, 0.01
4, 1, 1, 0.01
4, 2, 2, 0.0
```
<br>
<img src="https://media.tenor.com/rJ4wiVqdmcAAAAAC/sponge-bob-hammer.gif" width="500" height="400">
Raw data
{
"_id": null,
"home_page": "",
"name": "mechy",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,engineering,finite element analysis,mechanics,stress,strain",
"author": "Sayan Biswas",
"author_email": "<biswas0235sayan@proton.me>",
"download_url": "https://files.pythonhosted.org/packages/52/4f/3c5a3d7808f653034ad3e2620ad3912253100b0809b949c4fdba29b81c38/mechy-0.0.11.tar.gz",
"platform": null,
"description": "\nThis package consists of functionalities useful for basic engineering studies.\n\nCurrent Implementation : Finite Element Analysis on 2D problems has been implemented.\\\nIn Progress : Literally everything.\n\n[Github Repo Link](https://github.com/sayanbiswas023/mechy)\\\n[Pypi link](https://pypi.org/project/mechy/)\n\n#INSTALLATION GUIDE:\n\n```\npip install mech\n```\n```\npip3 install mechy\n```\n\n#DOCUMENTATION:\n\n##2D Finite Element Analysis\nHere is a demo code to display all outputs of a 2D Finite Element Analysis on a dogbone.\n\n```\nfrom mechy import FEM\nFILE_PATH='demo_examples/2d_test.txt'\nplot_type='all'\n\ns=FEM()\ns.fem2d(FILE_PATH,plot_type)\n```\n\n![Displacement_X](https://raw.githubusercontent.com/sayanbiswas023/mechy/master/mechy/images/u1.png)\n![stress_11](https://raw.githubusercontent.com/sayanbiswas023/mechy/master/mechy/images/s11.png)\n![stress_22](https://raw.githubusercontent.com/sayanbiswas023/mechy/master/mechy/images/s22.png)\n![strain_12](https://raw.githubusercontent.com/sayanbiswas023/mechy/master/mechy/images/e12.png)\n\n\n```\nplot_type='all'\n```\nVariable plot_type should be among the list of possible output demands :\n``` ['u1','u2','s11','s22','s12','e11','e22','e12','all'] \n```\n\nThe input file format is similar to standard simulating softwares as abaqus\n\n```\n### Input file syntax:\n\n *Material\n 500, 0.06 # E and nu\n \n *Node\n 1, 0.0, 0.0\n 2, 0.0, 1.0\n 3, 1.0, 1.0\n 4, 1.0, 0.0\n \n *Element\n 1, 1, 2, 3, 4 # elemId, nodeid of vertices\n \n *Step\n *Boundary\n 1, 1, 2, 0.0 # nodeId, dof1, dof2, value\n 2, 1, 1, 0.0\n 3, 1, 1, 0.01\n 4, 1, 1, 0.01\n 4, 2, 2, 0.0\n```\n\n<br>\n\n<img src=\"https://media.tenor.com/rJ4wiVqdmcAAAAAC/sponge-bob-hammer.gif\" width=\"500\" height=\"400\">\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "Core Engineering Analysis Functionalities",
"version": "0.0.11",
"split_keywords": [
"python",
"engineering",
"finite element analysis",
"mechanics",
"stress",
"strain"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "78061bb6e86f755ee485eb39972c25bc",
"sha256": "bdd4052d7f4202a97b19deec780e69ac4ac89d0ef0c9aee7ac67c756b66b3c73"
},
"downloads": -1,
"filename": "mechy-0.0.11-py3-none-any.whl",
"has_sig": false,
"md5_digest": "78061bb6e86f755ee485eb39972c25bc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 13352,
"upload_time": "2022-12-08T12:34:31",
"upload_time_iso_8601": "2022-12-08T12:34:31.953950Z",
"url": "https://files.pythonhosted.org/packages/4c/7a/11b0b36970d8faf96507c2d8c8359388a28406ba108e5a8bc82ed9109d39/mechy-0.0.11-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "f476fd32b2148cd7b5a3a49b1b244a1f",
"sha256": "8fd9f6ed7cc1a1e78a4411ff6e2808dde70a46e5ba6d2d77ddd1c431ed883136"
},
"downloads": -1,
"filename": "mechy-0.0.11.tar.gz",
"has_sig": false,
"md5_digest": "f476fd32b2148cd7b5a3a49b1b244a1f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8484,
"upload_time": "2022-12-08T12:34:34",
"upload_time_iso_8601": "2022-12-08T12:34:34.207494Z",
"url": "https://files.pythonhosted.org/packages/52/4f/3c5a3d7808f653034ad3e2620ad3912253100b0809b949c4fdba29b81c38/mechy-0.0.11.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-08 12:34:34",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "mechy"
}