Code Monkey home page Code Monkey logo

Comments (8)

christiankral avatar christiankral commented on June 3, 2024

Thank you very much for your message. You are right, my equation in both the Modelica library and the paper "Open Source Library for the Simulation of Wind Power Plants" are wrong.

I fixed the issue in the Modelica library and created the new version v0.9.7 in d36d549.

from windpowerplants.

christiankral avatar christiankral commented on June 3, 2024

For the sake of completeness:

Impact of the performed bug fix: All simulation results of the library are now deviating from previous simulation results.

from windpowerplants.

pablus avatar pablus commented on June 3, 2024

Thank you so much for your attention. I will be using your library for my master thesis, it's great!. For the record, the following are two samples of the error introduced by the typo, calculated by gnu/octave. I don't think it's so bad :)

lambda = 5; beta = 5;
CpHeier(lambda, beta)_100
ans = 14.874
CpHeierTypo(lambda, beta)_100
ans = 12.793
lambda = 8; beta = 0;
CpHeier(lambda, beta)_100
ans = 41.092
CpHeierTypo(lambda, beta)_100
ans = 41.055

from windpowerplants.

tbeu avatar tbeu commented on June 3, 2024

Should it be 0.08beta (as proposed by @pablus) or 0.089beta (as in v0.9.7)?

from windpowerplants.

christiankral avatar christiankral commented on June 3, 2024

The equation for lambda1 is still not correct as

lambda1 := 1 / (1 / (lambda + 0.089*beta) - 0.035 / (beta ^ 3 + 1));

is used instead of

lambda1 := 1 / (1 / (lambda + 0.08*beta) - 0.035 / (beta ^ 3 + 1));

Fix is performed in 724ae6f.

from windpowerplants.

christiankral avatar christiankral commented on June 3, 2024

New release 0.9.8 is created.

from windpowerplants.

tbeu avatar tbeu commented on June 3, 2024

OK. Thanks. I just was wondering which coefficient is the right one ...

from windpowerplants.

christiankral avatar christiankral commented on June 3, 2024

The new equation of v0.9.8 may cause some numerical problems when simulating, e.g., WindPowerPlants.Examples.GenericPlantElectricRealData. Therefore, I added a numeric "offset" in the equation to achieve stable example simulations:

I thus changed
lambda1 := 1 / (1 / (lambda + 0.08*beta) - 0.035 / (beta ^ 3 + 1));
to
lambda1 := 1 / (1 / (lambda + 0.08*beta + Modelica.Constants.eps) - 0.035 / (beta ^ 3 + 1));

This change which does not affect the overall energy and power harvest.

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.