Skip to content

Conversation

@ptrbortolotti
Copy link
Contributor

Purpose

Prep for another minor release (v4.0.2) to support the use of OSO airfoils, where polars are available at multiple Re. The multi-Re polars were already implemented, but the code had not been tested sufficiently well.

Type of change

What types of change is it?
Select the appropriate type(s) that describe this PR

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (non-backwards-compatible fix or feature)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Documentation update
  • Maintenance update
  • Other (please describe)

Testing

Explain the steps needed to test the new code to verify that it does indeed address the issue and produce the expected behavior.

Checklist

Put an x in the boxes that apply.

  • I have run existing tests which pass locally with my changes
  • I have added new tests or examples that prove my fix is effective or that my feature works
  • I have added necessary documentation

Emax = np.zeros(self.n_span)
margin2stall = self.options["opt_options"]["constraints"]["blade"]["stall"]["margin"] * 180.0 / np.pi
Re = np.array(Omega * inputs["r"] * inputs["chord"] * inputs["rho"][0] / inputs["mu"][0])
Re = np.array(Omega / 30. * np.pi * inputs["r"] * inputs["chord"] * inputs["rho"][0] / inputs["mu"][0])
Copy link
Member

Choose a reason for hiding this comment

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

Maybe for something like this we should relabel Omega as Omega_rpm where it gets defined 15 rows up? That way it is more obvious to change to rad/sec here?

@coveralls
Copy link

coveralls commented Nov 24, 2025

Coverage Status

coverage: 79.603% (+0.006%) from 79.597%
when pulling 84f8e4b on b/multi_re
into 59a0b21 on develop.

@gbarter gbarter merged commit 9122120 into develop Nov 25, 2025
24 of 31 checks passed
@gbarter gbarter deleted the b/multi_re branch November 25, 2025 21:13
@ptrbortolotti ptrbortolotti mentioned this pull request Nov 26, 2025
11 tasks
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.

4 participants