How to use a lookup table to feed parameters to a dynamic load ? Or some other way to easily adjust load PQ values? (simulink - simpower)
14 次查看(过去 30 天)
显示 更早的评论
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.
2 个评论
Behrouz Azimian
2018-5-13
Hi Radu,
I am having the same problem. I was wondering if you figured this out. Thanks.
kashish shah
2018-8-29
Hi all, For external control of dynamic load block, as it mentions requires 2 vectors signals of P & Q. So use two lookup table blocks with P & Q columns, respectively. Combine both using mux and feed to dynamic load. It'll work as you can verify using scope on each signals & comparing to plotting graph in matlab or ms-excel.
Cheers!
采纳的回答
Fangjun Jiang
2011-6-28
Do this in MATLAB command window:
t=1:24;
P_Value=10+sin(t/4);
Q_Value=10+cos(t/4);
Drag one "Lookup Table" block, double click it, put "t" in "Vector of input values" and put "P_Value" in "Table data". This will give you the simulated P if you feed the input with the hour of the day (a number between 1 to 24). Of course, you can change the P_Value to reflect your true daily curve.
Drag another "Lookup Table" to generate the Q for you.
更多回答(2 个)
Fa Fa
2012-6-25
Hi All, i like to create lookup tables of 511 local binary pattern, also from 10000000 bis 111111110, can somebody help, Thanks
0 个评论
cr28
2012-8-13
Hi, I'm doing something similar to what Radu did/tried to do ie external control of PQ using the demand data I have over 24 hours.
Using Fangjun's method (but unlike the formula used)I created workspace variables for time(in sec),P and Q for the 24 hours duration with a resolution of 1 hour. I put them in 2 separate lookup tables. I also used a mux to combine them into a single vector and wired it to the PQ controlled i/p.
The i/p to the 2 lookup tables is the same clock.
What i'm not sure about is if the lookup table is using the appropriate value (either by direct lookup or interpolation/extrapolation) based on the clock time. Note: i'm doing the simulation in phasor mode as this is much quicker than the time mode.
Any opinions???
2 个评论
K E
2012-8-13
You will get more answers if you ask this as a new question instead of posting to an answered older question. Just link to this one.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Electromechanical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!