Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.
This repository was archived by the owner on May 29, 2026. It is now read-only.

🐛[BUG]: Repeated Geometry Sampled Wrongly #137

Description

@lwh9346

Version

1.4.0

On which installation method(s) does this occur?

No response

Describe the issue

Here is my code:

from modulus.sym.geometry.primitives_3d import Box
...
        microchannel_fluid = Box(
            (
                25 / 2,
                0,
                100,
            ),
            (
                25 / 2 + 25,
                300,
                100 + 200,
            ),
            parameterization=pr,
        ).repeat(
            spacing=50,
            repeat_higher=(30 - 1, 0, 0),
            repeat_lower=(0, 0, 0),
        )

        #debug
        
        from modulus.sym.utils.io.vtk import var_to_polyvtk
        var_to_polyvtk(microchannel_fluid.sample_boundary(10000),"debug")

Then I got boundary point cloud like this:
image
image
Only one box has the right side.
When I increase spacing to 100, it seems OK:
image

Using docker image modulus:24.01

Minimum reproducible example

No response

Relevant log output

No response

Environment details

No response

Other/Misc.

No response

Metadata

Metadata

Labels

? - Needs TriageNeed team to review and classifybugSomething isn't workingexternalIssues/PR filed by people outside the core team

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions