|
@propagate_inbounds function compute_smoothed_velocity!(cache, viscosity::ViscosityAdami, |
|
neighbor_system, v_neighbor_system, |
|
kernel_weight, particle, neighbor) |
|
v_b = current_velocity(v_neighbor_system, neighbor_system, neighbor) |
|
|
|
for dim in eachindex(v_b) |
|
cache.wall_velocity[dim, particle] += kernel_weight * v_b[dim] |
|
end |
|
|
|
return cache |
|
end |
Am I missing something, or is this function redundant? It stores something in the
wall_velocity, but inside
boundary_pressure_extrapolation!. After that, we call
compute_adami_density!, which computes the inverse state equation and calls
compute_wall_velocity!, which overwrites
wall_velocity.
@LasNikas @svchb can you please double-check before I remove this function?
TrixiParticles.jl/src/schemes/boundary/wall_boundary/dummy_particles.jl
Lines 662 to 672 in 9755a09
Am I missing something, or is this function redundant? It stores something in the
wall_velocity, but insideboundary_pressure_extrapolation!. After that, we callcompute_adami_density!, which computes the inverse state equation and callscompute_wall_velocity!, which overwriteswall_velocity.@LasNikas @svchb can you please double-check before I remove this function?