Comments (16)
from windpowerplants.
Can you reproduce it?
from windpowerplants.
I see there is a problem; I am working on a solution...
from windpowerplants.
OK, thanks for the feedback.
from windpowerplants.
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.
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.
Any news on this issue?
from windpowerplants.
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.
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.
Cannot find the corresponding commit.
from windpowerplants.
Sorry, I did not commit properly. The changes should now be in.
from windpowerplants.
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.
I incorporated your suggestion in master.
from windpowerplants.
Thanks. Can hopefully test it tomorrow.
from windpowerplants.
Fix confirmed.
@AlexMagdanz FYI.
from windpowerplants.
Created version v0.9.5 incorporating this fix.
from windpowerplants.
Related Issues (16)
- use of non-standard "NumberOfIntervals" annotation HOT 2
- Update Eberhart2015 reference HOT 3
- Warnings about missing initial assignments HOT 9
- cpVal function: Possible typo HOT 8
- HTML conventions are not followed for h3 HOT 1
- Start time behavior of TriangleAndStep is wrong
- Change license to BSD 3 HOT 1
- Fix version wrong annotation version number and data
- Add unit of energy to output of power integrator in examples
- Enable of dialog in WindPowerPlants.WindSources.RealData is wrong
- Switch to MSL 3.2.3
- Switch to MSL 3.2.3 HOT 1
- Use full qualified class names in all examples to simlify duplication HOT 1
- Fully set initial conditions of simulation examples
- Change lambda1 to lambda_i in function WindPowerPlants.Functions.cpVal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windpowerplants.