- Posts: 3
Sensitivity analysis in PySAM
- ALMUDENA MARINA COSTES ALVARGONZÁLEZ
- Topic Author
Less
More
05 Jun 2025 04:56 #14090
by ALMUDENA MARINA COSTES ALVARGONZÁLEZ
Sensitivity analysis in PySAM was created by ALMUDENA MARINA COSTES ALVARGONZÁLEZ
Good morning NREL team,
I am trying to make a sensitivity study with different input values in PySAM of an HybridSystem. I was trying to variate the wind power capacity and the operation costs in my JSON file and then simulate the PySAM code but the results do not change. I have also tried to do it without modifing the JSON file, and to define in the code multiple battery size of capacity and then repeat the simulation of the hybrid suystem for all the cases through the definition a function in the PySAM.
I have attached two examples that I have done.
¿Is it not possible to do this kind of study with Hybrid Systems? ¿Should I use some package for it?
Thanks for your support,
Almudena
I am trying to make a sensitivity study with different input values in PySAM of an HybridSystem. I was trying to variate the wind power capacity and the operation costs in my JSON file and then simulate the PySAM code but the results do not change. I have also tried to do it without modifing the JSON file, and to define in the code multiple battery size of capacity and then repeat the simulation of the hybrid suystem for all the cases through the definition a function in the PySAM.
I have attached two examples that I have done.
¿Is it not possible to do this kind of study with Hybrid Systems? ¿Should I use some package for it?
Thanks for your support,
Almudena
Attachments:
Please Log in or Create an account to join the conversation.
- Paul Gilman
Less
More
- Posts: 5568
05 Jun 2025 10:23 - 05 Jun 2025 10:25 #14091
by Paul Gilman
Replied by Paul Gilman on topic Sensitivity analysis in PySAM
Hi Almudena,
To change the wind farm capacity for the Windpower module, you should change the number of turbines in the system. The following variables determine the wind farm capacity:
For your example, to change the wind farm capacity from 3600 MW to 4200 MW, you would need to add two more turbines.
Wind farm layout for 32 MW (12 turbines):
Wind farm layout for 42 MW (14 turbines):
Best regards,
Paul.
To change the wind farm capacity for the Windpower module, you should change the number of turbines in the system. The following variables determine the wind farm capacity:
Code:
wind_farm_xCoordinates
wind_farm_yCoordinates
system_capacity
For your example, to change the wind farm capacity from 3600 MW to 4200 MW, you would need to add two more turbines.
Wind farm layout for 32 MW (12 turbines):
Code:
"windpower": {
[...]
"wind_farm_yCoordinates" : [ 0, 487.99581605209067, 975.99163210418135, 1463.987448156272, 1951.9832642083627, 2439.9790802604534, 845.24320968325685, 1333.2390257353475, 1821.2348417874382, 2309.2306578395287, 2797.2264738916197, 3285.2222899437102 ],
"wind_farm_xCoordinates" : [ 0, 845.24320968325685, 1690.4864193665137, 2535.7296290497702, 3380.9728387330274, 4226.2160484162841, -487.99581605209067, 357.24739363116618, 1202.490603314423, 2047.7338129976795, 2892.9770226809369, 3738.2202323641936 ],
"system_capacity" : 36000,
[...]
}
Wind farm layout for 42 MW (14 turbines):
Code:
"windpower": {
[...]
"wind_farm_xCoordinates" : [ 0, 845.24320968325685, 1690.4864193665137, 2535.7296290497702, 3380.9728387330274, 4226.2160484162841, 5071.4592580995404, -487.99581605209067, 357.24739363116618, 1202.490603314423, 2047.7338129976795, 2892.9770226809369, 3738.2202323641936, 4583.4634420474495 ],
"wind_farm_yCoordinates" : [ 0, 487.99581605209067, 975.99163210418135, 1463.987448156272, 1951.9832642083627, 2439.9790802604534, 2927.9748963125439, 845.24320968325685, 1333.2390257353475, 1821.2348417874382, 2309.2306578395287, 2797.2264738916197, 3285.2222899437102, 3773.2181059958007 ],
"system_capacity" : 42000,
[...]
}
Best regards,
Paul.
Last edit: 05 Jun 2025 10:25 by Paul Gilman.
Please Log in or Create an account to join the conversation.
Moderators: Paul Gilman