Fem constraint contact

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
User avatar
makkemal
Posts: 395
Joined: Wed Apr 29, 2015 12:41 pm
Location: South Africa
Contact:

Re: Fem constraint contact

Post by makkemal »

Hi bernd
Good to see you doing FEM on some pressure parts :D
The branch you committed works with all the test problems I have and the results are correct.
Thanks for helping with the fixes.

The error you are getting with the split file commit is just because the test file is old and the analysis is still named Mechanical Analysis.
just change its name to Analysis.

The split did have a few other errors, please see just updated.
I attach a test file for testing that commit.
Attachments
Beam_bend_transient_contact.fcstd
(83.79 KiB) Downloaded 80 times
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Fem constraint contact

Post by bernd »

makkemal wrote:The error you are getting with the split file commit is just because the test file is old and the analysis is still named Mechanical Analysis.
just change its name to Analysis.
Ahh it works now, thanks. We should not rely on object names. That's exactly the kind of problems I do not like to see in master. We only have a chance to find such problems before we merge into master is splitting the huge thermomech commit.

cheers bernd
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Fem constraint contact

Post by PrzemoF »

Feel free to use http://pha.geofinder.eu/ for code reviews. Its back online.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Fem constraint contact

Post by bernd »

PrzemoF wrote:Feel free to use http://pha.geofinder.eu/ for code reviews. Its back online.
Wow cool, good to know !
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Fem constraint contact

Post by bernd »

PrzemoF wrote:Feel free to use http://pha.geofinder.eu/ for code reviews. Its back online.
http://pha.geofinder.eu/D43

ToDo:
- fix fem unit test
User avatar
makkemal
Posts: 395
Joined: Wed Apr 29, 2015 12:41 pm
Location: South Africa
Contact:

Re: Fem constraint contact

Post by makkemal »

ToDo:
- fix fem unit test
How do you do a unit test ?
The current units has problems when you add Joules and Watts for themomechanical.
I will have vdwalts pull that out of step 1 post it and explain what is going on so we don't duplicate work
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Fem constraint contact

Post by bernd »

ToDo:
- fix fem unit test
done
makkemal wrote:How do you do a unit test ?
- start FreeCAD
- change to workbench Test framework --> click on icon "Self-test"
- change from TestApp.all. to TestFem
- click on Start

The FEM unit teste are implemented on the module TestFem.py Would be good to have some more for the new constraints.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Fem constraint contact

Post by bernd »

find the begin of splitting the huge thermomech commit to add the thermomech constraints in a new branch:

https://github.com/berndhahnebach/FreeC ... mechanical


https://github.com/makkemal/FreeCAD/commits/rtd_vdwalts was used for splitting
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Fem constraint contact

Post by bernd »

development branch for all new constraints:
https://github.com/berndhahnebach/FreeC ... onstraints

- constraint contact
- constraint plane rotation
- thermomechanical analysis

It's not yet ready, but I see light at the end of the darkness ...
Shockley
Posts: 10
Joined: Sun Sep 25, 2016 11:44 pm
Location: Spain

Re: Fem constraint contact

Post by Shockley »

makkemal wrote:@vejmarie
compile this tree
https://github.com/makkemal/FreeCAD/tree/rtd_hindlemp
example attached

@bernd don't look at the code or how the commits are staged :twisted:

Contact.PNG
I've downloaded the example project and opened it on FreeCAD 0.17 but the solver object doesn't run this Calculix object has less parameters than the solver that I can create with FreeCAD (I think this is easier to explain with images...).

PS: Finally I've could run the simulation on FreeCAD 0.17 32bit on windows 10 (32bit), I've had create a new analysis in te project with a new solver and after move all the constraints and meshes from one analysis to another analysis object. I don't know if this success is due to I use windows this time or because on the previous simulations I didn't use other object analysis for run the solver, yet. But one thing is clear, simulations on FreeCAD are still an odissey.
Last edited by Shockley on Mon Sep 26, 2016 10:58 am, edited 1 time in total.
Post Reply