Giter Club home page Giter Club logo

Comments (10)

andrewning avatar andrewning commented on August 15, 2024

We have a python version. One is in this repo its main purpose was to connect to openmdao. There is also a regular python version from several years ago: https://github.com/WISDEM/CCBlade Doesn't have all the latest, but the new stuff might not be needed depending on what you are looking for.

from ccblade.jl.

KikeM avatar KikeM commented on August 15, 2024

I actually need to analyse a propeller, not a turbine. A basic analysis with Prandtl tip loss to get some performance curves.

You reckon it would be easy to change the adequate signs?

I have had a look at the Python library you referenced and it seems large.

from ccblade.jl.

andrewning avatar andrewning commented on August 15, 2024

Yes, it could work for propellers. Back then I hand coded the derivative propagation, which make it really long.

You could also call julia from Python. https://github.com/JuliaPy/pyjulia That would probably be the best route and give you the latest version from this repo.

from ccblade.jl.

KikeM avatar KikeM commented on August 15, 2024

Cool. I will have a look, it could definitively save me some work.

Where should I look in the code to change the equations to solve a propeller?

Thx!

from ccblade.jl.

andrewning avatar andrewning commented on August 15, 2024

The code in this repo doesn't requiring changing anything. If you want to use the old Python one then look at the paper. Shouldn't require any internal code change, but how you parse inputs/outputs. Note that the old one requires a fortran compiler also. Personally, I'd just recommend using this latest version.

from ccblade.jl.

KikeM avatar KikeM commented on August 15, 2024

I am happy to use the latest version, I will deal with the overhead of calling julia from Python.

Regarding the equations, I must be missing something.

If a turbine removes work from the fluid, and a propeller inputs work into it, I would expect there to be a sign change somewhere.

But you seem to indicate that change will take place in the inputs, which also makes sense. But specifically, which inputs would I have "swap around" in sign? (if any sign change is required on the first place).

from ccblade.jl.

andrewning avatar andrewning commented on August 15, 2024

There isn't any overhead (at least not really). Similar to using almost anything in numpy/scipy (which is generally calling C or fortran).

Yes there are sign changes. Take a look at the paper.

from ccblade.jl.

KikeM avatar KikeM commented on August 15, 2024

Oh, I meant the overhead to learn how to use the interface, install julia in a reproducible environment and then your package. For what I am going to do, I don't need calculation performance.

I'll have a look at the paper and get back to you if I can't figure it out.

from ccblade.jl.

andrewning avatar andrewning commented on August 15, 2024

Sounds good. If you are using the version in the repo then you don't need any sign changes and don't really need to look at the paper. This code was actually written from a propeller point of view, but either way there is a flag that allows you to change between turbine and propeller input/output conventions. Doesn't require the user to mess with signs. See this in the documentation.

from ccblade.jl.

andrewning avatar andrewning commented on August 15, 2024

I should add that a new version was pushed on Friday but it hasn’t been tagged yet so to get it you’d need to do:
] add CCBlade#master
Instead of just add CCBlade

from ccblade.jl.

Related Issues (20)

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.