OpenSees, the Open System for Earthquake Engineering Simulation

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by bernd »

yes you need to compile FreeCAD because of the few lines change in workbench.cpp These lines add a new menue entry for the new FreeCAD FEM solver object for OpenSees.

The code I added adds this new object. With this the solver object is implemented. Now it would be the task to implement a opensees writer which does writes an opensees inputfile out of the FreeCAD FEM objects.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by Kunda1 »

shahram10715 wrote: Sun Feb 23, 2020 6:22 pm @Kunda1
Recently I wanted to put opensees binary as ppa in ubuntu launchpad but it's not possible because you can only add FREE software. We must find a place which allows both free and proprietary software. The second option is an interesting repo on github (if you search you will find it) which has Docker for opensees ver 2.5 (not continued). And the third option is an appimage like FreeCAD.
Maybe a conda repository ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
ebrahim raeyat
Posts: 619
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by ebrahim raeyat »

bernd wrote: Thu Feb 27, 2020 5:56 am The same as in tcl, examples to get started are needed. Best would be freecad fem calculix cantilever in opensees python.
@bernd, i searched for equivalent Ten-node tetrahedral element for opensees, but i can't find it.
for preparing 3D contilever, how can i change the element type in FreeCAD, for example one that had been used in original example in calculix site:
C3D20 http://web.mit.edu/calculix_v2.7/Calcul ... ode29.html

command for this element in opensees:
C3D20.png
C3D20.png (114.35 KiB) Viewed 1494 times
C3D20_nodes.png
C3D20_nodes.png (197.93 KiB) Viewed 1494 times
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by bernd »

I would not care about the element type ATM. If opesees uses a twenty node brick element it will be fine too. It does not mater which element type we gone use. Both should give the nearly same deflection and stress if we use enought elements.

ATM it is not possible to make a brick20 mesh with the gui in FreeCAD but I will create one for the calculix cantilever.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by bernd »

find a file in this topic, but something is wrong with the brick20. :o

We will find and fix the problem :geek:

https://forum.freecadweb.org/viewtopic.php?f=18&t=43727
User avatar
ebrahim raeyat
Posts: 619
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by ebrahim raeyat »

bernd wrote: Thu Feb 27, 2020 7:00 pm I would not care about the element type ATM. If opesees uses a twenty node brick element it will be fine too. It does not mater which element type we gone use. Both should give the nearly same deflection and stress if we use enought elements.

ATM it is not possible to make a brick20 mesh with the gui in FreeCAD but I will create one for the calculix cantilever.
yes, I know, but it is imposible for me to create nodes and elements for this problem by hand, but if freecad can generate .inp input file, i can convert nodes and element from calculix format to opensees :D
User avatar
ebrahim raeyat
Posts: 619
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by ebrahim raeyat »

bernd wrote: Tue Feb 25, 2020 8:05 pm https://github.com/berndhahnebach/FreeC ... emopensees only implements the solver object.

- start FreeCAD
- add analysis, delete standard solver and add a OpenSees solver
- run the solver
- this file will be written and run with OpenSees https://github.com/berndhahnebach/FreeC ... y#L82-L244

AS stated before see https://github.com/berndhahnebach/FreeC ... s/femoofem
finally I did this procedure for the first time, hurray :P
it's work, very excited.
thanks @bernd, now i will start to implement writer :roll:
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by bernd »

best would be start with result reading. ATM on any solver run of OpenSees in FreeCAD this input file will be written

https://github.com/berndhahnebach/FreeC ... y#L82-L244

ATM mesh is created by OpenSees, which is fine ATM, IMHO.

The first thing what we should do is change this input file in a way it creates some output in a format readable by vtk toolkit. If this works I would implement result reading in FreeCAD for OpenSees. Than we could start with the writer.
shahram10715
Posts: 22
Joined: Sat Apr 20, 2019 7:09 am
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by shahram10715 »

Kunda1 wrote: Thu Feb 27, 2020 2:29 pm Maybe a conda repository ?
I'm not quite sure but I think it is dedicated to python packages only.
shahram10715
Posts: 22
Joined: Sat Apr 20, 2019 7:09 am
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by shahram10715 »

ebrahim raeyat wrote: Wed Feb 26, 2020 9:22 pm thanks to openseespy, we can write opensees input file in python format and benefit from all of python library!

https://openseespydoc.readthedocs.io/en/latest/
Its a good choice but we must consider that this package is not published open source yet.
Post Reply