O.resetTime()

Asked by Daniela on 2011-07-26

Hi,

I wanted to use O.resetTime, but I am having problems.
My model consists of a box with particles inside and I would like to have these particles in a stable situation before I really start the simulation. I used the checkUnbalanced and as it was satisfied I used the resetTime. I noticed that, when I call another function using PyRunner and write print O.iter for example, then I still have the old value.
Does anyone have the same problem?

Thanks, Daniela

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
2011-07-26
Last reply:
2011-07-27
Anton Gladky (gladky-anton) said : #1

Hi Daniela,

I have never used O.resetTime function, and I do not know whether it
works properly in yade.
For example, you can workaround it, using another variable, which will
calculate the number of iteration after your specific event occurs.

Anton

On Tue, Jul 26, 2011 at 7:41 PM, Daniela
<email address hidden> wrote:
> New question #166066 on Yade:
> https://answers.launchpad.net/yade/+question/166066
>
> Hi,
>
> I wanted to use O.resetTime, but I am having problems.
> My model consists of a box with particles inside and I would like to have these particles in a stable situation before I really start the simulation. I used the checkUnbalanced and as it was satisfied I used the resetTime. I noticed that, when I call another function using PyRunner and write print O.iter for example, then I still have the old value.
> Does anyone have the same problem?
>
> Thanks, Daniela
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

Daniela (dmaionchi) said : #2

Hi,

actually after the particles are stable I start an interaction between them and a body. For this interaction I define a PyRunner with a virtPeriod = delta_t. But I realize that by using O.resetTime this function will just be called when the simulation time is bigger then at the time it was reseted. Maybe someone knows how to deal with that. Or is there maybe really a problem with O.resetTime?

Thansk again for the help.
Regards, Daniela

If you add a new periodic engine in the simulation at time T, it will be
called immediatly at time T+dt.
Why do you need to reset time?

Can you help with this problem?

Provide an answer of your own, or ask Daniela for more information if necessary.

To post a message you must log in.