Particle Cylinder
I'm new to Yade. I have two particles to insert into a domain. One of them is cylindrical, how to construct for the cylindrical particles in the yade?
Another Questio is How do I create a cloud os cylinders?
Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Ed Carlos Alves Rocha
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Hello,
> I'm new to Yade
welcome :-)
Unfortunately, there is not (yet) cylindrical particle (meaning "sharp" cylinder) implemented. Instead of one cylindrical particle, you can use a set of clumped spheres approximating a cylinder.
If you choose this option, see e.g. [1] how to make clouds.
cheers
Jan
Revision history for this message
|
#2 |
Hi,
yade has also cylinders with rounded edges. Not sure what exactly you are after but have a look here:
https:/
HTH
Klaus
Revision history for this message
|
#3 |
I did the Cylinder example, however, I do not know give the imput of collision detection for this example. Can you take a look and see what impact collision between the cylinders and the wall?
Thank you very much for your attention.
from yade.gridpfacet import *
#### Parameter ####
L=1. # length of the cylinder element
r=0.1 # radius of the cylinder element
phi=30. # friction angle
E=1e6 # Young's modulus
idCana=
idSteel=
O.bodies.
#### Engines ####
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop([
Ig2_GridNode_
Ig2_GridConne
Ig2_Sphere_
Ig2_Facet_
Ig2_Wall_
],
[
Ip2_FrictMat_
[
Law2_
Law2_
Law2_
]),
NewtonIntegrat
]
#### Creat materials ####
O.materials.append( CohFrictMat( young=E,
O.materials.append( FrictMat( young=E,
#### Create cylinders ####
nodesIds=[]
cylIds=[]
cylinder(
fixed=
cylinder(
fixed=
cylinder(
fixed=
cylinder(
fixed=
cylinder(
fixed=
cylinder(
fixed=
#### For viewing ####
from yade import qt
qt.View()
Gl1_Sphere.
#### Set a time step ####
O.dt=1e-06
#### Allows to reload the simulation ####
O.saveTmp()
Revision history for this message
|
#4 |
Use PFacets instead of Facets, see [1] for example.
HTH
Klaus
[1] https:/
Revision history for this message
|
#5 |
Thanks Jan Stránský, that solved my question.
Revision history for this message
|
#6 |
I have another problem. I would like to construct a flow of coupled sphere particles.. In Yade has the example of the spheres factory. However, what is the mechanics of the yade where I can build an injection of particles of coupled spheres?
shotsId,
FrictMat(
FrictMat(
])
## same as
#
# shotsId,
#
O.bodies.
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
# define restitution coefficients between different pairs of material ids, see the functor's documentation for details
#en=
en=MatchMake
)],
[Law2_
),
NewtonIntegrat
## CircularFactory: disk if length=0 or cylinder if length>0
#CircularFacto
## BoxFactory: a line, plane or cuboid
BoxFactory(
DomainLimiter(
#VTKRecorder(
# run this every once in a while, to finalize the simulation at some point
PyRunner(
]
# the timestep must be smaller because of high linear velocities of particles
# we cannot use PWaveTimeStep directly, since there are no spheres generated yet
O.dt=SpherePWav
O.saveTmp()
#O.timingEnable
from yade import timing
try:
from yade import qt
# setup 3d view
v=qt.View()
v.upVector=
except ImportError: pass
O.run()
Revision history for this message
|
#7 |
Thanks Klaus Thoeni, that solved my question.
Revision history for this message
|
#8 |
I have another problem. I would like to construct a flow of coupled sphere particles.. In Yade has the example of the spheres factory. However, what is the mechanics of the yade where I can build an injection of particles of coupled spheres?
shotsId,
FrictMat(
FrictMat(
])
## same as
#
# shotsId,
#
O.bodies.
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
# define restitution coefficients between different pairs of material ids, see the functor's documentation for details
#en=
en=MatchMake
)],
[Law2_
),
NewtonIntegrat
## CircularFactory: disk if length=0 or cylinder if length>0
#CircularFacto
## BoxFactory: a line, plane or cuboid
BoxFactory(
DomainLimiter(
#VTKRecorder(
# run this every once in a while, to finalize the simulation at some point
PyRunner(
]
# the timestep must be smaller because of high linear velocities of particles
# we cannot use PWaveTimeStep directly, since there are no spheres generated yet
O.dt=SpherePWav
O.saveTmp()
#O.timingEnable
from yade import timing
try:
from yade import qt
# setup 3d view
v=qt.View()
v.upVector=
except ImportError: pass
O.run()
Revision history for this message
|
#9 |
Please open a new question as it is not related to your first question! Also, be more specific what you mean by coupled (clump?).
Klaus
Revision history for this message
|
#10 |
Thank you Klauss. I'm going to oppen new question.
Yes a Clump. I am going to open a new question, ie, a sphere factory or injector, for example, a flow of 4 sphere clump.