Question #294529 on Yade changed: https://answers.launchpad.net/yade/+question/294529
Deepak proposed the following answer: Hi, Here's a small code which generates random fibres in a box(similar to Klaus Thoeni's idea). You can control the number of fibres, and the the number of fibre segments. The file fibgen.f90 is a fortran code which generates the fibres, (it's commented and self explanatory, I guess). The file yy.py is an example with respect to yade. (reading the coordinates, appending to bodies etc.). To compile : gfortran fibgen.f90, to run ./a.out .. => writes a file called nodes3.dat To run in yade : yadedaily yy.py hope this helps! links : https://www.dropbox.com/s/nza8v41rt8jovci/fibgen.f90?dl=0 https://www.dropbox.com/s/omg2ttivzwvh5os/fibres_in_box.png?dl=0 https://www.dropbox.com/s/0yrxzjhqw1elm03/yy.py?dl=0 -- 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 : [email protected] Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp

