How do I keep a circle of particles around a circle motionless?

Asked by 孙灿

How do I keep a circle of particles around a circle motionless?

Question information

Language:
English Edit question
Status:
Needs information
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,

please read [1].

Next time, try to make the question standalone. If it is related to another question, please at least reference it, e.g. here it is [2].
The questions and answers are there also for others, who may search them in future and find their answers.
As such, the question "How do I keep a circle of particles around a circle motionless?" makes no sense.

To keep one particle "b" motionless, block all its degrees of freedom:
b.state.blockedDOFs = "xyzXYZ" # [3,4]

To select relevant particles, use similar code as proposed in [2]

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask
[2] https://answers.launchpad.net/yade/+question/698980
[3] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.State.blockedDOFs
[4] https://yade-dem.org/doc/user.html#motion-constraints

Revision history for this message
孙灿 (suncan) said :
#2

I know the code to keep the particles stationary, but I don't know how to use these codes. As in this example, keep the particles stationary on a circle with a center of (0.05, 1, 1) and a radius of 1

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

Hello,

please read [1] carefully and follow the instructions.

> I know the code to keep the particles stationary, but I don't know how to use these codes.

then why not to mention this? "How do I keep ... particles ... motionless?" suggest rather the opposite.

what is "the code" and "these codes"?

If [2] is solved, I see no problem in my answer #1. It is essentially the same, just using "b.state.blockedDOFs=..." instead of "O.bodies.erase(b.id)"

Again, to get a good (and quick) answer, first provide a good question.
If you want others to make effort solving your problem, it is much better/motivating/... to show your effort (formulating a good question) first.

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask
[2] https://answers.launchpad.net/yade/+question/698980

Can you help with this problem?

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

To post a message you must log in.