wind simulation with Windsim and TurbSim
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dear all, I would like to use the same seed in matlab (rng) and in turbSim (NREL Code) to simulate the same time Wind signal and make a comparison.
for windsim, I use: rng(0)
for Turbsim I use seed=0.
But It does not give the same result.
Many thanks in advance
Nicolas
5 comentarios
Nicolas Delepine
el 15 de En. de 2024
Thanks Etienne for your comment. I am refering to WindSim function on Matlab file exchange.
please find enclosed a comparison of the temporal wind velocity variation at hub height from the 2 codes: to obtain the same signal in both cases, the only possible solution would be to recomile TurbSim and using the same vector of the seed value from windSim ? Or does there exist an other solution, with a different code ?
Many thanks in advance
Nicolas
E. Cheynet
el 16 de En. de 2024
Hi Nicolas,
The random number generators used in Turbsim are described here: https://www.nrel.gov/docs/fy06osti/39797.pdf
In matlab, there are different possible algorithms: "twister" | "simdTwister" | "combRecursive" | "multFibonacci" | "philox" | "threefry"
So it could be tricky to have the same sequences of random numbers between the two codes, especially since the sequences of random numbers are different on each "nodes" where velocity data are simulated
Best regards,
Etienne
Respuestas (0)
Ver también
Categorías
Más información sobre Matrices and Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!