Re: [Yade-users] [Question #655455]: Apply compressive or tensile force to a packed geometry of spheres

2017-08-25 Thread Launchpad Janitor
Question #655455 on Yade changed:
https://answers.launchpad.net/yade/+question/655455

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' 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 #655455]: Apply compressive or tensile force to a packed geometry of spheres

2017-08-14 Thread Swapnil
Question #655455 on Yade changed:
https://answers.launchpad.net/yade/+question/655455

Swapnil posted a new comment:
Thanks for all the help 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 #655455]: Apply compressive or tensile force to a packed geometry of spheres

2017-08-09 Thread Jan Stránský
Question #655455 on Yade changed:
https://answers.launchpad.net/yade/+question/655455

Jan Stránský posted a new comment:
Hello,
if you apply the same force to all (equal) particles, they just accelerate 
equally as a rigid body, so no interaction is expected behavior.
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 #655455]: Apply compressive or tensile force to a packed geometry of spheres

2017-08-09 Thread Swapnil
Question #655455 on Yade changed:
https://answers.launchpad.net/yade/+question/655455

Status: Answered => Open

Swapnil is still having a problem:
Thanks Jan. I tried this and it appears to work :)

But I have one more doubt now. The cylinder (as a whole) seems to be
moving in one direction and I do not see the particles interacting. Do I
have to try the ´O.engines´ as well in order to see the whole effect?
Not sure if I am doing it the right way.

-- 
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 #655455]: Apply compressive or tensile force to a packed geometry of spheres

2017-08-09 Thread Jan Stránský
Question #655455 on Yade changed:
https://answers.launchpad.net/yade/+question/655455

Jan Stránský proposed the following answer:
> Now I am trying to apply a force to this group of spheres:

you have to assign force to each sphere:
for sphere in spheres:
   O.forces.setPermF(sphere.id,(1,1,1)) # probably Vector3(1,1,1) / 
len(O.bodies)
   #O.forces.addF(sphere.id,(1,1,1),permanent=True)

or you can create a rigid clump instead of O.bodies.append (depending on your 
needs):
cid,bids = O.bodies.appendClumped(spheres)
O.forces.setPermF(cid,(1,1,1))
#O.forces.addF(cid,(1,1,1),permanent=True)

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 #655455]: Apply compressive or tensile force to a packed geometry of spheres

2017-08-09 Thread Swapnil
Question #655455 on Yade changed:
https://answers.launchpad.net/yade/+question/655455

Swapnil posted a new comment:
Hi Jan,

Sorry if the question was ambiguous.

To create a cylinder geometry packed with spheres I used the following
commands:

from import yade pack
pred=pack.inCylinder(centerBottom= (0,0,-3),centerTop=(0,0,3),radius=.05)
spheres=pack.randomDensePacl(pred,spheresInCell=2000,radius=0.0025)
O.bodies.append(spheres)

This creates a body (cylinder with spheres). Now, how do I retrieve the
ID of this body for further application ( e.g. loading ). This is what I
am confused about.

When it comes to loading, thinking of applying forces of 1 N along the
three axes I have used the following command:

O.forces.setPermF(0,(1,1,1))

But it displays :  `ForceContainer' object has no attribute 'setPermF'. 
 
I will try to follow the link you send me ( 
https://answers.launchpad.net/yade/+question/578362). 

Thanks.. :)

-- 
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 #655455]: Apply compressive or tensile force to a packed geometry of spheres

2017-08-08 Thread Jan Stránský
Question #655455 on Yade changed:
https://answers.launchpad.net/yade/+question/655455

Status: Open => Answered

Jan Stránský proposed the following answer:
Hello

concerning setPermF, see [1] or give more info [2]

> I am not sure how we get the ID of this body. What command do we have to use?
please specify more "this body". To get id of a body, simply do:
body.id
or again be more specific

cheers
Jan

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

-- 
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 #655455]: Apply compressive or tensile force to a packed geometry of spheres

2017-08-08 Thread Swapnil
Question #655455 on Yade changed:
https://answers.launchpad.net/yade/+question/655455

Swapnil posted a new comment:
Also, I am not sure how we get the ID of this body. What command do we
have to use?

-- 
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 #655455]: Apply compressive or tensile force to a packed geometry of spheres

2017-08-08 Thread Swapnil
New question #655455 on Yade:
https://answers.launchpad.net/yade/+question/655455

Hi friends,

I have created a ´constructive solid geometry´ - a cylinder and packed it with 
spheres

from import yade pack
pred=pack.inCylinder(centerBottom= (0,0,-3),centerTop=(0,0,3),radius=.05)
spheres=pack.randomDensePacl(pred,spheresInCell=2000,radius=0.0025)
O.bodies.append(spheres)

Now I am trying to apply a force to this group of spheres:
the command I gave after reading the documentation:

O.forces.setPermF(0,(1,1,1))

(I am thinking of applying equal forces (1 N) from all directions)

Weirdly, it displays: 'ForceContainer' object has no attribute 'setPermF'

Could you suggest a way out?
 
thanks

-- 
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