OpenSees, the Open System for Earthquake Engineering Simulation

Not directly with Opensees. Maybe the following link can help:
https://github.com/lge88/opensees-vtk

https://github.com/berndhahnebach/FreeCAD_bhb/commits/femopensees only implements the solver object.

AS stated before see https://github.com/berndhahnebach/FreeCAD_bhb/commits/femoofem

yes, please comment this line, i don’t know why that line not work.

I think it is possible, I had been see an example for vtk, I will search for it:

https://github.com/OpenSees/OpenSees/blob/master/SRC/recorder/VTK_Recorder.cpp

With this we could read results into FreeCAD directly. That would be cool and worth to search for.

opensees can export to .pvd format that supported with paraview:

pvd.png
this brief file is also useful:

http://marcel-ritter.com/wp-content/uploads/2016/10/FEMOpenSeesPoster.pdf

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/

I wonder if we shold.not even start with TCL input file format and imediately use the new python input fole format?

The same as in tcl, examples to get started are needed. Best would be freecad fem calculix cantilever in opensees python.

a file (src/Mod/Fem/Gui/Workbench.cpp) has been changes should we compile it from the beginning? would you please give more information about this post?

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.

Maybe a conda repository ?

@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/CalculiX/ccx_2.7/doc/ccx/node29.html

command for this element in opensees:
C3D20.png
C3D20_nodes.png

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.

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

We will find and fix the problem :nerd:

https://forum.freecadweb.org/viewtopic.php?f=18&t=43727

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 :smiley:

finally I did this procedure for the first time, hurray :stuck_out_tongue:
it’s work, very excited.
thanks @bernd, now i will start to implement writer :unamused:

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/FreeCAD_bhb/blob/femopensees/src/Mod/Fem/femsolver/opensees/writer.py#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.

I’m not quite sure but I think it is dedicated to python packages only.

Its a good choice but we must consider that this package is not published open source yet.