Check simulation file

Asked by maria aurora natale on 2019-02-07

Good morning Yade community!

This is my question:

I would like to know how can I check the results inside a simulation file (a file with extension .yade). I know that a way to see them is using a plot function like instance "plot.addData()" or "plot.saveDataTxt()". If I'm not wrong there also is another way using the 3d view or the controller. However I'm not able to use them from my current workstation.

What I would simple like to know is there is any possibility to point out the results from the prompt, or using a python syntax in order to point out porosity() or avgNumInteraction() against i=O.iter. Until now I haven't got enough results.

I give you thank you in advance. Any suggestion wuold be very helpfull.

Regards!

Aurora

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
2019-02-07
Last reply:
2019-02-07
Jérôme Duriez (jduriez) said : #1

Hi,

Once you O.load('something.yade') you can access using the command line and/or Inspect from the GUI all the YADE variables that are exposed to Python (ie almost everything, see [*])

These variables obviously are the variables at some given state = the state of the model when O.save('something.yade') was called, let's call it the "present" state.

However, it seems you want to know the "past", eg the past history of porosity against O.iter. This is not possible...

It was up to the user who O.save()'d to monitor and export the time/iteration histories for the variables of interest.

Jérôme

[*] https://yade-dev.gitlab.io/trunk/yade.wrapper.html

Dear Jérôme,

I understood. Your answer was very clear!

Thank you so much!

Aurora

Can you help with this problem?

Provide an answer of your own, or ask maria aurora natale for more information if necessary.

To post a message you must log in.