-
Notifications
You must be signed in to change notification settings - Fork 7
Enhance solidmodel boundary methods #56
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
Conversation
simlapointe
commented
May 22, 2025
- Enhance the SolidModel get_boundary method to optionally return only boundaries perpendicular to specified directions and only at the min/max position along the specified direction. This is useful if the user wishes to apply different boundary conditions on different exterior boundary faces.
- Introduce the set_periodic method to make the mesh on the specified groups periodic. Currently only supports 2D groups representing parallel axis-aligned surfaces (i.e. can only apply periodicity in the X, Y, or Z direction).
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
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.
Looks good, just a couple minor comments!
src/solidmodels/postrender.jl
Outdated
end | ||
|
||
""" | ||
set_periodic!(group1::AbstractPhyiscalGroup, group2::AbstractPhyiscalGroup; dim=2) |
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.
"Phyiscal" typo x2
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.
Fixed.
src/solidmodels/postrender.jl
Outdated
end | ||
end | ||
|
||
function get_physical_group_bounding_box(dim, tags) |
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.
Just checking, tags
should be entity tags, not physical group tags, right? I would just call it get_bounding_box
.
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.
Correct, they should be entity tags. I renamed the function as you suggested.
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.
Just remembered there's also a function SolidModels.bounds3d
with a slightly different interface, oops. There's a docstring but it's not in the HTML docs yet (adding it as part of #58).
d7573a1
to
2f4d74f
Compare
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.
LGTM