-
Notifications
You must be signed in to change notification settings - Fork 63
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
STL example code #126
STL example code #126
Conversation
…oduce a plot of a geometry with an stl file. The inputs file also has been updated accordingly.
ExampleCodes/EB/STLtest/inputs
Outdated
|
||
eb2.stl_scale = 1 # default is 1 | ||
eb2.stl_center = 0 0 0 # default is (0,0,0) | ||
eb2.stl_reverse_normal = 1 # default is 0. use "1" to see the volume of the stl object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is in amrex-tutorials and this parameter stl_reverse_normal
is rarely used, we might want to remove this. To "see" the volume of the stl object, we could make a new MultiFab in the code to store 1-volfrac
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I edited the main file to draw the stl object. However, I suggest keeping the eb2.stl_reverse_normal option in the input file to inform users that this parameter exists. We have used this in some PeleC test cases.
…the object needs to be fixed
…lot the stl object.
I noticed that the example code for the STL test main file needed some edits, as EB2::Build has been updated. The current example inputs file is not compatible with the latest AMReX codes.