the Creative Commons Attribution 4.0 License.
the Creative Commons Attribution 4.0 License.
SERGHEI v2.1: a Lagrangian Model for Passive Particle Transport using a 2D Shallow Water Model (SERGHEI-LPT)
Abstract. This paper presents a Lagrangian model for particle transport driven by a 2D shallow water model, assuming that the particles have negligible mass and volume, are located at the free surface, and without interactions between them. Particle motion is based on advection and turbulent diffusion, which is added using a random-walk model. The equations for particle advective transport are solved using the flow velocity provided by a 2D shallow water solver and an online first-order Euler method, an online fourth order Runge-Kutta method and an offline fourth order Runge-Kutta method. The primary objective of this work is to analyze the accuracy and computational efficiency of the numerical schemes and the algorithm implementation for particle transport. To verify the accuracy and computational cost, several test cases inspired by laboratory setups are simulated. In this analysis, the Euler online method provides the best compromise between accuracy and computational efficiency. Finally, a localized precipitation event in the Arnás catchment is simulated to test the model's capability to represent particle transport in overland flow over irregular topography.
- Preprint
(3340 KB) - Metadata XML
- BibTeX
- EndNote
Status: final response (author comments only)
-
RC1: 'Comment on egusphere-2025-722', Anonymous Referee #1, 20 May 2025
Please find my general and specific comments in the attached file.
-
AC1: 'Reply on RC1', Pablo Vallés, 29 May 2025
The authors are grateful for the thorough and constructive comments. The suggestions have been very helpful and have significantly contributed to improving the quality and clarity of the manuscript.
Specific comments
Line 44: “are designed for coastal scenarios where challenging wet-dry transitions do not occur”. This sentence appears counterintuitive. Generally, on the coast, waves give rise to wet-dry scenarios. Please, specify what you mean.AUTHORS: The authors appreciate the reviewer’s observation and agree that wet-dry transitions are indeed common in coastal scenarios. The sentence has been revised.
System of equations 9: Please specify that the system of equations (9) represents the discretization of the system of equations (6). Additionally, you could explicitly describe the connection between v_disp in system (6) and the random-walk model in system (9).
AUTHORS: The authors are grateful for the suggestion. A sentence clarifying that system of equations (9) represents the discretization of system (6) has been included. Moreover, the expressions for the velocity components induced by dispersion have been added to expain the connection between v_disp in system (6) and the random-walk model in system (9).
Lines 188-190: The time step of the particle is not necessarily an exact divisor of the hydrodynamic time step, as shown also in Figure 2b. In Eq. (15), the particle time step is different from the one computed by Eq. (14)? If so, how is the index “m” imposed? And, please check Eq. (15) versus Eq. (16), because they seem inconsistent (if Eq. (15) is correct, the summation of the particle time step is equal to the hydrodynamic time step, so the hydrodynamic time step minus the summation should be equal to zero in Eq. 16)
AUTHORS: The authors appreciate the observation and apologize for the error. Expression (16) has been corrected, and the index "m" has been described in detail in the revised manuscript:
Since particles can travel through at most three cells, the number of subdivisions M satisfies 1 ≤ M ≤ 3. The value of M is determined individually for each particle based on the flow properties in the cells it traverses: M = 1 if the particle remains within the initial cell (Figure 3a), M = 2 if it crosses into a neighboring cell (Figure 3b), and M = 3 if it travels through three cells (Figure 3c), though this case is uncommon as it requires a specific combination of particle location and velocity field characteristics.
Lines 227-228: This restriction appears quite strict. It appears to limit the effect of turbulence. Are the effect of such limitation discussed? Are the Authors planning to remove it in a later version of the code? Furthermore, is it possible for transported objects that reach a dry cell to stop there?
AUTHORS: The authors appreciate the comment. This restriction is implemented for several reasons:
• It is physically inconsistent for a particle with negligible mass to enter a dry cell. The underlying principle is that particles with significant mass could use inertia to traverse dry regions. Therefore, this restriction specifically applies to massless or negligible-mass particles.
• The turbulence term can displace the particle vertically upward relative to its previous position, resulting in an unphysical "jump" in the particle trajectory. This occurs because dispersion terms depend on friction velocity without properly accounting for flow direction constraints.These explanations have been included in the revised manuscript.
Figure 4: The logical connection between modules is not fully clear. The figure shows a “Lagrangian particle transport” module (LPT), while in the text it is referred to as “Lagrangian model”. Using the same term in the text and in the figure would help the reader, also in Fig. 5. Finally, what do the Authors mean with “Lagrangian model for distributed computations” (lines 249-250)?
AUTHORS: The authors are grateful for the observation. The term "Lagrangian model" has been revised to "LPT model". Additionally, the sentence "Lagrangian model for distributed computations" has been expanded:
The LPT model is currently being implemented to support distributed computations both on multiple CPU-nodes (note that shared memory CPU parallelisation is achieved via OpenMP) and on multi-GPU systems, following the approach used in other SERGHEI modules.
Figure 6 is not clear: are all the three errors normalized by the Euler error? Apparently not (the Euler error should be one), and this is in contrast with both the vertical axis in the figure and the figure caption. The strong dependency on the domain discretization is not clear, either. It appears clear from the MAE and RMSE written in the figures, but not for the graphs. Please, consider to modify this figure.
AUTHORS: The authors appreciate the suggestion and agree that the results were not presented in a sufficiently clear format. Figure 6 has been revised to present the errors in a more standard and readable format. Moreover, a reference line with first-order slope has been added to highlight the expected convergence behavior and to facilitate comparison with the observed error decay.
Figure 8: please consider changing the particles color or zooming in the image to make the particles more visible.
AUTHORS: The authors are grateful for the suggestion. Particle size has been increased, and the image has been zoomed in on the building area.
Caption of Figure 10: 10000 particles are reported. This appears in contrast with line 309, where it is written that the simulation was performed with 1000000. Please, check.
AUTHORS: The authors apologize for the error. The correct number of particles is 100000. This has been corrected in the revised version.
Line 344: Can the Authors clarify what they mean by “areas of stagnant transport”?
AUTHORS: The authors appreciate the comment. The sentence has been revised to describe more precisely that these regions correspond to areas where particles remain stationary for prolonged periods due to low velocities or topographical constraints. The expression “stagnant transport” has been removed to improve clarity:
Furthermore, this stationary time histogram reveals regions where particles tend to accumulate or remain stationary for extended periods, typically due to reduced flow velocities or topographical barriers, which may indicate zones of storage or potential sediment deposition.
Line 348-349: Can the Authors clarify what they mean by “the higher frequency of particles compared to the event 2”?
AUTHORS: The authors have revised the sentence for clarity:
In event 1, the longer travel times observed for most particles in Figure 17a, where particles tend to remain stationary for extended periods, suggest intermittent flow conditions, possibly due to
intermittent rainfall, leading to temporary particle deposition.Conclusions: Nothing is said about model’s future developments. Are the Authors planning to include a strategy to account for particles deposition? This also depends on the type of particles that they are aiming to model (plastics, seeds. . . ). The work would possibly benefit from a more critical analysis of the potential applications of the model.
AUTHORS: The authors are grateful for the suggestion. The following sentences have been added to the Conclusions section:
Future work will focus on optimizing the model to further reduce computational costs and implementing multi-GPU simulations to leverage the capabilities of the SERGHEI hydrodynamic model. Moreover, several enhancements will be incorporated into the LPT module to increase the realism of particle trajectories. These improvements will enable representation of pollutant transport (e.g., microplastics) and biological dispersal (e.g., seeds). Additionally, incorporating particle mass, volume, and inertia will allow modeling of vertical movement, deposition processes, and macroscopic objects such as wooden logs or urban debris in floods. However, accurate simulation of these transport phenomena requires development and validation of specific physical processes that are currently beyond the scope of the present model.
Typos
Line 175: I guess there is a typo, as “respectively” is repeated twice.AUTHORS: The word "respectively" has been removed.
Caption of Figure 3: “final position” seems unnecessary.
AUTHORS: The expression "final position" has been removed.
Line 266: It should be “L1 norm”, and not “L1 Norm”. The same for L2 norm at line 270.
AUTHORS: The notation for L1-norm and L2-norm in the text has been uniformed to be consistent in the manuscript.
Line 283: “described” seems unnecessary.
AUTHORS: The word "described" has been removed.
Line 284: “modying” should be “modifying”?
AUTHORS: The correction has been made.
Line 300: another way of presenting the L norm is used. Please be consistent in the terminology (choose between L Norm, L norm or L-norm).
AUTHORS: The notation has been standardized throughout the manuscript.
Line 332: “This” and not “these figure”.
AUTHORS: The correction has been made.
Line 339: Please, use the same term, “travelled distance” or “covered distance” for higher consistency.
AUTHORS: The expression "travel distance" has been used consistently.
Line 347: “the difference between the events is higher”.
AUTHORS: The correction has been made.
The authors sincerely thank the reviewer for the careful reading of the manuscript and for pointing out typographical errors. In addition to the corrections suggested by the reviewer, the authors have thoroughly revised the manuscript and corrected other minor typographical issues present in the original version.
Citation: https://doi.org/10.5194/egusphere-2025-722-AC1
-
AC1: 'Reply on RC1', Pablo Vallés, 29 May 2025
-
RC2: 'Comment on egusphere-2025-722', Anonymous Referee #2, 03 Jun 2025
The comment was uploaded in the form of a supplement: https://egusphere.copernicus.org/preprints/2025/egusphere-2025-722/egusphere-2025-722-RC2-supplement.pdf
-
AC2: 'Reply on RC2', Pablo Vallés, 19 Jun 2025
The authors thank the reviewer for their thoughtful and detailed comments. In response, the manuscript has been thoroughly revised to improve the clarity of the discussion, the depth of the analysis, and the overall presentation of the conclusions. The authors believe these revisions have significantly strengthened the work.
Major comments
1- Lines 37-38. The Lagrangian approach does not, in general, offer detailed insights into processes like deposition, fragmentation, and degradation. This is only the case if such processes are implemented. The main difference between the Lagrangian and the Eulerian approach is that the Lagrangian approach provides insight into the pathways linking the origin to the destination of individual particles.
AUTHORS: The authors are grateful for the suggestions, and these have been included in the revised version of the manuscript:
The Lagrangian approach primarily provides information on the pathways linking the origin to the destination of individual particles. It may also capture specific processes affecting debris, such as deposition, fragmentation, and degradation, provided that these processes are explicitly implemented.
2- The discussion about research on Lagrangian transport in coastal environments (l. 43-48) seems inappropriate. I think that there are certainly differences in the numerical approach and maybe the physics of the problem (typical velocities or time scales?) but drying and flooding occurs over vast extents in some coastal systems. The authors can see for example the work by Cucco et al. [1] or recent work by Fajardo-Urbina et al. [2,3] for passive particles transported by depth-averaged flows over regions that flood and dry twice a day! Furthermore, they used offline methods, so lack of flooding and drying is not the reason for using them. I think that one of the main differences is that in these coastal studies the flow of interest changes with a typical time scale that is much longer than the time step needed to advance the particles. Notice that it is common to use temporal interpolation besides using RK4 [4].
AUTHORS: The authors appreciate the reviewer’s comment. The text have been revised to incorporate it:
In recent decades, numerous computational models have been developed to simulate particle transport. However, the majority of these models are designed for ocean and sometimes coastal
scenarios with fixed wet/dry boundaries (Lebreton et al., 2012; Liubartseva et al., 2018). Furthermore, some models update particle positions only at specific time intervals rather than at every
time step, in order to reduce the high computational cost (Finaud-Guyot et al., 2023). These so-called offline methods are often used in coastal environments where the flow evolves on time
scales much longer than the particle time step, making temporal interpolation feasible (Cucco et al., 2009; Fajardo-Urbina et al., 2023, 2024). It is important to note that flooding and drying
occur in many coastal systems, such as estuaries or tidal flats, and offline methods have still been successfully applied in such contexts. The inaccuracy introduced by not updating particle
positions at every step is often mitigated by using higher-order schemes, such as a fourth-order Runge-Kutta method (García-Martínez and Flores-Tovar, 1999).3- Lines 63-64. The sentence “In this context, two-dimensional models . . . ” needs to specify the application. This is not the case in general.
AUTHORS: The authors are grateful for the suggestion. The applications have been included in the revised manuscript:
Finally, in order to be effective, the computational model must be both accurate and computationally efficient. This balance is especially important in applications such as flood forecasting, real-
time decision support, environmental impact assessments, and large-scale scenario simulations, where timely and reliable results are essential. In this context, depth-averaged two-dimensional
hydrodynamic models have proven to offer a favorable trade-off, providing sufficient accuracy for many surface water flow scenarios while incurring significantly lower computational costs compared to fully three-dimensional models (Vacondio et al., 2016; Echeverribar et al., 2019).4- Lines 100-106. The discussion about the vertical position of the particles is inconsistent. First, the equation of zp in (5) is not correct. The particle position has a vertical velocity equal to the velocity of the free surface. In fact, the authors later say that zp = h + zb, so dzp/dt = dh/dt . Even then, this is still inconsistent with the rest of the problem, because the particles are carried by a depth averaged flow, which is different than the flow at the free surface. In fact, the depth averaged flow is a mathematical construction so that particles transported by it have no vertical position.
AUTHORS: The authors thank the reviewer for this insightful comment. The authors agree that, within the framework of a depth-averaged flow, particles do not possess a physically meaningful vertical velocity component, and the assumption dzp/dt = 0 is not consistent with the notion of particles following the free surface. To resolve this, the manuscript has been revised to clarify that the vertical position zp is not derived from the governing equations but is instead assigned for practical and visualization purposes as: zp = h(xp) + zb(xp). This approach ensures that particles are located at the free water surface, which is especially helpful in domains with variable topography and avoids artifacts caused by unrealistic particle movements in the vertical direction. The authors have also revised the text to clarify that, since the hydrodynamic model is depth-averaged, vertical velocities are neglected, and the particles are advected using the horizontal components of the depth-averaged velocity field. The following paragraph has been included in the revised manuscript:
dxp/dt = u(xp)
dyp/dt = v(xp)
zp = h(xp) + zb(xp)As observed, the vertical position is unaffected by the flow velocity due to the depth-averaged SWE approximation, which neglects the vertical velocity component. Consequently, the particle is assumed to reside at the free surface, computed as the sum of the water depth h and the bed elevation zb. This assignment is not derived from the governing equations but serves primarily
for visualization purposes and to maintain numerical robustness. Since the hydrodynamic model is vertically averaged, and thus does not resolve vertical flow structure, particles transported by
it do not possess a true vertical coordinate in the physical sense. However, assigning them a position at the free surface ensures consistency with the surface flow and avoids issues arising from irregular bathymetry. Notably, this choice prevents numerical artifacts, such as particles unrealistically crossing obstacles or walls due to inconsistent vertical velocities. Moreover, because the advection velocity is evaluated at the horizontal location of each particle, aligning all particles to the free surface provides a coherent reference for computing motion in the horizontal
plane.5- Line 119. Turbulence is not a quantity so it cannot be proportional to velocity.
AUTHORS: The authors appreciate the reviewer’s observation and apologize the error. The sentence has been removed in the revised manuscript.
6- Figure 1. I find figure 1 very confusing. I really don’t understand why/how the particle would follow the green path. It looks also quite different than in Figure 3c. Furthermore, the vector on the cell to the left of the obstacle does not seem right because it would transport particles into the obstacle.
AUTHORS: The author thank the reviewer’s feedback on Figure 1. The figure has been revised to address the concerns raised:
- The green particle path has been corrected and now more clearly reflects the intended trajectory, consistent with the flow field and the behavior of the algorithm.
- The velocity vectors have been revised to ensure they are physically consistent with the presence of the obstacle. In particular, the vectors to the left, right, above, and below the obstacle have been adjusted so that they no longer incorrectly point toward the obstacle.
7- Section 4.1. The authors do not give sufficient information to reproduce the results. Particularly, the shape of the vortex, the location of release, the velocity of the vortex. The fact that the authors only considered an offline method updated every five hydrodynamic time steps seems restrictive. What if the there is a better trade-off when updating every 3 time steps? In addition, I find figure 6 close to useless. In the caption, it is mentioned that the error is normalized by the Euler error, but it is actually normalized by the RK4 error. By doing this, all the information about how the RK4 error depends on ∆x is lost. I would suggest plotting lines in a log-log plot without normalizing. Are the errors scaling as they are supposed to?
AUTHORS: The authors appreciate the reviewer’s insightful and constructive comments. In response:
- Additional information has been added in Section 4.1 to ensure reproducibility of the test case. The authors now specify that the setup consists of a steady circular vortex with a diameter of 10 meters, centered in the middle of the domain. The vortex velocity field increases radially from zero at the center to a maximum of 100 m/s at the edge (i.e., 10 meters from the center). The particle release location has also been clarified in the revised manuscript.
- Regarding the update frequency of the offline method, the authors acknowledge the potential value of testing additional update intervals. However, preliminary experiments
showed that reducing the update frequency to 2 or 3 hydrodynamic time steps resulted in only marginal reductions in computational cost, while offering limited contrast in accuracy compared to the 5-time-step case. Therefore, the 5-step update was chosen to better illustrate the trade-off between computational efficiency and accuracy. This comment has been included in the revised manuscript. - Figure 6 has been revised following the reviewers suggestions. Moreover, a reference line with a first-order slope has been added to highlight the expected convergence behavior and to facilitate comparison with the observed error decay.
8- Section 4.2. The authors say that this is a well-known test case, but they do not test much or compared against any other results.
AUTHORS: The authors thank the reviewer for the observation. The test case presented in Section 4.2 is a well-known benchmark in hydrodynamics and has been previously simulated and validated using the SERGHEI framework. Specifically, in Caviedes et al. (2023), the computational results obtained with SERGHEI were quantitatively compared against experimental measurements, demonstrating good agreement. The beginning of the Section 4.2 has been revised accordingly. We would like to clarify that the experimental results do not provide a direct validation for transport of particles.
9- Section 4.3. Again, there is no benchmark. I agree that it is a good sign that the results remain symmetric, but this is not a proof that the code is doing everything fine. It is just a proof that there are no asymmetric errors. Furthermore, it is clear in both 4.2 and 4.3 that the diffusive terms are doing something, but it is not shown that what they are doing is correct.
AUTHORS: The case is not intended as formal verification benchmark but rather as a demonstration of the effects of the dispersive random-walk model. Indeed, there is no benchmark. The case
is motivated by experimental designs proposed to investigate microplastic entrapment, but no measurements are yet available. The results of this case only intend to show that the dispersive
model has an effect on particle distribution and trajectories, and that the distribution symmetry shows a reasonable behaviour. We do not claim that this formally proves correctness, but it provides soft evidence of it in a reasonably complex setting, which is still simple enough to qualitatively assess it. We now clarify this in the text. Furthermore, a comparison with a coarser grid has been included to support the discussion on the importance of high resolution in the Eulerian solver, its impact on Lagrangian particle trajectories, and the interplay between grid resolution and the effects of the dispersive model in the LPT module.10- Section 4.4. I find this section interesting as a nice application, but there is some unbalance between the number of figures and the analysis. I find it also strange that for this section the scheme used is not mentioned.
AUTHORS: The authors appreciate the reviewer’s positive remark about the application presented in Section 4.4. In response to the concerns raised, the section has been revised by reducing the
number of figures and enhancing the depth of the analysis, ensuring a better balance between visual content and discussion. Finally, regarding the numerical scheme, only the Euler method was used, as in the previous test case. The following sentence has been added to the revised manuscript:As in the previous test case, the Euler method was exclusively used for the simulation of the Arnás case, based on the optimal balance between accuracy and computational efficiency observed in the initial test cases.
11- Finally, the authors do not really justify their conclusion that the Euler scheme gives the best trade-off between accuracy and computational efficiency. A more careful explanation of what they mean and how they reach their conclusion is necessary. At the moment, it remains somewhat subjective in the sense that the error does not seem much larger than for RK4, but it is more efficient, so I can leave with the error.
AUTHORS: The authors thank the reviewer for this valuable observation and agree that the justification regarding the choice of the Euler scheme could benefit from further clarification. The revised manuscript now provides a more detailed explanation of how this conclusion was reached.
In Section 4.1 (steady case), the results obtained using the Euler online and RK4 online methods are very similar, with negligible differences in accuracy. In the transient case (Section 4.2), the
differences between the two schemes are slightly more noticeable. However, the main limitation of RK4 online lies in its computational cost. For large-scale scenarios involving a high number
of particles (on the order of 105 or more), the RK4 online method can be up to 17 times more computationally expensive than the Euler online method (Table 1 of section 4.2). Given that the
purpose of the tool is to support large-scale simulations, the use of RK4 online becomes impractical despite its marginal accuracy advantage. Therefore, the Euler online method was chosen as
the best trade-off between accuracy and computational efficiency. While minor differences with RK4 are acknowledged, the significant improvement in computational performance makes the Euler scheme more suitable for the intended applications.These comments have been included in the revised manuscript.
Minor comments
1- Use scientific notation for the number of particles.
AUTHORS: The number of particles is now written using scientific notation.
2- Line 81: “The equations flow” -> “The flow equations”.
AUTHORS: The sentence has been corrected as suggested.
3- The authors use sometimes u and sometimes v to denote the velocity. I suggest being consistent.
AUTHORS: The authors appreciate the suggestion, and the velocity is now consistently denoted using v throughout the manuscript.
4- Line 175. Define A = (Ax, Ay) and q = (qx, qy).
AUTHORS: The variables A and q have been defined as requested.
5- Use italics (math) x and y throughout the paper when referring to coordinates.
AUTHORS: The coordinates are now consistently written in italics.
6- Line 334-335. This sentence can join the previous paragraph. Also, specify what is meant with overhead of 2.39 and 1.10. I guess that you mean “Increase ratio” as in Table 1.
AUTHORS: The sentence has been merged into the previous paragraph, and the term “overhead” has been replaced with “increase ratio” for consistency with Table 1.
Citation: https://doi.org/10.5194/egusphere-2025-722-AC2
-
AC2: 'Reply on RC2', Pablo Vallés, 19 Jun 2025
Viewed
HTML | XML | Total | BibTeX | EndNote | |
---|---|---|---|---|---|
228 | 40 | 18 | 286 | 12 | 19 |
- HTML: 228
- PDF: 40
- XML: 18
- Total: 286
- BibTeX: 12
- EndNote: 19
Viewed (geographical distribution)
Country | # | Views | % |
---|
Total: | 0 |
HTML: | 0 |
PDF: | 0 |
XML: | 0 |
- 1