lib/frameworkCreation.py
def createRugosity(diameterPart, widthChannel, lengthChannel, slopeChannel):
	"""Creates a layer of regulary spaced spheres at the bottom of the channel simulating rugosity.
	
	Be careful, it increases a lot the computation cost.
	
	Parameters:
	- diameterPart  -- diameter of the spheres, the 'length' of the rugosity
	- widthChannel  -- width of the channel.
	- lengthChannel -- length of the channel.
	- heightChannel -- height of the channel.
	- slopeChannel  -- slope of the channel.
	
	"""
	L = np.linspace(0, lengthChannel, int(lengthChannel/diameterPart))
	W = np.linspace(0, widthChannel, int(lengthChannel/diameterPart))
	for x in L: #loop creating a set of sphere sticked at the bottom with a (uniform) random altitude comprised between 0.5 (diameter/12) and 5.5mm (11diameter/12) with steps of 0.5mm. The repartition along z is made around groundPosition.
		for y in W:
			O.bodies.append(sphere((-x * cos(slopeChannel), y, x * sin(slopeChannel)), diameterPart / 2., color = (0.3, 0.3, 0.3), fixed = True, material = 'Mat'))
Creates a layer of regulary spaced spheres at the bottom of the channel simulating rugosity.
	
	Be careful, it increases a lot the computation cost.
	
	Parameters:
	- diameterPart  -- diameter of the spheres, the 'length' of the rugosity
	- widthChannel  -- width of the channel.
	- lengthChannel -- length of the channel.
	- heightChannel -- height of the channel.
	- slopeChannel  -- slope of the channel.
	
	
Creates a layer of regulary spaced spheres at the bottom of the channel simulating rugosity.
Be careful, it increases a lot the computation cost.

diameterPart  -- diameter of the spheres, the 'length' of the rugosity
widthChannel  -- width of the channel.
lengthChannel -- length of the channel.
heightChannel -- height of the channel.
slopeChannel  -- slope of the channel.
Creates a layer of regulary spaced spheres at the bottom of the channel simulating rugosity . Be careful it increases a lot the computation cost . diameterPart -- diameter of the spheres the ' length ' of the rugosity widthChannel -- width of the channel . lengthChannel -- length of the channel . heightChannel -- height of the channel . slopeChannel -- slope of the channel .
def createRugosity(diameterPart, widthChannel, lengthChannel, slopeChannel):
	L = np.linspace(0, lengthChannel, int(lengthChannel/diameterPart))
	W = np.linspace(0, widthChannel, int(lengthChannel/diameterPart))
	for x in L: 
		for y in W:
			O.bodies.append(sphere((-x * cos(slopeChannel), y, x * sin(slopeChannel)), diameterPart / 2., color = (0.3, 0.3, 0.3), fixed = True, material = 'Mat'))
def createRugosity ( diameterPart , widthChannel , lengthChannel , slopeChannel ) : L = np . linspace ( 0 , lengthChannel , int ( lengthChannel / diameterPart ) ) W = np . linspace ( 0 , widthChannel , int ( lengthChannel / diameterPart ) ) for x in L : for y in W : O . bodies . append ( sphere ( ( - x * cos ( slopeChannel ) , y , x * sin ( slopeChannel ) ) , diameterPart / 2. , color = ( 0.3 , 0.3 , 0.3 ) , fixed = True , material = 'Mat' ) )
Creates a layer of regulary spaced spheres at the bottom of the channel simulating rugosity.
Creates a layer of regulary spaced spheres at the bottom of the channel simulating rugosity .
"""Creates a layer of regulary spaced spheres at the bottom of the channel simulating rugosity.
	
	Be careful, it increases a lot the computation cost.
	
	Parameters:
	- diameterPart  -- diameter of the spheres, the 'length' of the rugosity
	- widthChannel  -- width of the channel.
	- lengthChannel -- length of the channel.
	- heightChannel -- height of the channel.
	- slopeChannel  -- slope of the channel.
	
	""" #loop creating a set of sphere sticked at the bottom with a (uniform) random altitude comprised between 0.5 (diameter/12) and 5.5mm (11diameter/12) with steps of 0.5mm. The repartition along z is made around groundPosition.
diameterPart
widthChannel
lengthChannel
slopeChannel