Re: [Yade-users] [Question #701936]: Why do particles intersect?

2022-06-09 Thread Launchpad Janitor
Question #701936 on Yade changed:
https://answers.launchpad.net/yade/+question/701936

Status: Needs information => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Needs information'
state without activity for the last 15 days.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #701936]: Why do particles intersect?

2022-05-25 Thread Jan Stránský
Question #701936 on Yade changed:
https://answers.launchpad.net/yade/+question/701936

Status: Open => Needs information

Jan Stránský requested more information:
Please read [1] carefully and follow the instructions.

> Some of my related codes are as follows:

Provide a MWE [1], W = working, complete script.
Without it, we can merely guess..

> how do I solve it?

option 1: solve it yourself
option 2: we can help, but please follow the instructions and provide requested 
additional information (MWE)

> But when generating the second part of the particles, some particles
will intersect with the first part of the particles

Is this the problem?
Then generate the second part of particles such that they do not intersect..

> and cause the subsequent simulations to not run as I expected

What exactly does "as I expected" and "not as I expected" mean?
In the OP there is some description, but it is too vague. E.g. "fall down", but 
without context and with your statement that you blocked DOFs and set zero 
velocity it does not make sense..
Although, with a MWE, it would be different and probably a good description..

Cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #701936]: Why do particles intersect?

2022-05-25 Thread 孙灿
Question #701936 on Yade changed:
https://answers.launchpad.net/yade/+question/701936

Status: Needs information => Open

孙灿 gave more information on the question:
I'm sorry I didn't express it very well. Some of my related codes are as
follows:

def checkUnbalanced():
if unbalancedForce() < .02:
#O.pause()
for b in O.bodies:
if isinstance(b.shape,Sphere):
b.state.blockedDOFs='zxy'
b.state.vel=(0,0,0)
b.state.angVel=(0,0,0)

d = (b.state.pos - circleCenter).norm() # distance of 
circleCenter and center of "b"
if d < circleRadius :
   #for i in range(1,2): 
   #b.shape.radius=b.shape.radius-0.02
   O.bodies.erase(b.id)

   qiyong()
def qiyong():
   
O.bodies.append(sphere(center=(0.05,1.5,2.451), radius=.049, 
fixed=True,color=(1.,1.,1.)))
O.bodies.append(sphere(center=(0.05,1.5,1.549), radius=.049, 
fixed=True,color=(1.,1.,1.)))
O.bodies.append(sphere(center=(0.05,1.049,2), radius=.049, 
fixed=True,color=(1.,1.,1.)))
O.bodies.append(sphere(center=(0.05,1.951,2), radius=.049, 
fixed=True,color=(1.,1.,1.)))
  
O.bodies.append(sphere(center=(0.05,1.9423,2.0880), radius=.049, 
fixed=True,color=(1.,1.,1.)))
O.bodies.append(sphere(center=(0.05,1.9167,2.1726), radius=.049, 
fixed=True,color=(1.,1.,1.))) 
O.bodies.append(sphere(center=(0.05,1.8750,2.2506), radius=.049, 
fixed=True,color=(1.,1.,1.))) 
O.bodies.append(sphere(center=(0.05,1.8189,2.3189), radius=.049, 
fixed=True,color=(1.,1.,1.))) 
O.bodies.append(sphere(center=(0.05,1.7506,2.3750), radius=.049, 
fixed=True,color=(1.,1.,1.))) 
O.bodies.append(sphere(center=(0.05,1.6726,2.4167), radius=.049, 
fixed=True,color=(1.,1.,1.))) 
O.bodies.append(sphere(center=(0.05,1.5880,2.4423), radius=.049, 
fixed=True,color=(1.,1.,1.)))
I use checkUnbalanced() to check the balance of the particles, before this 
string of code, I have set up some particles (you can call it the first part of 
the code), qiyong() is the function I use to generate the second part of the 
particles, in the checkUnbalanced() function, after some conditions are met, 
qiyong() will be called, which will generate the second part of the particles. 
But when generating the second part of the particles, some particles will 
intersect with the first part of the particles and cause the subsequent 
simulations to not run as I expected, how do I solve it?

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #701936]: Why do particles intersect?

2022-05-25 Thread Jan Stránský
Question #701936 on Yade changed:
https://answers.launchpad.net/yade/+question/701936

Status: Open => Needs information

Jan Stránský requested more information:
We can only guess, please provide a MWE [1]
Cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #701936]: Why do particles intersect?

2022-05-25 Thread 孙灿
Question #701936 on Yade changed:
https://answers.launchpad.net/yade/+question/701936

Status: Needs information => Open

孙灿 gave more information on the question:
I used not only b.state.blockedDOFs='zxy', but b.state.vel = 
(0,0,0),b.state.angVel = (0,0,0)
I've set up both the degree of freedom and the speed, so why is this happening?

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #701936]: Why do particles intersect?

2022-05-24 Thread Jan Stránský
Question #701936 on Yade changed:
https://answers.launchpad.net/yade/+question/701936

Status: Open => Needs information

Jan Stránský requested more information:
Hello,

Please provide a MWE [1].
Please provide reference(s) to related problem(s) [2]

Did you just set zero velocity, or also blockedDOFs?

Cheers
Jan

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

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


[Yade-users] [Question #701936]: Why do particles intersect?

2022-05-24 Thread 孙灿
New question #701936 on Yade:
https://answers.launchpad.net/yade/+question/701936

I want to add some other particles using O.bodies.append() on the basis of 
having some particles (which we call it with the first part of the particles), 
we call it with the second part of the particles, and I use b.state.vel = 
(0,0,0)
b.state.angVel = (0,0,0) fixes the first part of the particles, but I found 
that some of the particles of the first part fall down and intersect with the 
particles of the second part, why is this?

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp