lib/simulation.py
def frameworkCreation(paramsPart, paramsPartsPack, paramsMat, paramsChannel, paramsHouse):
	"""Creates the framework and returns [idHouse, [idWallFront, idWallLeft, idWallRight]], ids of some of the objects created in O.bodies.
	
	Parameters:
	- [diameterPart, densPart, phiPartMax, restitCoef, partFrictAngle] -- parameters relative to the particles
	- [number, lengthBox, widthBox, heightBox]                         -- parameters relative to the particle cloud
	- [normalStiffness, youngMod, poissonRatio]                        -- parameters relative to the particles' material
	- [slopeChannel, lengthChannel, widthChannel, heightChannel]       -- parameters relative to the channel
	- [positionCoef, angleHouse, lengthHouse, widthHouse, heightHouse] -- parameters relative to the house
	
	"""
	[diameterPart, densPart, phiPartMax, restitCoef, partFrictAngle] =  paramsPart
	[number, lengthBox, widthBox, heightBox] =  paramsPartsPack
	[normalStiffness, youngMod, poissonRatio] =  paramsMat
	[slopeChannel, lengthChannel, widthChannel, heightChannel] =  paramsChannel
	[positionCoef, angleHouse, lengthHouse, widthHouse, heightHouse] =  paramsHouse
	
	# Material definition
	
	O.materials.append(ViscElMat(en=restitCoef, et=0., young=youngMod, poisson=poissonRatio, density=densPart, frictionAngle=partFrictAngle, label='Mat')) 

	######################################################################################
	### Framework creation
	######################################################################################
	
	createGround()
	createChannel(widthChannel, lengthChannel, heightChannel, slopeChannel)
	# createRugosity(diameterPart, widthChannel, lengthChannel, slopeChannel)
	[idWallBack, idWallFront, idWallLeft, idWallRight] = createPartBox(widthBox, lengthBox, heightBox, widthChannel, lengthChannel, slopeChannel)
	createPartCloud(widthBox, lengthBox, heightBox, widthChannel, lengthChannel, slopeChannel, diameterPart, number)
	idHouse = createHouse(positionCoef, angleHouse, lengthHouse, widthHouse, heightHouse, widthChannel, lengthChannel, slopeChannel)
	
	return [idHouse, [idWallFront, idWallLeft, idWallRight]]
Creates the framework and returns [idHouse, [idWallFront, idWallLeft, idWallRight]], ids of some of the objects created in O.bodies.
	
	Parameters:
	- [diameterPart, densPart, phiPartMax, restitCoef, partFrictAngle] -- parameters relative to the particles
	- [number, lengthBox, widthBox, heightBox]                         -- parameters relative to the particle cloud
	- [normalStiffness, youngMod, poissonRatio]                        -- parameters relative to the particles' material
	- [slopeChannel, lengthChannel, widthChannel, heightChannel]       -- parameters relative to the channel
	- [positionCoef, angleHouse, lengthHouse, widthHouse, heightHouse] -- parameters relative to the house
	
	
Creates the framework and returns [idHouse, [idWallFront, idWallLeft, idWallRight]], ids of some of the objects created in O.bodies.
Creates the framework and returns [ idHouse [ idWallFront idWallLeft idWallRight ]] ids of some of the objects created in O . bodies .
def frameworkCreation(paramsPart, paramsPartsPack, paramsMat, paramsChannel, paramsHouse):
	[diameterPart, densPart, phiPartMax, restitCoef, partFrictAngle] =  paramsPart
	[number, lengthBox, widthBox, heightBox] =  paramsPartsPack
	[normalStiffness, youngMod, poissonRatio] =  paramsMat
	[slopeChannel, lengthChannel, widthChannel, heightChannel] =  paramsChannel
	[positionCoef, angleHouse, lengthHouse, widthHouse, heightHouse] =  paramsHouse
	O.materials.append(ViscElMat(en=restitCoef, et=0., young=youngMod, poisson=poissonRatio, density=densPart, frictionAngle=partFrictAngle, label='Mat')) 
	createGround()
	createChannel(widthChannel, lengthChannel, heightChannel, slopeChannel)
	[idWallBack, idWallFront, idWallLeft, idWallRight] = createPartBox(widthBox, lengthBox, heightBox, widthChannel, lengthChannel, slopeChannel)
	createPartCloud(widthBox, lengthBox, heightBox, widthChannel, lengthChannel, slopeChannel, diameterPart, number)
	idHouse = createHouse(positionCoef, angleHouse, lengthHouse, widthHouse, heightHouse, widthChannel, lengthChannel, slopeChannel)
	return [idHouse, [idWallFront, idWallLeft, idWallRight]]
def frameworkCreation ( paramsPart , paramsPartsPack , paramsMat , paramsChannel , paramsHouse ) : [ diameterPart , densPart , phiPartMax , restitCoef , partFrictAngle ] = paramsPart [ number , lengthBox , widthBox , heightBox ] = paramsPartsPack [ normalStiffness , youngMod , poissonRatio ] = paramsMat [ slopeChannel , lengthChannel , widthChannel , heightChannel ] = paramsChannel [ positionCoef , angleHouse , lengthHouse , widthHouse , heightHouse ] = paramsHouse O . materials . append ( ViscElMat ( en = restitCoef , et = 0. , young = youngMod , poisson = poissonRatio , density = densPart , frictionAngle = partFrictAngle , label = 'Mat' ) ) createGround ( ) createChannel ( widthChannel , lengthChannel , heightChannel , slopeChannel ) [ idWallBack , idWallFront , idWallLeft , idWallRight ] = createPartBox ( widthBox , lengthBox , heightBox , widthChannel , lengthChannel , slopeChannel ) createPartCloud ( widthBox , lengthBox , heightBox , widthChannel , lengthChannel , slopeChannel , diameterPart , number ) idHouse = createHouse ( positionCoef , angleHouse , lengthHouse , widthHouse , heightHouse , widthChannel , lengthChannel , slopeChannel ) return [ idHouse , [ idWallFront , idWallLeft , idWallRight ] ]
Creates the framework and returns [idHouse, [idWallFront, idWallLeft, idWallRight]], ids of some of the objects created in O.bodies.
Creates the framework and returns [ idHouse [ idWallFront idWallLeft idWallRight ]] ids of some of the objects created in O . bodies .
"""Creates the framework and returns [idHouse, [idWallFront, idWallLeft, idWallRight]], ids of some of the objects created in O.bodies.
	
	Parameters:
	- [diameterPart, densPart, phiPartMax, restitCoef, partFrictAngle] -- parameters relative to the particles
	- [number, lengthBox, widthBox, heightBox]                         -- parameters relative to the particle cloud
	- [normalStiffness, youngMod, poissonRatio]                        -- parameters relative to the particles' material
	- [slopeChannel, lengthChannel, widthChannel, heightChannel]       -- parameters relative to the channel
	- [positionCoef, angleHouse, lengthHouse, widthHouse, heightHouse] -- parameters relative to the house
	
	""" # Material definition ###################################################################################### ### Framework creation ###################################################################################### # createRugosity(diameterPart, widthChannel, lengthChannel, slopeChannel)
paramsPart
paramsPartsPack
paramsMat
paramsChannel
paramsHouse