Hi, I'm a student working on a project for a small microgrid, a powergrid designed to work separately from the national powergrid, in Simulink.
Now, I want to simulate the behaviour of this microgrid by utilizing a dynamic load and I want the active power (P) and reactive power (Q) needs of this one dynamic load to be selected from a lookup table.
Namely I want to put P and Q values in the lookup table and the dynamic load will adjust its power needs according to real time or some other selection parameter - simulating the variation of power consumption throughout the day (from hour to hour).
Basically, I want to put in the lookup table 24 values (a value for each hour in the day) for active power and another column with 24 values for reactive power and have the load, according to the time of day the simulation is run, select its corresponding power consumption values from the lookup table.
Or have the option to input a time of day (from hour 1 to hour 24) and have the load, again, select its own power requirements.
I've tried using a Direct Lookup Table and a three-phase dynamic load, because I can use the option "external control of PQ" on that type of load, but I keep getting input/output size parameter mismatches. I think the settings on the table should be:
2 table dimensions Inputs select: element
I've tried giving the lookup table the values in two columns, but I'm not sure what kind of inputs the lookup table should have or exactly in what format to input the data (matrix, or separate vectors?), should the input be a clock with decimation of 24 (24 samples - 24 elements) or a digital clock and use something else to check what time it is on the computer and select the appropriate value?
It would also be good just to use the table to give the load a single set of PQ values and use that; I just need a way to adjust the load's PQ parameters relatively easily, without the dynamic load utilizing its built-in power requirement adjustment formulas.
I could really use your help, this project is a precursor to a pilot project for a microgrid, a grid that could function within the larger national powergrid with its own power production capability (natural gas engines and a few wind turbines) at a university.
Please help if you can.