Results

Asked by Diego

Hey guys,
I am new in this Yade stuff and so far I haven't been able to get my results, for example forces applied to a facet by some spheres. I know I can get the forces in the Yade Generator, Inspect, Bodies, but I would like something like a table or a .txt document, something that allows me to copy and save the results.

I would really appreciate if you can help me.
Thank you very much in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Christian Jakob (jakob-ifgt) said :
#1

Hi Diego,

For storing values, you can create a txt file and write data as ascii in it:

f = open('myFile.txt','w') #'w' = write, 'a' = append, 'r' = read
f.write('%i %e %f' % (intValue,floatValue1,floatValue2))
f.close()

There are several other possibilities like tables, please have a look at python manual:

https://docs.python.org/2/tutorial/inputoutput.html

Hope it helps,

Christian

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

Hi Diego,
see [1] to get a feeling and [2] for specific functions, especially [3].
cheers
Jan

[1] https://yade-dem.org/doc/user.html#tracking-variables
[2] https://yade-dem.org/doc/yade.plot.html
[3] https://yade-dem.org/doc/yade.plot.html#yade.plot.saveDataTxt

2014-05-29 5:56 GMT+02:00 Diego <email address hidden>:

> New question #249457 on Yade:
> https://answers.launchpad.net/yade/+question/249457
>
> Hey guys,
> I am new in this Yade stuff and so far I haven't been able to get my
> results, for example forces applied to a facet by some spheres. I know I
> can get the forces in the Yade Generator, Inspect, Bodies, but I would like
> something like a table or a .txt document, something that allows me to copy
> and save the results.
>
> I would really appreciate if you can help me.
> Thank you very much in advance.
>
> --
> 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
>

Can you help with this problem?

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

To post a message you must log in.