OpenSees, the Open System for Earthquake Engineering Simulation

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
bernd
Posts: 9859
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Postby bernd » Thu Feb 27, 2020 1:42 pm

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
Posts: 7361
Joined: Thu Jan 05, 2017 9:03 pm

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Postby Kunda1 » Thu Feb 27, 2020 2:29 pm

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 ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
ebrahim raeyat
Posts: 281
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Postby ebrahim raeyat » Thu Feb 27, 2020 5:28 pm

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 269 times
C3D20_nodes.png
C3D20_nodes.png (197.93 KiB) Viewed 269 times
User avatar
bernd
Posts: 9859
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Postby bernd » 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.
User avatar
bernd
Posts: 9859
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Postby bernd » Thu Feb 27, 2020 7:16 pm

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: 281
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Postby ebrahim raeyat » Fri Feb 28, 2020 2:14 am

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: 281
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Postby ebrahim raeyat » Fri Feb 28, 2020 3:01 am

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
Posts: 9859
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Postby bernd » Fri Feb 28, 2020 4:48 am

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

Postby shahram10715 » Fri Feb 28, 2020 10:03 am

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

Postby shahram10715 » Fri Feb 28, 2020 10:06 am

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.