Comments (7)
I think your solution in your notebooks is good. I could the code snippet below in the documentation so people know how to get going with strupy and Unum. In my opinion its good to have a centralized profile 'database' where we rely on.
pip install strupy Unum
from strupy.steel.SectionBase import SectionBase
import strupy.units as u
sections = SectionBase()
sections.set_databasename('US')
sectprop = sections.get_sectionparameters('W14X48')
E = 200e9
A = sectprop['Ax'].asUnit(u.m2).asNumber()
I = sectprop['Iy'].asUnit(u.m4).asNumber()
from anastruct.
I have just pushed new fork branch with sectionbase included in progress.
https://github.com/lukaszlaba/anaStruct/tree/sectionbase
It take few days. It will be the same solution like strupy has, but without unum units system needed. Unum is great but anastruct doesn't use any system of units itself - user must care this about and apply consistent units to all quantities.
Finally command like this will be available
ss.add_element(location=[[0, 0], [0, 5]], sectname='HEA120')
from anastruct.
Ok, I'll wait and see then. :)
from anastruct.
Ritchie find sectionbase fork branch
https://github.com/lukaszlaba/anaStruct/tree/sectionbase
and demo for new features
https://notebooks.azure.com/sinusprojekt/projects/anastruct/html/anastruct_new_features.ipynb
Main updates:
- built-in section base with EU, US and UK sections available
- we can define section by steel section shape name
- also rectangle and circle section option added
- elements annotations for show_structure added
Its look like it work. I hope you enjoy it. Now I need to make more tests. Yours comments are very welcome. The final result of all this job will be pull request approval I hope.
from anastruct.
Hi Lukas,
It looks good! I like what you did with the annotations as well. This is indeed a feature that makes engineering a lot more practical. I will need some time to take a look at the code and will come back on that later.
For now I do think we should remove the print functions. If anastruct becomes a dependency of another package it should not print to stdout. If we really need to return something to a user, warning and such, we should do that with logging.
from anastruct.
Last features I want to add to my sectionbase fork branch is result mark filter and result plot titles.
Here is demo of this features
https://notebooks.azure.com/sinusprojekt/projects/anastruct/html/result_mark_filter_and_plot_titles.ipynb
from anastruct.
I merged your feature into master. Thanks for the effort you've put in. I've made some structural changes, because I want to keep the module to have one clear purpose. So the section base properties are move to that module. Further I've made changes to be pep-8 complient.
from anastruct.
Related Issues (20)
- find_node_id function error HOT 2
- Point loads on elements
- Partial distributed q_load on elements
- Elastic ground
- Model support in between element length HOT 1
- Clean up meaning of "y" vs "z" coordinates HOT 1
- Create a `toVertex()` function, use throughout
- problem with plotting the results HOT 2
- Bearings with clearance HOT 1
- The last link in the README Page is dead
- Pinned supports issue HOT 2
- Shear Force Diagrams sign conventions reversed. HOT 2
- plot displacements in mm instead of m HOT 1
- Error
- unexpected keyword argument 'plot_backend' HOT 1
- title and labels not in figure
- EZstruct HOT 2
- Inserting a node to existing element causes a key error because that element is deleted. HOT 1
- Sign convention for the internal forces and reaction forces HOT 4
- Documentation publishing workflow is broken (was: Pin connection in the middle of a beam) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anastruct.