OpenSees, the Open System for Earthquake Engineering Simulation

About the development of the FEM module/workbench.

Moderator: bernd

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 »

ebrahim raeyat wrote: Tue May 05, 2020 6:18 pm
bernd wrote: Wed Apr 29, 2020 5:49 pm I may know what the problem is. Do you have a branch to tes with? Your opensees branch is nor uptodate?!
can you detect the problem?
https://github.com/ebrahimraeyat/FreeCAD/pull/3

the pure mesh object does not have a link to the shape it was made from, but for the beams we exactly need this linked object. I used a gmsh mesh object instead. We may should use a gmsh mesh object for all examples. It would make remeshing much easier too.

cheers bernd
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 »

Furthermore I added a error message to FreeCAD main. git commit baf21815b
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 »

How about this ebrahim?

BTW: merged this commit into master: git commit 63bdb75a32
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: Wed Jun 03, 2020 8:02 pm How about this ebrahim?

BTW: merged this commit into master: git commit 63bdb75a32
thanks bernd :D
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 »

How about the OpenSees Solver?

BTW: merged another of your commits into master Ebrahim ...

git commit 302e9e83746b8


for myself ... because interesting to keep ... https://forum.freecadweb.org/viewtopic. ... 10#p388115
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: Fri Jul 09, 2021 7:11 am How about the OpenSees Solver?

BTW: merged another of your commits into master Ebrahim ...

git commit 302e9e83746b8


for myself ... because interesting to keep ... https://forum.freecadweb.org/viewtopic. ... 10#p388115
Thanks bernd. I started to work with XCFEM and contribute to it. It is based on opensees and is very well done. They use FreeCAD to read nodes and surface from FreeCAD model:

https://github.com/xcfem/xc/blob/master ... _reader.py

Also, i added I section to xc and design my industrial structure in it:
I shape class: https://github.com/xcfem/xc/blob/master ... s.py#L1609
test: https://github.com/xcfem/xc/blob/master ... test_11.py
my project: https://github.com/ebrahimraeyat/xc_soleh

They don't use FEM nodes, they use geometry and mesh it with internal gmsh in xc. I have one question:
Do you think it is better to use FEM workbench for giving nodes, surface nodes, etc. or
it is better to use IFC in FreeCAD?
Thanks for your interest.
ashok
Posts: 2
Joined: Fri Oct 15, 2021 3:59 pm

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by ashok »

Any progress made on this? Can I support this in any way?
OpenSees has a Python API - which can be used directly - rather than printing a TCL file and running.
However I learned both of them. I know the internal structure of OpenSees quite well also (may not be fully though).
User avatar
ebrahim raeyat
Posts: 619
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: OpenSees, the Open System for Herthquake Engineering Simulation

Post by ebrahim raeyat »

ashok wrote: Fri Oct 15, 2021 4:03 pm Any progress made on this? Can I support this in any way?
OpenSees has a Python API - which can be used directly - rather than printing a TCL file and running.
However I learned both of them. I know the internal structure of OpenSees quite well also (may not be fully though).
Hello @ashok. I decided to contribute with xcfem and may be in future working on GUI in FreeCAD for XCFEM. But if you want to continue developing this, I can help. there is no need to python for opensees (openseespy), because it is usefull for scripting, not when we use Gui.

Thanks.
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 »

it depends ...

Calculix, Elmer, Z88 and this OpenSees implementation where done this way. The FreeCAD FEM solver framework writes a solver input file and executes the solver.

But lateley for the last solver integration of Mystran/Nastran solver I did do it another way. The FreeCAD FEM solver framework does write a pyNastran python file. This will be exectuted and the solver input file is written by pyNastran. Thus the user can decide himself if he would like to edit the pyNastran or the Nastran/Mystran solver input file if he would like to change something. For me it was much easier to write the pyNastran file than the Mystran/Nastran file directly.

To be honest I would go the same way again for another solver integration. Check Mystran solver code in FreeCAD FEM Mod femsolver directory. Thus ... since for OpenSees there is a python integration too, it would to write a Python file.
ashok
Posts: 2
Joined: Fri Oct 15, 2021 3:59 pm

Re: OpenSees, the Open System for Herthquake Engineering Simulation

Post by ashok »

ebrahim raeyat wrote: Sat Oct 16, 2021 5:20 am
ashok wrote: Fri Oct 15, 2021 4:03 pm Any progress made on this? Can I support this in any way?
OpenSees has a Python API - which can be used directly - rather than printing a TCL file and running.
However I learned both of them. I know the internal structure of OpenSees quite well also (may not be fully though).
Hello @ashok. I decided to contribute with xcfem and may be in future working on GUI in FreeCAD for XCFEM. But if you want to continue developing this, I can help. there is no need to python for opensees (openseespy), because it is usefull for scripting, not when we use Gui.

Thanks.
Thank you ebrahim raeyat. Can you point me to the resources for learning internal structure of FreeCad. How does it work and where should I start to make it print out the .tcl files for the OpenSees model.
Post Reply