Save particle position and radii in PFV model during compaction

Asked by Soheil Safari

Hello everyone;

I am a beginner in Yade and PFV, I have some questions about modeling in PFV.

I am using [1] for obtaining the pore and throat size distribution and hydraulic properties during compaction (in saturated media).

Would you please let me know how I can save the particle position and radii during the compaction?
I used “yade.export.text('filename.txt', mask=-1)” and it works just for fix packing and gives the initial information.
Can I use “yade.wrapper.VTKRecorder” for this purpose? Where and how?

I am grateful for any hints or insights into this issue.

Many thanks in advance.

[1] https://gitlab.com/yade-dev/trunk/-/blob/master/examples/FluidCouplingPFV/oedometer.py

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

Hello,

> 1)Would you please let me know how I can save the particle position and radii during the compaction?
> I used “yade.export.text('filename.txt', mask=-1)” and it works just for fix packing and gives the initial information.

export.text is perfect solution for the task.

It exports the packing at the time you call it. So if you call it at the beginning, you get "the initial information".
If you call at the end, you get final positions.
If you call it in the middle of the simulation, you get positions from the middle of the simulation.
If you want to export the data regularly during simulation, you can use e.g. PyRunner [3]

> Can I use “yade.wrapper.VTKRecorder” for this purpose?

Yes, you can use it, the data are there, but is is saved in VTK format, usual usage is merely for Paraview program.
export.text is better and more universal (IMO).
Or you can use both export.text and VTKRecorder together.

> Where and how?

usual usage is described in [4]

> Sorry for asking several simple questions.

yes, please read [2], point 5, and try to split the one question in several questions.
All the 3 questions are independent problems.

Cheers
Jan

[2] https://www.yade-dem.org/wiki/Howtoask
[3] https://yade-dem.org/doc/user.html#running-python-code
[4] https://yade-dem.org/doc/user.html#saving-data-during-the-simulation

Revision history for this message
Soheil Safari (soheilsafari) said :
#2

Dear Dr. Stránský;

Thank you very much for your kind reply and valuable information.

I removed my other questions and I will open new ones for them.

This solved my problem.

Revision history for this message
Soheil Safari (soheilsafari) said :
#3

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