Model Controls genDispatch - acep-uaf/MiGRIDS GitHub Wiki

Introduction

The gesDispatch modules are used to dispatch the diesel generators (gen) in a powerhouse (ph). If a genDispatch module is created, then it needs to follow the description below.

Input Variables

Input variables depend on which genDispatch module is being used. The input variables will be put into the projectGenDispatchInputs XML file corresponding to that particular genDispatch. For example, the input variables for genDispatch0 will be stored in projectGenDispatch0Inputs. Note that there are no inputs for genDispatch0.

Functions

runDispatch

Input variables

ph: a reference to the instance of the powerhouse object whose diesel generator need to be dispatched.

newGenP: The desired new real power setpoint.

newGenQ: This is not implemented yet. It is the desired new reactive power setpoint.

Operation

genDispatch must take newGenP and split it between the individual gen in the ph. The maximum power available (gen.genPAvail) should not be exceeded. The new powers should be assigned to the gen (gen.genP). Even if the gen are not able to supply all the requested power newGenP, it should still be assigned. This will be tracked as overloading operation in the ph. Post processing of the data will determine if this was a blackout or brownout.

Modules

The genDispatch modules included in this software include: