Name | horloadist JSON |
Version |
1.2.0
JSON |
| download |
home_page | None |
Summary | Calculates the horizontal load distribution on supports in the plane |
upload_time | 2024-11-01 11:47:44 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT License Copyright (c) [year] [fullname] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
load distribution
horloadist
development
civil engineering
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# `horloadist`
Calculate **hor**izontal **load** **dist**ribution on multiple supports of a single shell assuming $EA \to \infty$ .
> Caution! Do not blindly trust this calculation, but always check the plausibility of the results.
This project provides a tool for structural analysis using the `horloadist` library. You can define a 2D polygon in the x-y plane representing a shell, along with supports that represent walls and their bending stiffnesses around the x and y axes. Afterwards you can calculate the horizontal reaction forces on the support nodes (walls). Use `NonLinSolve` for solving systems iteratively with nonlinear wall bending stiffnesses taken from user created csv files.
## Example Table Output of `LinSolve`
```
glo mass centre [x,y] : 0.0000, 0.0000
glo stiff. centre [x,y] : 2.4672, -4.7664
loc stiff. centre [x,y] : 2.4672, -4.7664
EIx total : 9.4
EIy total : 34.4
EIw total : 1,937.0
node nr glo x glo y loc x loc y loc xs loc ys EIx EIy % EIx % EIy % EIwx % EIwy
0 1 -10.0 2.5 -10.0 2.5 -12.467197 7.266411 0.01125 3.12500 0.090820 0.001193 0.011723 -7.240963e-05
1 2 -12.5 0.0 -12.5 0.0 -14.967197 4.766411 3.12500 0.01125 0.000327 0.331345 0.000028 -2.414713e-02
2 3 -10.0 -2.5 -10.0 -2.5 -12.467197 2.266411 0.01125 3.12500 0.090820 0.001193 0.003656 -7.240963e-05
3 4 0.0 7.5 0.0 7.5 -2.467197 12.266411 0.01125 3.12500 0.090820 0.001193 0.019790 -1.432951e-05
4 5 2.5 -7.5 2.5 -7.5 0.032803 -2.733589 0.02250 25.00000 0.726559 0.002386 -0.035282 3.810425e-07
5 6 7.5 0.0 7.5 0.0 5.032803 4.766411 3.12500 0.01125 0.000327 0.331345 0.000028 8.119605e-03
6 7 12.5 5.0 12.5 5.0 10.032803 9.766411 3.12500 0.01125 0.000327 0.331345 0.000057 1.618629e-02
Fx, Fy : 0, -1
ex, ey : 2.4672, -4.7664
tor. Ts,x = Fx * ey : -0.0000
tor. Ts,y = Fy * ex : 2.4672
tor. Ts = Ts,x + Ts,y : 2.4672
node nr Vx ~ EIx Vy ~ EIy Ts ~ EIwx Ts ~ EIwy Vx Vy
0 1 0.0 -0.001193 -0.028923 -1.786488e-04 -0.028923 -0.001371
1 2 0.0 -0.331345 -0.000068 -5.957571e-02 -0.000068 -0.390921
2 3 0.0 -0.001193 -0.009021 -1.786488e-04 -0.009021 -0.001371
3 4 0.0 -0.001193 -0.048825 -3.535372e-05 -0.048825 -0.001228
4 5 0.0 -0.002386 0.087047 9.401069e-07 0.087047 -0.002385
5 6 0.0 -0.331345 -0.000068 2.003266e-02 -0.000068 -0.311313
6 7 0.0 -0.331345 -0.000140 3.993476e-02 -0.000140 -0.291411
```
## Example Output of `NonLinSolve`
Output of `plot_nlsolve` from `NONLIN_main.py` in the examples directory:
![non linear example](example_nlsolve.png "non linear convergation process")
## Prerequisites
- `horloadist` library
- Python 3.x
- pandas
- numpy
- matplotlib
- datetime
## Installation
install via pip:
```
pip install horloadist
```
## Usage
The main script demonstrates how to use the `horloadist` library to create a structural model and solve it. Here's a brief overview of the process:
1. Import necessary classes from `horloadist`:
```python
from horloadist import SupportNode, Polygon, Stucture, LinSolve
```
2. Define helper functions for moment of inertia calculations:
```python
def globalIy(dx, dy):
return dy*dx**3/12
def globalIx(dx, dy):
return dx*dy**3/12
```
3. Create support nodes using the `SupportNode` class.
4. Define the structure's shape using the `Polygon` class.
5. Create a `Stucture` object with the defined polygon and support nodes.
6. Solve the structure using `LinSolve`.
7. Print the results.
## Example
The provided example creates a plate structure with seven support nodes and solves it for a specific load case.
```python
# Create support nodes
w1 = SupportNode(nr=1, glob_x=-10.0, glob_y=2.5, glob_kx=globalIy(5, 0.3), glob_ky=globalIx(5, 0.3))
# ... (other nodes)
# Define the plate
plate = Polygon([[-12.5,-7.5], [12.5, -7.5], [12.5, 7.5], [-12.5, 7.5]])
# Create and solve the structure
struc = Stucture(nodes=[w1, w2, w3, w4, w5, w6, w7], glo_mass_centre=plate.centroid)
sol = LinSolve(structure=struc, x_mass_force=0, y_mass_force=-1)
# Print results
struc.printTable()
sol.printTable()
```
## Possible Further Improvements
- add plot for geometry and force-vectors
- add plot for bending stiffnesses imported from csv files
- add angle param for `KX.globalRectangular(... , angle_from_x : float = ...)`
- Add a ceiling recess
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Raw data
{
"_id": null,
"home_page": null,
"name": "horloadist",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "\"L.Maul\" <saculluam@hotmail.com>",
"keywords": "load distribution, horloadist, development, civil engineering",
"author": null,
"author_email": "\"L.Maul\" <saculluam@hotmail.com>",
"download_url": "https://files.pythonhosted.org/packages/8b/83/d3047e91ddc0aa39c9fc9f905aa9df58fd8c95c10d739cec80486fbc9d50/horloadist-1.2.0.tar.gz",
"platform": null,
"description": "# `horloadist`\r\n\r\nCalculate **hor**izontal **load** **dist**ribution on multiple supports of a single shell assuming $EA \\to \\infty$ .\r\n\r\n> Caution! Do not blindly trust this calculation, but always check the plausibility of the results.\r\n\r\nThis project provides a tool for structural analysis using the `horloadist` library. You can define a 2D polygon in the x-y plane representing a shell, along with supports that represent walls and their bending stiffnesses around the x and y axes. Afterwards you can calculate the horizontal reaction forces on the support nodes (walls). Use `NonLinSolve` for solving systems iteratively with nonlinear wall bending stiffnesses taken from user created csv files.\r\n\r\n## Example Table Output of `LinSolve`\r\n\r\n```\r\nglo mass centre [x,y] : 0.0000, 0.0000\r\nglo stiff. centre [x,y] : 2.4672, -4.7664\r\nloc stiff. centre [x,y] : 2.4672, -4.7664\r\nEIx total : 9.4\r\nEIy total : 34.4\r\nEIw total : 1,937.0\r\n\r\n node nr glo x glo y loc x loc y loc xs loc ys EIx EIy % EIx % EIy % EIwx % EIwy\r\n0 1 -10.0 2.5 -10.0 2.5 -12.467197 7.266411 0.01125 3.12500 0.090820 0.001193 0.011723 -7.240963e-05\r\n1 2 -12.5 0.0 -12.5 0.0 -14.967197 4.766411 3.12500 0.01125 0.000327 0.331345 0.000028 -2.414713e-02\r\n2 3 -10.0 -2.5 -10.0 -2.5 -12.467197 2.266411 0.01125 3.12500 0.090820 0.001193 0.003656 -7.240963e-05\r\n3 4 0.0 7.5 0.0 7.5 -2.467197 12.266411 0.01125 3.12500 0.090820 0.001193 0.019790 -1.432951e-05\r\n4 5 2.5 -7.5 2.5 -7.5 0.032803 -2.733589 0.02250 25.00000 0.726559 0.002386 -0.035282 3.810425e-07\r\n5 6 7.5 0.0 7.5 0.0 5.032803 4.766411 3.12500 0.01125 0.000327 0.331345 0.000028 8.119605e-03\r\n6 7 12.5 5.0 12.5 5.0 10.032803 9.766411 3.12500 0.01125 0.000327 0.331345 0.000057 1.618629e-02\r\n\r\n\r\nFx, Fy : 0, -1\r\nex, ey : 2.4672, -4.7664\r\ntor. Ts,x = Fx * ey : -0.0000\r\ntor. Ts,y = Fy * ex : 2.4672\r\ntor. Ts = Ts,x + Ts,y : 2.4672\r\n\r\n node nr Vx ~ EIx Vy ~ EIy Ts ~ EIwx Ts ~ EIwy Vx Vy\r\n0 1 0.0 -0.001193 -0.028923 -1.786488e-04 -0.028923 -0.001371\r\n1 2 0.0 -0.331345 -0.000068 -5.957571e-02 -0.000068 -0.390921\r\n2 3 0.0 -0.001193 -0.009021 -1.786488e-04 -0.009021 -0.001371\r\n3 4 0.0 -0.001193 -0.048825 -3.535372e-05 -0.048825 -0.001228\r\n4 5 0.0 -0.002386 0.087047 9.401069e-07 0.087047 -0.002385\r\n5 6 0.0 -0.331345 -0.000068 2.003266e-02 -0.000068 -0.311313\r\n6 7 0.0 -0.331345 -0.000140 3.993476e-02 -0.000140 -0.291411\r\n```\r\n\r\n## Example Output of `NonLinSolve`\r\n\r\nOutput of `plot_nlsolve` from `NONLIN_main.py` in the examples directory:\r\n\r\n![non linear example](example_nlsolve.png \"non linear convergation process\")\r\n\r\n\r\n## Prerequisites\r\n\r\n- `horloadist` library\r\n- Python 3.x\r\n- pandas\r\n- numpy\r\n- matplotlib\r\n- datetime\r\n\r\n## Installation\r\n\r\ninstall via pip:\r\n```\r\npip install horloadist\r\n```\r\n\r\n\r\n## Usage\r\n\r\nThe main script demonstrates how to use the `horloadist` library to create a structural model and solve it. Here's a brief overview of the process:\r\n\r\n1. Import necessary classes from `horloadist`:\r\n ```python\r\n from horloadist import SupportNode, Polygon, Stucture, LinSolve\r\n ```\r\n\r\n2. Define helper functions for moment of inertia calculations:\r\n ```python\r\n def globalIy(dx, dy):\r\n return dy*dx**3/12\r\n \r\n def globalIx(dx, dy):\r\n return dx*dy**3/12\r\n ```\r\n\r\n3. Create support nodes using the `SupportNode` class.\r\n4. Define the structure's shape using the `Polygon` class.\r\n5. Create a `Stucture` object with the defined polygon and support nodes.\r\n6. Solve the structure using `LinSolve`.\r\n7. Print the results.\r\n\r\n## Example\r\n\r\nThe provided example creates a plate structure with seven support nodes and solves it for a specific load case.\r\n\r\n```python\r\n# Create support nodes\r\nw1 = SupportNode(nr=1, glob_x=-10.0, glob_y=2.5, glob_kx=globalIy(5, 0.3), glob_ky=globalIx(5, 0.3))\r\n# ... (other nodes)\r\n\r\n# Define the plate\r\nplate = Polygon([[-12.5,-7.5], [12.5, -7.5], [12.5, 7.5], [-12.5, 7.5]])\r\n\r\n# Create and solve the structure\r\nstruc = Stucture(nodes=[w1, w2, w3, w4, w5, w6, w7], glo_mass_centre=plate.centroid)\r\nsol = LinSolve(structure=struc, x_mass_force=0, y_mass_force=-1)\r\n\r\n# Print results\r\nstruc.printTable()\r\nsol.printTable()\r\n```\r\n\r\n\r\n## Possible Further Improvements\r\n\r\n- add plot for geometry and force-vectors\r\n- add plot for bending stiffnesses imported from csv files\r\n- add angle param for `KX.globalRectangular(... , angle_from_x : float = ...)`\r\n- Add a ceiling recess\r\n\r\n## Contributing\r\n\r\nContributions are welcome! Please feel free to submit a Pull Request. \r\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) [year] [fullname] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Calculates the horizontal load distribution on supports in the plane",
"version": "1.2.0",
"project_urls": {
"Bug Reports": "https://github.com/LuMaul/horloadist.git",
"Source": "https://github.com/LuMaul/horloadist.git"
},
"split_keywords": [
"load distribution",
" horloadist",
" development",
" civil engineering"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1900ce8fcbba6c4551ce07f2250631e843189ab00aa0e71f7d5fa2554418c2ca",
"md5": "6d40453f80628411b773ec2ff55469b2",
"sha256": "3f2e2e6870c1d32e79f713ae6fb43cc19316a9b70c4d6314052ae07932055813"
},
"downloads": -1,
"filename": "horloadist-1.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6d40453f80628411b773ec2ff55469b2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 13446,
"upload_time": "2024-11-01T11:47:42",
"upload_time_iso_8601": "2024-11-01T11:47:42.764005Z",
"url": "https://files.pythonhosted.org/packages/19/00/ce8fcbba6c4551ce07f2250631e843189ab00aa0e71f7d5fa2554418c2ca/horloadist-1.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8b83d3047e91ddc0aa39c9fc9f905aa9df58fd8c95c10d739cec80486fbc9d50",
"md5": "0c6fe672df1154dba556219c35e63e5f",
"sha256": "797cfc97b0d9d8925363fb94d31c23378301ef3f94a47bf63e2a31c0d08c0068"
},
"downloads": -1,
"filename": "horloadist-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "0c6fe672df1154dba556219c35e63e5f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 15556,
"upload_time": "2024-11-01T11:47:44",
"upload_time_iso_8601": "2024-11-01T11:47:44.530246Z",
"url": "https://files.pythonhosted.org/packages/8b/83/d3047e91ddc0aa39c9fc9f905aa9df58fd8c95c10d739cec80486fbc9d50/horloadist-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-01 11:47:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "LuMaul",
"github_project": "horloadist",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "horloadist"
}