Skip to content

Example file seems to be outdated: complex_shape_3d #1307

Open

Description

@Zitzeronion

The example complex_shape_3d.jl seems to be broken in the current version.

When running:
trixi_include(joinpath(examples_dir(), "preprocessing", "complex_shape_3d.jl"))
this is error message is generated:

ERROR: LoadError: MethodError: no method matching ComplexShape(::TrixiParticles.TriangleMesh{…}; particle_spacing::Float64, density::Float64, boundary_thickness::Float64, create_signed_distance_field::Bool, sample_boundary::Bool, point_in_geometry_algorithm::WindingNumberJacobson{…})
This method does not support all of the given keyword arguments (and may not support any).

Closest candidates are:
  ComplexShape(::Any; particle_spacing, density, pressure, mass, velocity, point_in_geometry_algorithm, store_winding_number, grid_offset, max_nparticles, pad_initial_particle_grid) got unsupported keyword arguments "boundary_thickness", "create_signed_distance_field", "sample_boundary"
   @ TrixiParticles /share/szitz/TrixiParticles.jl/src/setups/complex_shape.jl:44

It does not work either if one comments out boundary_thickness, create_signed_distance_field and sample_boundary.

Activity

  1. LasNikas commented on Sep 2, 2026

    @LasNikas
    Collaborator

    Thanks for catching that. #1308 fixes it. If you need the signed distance field, you can comment it out. If you need the particles packed, you can run the file packing_3d.jl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions