Particle insertion can take a lot of time. Currently, it's not possible to change the triangulation being used before and after a restart. If it was possible to load particle with a certain triangulation (ex. enabling bigger insertion boxes and smaller cells) and running the rest of the simulation with the real triangulation, this could possibly save a lot of time.
Description of the solution
This PR adds the from_file insertion method. It's really similar to what has been done in the CFD-DEM Resolve solver. Basically, particles properties are stored in a text file. Each line is associated with a particle and each columns to a kind of properties.
It's basically the same thing as the list insertion but without the limitation from the number of character on a single line.
I've also include a python code to extract the properties of the last vtu of a simulation.
How Has This Been Tested?
I ran one of my pp_jkr application test to see if the result was affected by this method, which is not the case.
I also extracted the properties of all the particles from one of my LPBF simulations. (1.2 million to be exact) and it worked. It took about 20 seconds.
Description of the problem
Description of the solution
This PR adds the
from_file
insertion method. It's really similar to what has been done in the CFD-DEM Resolve solver. Basically, particles properties are stored in a text file. Each line is associated with a particle and each columns to a kind of properties.It's basically the same thing as the
list
insertion but without the limitation from the number of character on a single line.I've also include a python code to extract the properties of the last vtu of a simulation.
How Has This Been Tested?
Documentation