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

Vis multicuts #4146

Open
wants to merge 4 commits into
base: development
Choose a base branch
from
Open

Conversation

ejyoo921
Copy link

Summary

Visualization of multi-cut locations.

  1. In the input file, you can add eb2.plt_multiple_cuts = "true" to produce plot files to see the multi-cut cells.
    -> The description was added to the RuntimeParameters.rst file.
  • Note: If "eb2.plt_multiple_cuts" is true, we abort the code after creating the plot files. This is in the AMReX_EB2_Level.H.
  1. For a 3D case, you would get up to three plot files: plt.multicut.x, plt.multicut.y, and plt.multicut.z.

This depends on which face has multi-cut issues.
-> See AMReX_EB2_3D_C.cpp

  1. For a 2D case, the output name is plt.multicut.
    -> See AMReX_EB2_2D_C.cpp

  2. For any dimension, a cell value of 2 indicates regular, 0 means covered, and values greater than 2 indicate multi-cut cells.

Additional background

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

1) In the input file, you can add: eb2.plt_multiple_cuts = "true" to produce plot files to see the multicut cells.
2) For a 3D case, you would get up to three plot files: plt.multicut.x, plt.multicut.y, and plt.multicut.z.
This depends on which face has multicut issues.
-> See AMReX_EB2_3D_C.cpp
3) For a 2D case, you get plt.multicut
-> See AMReX_EB2_2D_C.cpp
4) For any dimension, the cell value of 2 indicates regular, 0 (or very tiny) is covered, and some cell values > 2 means multicut cells.
5) If "plt_multiple_cuts" is true, we abort the code after creating the plot files; This is in the AMReX_EB2_Level.H.
@WeiqunZhang
Copy link
Member

Plotfile is for cell-centered data only. But the data you want to save are face data.

@ejyoo921
Copy link
Author

Plotfile is for cell-centered data only. But the data you want to save are face data.

I can change them into cell-centered data. Would that be okay?

@ejyoo921
Copy link
Author

I changed the face-centered cells to cell-centered cells for visualizations. It cannot precisely show which face has the multi-cut issue; however, the name of the plot files shows what direction of faces has a problem. For example, "plt. multi cut.x" would contain multi-cut cells having issues on x-direction faces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants