-
Hi, I'm currently studying the ElectrostaticPIC example to understand how the interaction between fluids and particles is handled. I noticed that the particle container is constructed like this: Thanks in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you use that constructor, then you will need to change the grids every time the hierarchy changes. This is mostly for single level simulations or simulations where the particles use a different set of grids than the fluid. However, there is another constructor that takes an |
Beta Was this translation helpful? Give feedback.
If you use that constructor, then you will need to change the grids every time the hierarchy changes. This is mostly for single level simulations or simulations where the particles use a different set of grids than the fluid. However, there is another constructor that takes an
AmrCore*
, and that one will automatically track changes to the fluid grids. You can see it used here. You'll still need to callRedistribute()
on the particle container after the grids change. The AMR Advection tutorial with tracer particles linked above is a good example to look at for using particles in an AMR context.