Skip to content

Commit 1b12d12

Browse files
LasNikasLasNikas
andauthored
Fix TVF with TIC (#948)
* fix tic * move function --------- Co-authored-by: LasNikas <[email protected]>
1 parent c6ca84d commit 1b12d12

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/schemes/fluid/shifting_techniques.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,12 @@ end
596596
distance, grad_kernel, correction)
597597
end
598598

599+
# The function above misuses the pressure acceleration function by passing a Matrix as `p_a`.
600+
# This doesn't work with `tensile_instability_control`, so we disable TIC in this case.
601+
@inline function tensile_instability_control(m_a, m_b, rho_a, rho_b, p_a::SMatrix, p_b, W_a)
602+
return pressure_acceleration_continuity_density(m_a, m_b, rho_a, rho_b, p_a, A_b, W_a)
603+
end
604+
599605
function continuity_equation_shifting!(dv, shifting::TransportVelocityAdami{true},
600606
particle_system, neighbor_system,
601607
particle, neighbor, grad_kernel, rho_a, rho_b, m_b)

0 commit comments

Comments
 (0)