#grains creation and placement + physical boundaries definition
#The radii of the grains are defined in radius.csv and are computed to fit the distribution size given in the article of Andre et al. (2011) "Real-time analysis of the growth of granular media by an ultrasonic method: Application to the sedimentation of glass balls in water"
defgenInitialPosition(filename,rhop):
p=scontact3.ParticleProblem()
#Loading of the mesh.msh file specifying physical boundaries name
#Object fluid creation + Boundary condition of the fluid (field 0 is horizontal-width velocity; field 1 is vertical velocity; field 2 is the horizontal-depth velocity; field 3 is pressure)
#Physical parameters for the drops are the ones presented by Machu et al. (2001) "Coalescence, torus formation and breakup of sedimenting drops: experiments and computer simulations"
#grains creation and placement + physical boundaries definition
'''filename is the name of the output file
r is the radius of the grains
rout is the radius of the drop
rhop is the particles density
compacity is the solid volume fraction inside the drop'''