← Back to team overview

yade-users team mailing list archive

Re: [Question #679295]: basic question concerning the oedemeter test code

 

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

    Status: Open => Answered

Robert Caulk proposed the following answer:
Hello,

>>1- "while 1:" (see *****1*****): what is exactly the condition "1" ??
what does this instruction mean

1 is equivalent to "True" for logic statements in Python.  That while
loop will run until "break" is called.

>>2- How do you control exactly the order of the different processes:

I think the Yade tutorial will help you understand Yade syntax and the
methods for how Yade scripts work [1].  Every time you call "O.run(xxx)"
you are telling Yade to cycle through the engine list you've created,
xxx times. Any code between O.run(xxx) calls is simply modifying the
scene to start and stop the different processes. I guess the exact code
for how to control the processes is outlined in #A, #B, #C.

Cheers,

Robert

[1]https://yade-dev.gitlab.io/trunk/tutorial-geo.html

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