Skip to content

Commit 70422b9

Browse files
author
LasNikas
committed
implement suggestions
1 parent 1425637 commit 70422b9

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/schemes/boundary/open_boundary/mirroring.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ end
3737
"""
3838
ZerothOrderMirroring()
3939
40-
Fluid properties are interpolated onto ghost nodes using Shepard interpolation [Shepard1968](@cite).
40+
Fluid properties are interpolated onto ghost nodes using Shepard interpolation.
41+
(See slide 6 from the 4th DualSPHysics Users Workshop:
42+
[Tafuni, Lisbon 2018](https://dual.sphysics.org/4thusersworkshop/data/_uploaded/PDF_Talks_4thWorkshop/Tafuni_Lisbon2018.pdf)).
4143
The position of the ghost nodes is obtained by mirroring the boundary particles
4244
into the fluid along a direction that is normal to the open boundary.
4345
The interpolated values at the ghost nodes are then assigned to the corresponding boundary particles.

test/schemes/boundary/open_boundary/mirroring.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,10 @@
367367

368368
pressure_func(pos) = cos(2pi * pos[1])
369369

370+
371+
# The pressures are interpolated to obtain a unified vector of length 50,
372+
# rather than handling three separate systems with numerous particles each.
373+
# Additionally, it facilitates plotting for test validation purposes.
370374
pressures = interpolate_pressure.([
371375
SimpleMirroring(),
372376
FirstOrderMirroring(),

0 commit comments

Comments
 (0)