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

Fix for non-planar lumped ports #94

Merged
merged 5 commits into from
Aug 30, 2023
Merged

Conversation

hughcars
Copy link
Collaborator

@hughcars hughcars commented Aug 29, 2023

This PR fixes an issue where non-planar lumped ports were being errored out incorrectly. The fix involves fixing the bounding box calculation to better handle non-planar two dimensional objects embedded in three dimensional space, and only performing the quadrilateral area check against the integrated area if a planar port is discovered. An extra "GetProjectedLength" helper function is also included, at present it is only used in a debug assertion.

Issue #, if available:
#89

@hughcars hughcars force-pushed the hughcars/lumped-port-fix branch 4 times, most recently from 0a797ee to b8df173 Compare August 29, 2023 19:19
@hughcars hughcars marked this pull request as ready for review August 29, 2023 19:19
…edded in three dimensions

- Additionally introduce GetDirectionalExtent which computes the maximum separation between points within
a geometric object, aligned with a given direction.
Copy link
Contributor

@sebastiangrimberg sebastiangrimberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few minor comments. Thanks for the fix @hughcars

palace/fem/lumpedelement.hpp Outdated Show resolved Hide resolved
palace/fem/lumpedelement.hpp Outdated Show resolved Hide resolved
palace/fem/lumpedelement.hpp Outdated Show resolved Hide resolved
palace/utils/geodata.cpp Outdated Show resolved Hide resolved
palace/utils/geodata.cpp Outdated Show resolved Hide resolved
@sebastiangrimberg sebastiangrimberg added the bug Something isn't working label Aug 30, 2023
@sebastiangrimberg sebastiangrimberg merged commit 45c384e into main Aug 30, 2023
17 checks passed
@sebastiangrimberg sebastiangrimberg deleted the hughcars/lumped-port-fix branch August 30, 2023 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants