Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[BUG]: Repeated Geometry Sampled Wrongly #137

Open
lwh9346 opened this issue Mar 18, 2024 · 0 comments
Open

🐛[BUG]: Repeated Geometry Sampled Wrongly #137

lwh9346 opened this issue Mar 18, 2024 · 0 comments
Labels
? - Needs Triage Need team to review and classify bug Something isn't working external Issues/PR filed by people outside the core team

Comments

@lwh9346
Copy link

lwh9346 commented Mar 18, 2024

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

@lwh9346 lwh9346 added ? - Needs Triage Need team to review and classify bug Something isn't working labels Mar 18, 2024
@prem-krishnan prem-krishnan added the external Issues/PR filed by people outside the core team label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
? - Needs Triage Need team to review and classify bug Something isn't working external Issues/PR filed by people outside the core team
Projects
None yet
Development

No branches or pull requests

2 participants