Fem constraint contact

About the development of the FEM module/workbench.

Moderator: bernd

makkemal
Posts: 381
Joined: Wed Apr 29, 2015 12:41 pm

Re: Fem constraint contact

Postby makkemal » Mon Nov 05, 2018 2:49 pm

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

Re: Fem constraint contact

Postby bernd » Mon Nov 05, 2018 3:25 pm

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
makkemal
Posts: 381
Joined: Wed Apr 29, 2015 12:41 pm

Re: Fem constraint contact

Postby makkemal » Thu Nov 15, 2018 3:29 pm

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

Two test files
contact_test2.FCStd
(9.07 KiB) Downloaded 8 times
contact_test.FCStd
(10.47 KiB) Downloaded 7 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
Posts: 7301
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Fem constraint contact

Postby bernd » Thu Nov 15, 2018 4:06 pm

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 ...
makkemal
Posts: 381
Joined: Wed Apr 29, 2015 12:41 pm

Re: Fem constraint contact

Postby makkemal » Thu Nov 15, 2018 5:12 pm

Thanks Bernd that worked
makkemal
Posts: 381
Joined: Wed Apr 29, 2015 12:41 pm

Re: Fem constraint contact

Postby makkemal » 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
gear.PNG (159.98 KiB) Viewed 323 times
thschrader
Posts: 1383
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Fem constraint contact

Postby thschrader » Mon Dec 03, 2018 8:00 pm

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
makkemal
Posts: 381
Joined: Wed Apr 29, 2015 12:41 pm

Re: Fem constraint contact

Postby makkemal » Wed Jan 16, 2019 7:36 am

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

Re: Fem constraint contact

Postby PrzemoF » Wed Jan 16, 2019 10:20 am

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

Re: Fem constraint contact

Postby bernd » Wed Jan 16, 2019 5:31 pm

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