Fem constraint contact

About the development of the FEM module/workbench.

Moderator: bernd

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

Re: Fem constraint contact

Postby makkemal » Fri Jun 24, 2016 8:33 am

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 31 times
User avatar
bernd
Posts: 8204
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Fem constraint contact

Postby bernd » Fri Jun 24, 2016 2:12 pm

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
Posts: 2618
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Fem constraint contact

Postby PrzemoF » Fri Jun 24, 2016 2:58 pm

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

Re: Fem constraint contact

Postby bernd » Fri Jun 24, 2016 3:04 pm

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

Re: Fem constraint contact

Postby bernd » Fri Jun 24, 2016 4:55 pm

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

Postby makkemal » Sat Jun 25, 2016 5:08 am

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

Re: Fem constraint contact

Postby bernd » Sun Jun 26, 2016 6:15 am

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

Re: Fem constraint contact

Postby bernd » Sun Jun 26, 2016 5:02 pm

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

Re: Fem constraint contact

Postby bernd » Wed Jul 13, 2016 6:14 pm

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

Postby Shockley » Sun Sep 25, 2016 11:52 pm

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.