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 bug in wing cell creation #931

Merged

Conversation

joergbrech
Copy link
Contributor

Description

This PR fixes #930.

The code for creating wing cells based on contour coordinates contained a small bug in mapping u parameters of the wing faces to CPACS contour coordinates:

The internal u parameters go from lower trailing edge over the leading edge to upper trailing edge. The CPACS contour coordinates always go from leading edge to trailing edge. The differentiation between upper and lower side is clear from the CPACS hierarchy.

This means that for the lower side, the contour coordinates and internal u coordinates have a reversed orientation, while for the upper side they do not. This was not properly taken into account before.

How Has This Been Tested?

A new test case has been added specifically for this issue.

Screenshots, that help to understand the changes(if applicable):

See the issue description #930.

Checklist:

  • A test for the new functionality was added.
  • All tests run without failure.
  • The new code complies with the TiGL style guide.
  • [ ] New classes have been added to the Python interface.
  • [ ] API changes were documented properly in tigl.h.

@joergbrech joergbrech marked this pull request as draft October 24, 2022 11:08
@joergbrech joergbrech marked this pull request as ready for review October 24, 2022 11:48
@codecov-commenter
Copy link

codecov-commenter commented Oct 24, 2022

Codecov Report

Merging #931 (83a94f1) into master (a516521) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #931      +/-   ##
==========================================
+ Coverage   69.52%   69.56%   +0.04%     
==========================================
  Files         298      298              
  Lines       24974    25014      +40     
==========================================
+ Hits        17363    17401      +38     
- Misses       7611     7613       +2     
Impacted Files Coverage Δ
src/wing/CCPACSWingCell.cpp 78.22% <100.00%> (+0.04%) ⬆️
src/api/tigl.cpp 55.12% <0.00%> (+0.27%) ⬆️
src/cpacs_other/CTiglUIDManager.cpp 83.48% <0.00%> (+0.45%) ⬆️
src/CCPACSEtaIsoLine.cpp 67.56% <0.00%> (+8.10%) ⬆️

@AntonReiswich
Copy link
Contributor

If you agree with the two suggestions, I will approve this PR from my side. Thanks for finding the bug!

tests/integrationtests/testBug930.cpp Outdated Show resolved Hide resolved
tests/integrationtests/testBug930.cpp Outdated Show resolved Hide resolved
@joergbrech joergbrech merged commit dc973ee into master Nov 7, 2022
@joergbrech joergbrech deleted the 930-wrong-wing-cell-generation-of-the-lower-shell branch November 7, 2022 19:56
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.

Wrong wing cell generation of the lower shell
3 participants