Repository navigation
v0.5.0
TrixiParticles v0.5.0
Breaking Changes
- Clipping of negative pressure values in the
BoundaryModelDummyParticlesis now disabled
by default and can be enabled with the keyword argumentclip_negative_pressure=true(#1143). - The example files are now loading sub-packages of OrdinaryDiffEq.jl instead of
OrdinaryDiffEq.jl itself. For example,using OrdinaryDiffEqLowStorageRKinstead of
using OrdinaryDiffEq(#1154). DensityDiffusionAntuononow only has the kwargdeltaand no positional
arguments (#1142).- Return type of
vtk2trixichanged toNamedTupleincluding an optional
:initial_conditionfield ifcreate_initial_condition=trueis passed (#959). - Public system constructors now use keyword arguments for configuration values.
This affectsWeaklyCompressibleSPHSystem,EntropicallyDampedSPHSystem,
ImplicitIncompressibleSPHSystem,TotalLagrangianSPHSystem,DEMSystem,
andBoundaryDEMSystem.
Migration Guide for Keyword-Based System Constructors
The initial condition remains the only positional argument for the affected system
constructors. All method, material, and configuration arguments that were previously
passed positionally now need to be passed as keywords.
Existing optional keyword arguments remain available. For example, the
density_calculator keyword of EntropicallyDampedSPHSystem still defaults to
SummationDensity().
Here are examples, where ic is the initial condition, kernel is the
smoothing kernel, and h is the smoothing length:
WeaklyCompressibleSPHSystem(ic, density_calculator, state_equation, kernel, h;
kwargs...)
# becomes
WeaklyCompressibleSPHSystem(ic; smoothing_kernel=kernel, smoothing_length=h,
density_calculator, state_equation, kwargs...)
EntropicallyDampedSPHSystem(ic, kernel, h, sound_speed; kwargs...)
# becomes
EntropicallyDampedSPHSystem(ic; smoothing_kernel=kernel, smoothing_length=h,
sound_speed, kwargs...)
ImplicitIncompressibleSPHSystem(ic, kernel, h, reference_density; kwargs...)
# becomes
ImplicitIncompressibleSPHSystem(ic; smoothing_kernel=kernel, smoothing_length=h,
reference_density, kwargs...)
TotalLagrangianSPHSystem(ic, kernel, h, young_modulus, poisson_ratio; kwargs...)
# becomes
TotalLagrangianSPHSystem(ic; smoothing_kernel=kernel, smoothing_length=h,
young_modulus, poisson_ratio, kwargs...)
DEMSystem(ic, contact_model; kwargs...)
# becomes
DEMSystem(ic; contact_model, kwargs...)
BoundaryDEMSystem(ic, normal_stiffness)
# becomes
BoundaryDEMSystem(ic; normal_stiffness)Performance
- Greatly improved GPU performance of WCSPH and TLSPH
(#1128, #1117, #1124, #1125, #1130, #1116, #1139, #1149).
See #1131
for a detailed breakdown including benchmark results.
Features
- Added a
SortingCallbackthat can be used to sort particles by their spatial location
to improve performance (#1044).
Important Bugfixes
- Fixed a bug where
DensityDiffusionAntuonocould not be used together with open
boundaries andBoundaryModelDynamicalPressureZhang(#1043). - Fixed a bug where no-slip boundary conditions were not applied correctly when not using
ViscosityAdami(#1089).
Merged pull requests:
- Revise
vtk2trixiso that it returns aNamedTupleinstead of anInitialCondition(#959) (@marcelschurer) - Drop
n_clamped_particles(#964) (@LasNikas) - Deactivate out of bounds particle (#1000) (@LasNikas)
- Allow overwriting solutions (#1041) (@LasNikas)
- Make density diffusion in open boundaries settable (#1043) (@LasNikas)
- Add sorting callback (#1044) (@LasNikas)
- Introduce foreach_system_wrapped (#1055) (@svchb)
- Poiseuille flow 3d setup (#1075) (@svchb)
- Fix
similar(::ThreadedBroadcastArray, dims)(#1078) (@efaulhaber) - Improve GPU performance of TLSPH (#1084) (@efaulhaber)
- Rename
compute_smoothed_velocity!→interpolate_fluid_velocity!and fix dispatch (#1089) (@Copilot) - Make extension only dependent on OrdinaryDiffEqSymplecticRK (#1108) (@vchuravy)
- Fix tests after rigid merge (#1109) (@svchb)
- More fixes for rigid bodies (#1110) (@svchb)
- Move TLSPH and Rigid fluid-structure interaction to structure (#1112) (@svchb)
- Set dev version (#1113) (@svchb)
- Improve GPU performance of fluid-* interact (#1116) (@efaulhaber)
- Optimize smoothing kernels and gradients (#1117) (@efaulhaber)
- Fix incompatibility with latest OrdinaryDiffEq.jl (#1118) (@efaulhaber)
- Bump the all-github-actions group with 2 updates (#1122) (@dependabot[bot])
- Extend shared rigid contact runtime model (#1123) (@svchb)
- Make
dv_shifting,surface_tension_forceandadhesion_forceinplace (#1124) (@efaulhaber) - Make viscosity inplace and avoid duplicate velocity loads (#1125) (@efaulhaber)
- Use fast divisions in performance-critical code (#1128) (@efaulhaber)
- Make
continuity_equation!anddensity_diffusion!work on Ref values (#1130) (@efaulhaber) - Apply GPU optimizations to TLSPH (#1139) (@efaulhaber)
- Change API of
DensityDiffusionAntuono(#1142) (@efaulhaber) - Make pressure clipping in
BoundaryModelDummyParticlesoptional (#1143) (@efaulhaber) - Refactor SPH system initialization to use keyword arguments (#1144) (@svchb)
- Further improve TLSPH deformation gradient performance on GPUs in 2D (#1149) (@efaulhaber)
- Add publication reference for packing paper (#1151) (@LasNikas)
- Switch to sub-packages of OrdinaryDiffEq.jl (#1154) (@efaulhaber)
- Update NEWS.md and prepare release (#1162) (@efaulhaber)
- Fix #1144 (#1163) (@efaulhaber)
- Merge dev to main for 0.5 release (#1164) (@efaulhaber)
Closed issues:
- How to improve performance (#37)
- Calculation of the continuity density (#132)
- Wrapping
u_odeandv_odeinside theupdate_*functions (#296) - Road to TrixiParticles.jl on GPUs (#484)
compute_smoothed_velocity!is dispatched incorrectly (#1071)- Zhang open boundaries don't implement density diffusion correctly (#1072)
- GPU Tests are still broken on Julia 1.12 (#1115)