{"id":16556884,"url":"https://github.com/trots/trussfem","last_synced_at":"2025-03-04T23:24:05.796Z","repository":{"id":81493475,"uuid":"600323483","full_name":"trots/trussfem","owner":"trots","description":"Finite element method implementation for truss structures","archived":false,"fork":false,"pushed_at":"2023-02-11T06:02:13.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-15T08:25:52.511Z","etag":null,"topics":["cae","computer-aided-engineering","fem","finite-element-methods","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trots.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-11T05:58:10.000Z","updated_at":"2023-08-16T13:52:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"0dde2c26-897a-4fd9-9a84-2b239167ecb3","html_url":"https://github.com/trots/trussfem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trots%2Ftrussfem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trots%2Ftrussfem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trots%2Ftrussfem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trots%2Ftrussfem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trots","download_url":"https://codeload.github.com/trots/trussfem/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241936598,"owners_count":20045093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cae","computer-aided-engineering","fem","finite-element-methods","python"],"created_at":"2024-10-11T20:05:59.812Z","updated_at":"2025-03-04T23:24:05.790Z","avatar_url":"https://github.com/trots.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trussfem\n\nFinite element method implementation for truss structures\n\n![demo](doc/demo.PNG)\n\n## Usage\n\nRun the `main.py` with the task file specified:\n```python\n\u003e python main.py tasks/task_1.json\n```\nThe script produces results in VTK format:\n- `displacements.vtk`,\n- `strains.vtk`,\n- `stresses.vtk`.\n\n## Units\n\n- Young's modulus in Pascals,\n- coordinates in meters,\n- areas in squared meters,\n- loads in Newtons,\n- displacements in meters,\n- stresses in Pascals.\n\n## Task\n\nTask description must be created in JSON format.\n\nTask object example.\n```json\n{\n  \"name\": \"One-element frame stretch\",\n  \"youngs_modulus\": 200000000000,\n  \"poisson_coefficient\": 0.25,\n  \"truss\": {\n    \"nodes\": [\n      {\"id\": 0, \"x\": 0.0, \"y\": 0.0},\n      {\"id\": 1, \"x\": 5.0, \"y\": 0.0}\n    ],\n    \"elements\": [\n      {\"id\": 0, \"nodes\": [0, 1], \"profile_area\": 0.0001}\n    ]\n  },\n  \"constraints\": [\n    {\"id\": 0, \"node_id\": 0, \"constraint_x\": true, \"constraint_y\": true}\n  ],\n  \"loads\": [\n    {\"id\": 0, \"node_id\": 1, \"load_x\": 30000.0, \"load_y\": 0.0}\n  ]\n}\n```\n\n## Predefined tasks\n\n- tasks/task_1.json : Simple one-element stretching\n- tasks/task_2.json : Three element stretching. See [1], [3].\n- tasks/task_3.json : Example from [2, p27].\n\n  ![model3](doc/test3_model.PNG)\n\n- tasks/task_4.json : Example from [4, p15].\n\n  ![model4](doc/test4_model.PNG)\n\n- tasks/task_5.json : Truss from [5, p105].\n\n  ![model5](doc/test5_model.PNG)\n\n## References\n\n1. https://isopromat.ru/sopromat/primery-reshenia-zadach/raschet-deformacij/pri-rastyazhenii-szhatii\n2. Кондратьева ЛЕ - Основы метода конечных элементов. Введение. Расчет стержневых систем (2007)\n3. https://isopromat.ru/sopromat/primery-reshenia-zadach/postroenie-epur/normalnyh-napryazhenij-pri-rastyazhenii-szhatii\n4. Артамонова ЕН, Зайцева ИМ - Расчет фермы\n5. Галлагер Р - Метод конечных элементов. Основы (1984)\n6. Зенкевич О - Метод конечных элементов в технике (1975)\n7. Маклаков СФ - Расчет стержневых систем методом конечных элементов (2008)\n8. Хабр - Написание МКЭ расчетчика в менее чем 180 строк кода\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrots%2Ftrussfem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrots%2Ftrussfem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrots%2Ftrussfem/lists"}