Giter Site home page Giter Site logo

nathanrooy / aerodynamic-shape-optimization Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 8.0 111 KB

Python scripts related to aerodynamic analysis and shape optimization

License: GNU General Public License v3.0

Python 6.70% Jupyter Notebook 93.30%
aerodynamics airfoil bezier-curve optimization shape-optimization parametric-airfoil xfoil python

aerodynamic-shape-optimization's People

Contributors

nathanrooy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

aerodynamic-shape-optimization's Issues

Error during the optimisation

While running opt = sa.minimize(cost_function, res.x, opt_mode = 'continuous', step_max=500, t_max=2.5, t_min=0, damping=0.01). The code does not estimate the cl/cd value for the new airfoil. The following are the output:

cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235
cl/cd=0.3166 -> cost_func=3158.8235

And on the terminal the following error raises:

Fortran runtime error: End of file

'rm' is not recognized as an internal or external command, operable program or batch file.

Is it due to the Xfoil or am I doing something wrong here?

Please clarify.

Error while running the notebook

The following error appears while running the cell contains minimize function res = minimize(shape_match, initial_airfoil, method='Powell', tol=1e-10, options={'disp': True, 'maxiter':10000})

Input In [19], in shape_match(control_pts, xpts, ta)
3 def shape_match(control_pts, xpts=xpts, ta=target_airfoil):
----> 4 ca = np.array(bezier_airfoil(xpts, munge_ctlpts(control_pts, 3, 3)))
5 try:
6 return 1000 * np.sum(abs(ca[:,0] - ta[:,0]) + abs(ca[:,1] - ta[:,1]))

NameError: name 'bezier_airfoil' is not defined

Please clarify. Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.