Replies: 3 comments 5 replies
-
I am also using a nested fields set up with two ROMS. |
Beta Was this translation helpful? Give feedback.
-
OK, so do I understand correctly that you want to place the particle at a certain depth based on its salinity? Perhaps you can find some relevant ideas in what @daanreijnders did in his paper at https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2021MS002850? |
Beta Was this translation helpful? Give feedback.
-
I haven't encountered a problem like that before, but I think you could write a kernel for that does a salinity search based on bisection search. It could roughly work as follows:
If you use JIT-mode (which interpolates a lot faster than Scipy-mode), I don't think you can work with loops (not sure anymore, but you can test this). But if you use status codes (repeat = 20) and cleverly store some variables with the particle, you can let the kernel repeat the time step, effectively creating a loop. Hope this helps and I'm curious about the outcome :) |
Beta Was this translation helpful? Give feedback.
-
Hello! I am investigating the best way to move particles to depth based on salinity in the fieldset. I found a few options: using the Argo float example, particle field interaction, or a combination of the two. I think the argo float example might be the way to go, because I don't want to store a new variable in the fieldset, just move the particle to different depths. If anyone has any suggestions on which option would be the best, and other other suggestions, I would really appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions