Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 17 committers (5.9%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.9%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
2D structural analysis in Python
Basic Info
Statistics
- Stars: 404
- Watchers: 30
- Forks: 112
- Open Issues: 37
- Releases: 14
Topics
Metadata Files
README.md
anaStruct 2D Frames and Trusses
Analyse 2D Frames and trusses for slender structures. Determine the bending moments, shear forces, axial forces and displacements.
Installation
For the actively developed version:
$ pip install git+https://github.com/ritchie46/anaStruct.git
Or for a release:
$ pip install anastruct
Read the docs!
Questions
Got a question? Please ask on gitter.
Includes
- trusses :heavycheckmark:
- beams :heavycheckmark:
- moment lines :heavycheckmark:
- axial force lines :heavycheckmark:
- shear force lines :heavycheckmark:
- displacement lines :heavycheckmark:
- hinged supports :heavycheckmark:
- fixed supports :heavycheckmark:
- spring supports :heavycheckmark:
- q-load in elements direction :heavycheckmark:
- point loads in global x, y directions on nodes :heavycheckmark:
- dead load :heavycheckmark:
- q-loads in global y direction :heavycheckmark:
- hinged elements :heavycheckmark:
- rotational springs :heavycheckmark:
- non-linear nodes :heavycheckmark:
- geometrical non linearity :heavycheckmark:
- load cases and load combinations :heavycheckmark:
- generic type of section - rectangle and circle :heavycheckmark:
- EU, US, UK steel section database :heavycheckmark:
Examples
```python from anastruct import SystemElements import numpy as np
ss = SystemElements() element_type = 'truss'
Create 2 towers
width = 6 span = 30 k = 5e3
create triangles
y = np.arange(1, 10) * np.pi x = np.cos(y) * width * 0.5 x -= x.min()
for length in [0, span]: xleftcolumn = np.ones(y[::2].shape) * x.min() + length xrightcolumn = np.ones(y[::2].shape[0] + 1) * x.max() + length
# add triangles
ss.add_element_grid(x + length, y, element_type=element_type)
# add vertical elements
ss.add_element_grid(x_left_column, y[::2], element_type=element_type)
ss.add_element_grid(x_right_column, np.r_[y[0], y[1::2], y[-1]], element_type=element_type)
ss.add_support_spring(
node_id=ss.find_node_id(vertex=[x_left_column[0], y[0]]),
translation=2,
k=k)
ss.add_support_spring(
node_id=ss.find_node_id(vertex=[x_right_column[0], y[0]]),
translation=2,
k=k)
add top girder
ss.addelementgrid([0, width, span, span + width], np.ones(4) * y.max(), EI=10e3)
Add stability elements at the bottom.
ss.addtrusselement([[0, y.min()], [width, y.min()]]) ss.addtrusselement([[span, y.min()], [span + width, y.min()]])
for el in ss.elementmap.values(): # apply wind load on elements that are vertical if np.isclose(np.sin(el.ai), 1): ss.qload( q=1, element_id=el.id, direction='x' )
ss.showstructure() ss.solve() ss.showdisplacement(factor=2) ss.showbendingmoment()
```



```python from anastruct import SystemElements
ss = SystemElements(EA=15000, EI=5000)
Add beams to the system.
ss.addelement(location=[0, 5]) ss.addelement(location=[[0, 5], [5, 5]]) ss.add_element(location=[[5, 5], [5, 0]])
Add a fixed support at node 1.
ss.addsupportfixed(node_id=1)
Add a rotational spring support at node 4.
ss.addsupportspring(node_id=4, translation=3, k=4000)
Add loads.
ss.pointload(Fx=30, nodeid=2) ss.qload(q=-10, elementid=2)
Solve
ss.solve()
Get visual results.
ss.showstructure()
ss.showreactionforce()
ss.showaxialforce()
ss.showshearforce()
ss.showbendingmoment()
ss.showdisplacement()
```

Real world use case.
Owner
- Name: Ritchie Vink
- Login: ritchie46
- Kind: user
- Location: Utrecht
- Website: https://www.ritchievink.com
- Repositories: 105
- Profile: https://github.com/ritchie46
Author of polars | ...
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Vink" given-names: "Ritchie" email: ritchie46@gmail.com title: "anaStruct 2D Frames and Trusses" type: software version: 1.0.0 doi: 10.5281/zenodo.1234 date-released: 2016-08-08 repository-code: "https://github.com/ritchie46/anaStruct" url: "https://anastruct.readthedocs.io/"
GitHub Events
Total
- Create event: 32
- Issues event: 10
- Release event: 2
- Watch event: 42
- Delete event: 36
- Issue comment event: 26
- Push event: 30
- Pull request review event: 6
- Pull request event: 73
- Fork event: 11
Last Year
- Create event: 32
- Issues event: 10
- Release event: 2
- Watch event: 42
- Delete event: 36
- Issue comment event: 26
- Push event: 30
- Pull request review event: 6
- Pull request event: 73
- Fork event: 11
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| ritchie46 | r****6@g****m | 326 |
| Brooks Smith | b****h@c****m | 258 |
| dependabot[bot] | 4****] | 117 |
| vik | r****6@g****m | 29 |
| parsa | p****i@g****m | 7 |
| liamjsy | l****y@c****m | 6 |
| BehnamClearCalcs | 1****s | 4 |
| unknown | b****l@g****m | 4 |
| abigailwong1 | 1****1 | 3 |
| Nick Menz | m****k@o****m | 3 |
| Arturo Ossorio Arana | a****1@g****m | 1 |
| Dara Adib | d****b@o****u | 1 |
| Karthikeyan Singaravelan | t****i@g****m | 1 |
| LeoBelmont | 5****t | 1 |
| Nicola Meoli | 4****a | 1 |
| Rodrigo Rivero | r****3@g****m | 1 |
| lul | l****a@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 105
- Total pull requests: 212
- Average time to close issues: 7 months
- Average time to close pull requests: 14 days
- Total issue authors: 57
- Total pull request authors: 16
- Average comments per issue: 1.45
- Average comments per pull request: 0.46
- Merged pull requests: 136
- Bot issues: 0
- Bot pull requests: 151
Past Year
- Issues: 12
- Pull requests: 73
- Average time to close issues: 17 days
- Average time to close pull requests: 7 days
- Issue authors: 7
- Pull request authors: 6
- Average comments per issue: 0.92
- Average comments per pull request: 0.48
- Merged pull requests: 26
- Bot issues: 0
- Bot pull requests: 64
Top Authors
Issue Authors
- ritchie46 (16)
- smith120bh (8)
- pchandu587 (7)
- thisisapple (4)
- andyvwhitman (3)
- paoloemilioserra (3)
- damontallen (3)
- sunrise125 (3)
- lukaszlaba (3)
- kanwarjohal (2)
- dependabot[bot] (2)
- tanbin-hasnat-shehab (2)
- Tarang74 (2)
- kjjordans (2)
- johnsonmahama (2)
Pull Request Authors
- dependabot[bot] (233)
- smith120bh (52)
- rodrigo1392 (3)
- thisisapple (3)
- someparsa (3)
- lukaszlaba (2)
- bldrkamal (2)
- AsgerKrllAnd (2)
- sononicola (2)
- ritchie46 (2)
- BehnamClearCalcs (2)
- nickmenz (2)
- daradib (1)
- ajossorioarana (1)
- LeoBelmont (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 4,987 last-month
- Total dependent packages: 1
- Total dependent repositories: 7
- Total versions: 24
- Total maintainers: 1
pypi.org: anastruct
Finite element analysis of 2D structures
- Homepage: https://github.com/ritchie46/anaStruct
- Documentation: http://anastruct.readthedocs.io
- License: GPL-3.0-or-later
-
Latest release: 1.6.1
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- matplotlib ==3.6.3 development
- numpy ==1.24.2 development
- scipy ==1.10.0 development
- actions/checkout v2 composite
- actions/setup-python v2 composite
- pypa/gh-action-pypi-publish release/v1 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- matplotlib ==3.6.2
- numpy >=1.15
- scipy >=1.1.0
- matplotlib *
- scipy *
- sphinx_autodoc_typehints *
- black ==22.12.0 test
- mypy ==0.991 test
- pylint ==2.15.10 test
- actions/first-interaction v1 composite