From 3606006fb17e4565f0bdebbfcd8b8e61ca3b3fe7 Mon Sep 17 00:00:00 2001 From: Sven Berger Date: Fri, 27 Sep 2024 13:09:32 +0200 Subject: [PATCH] formatting --- .../dummy_particles/dummy_particles.jl | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/schemes/boundary/dummy_particles/dummy_particles.jl b/src/schemes/boundary/dummy_particles/dummy_particles.jl index 404cd9f5a..8fb506b14 100644 --- a/src/schemes/boundary/dummy_particles/dummy_particles.jl +++ b/src/schemes/boundary/dummy_particles/dummy_particles.jl @@ -439,9 +439,9 @@ end # Since neighbor and particle are switched pos_diff = -pos_diff boundary_pressure_inner!(boundary_model, density_calculator, system, - neighbor_system, v, - v_neighbor_system, particle, neighbor, pos_diff, - distance, viscosity, cache, pressure, pressure_offset) + neighbor_system, v, v_neighbor_system, particle, neighbor, + pos_diff, distance, viscosity, cache, pressure, + pressure_offset) end end @@ -464,9 +464,9 @@ end points=eachparticle(system)) do particle, neighbor, pos_diff, distance boundary_pressure_inner!(boundary_model, density_calculator, system, - neighbor_system, v, - v_neighbor_system, particle, neighbor, pos_diff, - distance, viscosity, cache, pressure, pressure_offset) + neighbor_system, v, v_neighbor_system, particle, neighbor, + pos_diff, distance, viscosity, cache, pressure, + pressure_offset) end end @@ -491,8 +491,8 @@ end v, v_neighbor_system, pos_diff, distance, particle, neighbor, system, neighbor_system) + - dot(resulting_acceleration, - density_neighbor * pos_diff)) * kernel_weight + dot(resulting_acceleration, density_neighbor * pos_diff)) * + kernel_weight cache.volume[particle] += kernel_weight @@ -502,8 +502,7 @@ end @inline function dynamic_pressure(boundary_density_calculator, density_neighbor, v, v_neighbor_system, pos_diff, distance, particle, neighbor, - system, - neighbor_system) + system, neighbor_system) return zero(density_neighbor) end @@ -515,6 +514,7 @@ end relative_velocity = current_velocity(v, system, particle) .- current_velocity(v_neighbor_system, neighbor_system, neighbor) normal_velocity = dot(relative_velocity, pos_diff) / distance + return boundary_density_calculator.factor * density_neighbor * dot(normal_velocity, normal_velocity) / 2 end @@ -528,6 +528,7 @@ end relative_velocity = current_velocity(v, system, particle) .- current_velocity(v_neighbor_system, neighbor_system, neighbor) normal_velocity = dot(relative_velocity, pos_diff) / distance + return boundary_density_calculator.factor * density_neighbor * dot(normal_velocity, normal_velocity) / 2 end