[Yade-users] [Question #688324]: rotate to a certain degree

2020-01-28 Thread nobody
New question #688324 on Yade:
https://answers.launchpad.net/yade/+question/688324

Hi all,

I want to put a shaft into a soil sample with a vertical velocity and a 
rotational velocity at the same time.

I know that Rotationengine and Helixengine can rotate an object. 

Right now I can rotate the shaft a full round.
 
I'm wondering if we can rotate the shaft back and forth. for instance, rotate 
in a clockwise direction for 300 degrees and then 100 degrees in the 
anticlockwise direction. while keeping the vertical speed all the time.

I didn't find any parameters in Rotationengine and Helixengine can set the 
directions and the degrees.

could you please give me some suggestions?

thanks!
Yong





-- 
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 #688321]: Not able to apply DOF constraints

2020-01-28 Thread Akm
New question #688321 on Yade:
https://answers.launchpad.net/yade/+question/688321

Hi all,

I tried to move a sphere(Cpmmat) using a utilsbox acting as a wall(Frictmat). I 
want to restrain the degrees of freedom in the other two directions but when I 
do that, the wall tends to fly away after bouncing on the sphere. Here is a MWE 
of that phenomenon. Kindly help me to understand where I have gone wrong. 


from yade import pack, qt, export, ymport, plot

O.reset()

concrete_material=CpmMat(
 young = 1e10,
 density=1400,
 poisson = 0.25,
 frictionAngle = radians(40),
 epsCrackOnset = 1e-4,
 relDuctility = 10,
 sigmaT = 1e18,
 label='concrete_mat'
)
mat1=O.materials.append(concrete_material)

#O.materials.append(FrictMat(frictionAngle=0,density=0,label='walls'))

O.bodies.append([
 sphere(center=(0,0,0),radius=.5,fixed=False,material=concrete_material),
])

O.materials.append(FrictMat(frictionAngle=0,density=0,label='walls'))

O.engines=[
ForceResetter(),

InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=1,label='bo1s'),Bo1_Facet_Aabb(),Bo1_Wall_Aabb(),Bo1_Box_Aabb()]),
InteractionLoop(

[Ig2_Sphere_Sphere_ScGeom(interactionDetectionFactor=1,label='ig2s'),Ig2_Facet_Sphere_ScGeom(),Ig2_Wall_Sphere_ScGeom(),Ig2_Box_Sphere_ScGeom()],
[Ip2_FrictMat_FrictMat_FrictPhys(), 
Ip2_CpmMat_CpmMat_CpmPhys(cohesiveThresholdIter=1)],
[Law2_ScGeom_FrictPhys_CundallStrack(), 
Law2_ScGeom_CpmPhys_Cpm()] 
),
NewtonIntegrator(gravity=(0,0,0),damping=0.5),
#CpmStateUpdater(iterPeriod=1),

GlobalStiffnessTimeStepper(active=True,timeStepUpdateInterval=1,timestepSafetyCoefficient=0.8),
 

]

O.step()

U_box= utils.box((.5,1,-.5),(1,0,.5),fixed=True,wire=False,color=(1,0,0))
O.bodies.append(U_box)

U_box.state.mass=1
U_box.state.inertia = (1,1,1)
U_box.state.blockedDOFs = "xzXYZ"

U_box.state.vel=(0,-0.01,0)

yade.qt.View()

O.saveTmp()

##

Many thanks in advance - Arun

-- 
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 #688195]: permeability model

2020-01-28 Thread Othman Sh
Question #688195 on Yade changed:
https://answers.launchpad.net/yade/+question/688195

Othman Sh posted a new comment:
Just following up on this question, any reply? 
Thank you

-- 
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 #687413]: sphere packing

2020-01-28 Thread Othman Sh
Question #687413 on Yade changed:
https://answers.launchpad.net/yade/+question/687413

Status: Answered => Solved

Othman Sh confirmed that the question is solved:
Thanks Robert Caulk, that solved my question.

-- 
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 #688280]: How to generate tiny particles in pore space

2020-01-28 Thread Jan Stránský
Question #688280 on Yade changed:
https://answers.launchpad.net/yade/+question/688280

Status: Open => Answered

Jan Stránský proposed the following answer:
if you want non-overlapping particles, use one SpherePack instance, something 
like (not tested)
###
sp=pack.SpherePack() # just one SpherePack
sp.makeCloud((0,0,0),(1,1,1),num=900,rMean=0.04,rRelFuzz=0)
sp.toSimulation(color=[1,1,1])
doCompaction() # replace by your code
sp.fromSimulation() # now sp is according to compacted particles
n = len(sp)
sp.makeCloud(minCorner,maxCorner,num=3000,rMean=.005,rRelFuzz=.00033) # new 
particles, guaranteed to be "outside the body of soil particles" = outside 
already existing particles in sp
for i,(c,r) in enumerate(sp):
   if i < n: # skip already existing particles
  continue
   O.bodies.append(sphere(c,r))
###

> rRelFuzz=.00033

rRelFuzz is a relative value, the radii are in the range
((1-rRelFuzz)*rMean, (1+rRelFuzz)*rMean), isn't 0.00033 absolute value?

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 #688280]: How to generate tiny particles in pore space

2020-01-28 Thread Leonard
Question #688280 on Yade changed:
https://answers.launchpad.net/yade/+question/688280

Status: Answered => Open

Leonard is still having a problem:
Many thanks Robert,

I am not sure if I got what you mean for using a PSD, could you please
give more clues?

Following your suggestion, I make an example using makeCloud:

###
from yade import pack
## soil particles
sp1=pack.SpherePack()
sp1.makeCloud((0,0,0),(1,1,1),num=900,rMean=0.04,rRelFuzz=0)
sp1.toSimulation(color=[1,1,1])
## fine particles
sp2=pack.SpherePack()
sp2.makeCloud((0,0,0),(1,1,1),num=3000,rMean=.005,rRelFuzz=.00033)
sp2.toSimulation(color=[0,0.8,0])

Gl1_Sphere.quality=3
#

This example is a kind of progress. However, I still have some questions 
regarding the example above.
1. Some of the tiny particles are inside the body of soil particles.
2. This is for a cloud pack at the beginning, is there any way to generate tiny 
particles in pore space after the soil particles are compacted. For example, 
after soil particles are compacted at 100 KPa confining pressure?

Thanks,

Leonard

-- 
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 #688275]: Size problem in yade simulation

2020-01-28 Thread Huang peilun
Question #688275 on Yade changed:
https://answers.launchpad.net/yade/+question/688275

Status: Answered => Solved

Huang peilun confirmed that the question is solved:
Thanks Jan! 
I tried SoilMat=FrictMat(young=25e9,...) and it works!
Now I understand why these spheres go through the cylinder. It's very 
interesting!

-- 
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 #688275]: Size problem in yade simulation

2020-01-28 Thread Huang peilun
Question #688275 on Yade changed:
https://answers.launchpad.net/yade/+question/688275

Huang peilun confirmed that the question is solved:
Thanks Jan Stránský, that solved my question.

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