Skip to content

compute_smoothed_velocity! is dispatched incorrectly #1071

@efaulhaber

Description

@efaulhaber

@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?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions