Coder Social home page Coder Social logo

stadsc / pywind Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pingswept/pywind

0.0 1.0 0.0 100 KB

Pywind is a collection of scripts for generating 3D CAD models of airfoils to be used in the design of wind turbine blades.

Home Page: pywind.org

License: GNU General Public License v3.0

Python 100.00%

pywind's Introduction

Pywind is a collection of scripts for generating 3D CAD models of airfoils to be used in the design of wind turbine blades.

At present, it is able to generate a part consisting of a series of arbitrarily transformed splines in Solidworks from the combination of a .CSV file and an airfoil profile in Selig format. The code is still very brittle and poorly tested, but the basic functionality is there.

Rough steps for use, until either forever or I have time to write more documentation:

  1. Realize that this code is far from mature. The Solidworks macro, in particular, is sketchy.

  2. Run the Python script called pyairfoil.py in the same directory as testfoil.csv and sd6060.dat. (Change the filenames to whatever you want, but your new names and pyairfoil.py must be consistent.) It will output a file called airfoil.txt.

  3. Check that airfoil.txt has 61 * 6 = 366 lines of nonnegative coordinates, followed by a single blank line. Total filesize should be 8.9 kB. Move airfoil.txt to C:\airfoil.txt on the Windows machine you will use to run Solidworks.

  4. Create a new part in Solidworks.

  5. Run the macro CreateAirfoilPart.swp.

  6. If airfoil.txt is parsed successfully, you will see a Solidworks alert to that end.

  7. Hope that the macro doesn't crash. If it does, click "Debug" and see where. Send Brandon an error report.

Developer contact info

Brandon Stafford

brandon at pingswept org

pywind's People

Contributors

pingswept avatar

Watchers

James Cloos avatar

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.