# yade-users team mailing list archive

## Re: 2 equal starts - 2 different results

```It is a very simple one.
______________________________
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями

2009/7/1 Václav Šmilauer <eudoxos@xxxxxxxx>

>
> > I have started 1 script 2 times. With the same parameters.
> > But when I analyse diagrams from these tests, I get different results.
> Can you post your scripts?
>
> V.
>
>
>
> _______________________________________________
>
```
```from yade import pack
from math import *
from euclid import *

#_______________________________________________________________________
PI = 3.14159265;

a = 62 #Size a, [mm] X
b = 40 #Size b, [mm] Y
h = 33 #Size h, [mm] Z

grainSize = 7 #Grain size, [mm]
distBetweenGrains = 1 #Distance between grains, [mm]

rho=1000 #Grain density, [kg/m^3]
poisson = 0.3 #Poisson coefficient
young = 30e9 #Young module
frictionAngle = 0.52 # Friction angle

boxThick = 3 #Box thickness, [mm]
boxHeight = 10 #Box height, [mm]
boxCoef = 3 #In how many times box larger, than an example
pressCoef = 1.5 #In how many times press larger, than an example
#_______________________________________________________________________
a = 0.001*a
b = 0.001*b
h = 0.001*h
grainSize = 0.001*grainSize
distBetweenGrains = 0.001*distBetweenGrains
boxThick = 0.001*boxThick
boxHeight = 0.001*boxHeight

#_______________________________________________________________________

kw={'density':rho,'young':young,'poisson':poisson,'frictionAngle':frictionAngle}
kw_facets={'frictionAngle':frictionAngle,'color':[0.98,0.984,0.576],'young':2e11,'dynamic':False}
kw_press={'frictionAngle':frictionAngle,'color':[0.757,0.278,0.976],'young':2e11,'dynamic':False}

#box
O.bodies.append(utils.alignedFacetBox((0,0,0),(a*boxCoef,b*boxCoef,boxHeight/2*boxCoef),31,**kw_facets))

#press
id_press=O.bodies.append(utils.facet([[(1.5*a*pressCoef),0,h/2+a/50],[(-a/2*pressCoef),(b*pressCoef),(h/2+a/50)],[(-a/2*pressCoef),(-b*pressCoef),(h/2+a/50)]],**kw_press))

#_______________________________________________________________________

try:
qt.Controller()
except ImportError: pass

O.engines=[
BexResetter(),
BoundingVolumeMetaEngine([InteractingSphere2AABB(),InteractingFacet2AABB(),MetaInteractingGeometry2AABB()]),
InsertionSortCollider(),
InteractionDispatchers(
[ef2_Sphere_Sphere_Dem3DofGeom(),ef2_Facet_Sphere_Dem3DofGeom()],
[SimpleElasticRelationships()],
#[Law2_Dem3DofGeom_RockPMPhys_Rpm()],
[Law2_Dem3Dof_Elastic_Elastic()],
),
GravityEngine(gravity=[0,0,-9.81]),
NewtonsDampedLaw(damping=.5),
#DeusExMachina('TranslationEngine',{'translationAxis':[0,0,1],'velocity':-0.1,'subscribedBodies':[id_press]}),
]

#______________________________________________________________________PLOT___________________________________________________
## store some numbers under some labels
sph=O.bodies[ids_spheres[2]]