shell to shell contact

About the development of the FEM module/workbench.

Moderator: bernd

UR_
Posts: 1154
Joined: Tue Jan 03, 2017 8:42 pm

Re: shell to shell contact

Post by UR_ » Wed Jan 15, 2020 6:35 am

bernd wrote:
Tue Jan 14, 2020 7:46 pm
... compile my branch ...
Just a short question about how to organize all these repos.
ATM, I have two working copies on my harddisk
https://github.com/FreeCAD/FreeCAD.git and https://github.com/UR-0/FreeCAD.git
In near future yours, the third, should be added.
I can't get rid on the feeling that this is a waste of disk space.
Should/could they all live in one working copy, just checking out the appropriated one before compiling. :roll:

BTW, I'm on windows using TortoiseGit, strongly avoiding Git bash ;)
User avatar
bernd
Posts: 9037
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: shell to shell contact

Post by bernd » Wed Jan 15, 2020 8:04 am

UR_ wrote:
Wed Jan 15, 2020 6:35 am
BTW, I'm on windows using TortoiseGit, strongly avoiding Git bash ;)
It is up to you if you use git bash or a git GUI ...


UR_ wrote:
Wed Jan 15, 2020 6:35 am
Just a short question about how to organize all these repos.
ATM, I have two working copies on my harddisk
https://github.com/FreeCAD/FreeCAD.git and https://github.com/UR-0/FreeCAD.git
In near future yours, the third, should be added.
I can't get rid on the feeling that this is a waste of disk space.
Should/could they all live in one working copy, just checking out the appropriated one before compiling. :roll:
They should live in one git repository !!!

Since I do not know how the Gui works I post the bash commands. You need to find the appropriate icon in your gui yourself ...

in your main repository do:

Code: Select all

git remote add bernd https://github.com/berndhahnebach/FreeCAD_bhb  # bernd could be any identifier you give
git fetch bernd  # will download all my branches into your repo
git branch -a  # will show you all available branches including the remote ones
git checkout remotes/bernd/femshellcontact
than you can check with git status or git log -10 --oneline what is checked out and what are the latest commits. It is time to compile. In my main repo I have around 30 or 40 remote repositories included. They are of all the people who contribute code to FEM.

BTW: Git is a beast at beginning. Just do not give up. I promise, If you domesticate the beast you will never give it away, for sure.
UR_
Posts: 1154
Joined: Tue Jan 03, 2017 8:42 pm

Re: shell to shell contact

Post by UR_ » Wed Jan 15, 2020 11:00 am

bernd wrote:
Tue Jan 14, 2020 7:46 pm
added the unit test as well ... compile my branch ... start FreeCAD ... run:
Test failed, because you didn't explicitly set SplitInputWriter

Code: Select all

obj = App.getDocument("Unnamed1").getObject("CalculiXccxTools")
obj.SplitInputWriter=False
to overwrite my preferences.
User avatar
bernd
Posts: 9037
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: shell to shell contact

Post by bernd » Wed Jan 15, 2020 11:09 am

No I can not set this, because of the unit test ... Unit test on splited file writing would be very difficault ... Thus all examples uses one file. Would you set it in your example or set it to split in the coded example befor writing, just to test if the coded example is ok.
UR_
Posts: 1154
Joined: Tue Jan 03, 2017 8:42 pm

Re: shell to shell contact

Post by UR_ » Wed Jan 15, 2020 2:22 pm

bernd wrote:
Wed Jan 15, 2020 11:09 am
... Unit test on splited file writing would be very difficault ...
I think you got me wrong.
My preferences are usually set to:

Screenshot 003.png
Screenshot 003.png (6.54 KiB) Viewed 127 times

Your script has to change this explicitly on CalculiXccxTools object creation to ensure needed settings.

I think unit tests has work despite of different initial user settings.


e.g. line 116 femexamples\contact_shell_shell.py

Code: Select all

        solver_object.SplitInputWriter = False


BTW
line 111:

Code: Select all

        solver_object.GeometricalNonlinearity = "linear"  # really?
Regarding ccx manual, first shot should be done linear
Just to ensure convergence and nonlinear should last significantly longer.
But convergence is ok and setting to nonlinear makes ccx run even faster :shock:
Tried with: ccx_2.16_pardiso_dynamic.exe
But output linear looks better ;)
Last edited by UR_ on Wed Jan 15, 2020 3:48 pm, edited 1 time in total.
User avatar
bernd
Posts: 9037
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: shell to shell contact

Post by bernd » Wed Jan 15, 2020 3:39 pm

No. I did explicit set this to False to ensure all is in one file! This is done for all coded examples in FEM module code.

Neverless if I do run analysises for myself I use splitted file writing.
User avatar
bernd
Posts: 9037
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: shell to shell contact

Post by bernd » Wed Jan 15, 2020 3:49 pm

UR_ wrote:
Wed Jan 15, 2020 2:22 pm
BTW
line 111:

Code: Select all

        solver_object.GeometricalNonlinearity = "linear"  # really?
Regarding ccx manual, first shot should be done linear
Just to ensure convergence and nonlinear should last significantly longer.
But convergence is ok and setting to nonlinear makes ccx run even faster :shock:
Tried with: ccx_2.16_pardiso_dynamic.exe
But output linear looks better ;)
good to know :)
UR_
Posts: 1154
Joined: Tue Jan 03, 2017 8:42 pm

Re: shell to shell contact

Post by UR_ » Wed Jan 15, 2020 3:54 pm

bernd wrote:
Wed Jan 15, 2020 3:39 pm
This is done for all coded examples in FEM module code.
Sorry, couldn't find appropriate line of code in femexamples\contact_shell_shell.py
vocx
Posts: 2841
Joined: Thu Oct 18, 2018 9:18 pm

Re: shell to shell contact

Post by vocx » Wed Jan 15, 2020 4:57 pm

UR_ wrote:
Wed Jan 15, 2020 6:35 am
Just a short question about how to organize all these repos.
...
BTW, I'm on windows using TortoiseGit, strongly avoiding Git bash ;)
Do not avoid the terminal. If you are going to be a developer, you need to lose fear of the command line.

Follow bernd's advice on setting up the repositories. And do read Source_code_management.
To support the documentation effort, and code development, your donation is appreciated: paypal.
UR_
Posts: 1154
Joined: Tue Jan 03, 2017 8:42 pm

Re: shell to shell contact

Post by UR_ » Wed Jan 15, 2020 6:15 pm

Oops, some more problems with \femexamples\contact_shell_shell.py

Generated shells are inverted.
Red surfaces have to point inward, grey one's outward, otherwise ccx can't interpret mesh correctly. :(

Screenshot 005.png
Screenshot 005.png (17.22 KiB) Viewed 87 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests