Interparticle spacing
Hello,
I would like to compute the spacing between adjacent individual particles (spheres) in a given packing (i.e. interparticle spacing). To do that, I thought about getting the length of the sides from the Delaunay triangulation process in the FlowEngine. So I created a packing of spheres, then run the flow engine to do the triangulation, then I want to get the length of the side. My code is shown below and I am using Yadedaily in running this code. My questions are:
1- Is there a more efficient approach to get the interparticle spacing?
2- I found two functions in Yade documentation [1]: getVertices and printVertices, are those vertices belongs to the Delaunay triangulation (i.e. the vertices of the tetrahedra that forms the mesh for flow modeling)?
3- What are the values that I get from getVertices function? are they the Ids of the cells?
4- printVertices gives a txt file with six columns: id, x, y, z, alpha, fictitious. What does alpha and id mean?
Thank you,
Othman
[1] https:/
-----------
from yade import pack
P=1 #Pa
visc=1e-3 #Pa.sec - taken from Catalano, Chareyre, Bathelemy (2014)
density=1000 #kg/m3
g=9.81 #m/s2
sp_radius=2.36/1000
########## create walls ##########
mnx=0
mny=0
mnz=0
mxx=50.8/1000
mxy=50.8/1000
mxz=50.8/1000
mn,mx=Vector3(
walls=aabbWalls
wallIds=
yade.qt.View()
########## spheres ##########
sp=pack.
sp.makeCloud(
sp.toSimulation()
Height=
dP=P/Height #Pa/m
##check how to fix the particles
#for i in sp:
# body= O.bodies[i]
# body.state.
print ('porosity = ', utils.porosity())
########## flow engine ##########
flow=FlowEngine()
flow.useSolver=3
flow.permeabili
flow.viscosity=visc
flow.bndCondIsP
flow.bndCondVal
flow.boundaryUs
O.dt=1e-6
O.dynDt=False
flow.emulateAct
#get verticies positions
flow.printVerti
n=flow.nCells()
x=[]
for i in range (n):
l=flow.
x.append(l)
print (x)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: