Excluding periodic interactions on half of cell faces

Asked by Jan Stránský

Hello,

I am wondering, if it is possible to exclude periodic interactions on negative faces of periodic cell (those with outer normal against coordinate axes) while preserving periodic contacts on positive faces.

Dividing the cell into 3 parts in each directions and using bitmasks could be one solution, but I would like not to use this one. I want to use it in a very special case where I use a lot of masks for a lot of periodic cells using actually one periodic cell. So, introducing 6 bits for each one, I would run out of int width.

Thanks
Jan

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Bruno Chareyre
Solved:
Last query:
Last reply:
Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#1

I don't get it. If (id1,id2) is on a negative face, then (id2,id1) is on a positive face, isn't it?!

Revision history for this message
Jan Stránský (honzik) said :
#2

Hi Bruno,

> I don't get it. If (id1,id2) is on a negative face, then (id2,id1) is on
> a positive face, isn't it?!
>
>
exactly :-) so my problem is to make the scene "semi-periodic", to apply
force only on one of the two bodies.. probably not easy task.. I will
introduce optional wider groupMask if necessary, it would solve my problem
and would be the easiest way.

Thanks
Jan

Revision history for this message
Best Bruno Chareyre (bruno-chareyre) said :
#3

Wow, the most crazy idea I've heard recently. I fail to understand the logic, but I guess you have a reason. :)
Checking i->cellDist[k] >0 comes to mind. Obviously it needs changes in the source code.

Revision history for this message
Jan Stránský (honzik) said :
#4

Hi Bruno,
yes, it is very crazy idea indeed :-) If I touch the source code, it would
be the optional using different type for Body::groupMask to be able to
gather more bitmask values.
Thanks for the clarification
Jan

2014-05-26 14:51 GMT+02:00 Bruno Chareyre <
<email address hidden>>:

> Your question #249287 on Yade changed:
> https://answers.launchpad.net/yade/+question/249287
>
> Status: Open => Answered
>
> Bruno Chareyre proposed the following answer:
> Wow, the most crazy idea I've heard recently. I fail to understand the
> logic, but I guess you have a reason. :)
> Checking i->cellDist[k] >0 comes to mind. Obviously it needs changes in
> the source code.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/yade/+question/249287/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/yade/+question/249287
>
> You received this question notification because you asked the question.
>

Revision history for this message
Jan Stránský (honzik) said :
#5

Thanks Bruno Chareyre, that solved my question.