How to translate a periodic cell ?

Asked by Kneib François

Hi all,

I'm trying to translate a periodic cell, but not successfully. The only cell I'm able to do takes its origin at (0,0,0).
Is there a way to do that ?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Kneib François
Solved:
Last query:
Last reply:
Revision history for this message
Chiara Modenese (chiara-modenese) said :
#1

On 23/03/2012 10:10, Kneib François wrote:
> New question #191489 on Yade:
> https://answers.launchpad.net/yade/+question/191489
>
> Hi all,
>
> I'm trying to translate a periodic cell, but not successfully.
Hi François,
what are you trying to achieve by doing that? I mean, is there any
advantage if you do that? Whether the origin of your cell is at (0,0,0)
or any other point, should only be a matter of convention.

Chiara

> The only cell I'm able to do takes its origin at (0,0,0).
> Is there a way to do that ?
>
> Thanks
>

Revision history for this message
Kneib François (francois-kneib) said :
#2

Reasons why I want to do that are to long to explain here.
By moving the cell's origin I would save lot of time. According to your answer I supposed that it's not possible so I found an other (more complicated) solution.

François

Revision history for this message
Chiara Modenese (chiara-modenese) said :
#3

On 23/03/12 12:50, Kneib François wrote:
> Question #191489 on Yade changed:
> https://answers.launchpad.net/yade/+question/191489
>
> Kneib François posted a new comment:
> Reasons why I want to do that are to long to explain here.
I do not see any particular reason for that.
> By moving the cell's origin I would save lot of time. According to your answer I supposed that it's not possible so I found an other (more complicated) solution.
It is not possible, I think.

Chiara
> François
>

--
Chiara Modenese
DPhil Candidate in Engineering Science
Department of Engineering Science, Parks Road, Oxford, OX1 3PJ, UK
Mobile: +44 7760915539
Email: <email address hidden>

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

Just like Chiara, I'm surprised that you think about translating the origin of the coordinate system.
It is not possible, but you can always translate all the bodies, it will have the same effect.

Revision history for this message
Kneib François (francois-kneib) said :
#5

I was not thinking about changing the origin of the coordinate system but to keep it in place and to move the origin of the periodic cell.
I was asking if this is possible because I'm using Yade with my own fluid code. As it's not possible to do this I had to change my code and now it works (it was not as difficult as I thought to achieve it, I grant).

Revision history for this message
Christian Jakob (jakob-ifgt) said :
#6

I am interested in any kind of hydromechanical coupling with DEM. Can you please explain, what you are doing and how your fluid-code works.

Revision history for this message
Kneib François (francois-kneib) said :
#7

I'm working on a 2D LBM/DEM coupling to simulate erosion. The LBM part is computed by Python scripts.

Revision history for this message
Christian Jakob (jakob-ifgt) said :
#8

This is nice to know. :D