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

location param in SideSetsFromBoundingBoxGenerator doesn't work as described in documentation #16813

Closed
gambka opened this issue Jan 26, 2021 · 1 comment · Fixed by #22265
Closed
Labels
C: Framework P: normal A defect affecting operation with a low possibility of significantly affects. T: defect An anomaly, which is anything that deviates from expectations.

Comments

@gambka
Copy link
Contributor

gambka commented Jan 26, 2021

Bug Description

The location parameter only seems to be applied and used for option 2 (boundary_id_overlap = True) on the SideSetsFromBoundingBoxGenerator documentation: https://mooseframework.inl.gov/source/meshgenerators/SideSetsFromBoundingBoxGenerator.html.

However, the first option states that setting location = OUTSIDE when providing a bounding box, new_boundary_id and old_boundary_id should put all nodes in old_boundary_id outside of the bounding box would be applied to the new_boundary_id. This is not how it works. If boundary_id_overlap = False (the default) it will never use the location parameter. The source code branch for this case even has a comment:

// check if active elements are found in the bounding box

and an error if no elements are found INSIDE the bounding box:

    if (!found_element)
      mooseError("No elements found within the bounding box");

If this is in the intended behavior then the documentation should reflect. If I specify location = OUTSIDE I get the exact same behavior as location = INSIDE.

Steps to Reproduce

Add location = OUTSIDE to

  [./createNewSidesetOne]
    type = SideSetsFromBoundingBoxGenerator
    input = gmg
    boundary_id_old = 'left'
    boundary_id_new = 10
    bottom_left = '-0.1 -0.1 0'
    block_id = 0
    top_right = '0.5 0.5 0'
  []

in the generate_sidesets_bounding_box.i input file in test/tests/meshgenerators and run with the input with --mesh-only and you will get the exact same sidesets as with location = INSIDE (the default)

Impact

This is causing me problems because based on the documentation I expected this to work for a case I'm trying to create and I keep getting this unexpected behavior.

@gambka gambka added the T: defect An anomaly, which is anything that deviates from expectations. label Jan 26, 2021
@aeslaughter aeslaughter added the P: normal A defect affecting operation with a low possibility of significantly affects. label Apr 12, 2021
@GiudGiud
Copy link
Contributor

@socratesgorilla if you are interested in the other SideSetsFromBoundingBoxGenerator issue, you could grab that one at the same time. It s mostly documentation and understanding what s going on with these options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Framework P: normal A defect affecting operation with a low possibility of significantly affects. T: defect An anomaly, which is anything that deviates from expectations.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants