scieee AI-readable full text Open interactive document viewer

Fluid-evolving landform interaction by a surface-tracking method

Molina Moya, Jorge Antonio,Ortiz Rossini, Pablo Gregorio,Bravo Pareja, Rafael

Abstract

The research was supported by the Grant #PID2020-115778GB-I00 funded by MCIN/AEI/10.13039/ 501100011033. Funding for open access publishing: Universidad de Granada/CBUA. Open access charge was funded by Universidad de Granada / CBUA.

Full text

Computational Mechanics https://doi.org/10.1007/s00466-024-02464-6 ORIGINAL PAPER Fluid-evolving landform interaction by a surface-tracking method Jorge Molina1·Pablo Ortiz1·Rafael Bravo1 Received: 4 December 2023 / Accepted: 13 February 2024 © The Author(s) 2024 Abstract This paper introduces a continuous finite element model to simulate fluid flow-bedform interaction problems. The approach utilizes a non-oscillatory finite element algorithm to compute the fluid dynamics by solving the complete Navier–Stokes equations. Additionally, it addresses the evolution of the fluid–bedform interface as a consequence of spatially non-balanced sediment fluxes through the solution of a conservation equation for the erodible layer thickness. A sign preservation algorithm is particularly relevant for landform tracking because a positive definite thickness of the erodible sediment layer is essential to model the interaction between evolving cohesionless sediment layers and rigid beds. The fluid/terrain interface is explicitly captured through a surface tracking methodology. First, new nodes fitting the interface are incorporated into the finite element mesh; then, elements beneath this interface are deactivated, while intersected elements are restructured to get a mesh composed exclusively of tetrahedral elements. Numerical experiments demonstrate capabilities of the method by exploring relevant problems related with civil engineering, such as the evolution of trenches and the scour of a submerged pile. Keywords Sediment transport ·Coupled model ·Adaptive grid ·Positive definite algorithm 1 Introduction Prediction of fluid-terrain interaction involving the transport of cohesionless sediment is fundamental to understanding the morphodynamics of natural systems as deserts, rivers or coastal regions and its effects on civil structures. For this kind of problems we consider three different interfaces: fluid/erodible sediment layers, erodible/non-erodible layers and fluid/non-erodible beds. Interfaces limiting with nonerodible beds could appear when the fluid or the moving sediment particles are in contact with cohesive strata or with structures and obstacles. Some examples of predictions including these interfaces are about the evolution of riverbeds around bridge foundations, barchan and transverse dunes in deserts and coastal areas, subaqueous dunes for the maintenance of channels, and silting of reservoirs. Apart from its role in the sediment dynamics, evolutionary bedforms play an important role in determining the fluid flow, given that bed shape changes create boundary forcings to the flow due to momentum variations. In practice, timescale of the flow variability is frequently much shorter than that for BJorge Molina [email protected] 1University of Granada, Esc.Ing.Caminos, Campus Fuentenueva, 18071 Granada, Spain the bed evolution, enabling the use of two widely established strategies. First plan of action is to neglect the two-phase interaction. Second plan is to adopt a quasi-steady approximation. To illustrate the first category, in Refs. [23,26] fluid and sediment dynamics are separated and a semi-analytic solution is integrated to link both domains. A representative example of a quasi-steady procedure can be found in Ref. [27], where authors integrate the flow equations past a frozen landform to a steady state, and update the boundary shape subsequently. Computational cost of this line of action is low and the procedure captures the basic physics of problems with evolving bedforms, although results do not always fit experimental data completely. An affordable approach to relax the limitations of the quasi-steady approximation is to use a coupled model for a severe flow scenario, shrinking the gap between timescales. An hypothetical severe-scenario is adopted in Refs. [19,20], amplifying the sediment flux few orders of magnitude, and at the same time improving the efficacy of computation. An effective numerical procedure of the fluid/sediment interface must include a straightforward treatment of the erodible/non-erodible limit. In previous works some of the present authors were concentrated on the coupling of the sediment transport with free surface flows, either by depthintegrated flow solutions [16–18], or by fully incompressible 123 Computational Mechanics free surface flow solutions [14]. Both procedures incorporate a Non-Oscillatory Finite Element Method (NFEM) that permits the concurrent simulation of erodible and non-erodible interfaces. The method avoids nonphysical computed values by preserving bounds for the thickness of the erodible stratum in a conservative form. Sign preservation given by the NFEM is essential both for flow computation and for interface tracking procedure. In the first case, this property avoids unphysical overshoots in pressure and velocity fields. In the second case, a positive definite thickness of the erodible layer of sediment is mandatory to account for interaction between evolving cohesionless sediment layers and rigid beds. An alternate methodology was adopted in Refs. [3,4], where an explicit particle Lagrangian procedure was used to solve the fluid and sediment flows. This methodology proves to be efficient in several practical applications, nevertheless treatment of non erodible obstacles is not apparent. In the two-dimensional NFEM approach of Ref. [14] the solid domain is deactivated, while fluid-solid interface is updated by solving a conservation equation with mass fluxes derived from the fluid flow solution. In this work we expand the numerical model developed in Ref. [14] to solve complete three dimensional problems involving the interaction of fluids with changing erodible beds, rigid strata, and immersed structures. The simulation of problems with embedded moving interfaces has been a challenge for decades due to the necessity of handling large jumps in physical properties. Numerical methods documented in the literature can be categorised into two widely recognised groups, those based on surface capturing and those based on surface tracking [5,7]. First class of procedures establishes the interface implicitly by means of a phase function governed by a transport equation. In these methods, it is usual to resort to mesh refinement algorithms [12] or to enrichment functions [2] to improve the solution quality at the interface. Otherwise, in second class of methods the discontinuity matches with a mesh boundary or it is defined by faces of mesh elements. These methodologies usually give better accuracy, although the mesh has to be updated as interface evolves, thus grid adaptation or remeshing is ineludible. Some fields where this technique is applied are the propagation of fractures [8,21], two fluids flows [22] and fluid-solid interactions [15,24], among others. In previous references, mesh adaptation typically follows three steps: refinement of the discontinuity neighbourhood, definition of new nodes fitting the interface, and movement of background nodes to improve the mesh quality. We propose a surface tracking method. However, the remeshing algorithm is simpler than usual, because it does not need an improved resolution at the discontinuity. Reasons for this simplification are the following: (a) solid phase is essentially at rest in typical problems with coupled fluid and erodible beds, while interface dynamics is governed by a saltation process, thus the solid phase is not considered in the computation (and jumps) of variables through the interface (e.g., pressure gradient); (b) velocity field does not have to be reproduced in detail at the vicinity of the bedform because we assume a logarithmic wall law to compute the friction velocity; (c) in the sediment transport problems treated here, the interface is frequently smooth with slope changes in a larger scale than usual spatial discretization sizes, then intersections between interface and elements can be considered as planar. Also, the natural slope limiter (avalanche effect) is usually active for cohesionless materials, helping to regularize the interface. Therefore, present grid adaptation procedure adds new nodes fitting the interface and deactivates those elements belonging to the solid phase. Refinement step and movement of background nodes are omitted with the consequent reduction of computational cost. Section 2reports the governing equations for fluid and sediment (2.1), and the numerical model formulation (2.2) including details of the mesh adaptation algorithm. Moreover, particulars of the method regarding flux limiting procedure are provided in Appendix. Numerical experiments are described in Sect.3. The first series of tests (3.1) explores the evolution of trenches due to both water flow and wind, and involves simplified two-dimensional and full threedimensional simulations. Second test (Sect.3.2) concerns the scour of submerged piles due to a water flow. Finally, conclusions in Sect.4close the paper. 2 Governing equations and numerical solution 2.1 Governing equations Simulation of sediment transport involves the solution of two sets of equations: those governing the fluid flow, and those governing the sediment transport and the fluid/sediment interface evolution. The continuous model for fluid flow solution is the set of Navier–Stokes equations for a Newtonian incompressible fluid with density ρfand dynamic viscosity μf. The system is written as ∇·u=0(1) ∂u ∂t+∇·(uu)=−1 ρf∇p+1 ρf∇·τ(2) in Ω∈RD,t∈[t0,T]. Here, u(x,t)is the velocity field (x=(xl), l=1,D), Dis the number of space dimensions, p=p−ρfgz is the dynamic pressure where pis the total pressure, gis the gravity acceleration, zis the vertical coordinate, τ=μf∂ui ∂xj+∂uj ∂xiis the viscous stress tensor and [t0,T]is the time interval. Initial conditions are given by 123 Computational Mechanics u(x,t0)=u0(x),p(x,t0)=p0(x), and boundary conditions are u=uf,∂p ∂nb=0onΓ− f(a) u·nb=0,tb·τ·nb=0,bb·τ·nb=0, ∂p ∂nb=0onΓ− s(b) ∂u ∂nb=0,p=pon Γ+(c). The boundary of the domain Ωis designated as Γ,Γ= Γ−+Γ+, and u0,pand ufare known functions (from now on overline designates known values). Further, nb,tb,bbare the normal, tangent and bitangent to the boundary, respectively. Boundary Γ−=Γ− f∪Γ− scomprises those parts of the border with inlet or wall conditions (u·nb≤0), where subscripts f and s denote fixed velocity condition and slip condition, respectively, and Γ+represents the part of the boundary with outlet conditions. Second set of equations consists of a law for the sediment flux qs, and a conservation equation of the effective sediment layer thickness h(˜ x,t)establishing the solid–fluid interface as ρs ∂h ∂t+∇H·qs=∇H·ρsK∇Hh∗(3) in Γh⊂Γ− f∈RD−1,t∈[t0,T]with initial condition h(˜ x,t0)=h0(˜ x)(˜ x=(˜xl), l=1,D−1), and boundary condition h=hon ∂Γh.InEq.(3), h∗(˜ x,t)=hs(˜ x)+h(˜ x,t) denotes the vertical position of the bottom depth, where hsis the upper position of a non-erodible stratum. Moreover, ρs= ρm(1−λ)is the bulk density, ρmis the density of the grain material, and λis the porosity (volume fraction of voids). The sediment mass flux is considered as vertically integrated over the sediment layer, and ∇H=∂ ∂˜x1,..., ∂ ∂˜xD−1.Inthe right-hand side of the equation, the avalanche flux ρsK∇Hh∗ operates as a natural slope limiter. This term is computed as an anisotropic diffusion, where the diffusion coefficient K≡βmax0,sgn(∇Hh∗−sC), where sC=tan αis the critical slope and αthe angle of friction; hence, Kdepends critically on the bottom slope. The diffusivity βis specified in terms of temporal and spatial resolution of the numerical model [19]. In this work, we consider aeolian transport problems we consider sediment transport problems where sand is the prevailing fraction of the grain mixture. Thus, the sediment flux qsis essentially ascribed to the saltation process, involving the direct momentum transfer from fluid to the grains, in addition to the ejection due to collisions between grains. Efficacy of saltation flux models depends significantly on a detailed calculation of the wall shear stress field. Among existing models to compute bedload sediment fluxes (see a comprehensive review in Ref. [14]), the general adjusted Bagnold’s law [9] is widely used for aeolian transport and is selected in this work, qs=Cρf gu∗u∗2max 0,1−ut u∗.(4) In the flux law C=4.2√d/d1is an empirical coefficient [9], dis the grain size, d1=2.5×10−4m, gis the gravity acceleration, u∗=u∗uu−1is the friction velocity and u∗=ρ−1 fτw(τwdenotes the wall shear stress). Lastly, ut is the threshold value of the friction velocity, which considers the angle γbetween the local flow current direction and slope (see derivation in [19]), ut=   sin θ sC cos γ+sin2θ s2 Ccos2γ−1+cos2θut0, (5) where θis the local slope angle, and ut0the threshold friction velocity for a flat bed. 2.2 Numerical model Numerical solutions of Eqs.(1)–(2) and Eq. (3) are performed using the non-oscillatory finite element method. The NFEM strategy employs flux correction techniques to correct a conservative and sign-preserving predictor algorithm with anti-diffusive contributions, maintaining the properties of the predictor scheme. Corrections are calculated by limiting the difference between the contributions of a high order (HO) method and those of a predictor or low order (LO) method. Therefore, complete solutions of fluid dynamics and conservation of the sediment layer demand two numerical approximations to perform the flux correction limiting process. Algorithms defining HO and LO approaches could be related. For instance, in Ref. [10], computation of LO solution is achieved by adding extra diffusion to the HO solution. The NFEM makes use of independent high order and low order solutions. In the case of the high order algorithm, solution of Eqs.(1)–(2) is the Characteristic Based Scheme (CBS), incorporating a second-order accuracy extension for transient advective fields [16], and solution of Eq. (3) is the second-order accuracy Characteristic-Galerkin algorithm [16]. On the other hand, the low order method for the NFEM is such that it has a nearly minimum added diffusion to preserve positivity. The best candidate is a first-order upwind finite element procedure. For completeness, we include an Appendix where the reader can find the basis of the flux correction procedure proposed, as well as a simple one-dimensional illustration of 123 Computational Mechanics the algorithm. In the next subsection, we introduce the finite element high order and low order solutions. 2.2.1 High and low order solutions First, we specify the characteristic-based-split (CBS) algorithm as the HO procedure for the fluid dynamics (Eqs.(1)– (2)). After time discretization, the velocity solution can be written as un+1=un+Δu∗+Δu∗∗ (6) where the velocity at time level (n+1)Δtis computed as the sum of a predictor velocity u∗=un+Δu∗and a pressure correction velocity increment Δu∗∗. Finite element discretization for Δu∗is determined by the Characteristic Galerkin method (see e.g. [16]), and its formulation (reproduced concisely below) can be consulted in detail in Refs. [11,12,14]. Finite element discretizations are equipped with the finite element spaces Vh i,Uh i,Wh, and Ph,(i=1,D) stated as Vh i⊂Vi={vi∈H1(Ω) |vi=0onΓ− f}, Uh i⊂Ui={ui∈H1(Ω) |ui=uion Γ− f}, Wh⊂W={w∈H1(Ω) |w=0onΓ+}, Ph⊂P={p∈H1(Ω) |p=pon Γ+}. Thus, the predictor solution is determined as: Find Δu∗h i∈ Uh ifor all t∈[t0,T]such that vh i,Δu∗h i ΔtΩ=−vh i,∇·(uh)n+1/2(uh i)nΩ +vh i,fh in Ω −Δt 2∇·vh iuhuhn+1/2,∇(uh i)nΩI −vh i(uh)n+1/2·∇(uh)n,∇(uh i)nΩI +vh i,(uh)n+1/2·(∇(fh i)nΩI(7) where f=μf ρf∇2uand (v, w)Ω=Ω vwdΩ v,wΩ=Ω (v·w)dΩ and [v,c]Γ=Γ vc·nbdΓ for vector fields v,w,cand scalars vand w. Moreover, ΩI is the domain without elements with sides belonging to the boundary. Specifics about the computation of the velocity field at (n+1/2)Δtin Eq.(7) are discussed in Ref. [14]. Second step involves pressure computation from the continuity equation. The solution is formulated as: Find (ph)n+1∈ Phfor all t∈[t0,T], such that Δt ρf∇wh,∇(Δph)Ω=∇wh,Δu∗hΩ −Δt ρf∇wh,∇phn Ω−wh,ΔuhΓ (8) where Δuh=(uh)n+1−(uh)n. Final pressure field is pn+1=pn+Δp. Last step updates velocity field through Eq.(6), where Δu∗∗ is given by vh i,Δu∗∗h i ΔtΩ=−1 ρfvh i,(∇ph)n+1 iΩ −Δt 2ρf∇·vh i(uh)n+1/2,(∇ph)n+1 iΩI .(9) Second, the high order solution for the advective-diffusion transport law(3) is attained by the Characteristic Galerkin method and is stated in terms of the spaces Shand Hh, defined as Sh⊂S={s∈H1(Γh)|s=0on∂Γh},Hh⊂ H={h∈H1(Γh)|h=hon ∂Γh}, where Γh(specified after Eq.(3)) corresponds with the solid/fluid interface surface. Then, the HO solution is formulated as: Find hh∈Hh for all t∈[t0,T], such that sh,Δhh ΔtΓh=un+1/2 s·∇Hsh,(hh)nΓh −sh,qs ρsn ∂Γ+ h−∇Hsh,K(∇Hh∗h)n Γh+ sh,K(∇Hh∗h)n ∂Γh −Δt 2∇H·shuh suh sn+1/2,∇H(hh)nΓhI− sh(uh s)n+1/2·∇H(uh s)n,∇H(hh)nΓhI +∇H·sh(uh s)n+1/2,hh∇H·uh snΓhI(10) where us≡qs hhρs ,∂Γ+ his defined as the portion of the bedform boundary with a prescribed sediment mass flux qs, and (v, w)Γh=Γh vwdΓh 123 Computational Mechanics v,wΓh=Γh (v·w)dΓh and [v,c]∂Γh=∂Γh vc·nbd∂Γh. Computation of sediment mass flux requires stress recovery from the updated velocity field attained in the flow solution. In this work, shear stresses at the sediment/fluid interface are estimated by assuming a logarithmic wall velocity law; then, friction velocity is calculated as (u∗)n+1=κ un+1 Δ−un+1 Δ·nbnb ln (zΔ/z0),(11) where uΔ=u(zΔ)is the velocity value taken at height zΔ over the bedform, κ=0.41 is the Von Karman constant, and z0is the equivalent roughness length. The height zΔis estimated in terms of mesh resolution, and its value in Eq.(11)is assumed at time nΔt. Prior to the solution(10), computation of qn+1 sand un+1/2 s=(un s+un+1 s)/2 is achieved by elementwise usage of the law stated by Eq.(4) and an a posteriori nodal recovery. Now, we examine the low-order solutions. The proposed low-order approach is an upwind finite element monotone scheme independent of the high-order procedure. From now on, we introduce the notation LO() comprising upwind fluxes computation such that LO (ψ,a)=(a·∇ψ)+[∇·(k∇ψ)](12) for a scalar field ψand a vector field a, where kis a diffusivity tensor corresponding to the artificial diffusion of the finite element upwind scheme (see specifics in Eq.(13) of Ref. [14]). Results in the computation of the LO solution are essentially the same by median dual finite volume method or Galerkin linear finite elements with lumped mass approximation [16]. Here, the low-order predictor method is written via the Galerkin formulation for the sake of simplicity. A monolithic implementation of the low-order solution for fluid flow requires three steps similar to Eqs. (7)–(9). Then, this course of action would entail the computation of two implicit solutions for pressure (Eq.(8) and the corresponding for the LO solution). Both calculations should be performed every time step followed by the correction reported in the Appendix. A cost-effective way to circumvent this double computation is by performing correction only for the predictor velocity field. Then, the abbreviated procedure has the following steps: 1. Computation of the HO velocity predictor u∗h=(uh)n+ Δu∗hgiven by Eq.(7). 2. Calculation of the LO velocity predictor u∗h LO =(uh)n+ Δu∗h LO, where the intermediate velocity increment is vh iL,Δu∗h iLO ΔtΩ =vh i,LO (uh i+Δt 2fh i)n,(uh)nΩ+vh i,fh in Ω (13) where vh iL is the lumped mass matrix and LO subindex signifies low-order solution. 3. Computation of the corrected velocity predictor ˜ u∗hby the correction algorithm (Appendix, see Eq. (23)). 4. Calculation of the updated pressure by solving the implicit equation (8) and replacing Δu∗hby the corrected velocity increment Δ˜ u∗h=˜ u∗h−(uh)n. 5. Get the updated velocity field by computing Δu∗∗ with Eq.(9). Low-order form for the bedform evolution(3)isformulated as: Find (hh)n+1 LO ∈Hhfor all t∈[t0,T], such that sh L,Δhh LO ΔtΓh =sh,LO (hh)n,(uh s)nΓh −∇Hsh,K(∇Hh∗h)nΓh+sh,K(∇Hh∗h)n ∂Γh ,(14) where sh Lcorresponds to the lumped mass matrix, and (hh)n+1 LO =(hh)n+Δhh LO. All series of experiments in precedingworks [11–14]have shown that the use of this reduced method instead of the monolithic procedure has no noticeable differences in results and retains the capability to preserve interface resolution. The average extra computational cost of the abridged NFEM respect to the procedure with no corrections is about 1% for serial calculation of incompressible flows. 2.2.2 Mesh adaptation algorithm In this subsection we report the proposed grid adaptation method to the practical tracking of the fluid–bedform interface. Grid adaptation requires the following initial mesh data: (a) coordinates of all nodes and their connectivity; (b) all edges and the pair of nodes defining each one; and (c) edges defining each element of the mesh. These data are conveniently stored by linked lists. Once values of hn+1and bed position are updated, grid adaptation is conducted by three steps: 123 Computational Mechanics 1. Loop over nodes: h∗ iis calculated at coordinates (xi,yi) of every node i∈Ω(with vertical coordinate ziof the original mesh). Nodes are labelled as – Under the interface: zi+ς<h∗ i, Node flag is 0 (inactive). – Over the interface: zi−ς>h∗ i. Node flag is 1 (active). – Coincident with the interface: zi−ς≤h∗ i≤zi+ς. Node flag is 2 (coincident). The number ςis of the order of round-off value. 2. Loop over edges: pair of nodes delimiting every edge are labelled as – Both nodes have flag 0: edge is under the bedform; edge flag is 0 (inactive). – Both nodes have flag 1: edge is over the bedform; edge flag is 1 (active). – Both nodes have flag 2: edge is contained in the interface; edge label is 2 (coincident). – One node has flag 2 and the other node has flag 0 or 1; edge flag is 0 or 1 depending on the flag of the second node. – One node has flag 0 and the other node has flag 1; edge is cut by the bedform and its flag is 3 (intersected). In this situation, coordinates of the cut-off node are calculated and stored. Nevertheless, if the intersection is close to one of the edge nodes, element could be too small in compare with those of the original mesh. To avoid this inconvenience, we define a tolerance ξ such that, if L1 L1+L2<ξ(see Fig.1), flag of node 1 is designated as 2. Practical values for the tolerance are ξ∈[0.05,0.10]. If this special case occurs, step 2 must be run again to avoid indeterminacy of other edges containing modified nodes. 3. Loop over elements: we consider tetrahedrons and assume elements small enough such that the cut caused by the bedform is plane. Hence, the following cases can be produced, •There are not nodes with flag 1: the tetrahedron is completely below the bedform, then it is deactivated and not included in the new mesh. •The sum of nodes with flag 1 and nodes with flag 2 is four: tetrahedron is over (or tangent to) the bedform, then the element is active and its geometry is identical to that of the original mesh. •One edge has flag 2 and other edge has flag 3: the element is split and a new element is formed with (a) the active node, (b) the cut-off node of the edge with label 3 and (c) the two nodes with flag 2 (see Fig.2). •Two edges have flag 3 and one node has flag 2: we can distinguish two cases. The first one occurs when just one node is label 1, in this case the new element Fig. 1 Edge (black line) cut by the bedform (red line). (Color figure online) is formed with (a) the active node, (b) the two cut-off nodes of edges with label 3 and (c) the node with flag 2 (see Fig.3). Second case takes place when two nodes have flag 1; the resulting square pyramid is divided into two tetrahedrons by splitting the pyramid base by the shortest diagonal (see Fig.4). Then, the two new elements are formed by (a) active nodes, (b) the node with flag 2 and (c) the two cut-off nodes of edges with label 3. •Three edges have label 3: here two cases are identified. The first one takes place when just one node has label 1, in this case, the new element is formed by (a) the three cut-off nodes and (b) the node with flag1(seeFig.5). Second case occurs when there are three nodes with flag 1; in this situation, the resulting triangular prism is split into three tetrahedrons by subdividing the square faces (see Fig.6). Special care must be taken when faces are split to avoid an untetrahedralizable polyhedron. •Four edges have label 3: here the resulting triangular prism is divided into three tetrahedrons by subdividing the square faces as in the previous case (see Fig. 7). Once activated elements are established, the subsequent steps involve the assembling of the new mesh and the prescription of boundary conditions on those edges in contact with the bedform. Pressure values at new nodes on edges with label 3 are taken from previous nodes belonging to the same edge. Errors introduced in this process are negligible as the fluid-bedform interface movement has a time scale variability much larger than the flow and the updating timestep; hence, new nodes are very close to the former ones. Furthermore, in this instance, the grid adaptation algorithm does not need to be performed every time step. Otherwise, when a “severe flow scenario" is adopted, defined either by similar time scales of fluid flow and saltation flux or by the saltation flux amplified a few orders of magnitude [20], mesh adaptation every time step is recommended. 123 Computational Mechanics Fig. 2 Case with one edge with label 2 and other edge with label 3. Red line indicates the cut made by the bedform. (Color figure online) Fig. 3 Case with two edges with label 3, one node with label 2 and one node with label 1. Red line indicates the cut made by the bedform. (Color figure online) Fig. 4 Case with two edges with label 3, one node with label 2 and two nodes with label 1. Red line indicates the cut made by the bedform and blue line shows face subdivision. (Color figure online) 2.2.3 A brief on parallel coding development The Finite Element model described above has been programmed in C++ and parallelized with MPI (Message Passing Interface). In addition, OpenMP (Open Multi- Processing) is also employed for those tasks requiring shared memory. In summary, the procedure is as follows: the root process reads grids for fluid solution and for solid–fluid interface solution; then, grids are divided in the X–Yplane into Nsubdomains, being Nthe number of available computational cores. Each core receives data of all nodes and elements within its domain, in addition to data of ‘shared’ elements (those with at least one node belonging to the subdomain). On the basis of this information, each core is able to get local nodal vectors resulting from the computation of the right hand side of Eqs.(7)–(10), (13) and (14). Hence, solutions of aforementioned equations are calculated employing a Preconditioned Conjugate Gradient (PCG), which also allows for MPI parallelization as the coefficient matrix does not have to be assembled. There are some modules of the code that use data from the whole mesh. For example, the sediment fluxes compu- 123 Computational Mechanics Fig. 5 Case with three edges with label 3 and one node with flag 1. Red line indicates the cut made by the bedform. (Color figure online) Fig. 6 Case with three edges with label 3 and three nodes with flag 1. Red line indicates the cut made by the bedform and blue lines show faces subdivision. (Color figure online) Fig. 7 Case with four edges with label 3. Red line indicates the cut made by the bedform and blue lines show faces subdivision. (Color figure online) tation (Eq.(4)) requires the recovering of the velocity field from the fluid dynamics solution and involves a search of elements surrounding each node of the fluid-solid interface (see details in Ref. [14]). Other examples are steps 2 and 3 of the mesh adaptation algorithm (Sect. 2.2.2), whose implementation is more efficient by using shared memory parallelism. As mentioned before, parallelization in these modules is performed with OpenMP. In some tests carried out on an Intel Core i9-12900K, we found that the MPI parallelization accelerated the execution up to 3 times respect to the same code but entirely parallelized with OpenMP. 3 Results 3.1 Evolution of trenches In this section we examine the evolution of different trenches due to the effect of a water flow and of the wind. In the first simulation we assess the performance of the numerical model when a non-erodible stratum is present within the domain. For this purpose we reproduce one of the experiments reported by Struiksma [25]. It was performed in a straight channel with 11.5 m length, 0.2 m width, and a vertical side rigid wall of 0.5 m. Initial configuration of the 123 Computational Mechanics Fig. 8 Struiksma’s experiment: initial set-up test is depicted in Fig.8. As can be seen, the flume is partially filled with a non-erodible layer forming an obstacle (blue line in Fig.8) and, above it, there is an erodible bedform of sand with d=0.6 mm. Moreover, a trench with 0.04 m depth and 2m length is dug in the erodible layer (red line in Fig.8). In the experiment, a water flow of 9.2 l/s is discharged from left to right in Fig. 8, and the free surface is placed at z=0.362 m. The employed two dimensional structured mesh has an average element size1δ=0.005m, and its dimensions are 17.25 ×0.237 m. Regarding boundary conditions, no-slip condition is imposed at the bottom, left boundary has a prescribed influx condition and right boundary reproduces a water discharge over a weir to keep a subcritical flow in the flume. In the simulation, we solve the dynamics of a two-phase flow (air and water), where the gas-liquid interface is captured using a conservative level-set method (see formulation in Ref. [14]). Air has ρ1=1.205 kg/m3and μ1=1.808 ×10−5kg/(ms), while water has ρ2=998kg/m3,μ 2=1.0×10−3kg/(ms). Sediment flux is computed by using the formula proposed by Struiksma [25], qs/ρs=Cuu4,(15) where C=0.00049 s4/m3and uis the depth-averaged water velocity. Note that the equation (15) is not universally applicable, as it was tuned in the laboratory specifically for the current experiment; hence, its use should be restricted to this particular setup. Furthermore, fluxes obtained from Eq.(15) are scaled by a factor of 60 to transform 4min of simulated time into 4h of real time. Simulations last 255s and the timestep is Δt=0.001 s. During the first 15s, sediment transport is deactivated to reach an initial steady-state in hydrodynamics; subsequently, the bedload transport law is activated. Figure9shows experimental and numerical results by representing the bottom level at t=1, 2, 3 and 4h. Results are shown superimposed on the initial bed. Numerics match satisfactory with laboratory results, even when the non-erodible bed becomes uncovered (Fig. 9c, d). The sharp front position and the silting process of the trench are accurately captured at t=1, 2 and 3h, with L2-norm errors e(L2)1h =6.94×10−3 1Average element size for 2D structured meshes is δ=Δx2+Δy2. m, e(L2)2h =7.41 ×10−3m, and e(L2)3h =9.70 ×10−3 m. However, the front at t=4h is not evinced by the lab experiment (Fig.9d), and the error increases to e(L2)4h = 1.40 ×10−2m. Otherwise, position of the bedform downstream the trench is very similar to laboratory outputs for t=1h and 2h, and somewhat overpredicted for t=3h and 4h. This slight overprediction can be ascribed to deviations in the sediment outflow through the right boundary respect to the laboratory set-up. Despite the fact that the sediment flux law (15) has not a threshold condition for sediment onset of motion, erosion excess is apparent only in a reduced region close to the upper boundary of the non-erodible obstacle. Similar effect can be recognized in Refs. [18,25]. In the second series of simulations, we study the evolution of two different trenches due to the wind action. The first trench has a depth of 0.05 m, a bottom length of 0.2 m, and a side slope of 45◦; and the second trench has a 0.025 m depth, a bottom length of 0.1 m, and side slope of 22.5◦(see the solid line in Figs. 10 and 11). In both cases, the employed mesh is structured, with a 1.0 m length, 0.05 m width, and 0.2 m height, and has an average element size2of δ=0.0023 m. Physical parameters of the air are ρf=1.205kg/m3,μf=1.808 ×10−5,kg/(ms). The air is considered at rest at the initial time. Left boundary of the mesh has inlet conditions, and air enters the domain according to a boundary layer law: u(z)=0.5 κlog z z0. Regarding the sediment, ρs=1987.5kg/m3,d=2.5×10−4m, z0=2.5×10−5m, ut0=0.22 m/s, and α=45◦. Besides, to accelerate the computation of sediment flux, it is scaled by a time multiplier of 50, assuming the time scale of flow variability much shorter than that for bed evolution. We run the simulation for a total of 8s with Δt=5×10−5s, which is equivalent to 400 real seconds for the erodible bed. Figure10 shows the deep trench profile at real times t=0, 100, 200, and 400s, and Fig.11 shows the profile for the shallow case at t=0, 25, 100, 200, and 400s. Additionally, a 3D view of some time steps is shown in Figs.12 and 13. As can be seen, in both cases the trench moves in the wind direction, i.e. there is sediment deposition on the upwind (left) side and erosion on the downwind (right) side. However, the velocity migration of the deep trench is lower than the shallow case, in line with previous numerical simulations [20] and experimental observations [1]. We also notice that erosion on the right side is more intense than deposition on the left side. This fact results in a progressive change of the trench shape leading to partial silting (see trench depth and bottom length evolution in Figs.10 and 11). Moreover, it is manifest that the left side of the trench starts to migrate 2Average element size for three-dimensional meshes is defined as δ= 3 n i=1Vi N,whereViis the volume of cell i,andNis the total number of cells. 123 Computational Mechanics 27. Wippermann FK, Gross G (1986) The wind-induced shaping and migration of an isolated dune: a numerical experiment. Bound Layer Meteorol 36:319–334 28. Zalezak ST (1979) Fully multidimensional flux-corrected transport algorithms for fluids. J C Phys 31:335–362 29. Zhao M, Cheng L, Zang Z (2010) Experimental and numerical investigation of local scour around a submerged vertical circular cylinder in steady currents. Coast Eng 57:709–721 Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. 123