Skip to content

add a Genetic algorithm optimization of wing camber distribution to m…#56

Merged
joanibal merged 1 commit into
joanibal:mainfrom
denriquezfirestorm:main
Jan 13, 2026
Merged

add a Genetic algorithm optimization of wing camber distribution to m…#56
joanibal merged 1 commit into
joanibal:mainfrom
denriquezfirestorm:main

Conversation

@denriquezfirestorm

Copy link
Copy Markdown
Contributor

add a Genetic algorithm optimization of wing camber distribution (assumed to be quadratic) to match target lift distribution. Utilizes asec and csec geometry parameters to change the camber distribution

@joanibal

joanibal commented Jan 7, 2026

Copy link
Copy Markdown
Owner
image I was able to run your script locally.

I appreciate this example! I have actually been wanting to add something with camber line optimization for a while, so this is well timed.

@joanibal

joanibal commented Jan 7, 2026

Copy link
Copy Markdown
Owner

One thing that gives me pause is this warning.

/Users/janibal/repos/OptVL/examples/run_opt_camber_ga.py:439: UserWarning: OptVL WARNING - Updating section geometry data directly is not recommened!
 OptVL will not verify that the camber line is consistent with the given coordiantes.

As stated, the section data does not get updated so things like plot_cp would not have the correct OML.

Give me a few days to think about if this can be remedied

@joanibal

Copy link
Copy Markdown
Owner

I want to make it easier to set the camber line and have that modification represented when someone calls write_geom_file. However, that will be a larger feature.

I'm going to merge this as is for now, but I'll probably update it later when I improve camber line setting.

@joanibal

Copy link
Copy Markdown
Owner

The tests need a fix that I just added to main related to the CI.
Normally, I would modify the PR branch, but given that it is your main, I'm not going to do that.

I'm just going to merge this in as it does not effect the package source code at all.

@joanibal joanibal merged commit a2eccab into joanibal:main Jan 13, 2026
11 of 85 checks passed
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.

2 participants