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

Post by makkemal »

Yes Bernd you are right, thanks for your inputs
:D
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Fem constraint contact

Post by bernd »

two questions resist:

- Where do we put the tool?
-- IMHO, best would be FEM --> Model --> Mechanical Constraints --> "Give your baby a cool name"
- Where do we put the Python code for the tool?
-- ATM I do not know any better than https://github.com/FreeCAD/FreeCAD/blob ... emutils.py
User avatar
makkemal
Posts: 395
Joined: Wed Apr 29, 2015 12:41 pm
Location: South Africa
Contact:

Re: Fem constraint contact

Post by makkemal »

The first version of auto contact seems to be working
I placed it under utilities
contact.PNG
contact.PNG (10.19 KiB) Viewed 2542 times
Branch
https://github.com/makkemal/FreeCAD/tree/auto_contact

Two test files
contact_test2.FCStd
(9.07 KiB) Downloaded 81 times
contact_test.FCStd
(10.47 KiB) Downloaded 79 times
Testing and comments would be great.
I have one question how do I get the UI to auto open when the object is added ?

Thanks
Michael
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Fem constraint contact

Post by bernd »

here, https://github.com/makkemal/FreeCAD/blo ... ds.py#L122 you could set the object in edit mode like this https://github.com/makkemal/FreeCAD/blo ... ds.py#L591 but make sure in the viewprovider the task panel is opened at set edit

hope that helps bernd

I will give it a try ...
User avatar
makkemal
Posts: 395
Joined: Wed Apr 29, 2015 12:41 pm
Location: South Africa
Contact:

Re: Fem constraint contact

Post by makkemal »

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

Re: Fem constraint contact

Post by makkemal »

have anybody done some testing ?
https://github.com/makkemal/FreeCAD/tree/auto_contact

I have made some small updates.
gear.PNG
gear.PNG (159.98 KiB) Viewed 2469 times
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Fem constraint contact

Post by thschrader »

makkemal wrote: Sat Dec 01, 2018 3:39 pm have anybody done some testing ?
https://github.com/makkemal/FreeCAD/tree/auto_contact

I have made some small updates.
gear.PNG
No testing, sorry Sir.
What must I do for a test? Copy your github-projekt into FC?
I have no python skills. What must I do to get your files running (please dont break my system... :) ):
Your mechanical model is used here:
https://www.youtube.com/watch?v=otwKXSUZXJc
User avatar
makkemal
Posts: 395
Joined: Wed Apr 29, 2015 12:41 pm
Location: South Africa
Contact:

Re: Fem constraint contact

Post by makkemal »

I have testes this functionality extensively and think it is fine for inclusion.
it is just automation of existing contact constraint.

@thschrader I compile under Ubuntu thus sorry for not providing a binary

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

Re: Fem constraint contact

Post by PrzemoF »

makkemal wrote: Sat Dec 01, 2018 3:39 pm have anybody done some testing ?
[..]
I have made some small updates.
[..]
Do you use any special cmake switches? I can't compile it (fedora linux)

Edit: Can you post your system info?

Edit2: Please ignore, I can't even build the master branch
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Fem constraint contact

Post by bernd »

rebased your branch on up to date master. To have this done a bit easier I squashed your commits michael. See https://github.com/berndhahnebach/FreeC ... utocontact
Post Reply