← Back to team overview

yade-users team mailing list archive

Re: [Question #239685]: Saving data at certain stresses

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
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" <question239685@xxxxxxxxxxxxxxxxxxxxx>
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     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.