Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 29 Apr 12:20
· 97 commits to main since this release
d205497

TrixiParticles v0.5.0

Diff since v0.4.4

Breaking Changes

  • Clipping of negative pressure values in the BoundaryModelDummyParticles is now disabled
    by default and can be enabled with the keyword argument clip_negative_pressure=true (#1143).
  • The example files are now loading sub-packages of OrdinaryDiffEq.jl instead of
    OrdinaryDiffEq.jl itself. For example, using OrdinaryDiffEqLowStorageRK instead of
    using OrdinaryDiffEq (#1154).
  • DensityDiffusionAntuono now only has the kwarg delta and no positional
    arguments (#1142).
  • Return type of vtk2trixi changed to NamedTuple including an optional
    :initial_condition field if create_initial_condition=true is passed (#959).
  • Public system constructors now use keyword arguments for configuration values.
    This affects WeaklyCompressibleSPHSystem, EntropicallyDampedSPHSystem,
    ImplicitIncompressibleSPHSystem, TotalLagrangianSPHSystem, DEMSystem,
    and BoundaryDEMSystem.

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

Features

  • Added a SortingCallback that can be used to sort particles by their spatial location
    to improve performance (#1044).

Important Bugfixes

  • Fixed a bug where DensityDiffusionAntuono could not be used together with open
    boundaries and BoundaryModelDynamicalPressureZhang (#1043).
  • Fixed a bug where no-slip boundary conditions were not applied correctly when not using
    ViscosityAdami (#1089).

Merged pull requests:

Closed issues:

  • How to improve performance (#37)
  • Calculation of the continuity density (#132)
  • Wrapping u_ode and v_ode inside the update_* 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)