-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dem insertion from file #1054
Dem insertion from file #1054
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few comments. Can you add an application_tests? Maybe even a unit test?
Otherwise, very good PR
examples/sharp-immersed-boundary/sedimentation-64-particles/particles.input
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments. I did not test it yet. I will today :)
245e4ed
to
375040e
Compare
I am good with it so @acdaigneault if you are good I think this is ready for merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it with 2 simulations with different meshes and it worked well :)
Maybe just explain that you have to read vtu and use the preprocess tool in the doc. :)
Audrey's first batch of comments Co-authored-by: Audrey Collard-Daigneault <71884806+acdaigneault@users.noreply.github.com>
@OGaboriault some parameter files need to be updated I think |
Description of the problem 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. Documentation Insertion section. Co-authored-by: Audrey Collard-Daigneault <71884806+acdaigneault@users.noreply.github.com> Former-commit-id: 2d7ab84
Description of the problem 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. Documentation Insertion section. Co-authored-by: Audrey Collard-Daigneault <71884806+acdaigneault@users.noreply.github.com> Former-commit-id: 2d7ab84
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