yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #01562
Yade crashes from vertical facets
Hi, all!
I have that YADE crashes because of 1 string in my script.
CODE:
#_______________________________________________________________________
a = 62
b = 40
h = 33
boxThick = 3
boxCoef = 5
a = 0.001*a
b = 0.001*b
h = 0.001*h
#Side 1
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,boxThick*boxCoef)],dynamic=False,color=[0.98,0.984,0.576]))
#_______________________________________________________________________
The process crashes after last string.
But when I change:
...
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,0)..........................
...
to
...
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef-0.000001,-b/2*boxCoef,0)
...
it works perfect. Maybe there is the division on zero somewhere?
______________________________
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями
Anton Gladkyy
Follow ups