Skip to content

Commit 846db20

Browse files
committed
Use artificial viscosity for TLSPH
1 parent 4d30b96 commit 846db20

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/fsi/fin_2d.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ solid_system = TotalLagrangianSPHSystem(solid, smoothing_kernel, smoothing_lengt
211211
modulus, poisson_ratio;
212212
n_fixed_particles, movement=boundary_movement,
213213
boundary_model=boundary_model_solid,
214+
viscosity=ArtificialViscosityMonaghan(alpha=0.01),
214215
penalty_force=PenaltyForceGanzenmueller(alpha=0.1))
215216

216217
# ==========================================================================================
@@ -257,9 +258,9 @@ saving_callback = SolutionSavingCallback(dt=0.01, prefix="")
257258
split_dt = 2e-5
258259
split_integration = SplitIntegrationCallback(RDPK3SpFSAL35(), adaptive=false, dt=split_dt,
259260
maxiters=10^8)
260-
stepsize_callback = StepsizeCallback(cfl=0.5)
261+
stepsize_callback = StepsizeCallback(cfl=1.0)
261262
shifting_callback = ParticleShiftingCallback()
262-
callbacks = CallbackSet(info_callback, saving_callback, shifting_callback,
263+
callbacks = CallbackSet(info_callback, saving_callback, #shifting_callback,
263264
split_integration, stepsize_callback)
264265

265266
# Use a Runge-Kutta method with automatic (error based) time step size control.

0 commit comments

Comments
 (0)