How to fix clumps in a direction for 2D simulation

Asked by Henry

I'm using Yade to simulate a direct shear test in 2D. And I used PFC2D generate some clumps and import to Yade.
I use the following code to fix the clumps in "Y" direction (the sample is on the xz plane and y=0):

if isinstance(b.shape,Clump): b.state.blockedDOFs='yXZ'

or
if isinstance(b.shape,Clump): b.state.blockedDOFs='yXZ'

However the clumps is rotating and moving in Y direction. anyon can help me?
thanks !

Question information

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

Did you turn z-velocity=0 after setting blockedDOFs="yXZ"?
Else the bodies would move at constant velocity (the velocity they have before you block them).

Revision history for this message
Henry (wenjiexu) said :
#2

Thanks Chareyre.

I set the blockedDOFs="yXZ" at the initial step.

But when I set the .blockedDOFs='yXYZ' for Clumps, the clump is ok in 2D:
if isinstance(b.shape,Clump): b.state.blockedDOFs='yXYZ'

should I set blockedDOFs='yXYZ' for clumps in 2D?
Thanks!

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

I think I get it: aspherical rotation algorithm does not support partial blocking. Try setting exactAsphericalRot=0 in Newton, and see if it's better with blockedDOFs="yXZ".

And no, you should not block "Y" in 2D.

Can you help with this problem?

Provide an answer of your own, or ask Henry for more information if necessary.

To post a message you must log in.