Skip to content

Commit ee61bc8

Browse files
author
LasNikas
committed
Merge branch 'main' into validate-open-boundaries
2 parents 48f2e11 + 305bf62 commit ee61bc8

7 files changed

Lines changed: 17 additions & 16 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ FastPow = "0.1"
5050
FileIO = "1"
5151
ForwardDiff = "1"
5252
GPUArraysCore = "0.2"
53-
JSON = "0.21"
53+
JSON = "1"
5454
KernelAbstractions = "0.9"
5555
MuladdMacro = "0.2"
5656
OrdinaryDiffEq = "6.91"

docs/literate/src/tut_packing.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ background_pressure = 1.0
140140

141141
# For particle interaction, we select a [smoothing kernel](@ref smoothing_kernel)
142142
# with a suitable smoothing length. Empirically, a factor of `0.8` times the
143-
# particle spacing gives good results [Neher2025](@cite).
143+
# particle spacing gives good results [Neher2026](@cite).
144144
smoothing_kernel = SchoenbergQuinticSplineKernel{2}()
145145
smoothing_length = 0.8 * particle_spacing
146146

@@ -203,7 +203,7 @@ plot(packed_ic)
203203
plot!(geometry, seriestype=:path, color=:black, label=nothing, linewidth=2)
204204

205205
# We can see that the particles now stay inside the geometry,
206-
# but their distribution near the surface can still be improved by adding boundary particles [Neher2025](@cite).
206+
# but their distribution near the surface can still be improved by adding boundary particles [Neher2026](@cite).
207207
# Therefore, we set up a dedicated boundary packing system
208208
# by setting `is_boundary = true`.
209209
# For convex geometries, it is useful to slightly compress the

docs/src/preprocessing/preprocessing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ Pages = [joinpath("preprocessing", "geometries", "io.jl")]
302302
```
303303

304304
# [Particle Packing](@id particle_packing)
305-
To obtain a body-fitted and isotropic particle distribution, an initial configuration (see [Sampling of Geometries](@ref sampling_of_geometries)) is first generated. This configuration is then packed using a [`ParticlePackingSystem`](@ref) following the steps introduced in [Neher2025](@cite).
305+
To obtain a body-fitted and isotropic particle distribution, an initial configuration (see [Sampling of Geometries](@ref sampling_of_geometries)) is first generated. This configuration is then packed using a [`ParticlePackingSystem`](@ref) following the steps introduced in [Neher2026](@cite).
306306
For a hands-on tutorial with complete examples, see the particle packing tutorial.
307307
The preprocessing pipeline consists of the following steps:
308308

docs/src/refs.bib

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -636,14 +636,14 @@ @Article{Negi2022
636636
publisher = {{AIP} Publishing},
637637
}
638638

639-
@Misc{Neher2025,
640-
author = {Neher, Niklas S. and Faulhaber, Erik and Berger, Sven and Wei{\ss}enfels, Christian and Gassner, Gregor J. and Schlottke-Lakemper, Michael},
641-
title = {Robust and efficient pre-processing techniques for particle-based methods including dynamic boundary generation},
642-
month = jun,
643-
year = {2025},
644-
archiveprefix = {arXiv},
645-
eprint = {2506.12106},
646-
primaryclass = {math.NA},
639+
@Article{Neher2026,
640+
author = {Neher, Niklas S. and Faulhaber, Erik and Berger, Sven and Wei{\ss}enfels, Christian and Gassner, Gregor J. and Schlottke-Lakemper, Michael},
641+
journal = {Computer Physics Communications},
642+
title = {Robust and efficient pre-processing techniques for particle-based methods including dynamic boundary generation},
643+
year = {2026},
644+
pages = {109898},
645+
volume = {318},
646+
doi = {10.1016/j.cpc.2025.109898}
647647
}
648648

649649
@Article{OConnor2021,

test/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ TrixiTest = "0a316866-cbd0-4425-8bcb-08103b2c1f26"
1717

1818
[compat]
1919
CSV = "0.10"
20-
CairoMakie = "0.13, 0.15"
20+
CairoMakie = "0.15"
2121
DataFrames = "1.6"
2222
GLM = "1.9"
2323
Glob = "1.3"
24-
JSON = "0.21"
24+
JSON = "1"
2525
OrdinaryDiffEq = "6.49"
2626
Plots = "1"
2727
Polyester = "0.7"

test/systems/iisph_system.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
time_step=0.001)
254254

255255
u0 = zeros(TrixiParticles.u_nvariables(system),
256-
TrixiParticles.n_moving_particles(system))
256+
TrixiParticles.n_integrated_particles(system))
257257
TrixiParticles.write_u0!(u0, system)
258258

259259
@test u0 == coordinates
@@ -279,7 +279,7 @@
279279
time_step=0.001)
280280

281281
v0 = zeros(TrixiParticles.v_nvariables(system),
282-
TrixiParticles.n_moving_particles(system))
282+
TrixiParticles.n_integrated_particles(system))
283283
TrixiParticles.write_v0!(v0, system)
284284

285285
@test v0 == velocity

test/systems/systems.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ include("boundary_system.jl")
55
include("open_boundary_system.jl")
66
include("dem_system.jl")
77
include("packing_system.jl")
8+
include("iisph_system.jl")

0 commit comments

Comments
 (0)