Saving data at certain stresses

Asked by Sina Jafari

Dear all,
How can I save contact forces or any other data at CERTAIN STRESSES? for example I want to have some data ONLY at mean Stresses of 1,2,3 and 4 Mpa. I know how to save data using pyrunner engine but it can only be called at certain timesteps not certain pressures. This is so important to me because there is a lot of particles in my model and the output file is so confusing and hard to handle. I would be so grateful if you help me with this.
Regards

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

Hi Sina,

You can use PyRunner even for this reason:

def doOutput():
  stress = whateverCommand
  If stress>0.99*requiredStress and stress<1.01*requiredStress:
    someOutputCommand()

O.engines = [
  ...
  PyRunner(iterPeriod=1, command="doOutput()")
]

Cheers
Jan
Dne 23.11.2013 8:06 "Sina Jafari" <email address hidden>
napsal(a):

> New question #239685 on Yade:
> https://answers.launchpad.net/yade/+question/239685
>
> Dear all,
> How can I save contact forces or any other data at CERTAIN STRESSES? for
> example I want to have some data ONLY at mean Stresses of 1,2,3 and 4 Mpa.
> I know how to save data using pyrunner engine but it can only be called at
> certain timesteps not certain pressures. This is so important to me because
> there is a lot of particles in my model and the output file is so confusing
> and hard to handle. I would be so grateful if you help me with this.
> Regards
>
> --
> 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
>

Revision history for this message
Sina Jafari (sinajafari88) said :
#3

Thanks Jan Stránský, that solved my question.

Revision history for this message
Jan Stránský (honzik) said :
#4

Hi Sina,

I am also sorry for my delay :-) just to be sure, is this question solved,
or not?
cheers
Jan

2013/12/21 Sina Jafari <email address hidden>

> Question #239685 on Yade changed:
> https://answers.launchpad.net/yade/+question/239685
>
> Status: Open => Solved
>
> Sina Jafari confirmed that the question is solved:
> Thanks Jan Stránský, that solved my question.
>
> --
> 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
>