While using Lagrangian monitors, is there a way to filter the monitor based on particle phase? Basically, I have two different “types” (phases) of particles in the system, and I want to monitor their phase-dependent property over a region, e.g., average velocity of phase 0 and average velocity of phase 1 separately etc. Is this capability available out of the box, or requires source code change?
Thanks!
Ishan
Hi Ishan,
this capability requires source code changes.
Roberto
Thanks Roberto! I kinda figured that, but just wanted to make sure if something like this was in the offing.
Ishan
Robeto has helped me hack something in before that filtered one single particle, I might be able to dig that up if it would help.
But also I just wanted to second your request, it would be nice to filter monitors in general with a mask. I realize that would take some dev work, but maybe @jmusser would consider it for future high priority dev needs.
Thanks Will. I was able to hack something in myself to get it to work last week. Basically, I created a mask that filters Lagrangian monitors based on the “phase” of the particle, which is what I need at the moment. I agree that there will be a lot of value in a general mask (esp. for particles) that filters based on combinations of particle attributes defined through the inputs file.