Skip to content

Commit 8806ee2

Browse files
committed
Fix TGV validation
1 parent 393f9dc commit 8806ee2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

validation/taylor_green_vortex_2d/validation_taylor_green_vortex_2d.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ reynolds_number = 100.0
1717
density_calculators = [ContinuityDensity(), SummationDensity()]
1818
perturb_coordinates = [false, true]
1919

20+
# Define `average_pressure` for WCSPH, so that we can use the same code below for WCSPH
21+
@inline function TrixiParticles.average_pressure(system::WeaklyCompressibleSPHSystem,
22+
particle)
23+
return zero(eltype(system))
24+
end
25+
2026
function compute_l1v_error(system, v_ode, u_ode, semi, t)
2127
v_analytical_avg = 0.0
2228
v_avg = 0.0

0 commit comments

Comments
 (0)