Skip to content

Commit 798a97e

Browse files
committed
Implement copilot suggestions
1 parent 702a08f commit 798a97e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/schemes/fluid/viscosity.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ end
113113
(; alpha, beta, epsilon) = viscosity
114114

115115
h_a = smoothing_length(particle_system, particle)
116-
h_b = smoothing_length(particle_system, neighbor)
116+
h_b = smoothing_length(neighbor_system, neighbor)
117117
h = (h_a + h_b) / 2
118118

119119
rho_mean = (rho_a + rho_b) / 2
@@ -168,7 +168,7 @@ end
168168
v_diff = v_visc_a - v_visc_b
169169

170170
smoothing_length_particle = smoothing_length(particle_system, particle)
171-
smoothing_length_neighbor = smoothing_length(particle_system, neighbor)
171+
smoothing_length_neighbor = smoothing_length(neighbor_system, neighbor)
172172
h = (smoothing_length_particle + smoothing_length_neighbor) / 2
173173

174174
nu_a = kinematic_viscosity(particle_system,
@@ -250,7 +250,7 @@ end
250250
epsilon = viscosity.epsilon
251251

252252
smoothing_length_particle = smoothing_length(particle_system, particle)
253-
smoothing_length_neighbor = smoothing_length(particle_system, neighbor)
253+
smoothing_length_neighbor = smoothing_length(neighbor_system, neighbor)
254254
smoothing_length_average = (smoothing_length_particle + smoothing_length_neighbor) / 2
255255

256256
nu_a = kinematic_viscosity(particle_system,
@@ -341,7 +341,7 @@ end
341341
epsilon = viscosity.epsilon
342342

343343
smoothing_length_particle = smoothing_length(particle_system, particle)
344-
smoothing_length_neighbor = smoothing_length(particle_system, neighbor)
344+
smoothing_length_neighbor = smoothing_length(neighbor_system, neighbor)
345345
smoothing_length_average = (smoothing_length_particle + smoothing_length_neighbor) / 2
346346

347347
nu_a = kinematic_viscosity(particle_system,
@@ -459,7 +459,7 @@ end
459459
epsilon = viscosity.epsilon
460460

461461
smoothing_length_particle = smoothing_length(particle_system, particle)
462-
smoothing_length_neighbor = smoothing_length(particle_system, neighbor)
462+
smoothing_length_neighbor = smoothing_length(neighbor_system, neighbor)
463463
smoothing_length_average = (smoothing_length_particle + smoothing_length_neighbor) / 2
464464

465465
nu_a = kinematic_viscosity(particle_system,
@@ -540,7 +540,7 @@ end
540540
epsilon = viscosity.epsilon
541541

542542
smoothing_length_particle = smoothing_length(particle_system, particle)
543-
smoothing_length_neighbor = smoothing_length(particle_system, neighbor)
543+
smoothing_length_neighbor = smoothing_length(neighbor_system, neighbor)
544544
smoothing_length_average = (smoothing_length_particle + smoothing_length_neighbor) / 2
545545

546546
v_a = viscous_velocity(v_particle_system, particle_system, particle, v_a)

src/schemes/structure/structure.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function interact_structure_fluid!(dv, v_particle_system,
7474
v_neighbor_system, v_particle_system,
7575
neighbor, particle, pos_diff, distance,
7676
sound_speed, m_b, m_a, rho_b, rho_a,
77-
v_a, v_b, grad_kernel)
77+
v_b, v_a, grad_kernel)
7878

7979
dv_adhesion = adhesion_force(surface_tension, neighbor_system, particle_system,
8080
neighbor, particle, pos_diff, distance)

0 commit comments

Comments
 (0)