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

Updates to plotutils.py and the cantilever_wing demo #242

Merged
merged 9 commits into from
Oct 18, 2023

Conversation

boltyboi
Copy link
Contributor

@boltyboi boltyboi commented Jun 29, 2023

Edit: Wind turbine demo has also been changed, but I can't change the title.

Plotutils:
Added code for custom_scaling and z_compression. These are used in the cantilever wing demo to make the simulated wings appear more realistic. They are disabled by default and therefore shouldn't interfere with other demos that use plotutils.
Also added a little more detail describing what certain functions actually mean, and cleaned up the formatting a little bit in those areas.

Cantilever wing demo:
Fixed various typos and added extra clarifications on what parts of the code do. Mainly, I've added the custom_scaling and z_compression as toggleable features under the simulations, alongside a short explanation of what they do. This should hopefully make the simulations less confusing to newcomers if they decide to enable it. Both of these features are disabled by default and must be manually turned on.

Wind turbine demo
Fixed some typos and changed up the grammar in some areas, the results I obtained are inaccurate, however, as when "Steady Simulation" is set to true the results seem to break. I'm not sure how to remove these from the commit though. Sorry about that.

Added code for toggleable "custom_scaling" and "z_compression" which are used on the updated cantilever wing jupyter notebook file.
Various grammar & typo fixes alongside extra clarifications

Added a new "custom_scaling" and "z_compression" parameters:
If custom_scaling is set to True, the aspect ratio of the wing will be modelled realistically, and the z axis will be compressed.
The integer in z_compression determines how compressed the z axis is when custom_scaling is set to true.
Fixed some typos and improved the grammar in some areas.
Some checks failed on the first pull request, hopefully this should fix it? I downloaded the unedited, original cantilever wing demo and manually changed all the text to what it should be, restarted the kernel in the hopes that it would work. If I messed up some code anywhere on the original one, this should get rid of them?
forgot to remove some tags I was using to troubleshoot the custom scaling, should be fine now
@codecov-commenter
Copy link

codecov-commenter commented Jun 30, 2023

Codecov Report

Merging #242 (f4b5472) into main (328558b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #242   +/-   ##
=======================================
  Coverage   67.20%   67.20%           
=======================================
  Files         156      156           
  Lines       25923    25923           
=======================================
  Hits        17422    17422           
  Misses       8501     8501           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

I've tried the same thing that I did on the cantilevered wing demo to try and fix the unsuccessful checks on the wind turbine - hopefully it works.
Copy link
Collaborator

@rafapalacios rafapalacios left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes!

@kccwing
Copy link
Collaborator

kccwing commented Oct 18, 2023

Merging this - thanks Ozan @boltyboi!

@kccwing kccwing merged commit 9ae084b into ImperialCollegeLondon:main Oct 18, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants