Skip to content

Commit 0939953

Browse files
author
LasNikas
committed
fix comments
1 parent 5ce6cca commit 0939953

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/schemes/boundary/open_boundary/mirroring.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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,
166166
end
167167

168168
function 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)
192192
end
193193

194194
function 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

Comments
 (0)