← Back to team overview

yade-users team mailing list archive

Default engines

 

Hi all,

Note that after version f34873, this is a valid Yade script:

#START
O.bodies.append(box(center=[0,0,0],extents=[.5,.5,.5],color=[0,0,1],fixed=True))
O.bodies.append(sphere([0,0,2],1,color=[0,1,0]))
typedEngine("NewtonIntegrator").gravity=(0,0,-9.81)
typedEngine("NewtonIntegrator").damping=0.1
#END

One reason for this change is to be able to show *really* simple scripts
without having this engine declaration occupying the biggest part of them.
It can significantly reduce the length of some scripts included in bug
reports while increasing the info/noise ratio.
Also helps showing how yade works to the average Joe, without the need
to dive into the engines loop.

It will probably not change your life if your are an experienced yade user.

Existing scripts are not affected since they re-define O.engines.

Cheers

Bruno

-- 
_______________
Bruno Chareyre
Associate Professor
ENSE³ - Grenoble INP
Lab. 3SR
BP 53
38041 Grenoble cedex 9
Tél : +33 4 56 52 86 21
Fax : +33 4 76 82 70 43
________________