Code Monkey home page Code Monkey logo

Comments (16)

tbeu avatar tbeu commented on June 3, 2024

cp

from windpowerplants.

tbeu avatar tbeu commented on June 3, 2024

Can you reproduce it?

from windpowerplants.

christiankral avatar christiankral commented on June 3, 2024

I see there is a problem; I am working on a solution...

from windpowerplants.

tbeu avatar tbeu commented on June 3, 2024

OK, thanks for the feedback.

from windpowerplants.

christiankral avatar christiankral commented on June 3, 2024

I suppose the problem is solved in master. It took a couple investigations and changes in the library to make everything working. Please check whether the simulations now work fine with SimulationX.

from windpowerplants.

tbeu avatar tbeu commented on June 3, 2024

It still gives a floating-point overflow when computing cp.

turbineData_c1=0.50000000000000000;
turbineData_c2=116.00000000000000;
turbineData_c3=0.40000000000000002;
turbineData_c4=5.0000000000000000;
turbineData_c5=21.000000000000000;
turbineData_c6=0.00000000000000000;
beta=0.00000000000000000;
lambda=-0.10171009365613741;
lambda1=1/(1/(0.088999999999999996+lambda)- 0.035000000000000003/(1+beta*beta*beta)); /* -0.012704442043449671 */
cp=turbineData_c6*lambda1+turbineData_c1*(turbineData_c2/lambda1- (turbineData_c3*beta+turbineData_c4))*exp( -(turbineData_c5/lambda1));

The exponent -(turbineData_c5/lambda1) is about 1653 here which results in magnitude of 10E+717 for the natural power. Such a number cannot be represented by IEEE double precision floating-point arithmetic.

from windpowerplants.

tbeu avatar tbeu commented on June 3, 2024

Any news on this issue?

from windpowerplants.

christiankral avatar christiankral commented on June 3, 2024

I am sorry, but I have absolutely no time to work on this issue at the moment. However, I am very much interested in overcoming the problems. I somehow guess that I will have time by mid next week to work on this issue again.

from windpowerplants.

christiankral avatar christiankral commented on June 3, 2024

I restricted lambda to positive values which solves the issue on my opinion. This is also the correct physical solution since cp should not become negative at all.

I checked in the solution in master. Please check and drop me a note.

from windpowerplants.

tbeu avatar tbeu commented on June 3, 2024

Cannot find the corresponding commit.

from windpowerplants.

christiankral avatar christiankral commented on June 3, 2024

Sorry, I did not commit properly. The changes should now be in.

from windpowerplants.

tbeu avatar tbeu commented on June 3, 2024

Should it better be this way?

Real lambdaLimited(min=0) "Positive tip speed ratio";
/* ... */
lambdaLimited = if noEvent(lambda<0) then 0 else lambda;

from windpowerplants.

christiankral avatar christiankral commented on June 3, 2024

I incorporated your suggestion in master.

from windpowerplants.

tbeu avatar tbeu commented on June 3, 2024

Thanks. Can hopefully test it tomorrow.

from windpowerplants.

tbeu avatar tbeu commented on June 3, 2024

Fix confirmed.

@AlexMagdanz FYI.

from windpowerplants.

christiankral avatar christiankral commented on June 3, 2024

Created version v0.9.5 incorporating this fix.

from windpowerplants.

Related Issues (16)

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.