First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Hi toderesa,
You can select specific items in the array with something like "realar1=100.0." Essentially you just put the name of the array followed by the (1-indexed) number of the parameter you want to modify from its default.
In your case, something like:
basekV = 500.0
ierr = psspy.bus_data_3(ibus, realar1=basekV)
Note that if you are modifying the 12 character name which is listed after the REALAR in the argument list, you will need to specify its argument name as well:
ierr = psspy.bus_data_3(ibus, realar1=basekV, name='MY NAME')
Hope that helps. Let me know if you have any issues; I didn't test any of this code.
2 | No.2 Revision |
Hi toderesa,
You can select specific items in the array with something like "realar1=100.0." Essentially you just put the name of the array followed by the (1-indexed) number of the parameter you want to modify from its default.
In your case, something like:
basekV = 500.0
ierr = psspy.bus_data_3(ibus, realar1=basekV)
Note that if you are modifying the 12 character name which is listed after the REALAR in the argument list, you will need to specify its argument name as well:
ierr = psspy.bus_data_3(ibus, realar1=basekV, name='MY NAME')
The following code will not work, since if you specify the name of one argument, you need to specify the name of any following arguments:
ierr = psspy.bus_data_3(ibus, realar1=basekV, 'MY NAME')
Hope that helps. Let me know if you have any issues; I didn't test any of this code.