@@ -118,15 +118,19 @@ fluid_system = WeaklyCompressibleSPHSystem(tank.fluid, fluid_density_calculator,
118118# ==========================================================================================
119119# ==== Boundary
120120boundary_density_calculator = AdamiPressureExtrapolation ()
121+
122+ # Clip negative boundary pressure values to avoid sticking artifacts at the boundary.
121123boundary_model_tank = BoundaryModelDummyParticles (tank. boundary. density, tank. boundary. mass,
122124 state_equation= state_equation,
123125 boundary_density_calculator,
124- smoothing_kernel, smoothing_length)
126+ smoothing_kernel, smoothing_length,
127+ clip_negative_pressure= true )
125128
126129boundary_model_gate = BoundaryModelDummyParticles (gate. density, gate. mass,
127130 state_equation= state_equation,
128131 boundary_density_calculator,
129- smoothing_kernel, smoothing_length)
132+ smoothing_kernel, smoothing_length,
133+ clip_negative_pressure= true )
130134
131135boundary_system_tank = WallBoundarySystem (tank. boundary, boundary_model_tank)
132136boundary_system_gate = WallBoundarySystem (gate, boundary_model_gate,
@@ -145,7 +149,8 @@ boundary_model_structure = BoundaryModelDummyParticles(hydrodynamic_densites,
145149 hydrodynamic_masses,
146150 state_equation= state_equation,
147151 AdamiPressureExtrapolation (),
148- smoothing_kernel, smoothing_length)
152+ smoothing_kernel, smoothing_length,
153+ clip_negative_pressure= true )
149154
150155structure_system = TotalLagrangianSPHSystem (structure,
151156 structure_smoothing_kernel,
0 commit comments