Hi Jerome,
for this task, I think you can use the built-in py function:
execfile('/home/3S-LAB/jduriez/yadeTrunk/scripts/normalInelasticity-test.py').
Have you tried to do it?
Chiara
On 8 November 2010 13:58, Jerome Duriez <duriez@xxxxxxxxxxxxxxx
<mailto:duriez@xxxxxxxxxxxxxxx>> wrote:
Hello,
I still do not know how to launch python scripts once Yade is
already launched (at the Yade command line - prompt thus)...
I tried with run "script.py", but it does not work (see below),
and I could not find the info in the doc or in the ML.
Yade [2]: run
/home/3S-LAB/jduriez/yadeTrunk/scripts/normalInelasticity-test.py
---------------------------------------------------------------------------
NameError Traceback (most recent
call last)
/home/3S-LAB/jduriez/yadeTrunk/scripts/normalInelasticity-test.py
in <module>()
14
15 #Def of the material which will be used
---> 16
O.materials.append(NormalInelasticMat(density=2600,young=4.0e9,poisson=.04,frictionAngle=.6,coeff_dech=3.0,label='Materiau1'))
17
18 #Def of the bodies of the simulations : 2 spheres, with
names which will be useful after
NameError: name 'O' is not defined
WARNING: Failure executing file:
</home/3S-LAB/jduriez/yadeTrunk/scripts/normalInelasticity-test.py>
How to do that ?
Thanks,
Jerome
--
Jérôme Duriez
ATER Polytech' Grenoble - Laboratoire 3S-R
04.56.52.86.49 (ne pas laisser de messages sur le répondeur)
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
<https://launchpad.net/%7Eyade-users>
Post to : yade-users@xxxxxxxxxxxxxxxxxxx
<mailto:yade-users@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~yade-users
<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp