Giter VIP home page Giter VIP logo

Comments (7)

ritchie46 avatar ritchie46 commented on September 22, 2024

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.

lukaszlaba avatar lukaszlaba commented on September 22, 2024

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.

ritchie46 avatar ritchie46 commented on September 22, 2024

Ok, I'll wait and see then. :)

from anastruct.

lukaszlaba avatar lukaszlaba commented on September 22, 2024

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.

ritchie46 avatar ritchie46 commented on September 22, 2024

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.

lukaszlaba avatar lukaszlaba commented on September 22, 2024

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.

ritchie46 avatar ritchie46 commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.