How do we generate fibres and randomly distribute them?

Asked by Kalyan Khanal

I have done sphere packing for the direct shear test and now I want to add fibres to the packing.

How do we create fibres?

I am confused with the concept of grid connection and clumps. Which one should I use to make fibres and randomly distribute them?

If there's any example regarding the fibres please let me know.

Also I have seen the question no. 294529 "random orientation of chained cylinders" and the link given for random generation of fibres from dropbox has expired it seems. It would be great to have something on fibres.

Thanks!

Question information

Language:
English Edit question
Status:
Expired
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#1

"Random distribution" is a generic idea. How to do it concretely will probably depend on your application, and then it is difficult to give a general answer. If you define the type of random distribution you need in terms of equations it should be possible to tell you how it can be implemented.

>How do we create fibres?
I would suggest to have a look at the cylinder (with gridConnexions) examples first, then ask specific questions if something is not clear.

Regards

Bruno

Revision history for this message
Kalyan Khanal (kalyan-khanal) said :
#2

Hi,

I have used the following code to make a cylindrical object which is considered as a single fibre.

###Create all nodes first :
nodesIds=[]
for i in linspace(0,L,nL):
  nodesIds.append( O.bodies.append(
    gridNode([i,0.02,0.01],rCyl,wire=False,fixed=False,material='gridNodeMat',color=(1,1,1)) ) )

##Now create connection between the nodes
for i,j in zip( nodesIds[:-1], nodesIds[1:]):
  O.bodies.append( gridConnection(i,j,rCyl,
                                  material='gridCoMat'
                                  ) )

My question is How can I use that fibre and distribute it randomly into the packing of spheres. I already have a pack of spheres and I want to distribute the fibres, How can I copy that fibre into the sphere pack and which is the best way to distribute them?

Thanks,

Kalyan Khanal

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.