Saving the data of a clump in txt or any other format

Asked by Poornachandra Vaddy on 2021-03-16

Hey there!

I would like to save the data of a clump in a txt format file and use it in further simulations. Any suggestions on how I can do it?

Thanks in advance...
Poornachandra.

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
Jan Stránský Edit question
Last query:
2021-03-16
Last reply:
2021-03-16
Jérôme Duriez (jduriez) said : #1

Hi,

Have you read https://yade-dem.org/doc/tutorial-data-mining.html yet ? Since YADE interface is a Python interface, Python documentation about text Input/Output (I/O) procedures would also help.

Jérôme

Jan Stránský (honzik) said : #2

Hello,

for saving data, export module [1] is the first place to look.
Similarly, using saved data or importing data, ymport module [2] is the first place to look.
For clumps, export.textClump [3] and ymport.textClump [4] seems as the tool you are looking for.

cheers
Jan

[1] https://yade-dem.org/doc/yade.export.html
[2] https://yade-dem.org/doc/yade.ymport.html
[3] https://yade-dem.org/doc/yade.export.html#yade.export.textClumps
[4] https://yade-dem.org/doc/yade.ymport.html#yade.ymport.textClumps

Thanks Jerome and Jan. I will go through the content as you suggested.

Can you help with this problem?

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

To post a message you must log in.