Compliant mechanism (FEM / Python)

About the development of the FEM module/workbench.

Moderator: bernd

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

Re: Compliant mechanism (FEM / Python)

Postby bernd » Wed Apr 24, 2019 3:58 pm

mhh the problem I see is FreeCAD applys forces on geometry, but you oly have a mesh as result for the next step. Do you know calculix and abaqus inp file format? Directly in inp it is for sure possible what you whould like to do.
Posts: 236
Joined: Tue Oct 11, 2016 9:48 pm

Re: Compliant mechanism (FEM / Python)

Postby joha2 » Wed Jul 31, 2019 6:20 pm

Gerd wrote:
Wed Apr 24, 2019 2:34 pm
Right now, this is just a random meshing. The optimizer will create or fill the holes, so that the bending is more following the desired curve (which is not included right now).

What is weird in your picture: The upper row and the right most column have to be fully filled like in my picture. Did you have to change the code in order to get rid of numpy? The filling takes place in line 169 - 170. When these are filled, then there is no problem with calculix, because the contraints are applied at these faces represented by the border volumes. In my case it is running like charm.

I will try next a time dependent force which changes in angle, so that the bending has to follow along like a turning door.
I could not perform your Python script. :-(

Any news here? :mrgreen: