Running script on boucing sphere example

Asked by Vincia Jackson

when I type execfile('1.py') or execfile('1.py',globals()) into yade the script doesn't run. However, there are no more errors.

ervin@ubuntu:~$ ~/yade/bin/yade-trunk 1.py
Welcome to Yade bzr2923
TCP python prompt on localhost:9000, auth cookie `ucakss'
XMLRPC info provider on http://localhost:21000
Running script 1.py
[[ ^L clears screen, ^U kills line. F8 plot. ]]
Yade [1]: execfile('1.py',globals())
Yade [2]:

 tried running the program like this: Does this following error have any significance?

Yade [4]: run 1.py
---------------------------------------------------------------------------
NameError Traceback (most recent call last)

/home/ervin/1.py in <module>()
      6 # add 2 particles to the simulation

      7 # they the default material (utils.defaultMat)

----> 8 O.bodies.append([
      9 # fixed: particle's position in space will not change (support)

     10 utils.sphere(center=(0,0,0),radius=.5,fixed=True),

NameError: name 'O' is not defined
WARNING: Failure executing file: <1.py>
Yade [5]:

Question information

Language:
English Edit question
Status:
Expired
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.