GridOPTICS / GridPACK

https://www.gridpack.org/
44 stars 20 forks source link

Dynamics simulation: Output with multiple generators at the same bus #142

Open abhyshr opened 1 year ago

abhyshr commented 1 year ago

If the input file has output asked for multiple generators which are located at the same bus then output of only generator is printed out. For example, if the input deck has following:

<generator>
   <busID>31</busID>
   <generatorID> C </generatorID>
</generator>

<generator>
   <busID>31</busID>
   <generatorID> G </generatorID>
</generator>

Then only generator with ID C has its values saved to the output.

bjpalmer commented 1 year ago

I'm going to guess that you need to put a loop over generators in the serialWrite function.

bjpalmer commented 1 year ago

Just looked at code and it already has a loop over generators, so clearly not that. Do you have a small test case that illustrates the problem?

bjpalmer commented 1 year ago

I think we will need to debug this specific case. I just cooked up a simple test using the 9b3g data set and mulltiple generators on the same bus seems to work fine.