time step

Asked by Christian Jakob on 2012-03-12

I have a very stupid question:

How can i get actual time step? I want to use the time step to calculate something...

I tried:

dt_now = GlobalStiffnessTimeStepper.previousDt
print dt_now

and I get:

<property object at 0x21a4520>

???

Do I have to convert this?

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Anton Gladky
Solved:
2012-03-12
Last query:
2012-03-12
Last reply:
2012-03-12
Best Anton Gladky (gladky-anton) said : #1

Try just O.dt

Anton

2012/3/12 Christian Jakob <email address hidden>:
> New question #190399 on Yade:
> https://answers.launchpad.net/yade/+question/190399
>
> I have a very stupid question:
>
> How can i get actual time step? I want to use the time step to calculate something...
>
> I tried:
>
> dt_now = GlobalStiffnessTimeStepper.previousDt
> print dt_now
>
> and I get:
>
> <property object at 0x21a4520>
>
> ???
>
> Do I have to convert this?
>
> --
> 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

Christian Jakob (jakob-ifgt) said : #2

Thanks Anton Gladky, that solved my question.

Christian Jakob (jakob-ifgt) said : #3

Ok, but if I want to know default time step and compare this with O.dt, how can I get this in GlobalStiffnessTimeStepper?

GlobalStiffnessTimeStepper.defaultDt ?