New thickness to chord constraint implementation#280
Open
A-CGray wants to merge 37 commits into
Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #280 +/- ##
==========================================
+ Coverage 69.82% 71.78% +1.95%
==========================================
Files 48 48
Lines 12383 12487 +104
==========================================
+ Hits 8647 8964 +317
+ Misses 3736 3523 -213 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
sabakhshi
approved these changes
Dec 16, 2025
Member
Author
|
@marcomangano do you have some time to give this a look over? If not I can also ask Hannah |
Collaborator
I can take a look by Mon/Tue the latest! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
The current thickness to chord constraint implementations has a few limitations:
This PR adds a completely new implementation of t/c constraints in DVConstraints. The new implementation basically uses two sets of thickness constraints, one to compute the thicknesses and another to compute the chord lengths.
This new implementation has the following advantages:
Technically these changes are backward incompatible because defining the 1D thickness to chord constraints now requires a set of leading and trailing edge coordinates instead of a projection direction and a chord direction. I don't think this is a big issue because these constraints weren't used by many people.
Expected time until merged
Type of change
Testing
I've expanded the existing thickness to chord constraint test to test the new capabilities (2D, section max)
Checklist
ruff checkandruff formatto make sure the Python code adheres to PEP-8 and is consistently formattedfprettifyor C/C++ code withclang-formatas applicable