← Back to team overview

yade-users team mailing list archive

Re: [Question #403977]: name 'ForceResetter' is not defined

 

Question #403977 on Yade changed:
https://answers.launchpad.net/yade/+question/403977

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello Jesse,

there are two standard ways how to use yade.

1) run script directly from command line by command
yade triaxial_test.py
(wthout starting yade in advance). The command "yade" may have different
name, use the one you start yade normally

2) start yade and then type individual commands one by one as a lines

unfortunatelly is seems, that "run triaxial_test.py" does not work as nice
as the two methods above...

cheers
Jan


2016-11-11 10:52 GMT+01:00 rhaven <question403977@xxxxxxxxxxxxxxxxxxxxx>:

> New question #403977 on Yade:
> https://answers.launchpad.net/yade/+question/403977
>
> Hi There,
> I am trying to run the triaxial yade example from:
> https://yade-dem.org/doc/tutorial-examples.html
> but I get the error:
> NameError: name 'ForceResetter' is not defined
>
> I tried also with yadedaily but also receive the same error.
>
> Can anyone shed light on what i am doing wrong?
>
> thank you
> Jesse
>
>
> Here is the output
>
>
>
> Welcome to Yade 2016.06a-24-0557faf~xenial
> TCP python prompt on localhost:9000, auth cookie `suksyc'
> XMLRPC info provider on http://localhost:21000
> cd[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view (use
> h-key for showing help), F10 both, F9 generator, F8 plot. ]]
>
>
> Yade [2]: run triaxial_test.py
> ------------------------------------------------------------
> ---------------
> NameError                                 Traceback (most recent call last)
> /home/jesse/Documents/yade/triaxial_test.py in <module>()
>      47
>      48 O.engines=[
> ---> 49    ForceResetter(),
>      50    InsertionSortCollider([Bo1_Sphere_Aabb()]),
>      51    InteractionLoop(
>
> NameError: name 'ForceResetter' is not defined
>
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> 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
>

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.