Treatment of particles started at different time #1102
Replies: 4 comments 6 replies
-
HI @philippemiron, thanks for reporting. Can I ask which version of Parcels you're running? Because something related was recently addressed in #1095? And then, could you please add a minimal working (breaking) example that shows this unexpected behaviour, so that we can use that to try bugfix it, if the issue isn't resolved already? |
Beta Was this translation helpful? Give feedback.
-
Hi @erikvansebille, Thanks for quick answer. I'm currently using version 2.3.0. Here is a minimal example (inspired by one of the tutorial):
The velocity field is only a small positive value in x (so particles don't exit). The different parameters are:
The output times for each particles is:
I would have expected: [2, 8, 14, 20] and [3, 9, 15, 21], respectively for T2 and T3. With the current output, I'm wondering how the particles are evolved. |
Beta Was this translation helpful? Give feedback.
-
Thanks for this elaboration, @philippemiron. I have now looked into it; and in fact this is a design choice (not a bug) in Parcels. By synchronising output time, it is easier to create e.g. maps or animations of the state of all particles at a specific time. Now, if you want to do so for all particles at a specific age, then you may need to adjust See also the extra section I added to the delaystart tutorial in #1103. Does this answer your question? |
Beta Was this translation helpful? Give feedback.
-
Hi @erikvansebille, Ok, I understand the synchronization and why this is easier to later plot particles all together at specific times. I now realize that my example didn't cover the second interrogation I had. See the following case, where the particles times are not multiple of the
The output is:
|
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I have a question to understand what is done with particles initialized at different times.
For example, with a dt=30min and outputdt=60min and the following particles:
My expectation was that the time in the output file would be independent for each particle, but instead, it is a function of the earliest release time. More precisely, P2's output
time = [3:35, 4:35, 5:35, ...]
and P3 starts withtime = [4:35, 5:35, ...]
.My question is: are particles independently evolved and then interpolated to a common time? If this is the case, why not simply avoid the interpolation (when the
dt
is a multiple of theoutputdt
) and output the positions obtained from the integration since the time variable in the output file is already a 2d matrix?Thanks,
Beta Was this translation helpful? Give feedback.
All reactions