How I can save my work in the simulation?

Asked by GINNA TORRES

Hello,

I have some questions.

How can I save the simulation I have and use it again later at another point in the simulation, within the same code?

In my simulation I have a surface on which particles roll. I want to place a wall before rolling the simulation to collect the particles and then remove the wall so they can roll down the surface.

How can I save the simulation before and after when i delete the wall? How is the best way?

Thank you.

Question information

Language:
English Edit question
Status:
Expired
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,

> I have some questions.

please open separate questions for separate problems ([1], point 5).
Let's leave this thread for save stuff (according to the title).
Please open separate questions for the other topics:
- How can I record the simulation for long periods of time?
- How can I create surfaces or a pack of spheres on an inclined plane?
Provide more information to make the questions meaningful [1].

> How can I save the simulation I have and use it again later at another point in the simulation, within the same code?

There are many options and approaches, please be (much) more specific what the use case should be.
What does "later at another point in the simulation" mean?
What does "within the same code" mean?

Some options / approaches:
- save to file / save to memory?
- one simulation / separate simulations?
- saving python stuff?
- save entire simulation, or just e.g. particle positions?
- ...?

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

Revision history for this message
GINNA TORRES (gmtorres61) said :
#2

Hello,

I change my question;

How can I save the simulation I have and use it again later at another point in the simulation, within the same code?

In my simulation I have a surface on which particles roll. I want to place a wall before rolling the simulation to collect the particles and then remove the wall so they can roll down the surface.

How can I save the simulation before and after when i delete the wall? How is the best way?

Thank you.

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

> How can I save the simulation before and after when i delete the wall? How is the best way?

Instant replay:
There are many options and approaches, please be (much) more specific what the use case should be.
What does "later at another point in the simulation" mean?
What does "within the same code" mean?

> In my simulation I have a surface on which particles roll. I want to place a wall before rolling the simulation to collect the particles and then remove the wall so they can roll down the surface.

I see no usage of "save the simulation", I do not understand "use it again later at another point in the simulation".

Does your simulation in pseudocode look like this?
###
placeTheWall()
collectParticles()
removeTheWall()
###

Cheers
Jan

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.