@@ -86,7 +86,7 @@ function extrapolate_values!(system, v_open_boundary, v_fluid, u_open_boundary,
8686 grad_kernel = smoothing_kernel_grad (fluid_system, pos_diff, distance,
8787 particle)
8888
89- # `pos_diff` corresponds to `x_{kl} = x_k - x_l` in the paper,
89+ # `pos_diff` corresponds to `x_{kl} = x_k - x_l` in the paper (Tafuni et al., 2018) ,
9090 # where `x_k` is the position of the ghost node and `x_l` is the position of the neighbor particle
9191 L, R = correction_arrays (kernel_value, grad_kernel, pos_diff, rho_b, m_b)
9292
@@ -166,9 +166,9 @@ function extrapolate_values!(system, v_open_boundary, v_fluid, u_open_boundary,
166166end
167167
168168function correction_arrays (W_ab, grad_W_ab, pos_diff:: SVector{3} , rho_b, m_b)
169- # `pos_diff` corresponds to `x_{kl} = x_k - x_l` in the paper (Tafuni et al. 2018),
170- # where `x_k` is the position of the ghost node and `x_l` is the position of the neighbor particle.
171- # Note that in eq. (16) and (18 ) the indices are swapped, i.e. `x_{kl }` is used instead of `x_{lk }`.
169+ # `pos_diff` corresponds to `x_{kl} = x_k - x_l` in the paper (Tafuni et al., 2018),
170+ # where `x_k` is the position of the ghost node and `x_l` is the position of the neighbor particle
171+ # Note that in eq. (16) and (17 ) the indices are swapped, i.e. `x_{lk }` is used instead of `x_{kl }`.
172172 x_ba = - pos_diff[1 ]
173173 y_ba = - pos_diff[2 ]
174174 z_ba = - pos_diff[3 ]
@@ -192,9 +192,9 @@ function correction_arrays(W_ab, grad_W_ab, pos_diff::SVector{3}, rho_b, m_b)
192192end
193193
194194function correction_arrays (W_ab, grad_W_ab, pos_diff:: SVector{2} , rho_b, m_b)
195- # `pos_diff` corresponds to `x_{kl} = x_k - x_l` in the paper,
196- # where `x_k` is the position of the ghost node and `x_l` is the position of the neighbor particle.
197- # Note that in eq. (16) and (18 ) the indices are swapped, i.e. `x_{kl }` is used instead of `x_{lk }`.
195+ # `pos_diff` corresponds to `x_{kl} = x_k - x_l` in the paper (Tafuni et al., 2018) ,
196+ # where `x_k` is the position of the ghost node and `x_l` is the position of the neighbor particle
197+ # Note that in eq. (16) and (17 ) the indices are swapped, i.e. `x_{lk }` is used instead of `x_{kl }`.
198198 x_ba = - pos_diff[1 ]
199199 y_ba = - pos_diff[2 ]
200200
0 commit comments