lib/simulation.py
def simulationWait(paramsPart, paramsPartsPack, paramsMat, paramsChannel, paramsHouse, simulationTime):
	"""Creates a simulation, runs it and wait until its finished.
	
	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
	
	"""
	O.reset() # return to nothing
	
	[idHouse, idsToRemove] = frameworkCreation(paramsPart, paramsPartsPack, paramsMat, paramsChannel, paramsHouse)
	engineCreation(idsToRemove)
	
	O.run(simulationTime) # Run the simulation
	O.wait()
Creates a simulation, runs it and wait until its finished.
	
	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 a simulation, runs it and wait until its finished.
Creates a simulation runs it and wait until its finished .
def simulationWait(paramsPart, paramsPartsPack, paramsMat, paramsChannel, paramsHouse, simulationTime):
	O.reset() 
	[idHouse, idsToRemove] = frameworkCreation(paramsPart, paramsPartsPack, paramsMat, paramsChannel, paramsHouse)
	engineCreation(idsToRemove)
	O.run(simulationTime) 
	O.wait()
def simulationWait ( paramsPart , paramsPartsPack , paramsMat , paramsChannel , paramsHouse , simulationTime ) : O . reset ( ) [ idHouse , idsToRemove ] = frameworkCreation ( paramsPart , paramsPartsPack , paramsMat , paramsChannel , paramsHouse ) engineCreation ( idsToRemove ) O . run ( simulationTime ) O . wait ( )
Creates a simulation, runs it and wait until its finished.
Creates a simulation runs it and wait until its finished .
"""Creates a simulation, runs it and wait until its finished.
	
	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
	
	""" # return to nothing # Run the simulation
paramsPart
paramsPartsPack
paramsMat
paramsChannel
paramsHouse
simulationTime