Based on the generating set primary frequency regulation analytic system of matlab/simulink
Technical field
The present invention relates to a kind of system that generating set primary frequency regulation situation is analyzed, especially relate to a kind of generating set primary frequency regulation analytic system based on simulation software MATLAB/SIMULINK.
Background technology
Power plant's assistant service refers to the safe and stable operation for safeguarding electric system, ensure the quality of power supply, except normal electrical energy production, conveying, use, the service provided by electricity power enterprise, comprising: primary frequency modulation, Automatic Generation Control (AGC), peak regulation, Reactive-power control, for subsequent use, black starting-up etc.
Wherein, primary frequency modulation refers to when power system frequency departs from target frequency, genset is by the automatic reaction of governing system, adjustment is meritorious exerts oneself to reduce the service that frequency departure provides, belong to the basic assistant service that genset must provide, the corresponding requirements not meeting power monitoring department can by power scheduling department appraisal.
For improving power system safety and stability operation level, assistant service in February, 2010 assessment mode is in full swing in south electric network region within the jurisdiction.Since enforcement, primary frequency modulation examination proportion in assistant service examination is higher, and such as Nian Zhitiao power plant of Guangdong Province 2011 primary frequency modulation cost of verification and evaluation is 2921.4246 ten thousand yuan, accounts for 62.7% of whole assistant service cost of verification and evaluation.
The standard of power scheduling department appraisal primary frequency modulation is that the number percent of the device electricity/theoretical action device electricity of primary frequency modulation actual act is less than 50%.The actual integration start time is that frequency is crossed Dead Time and added time delay 6 seconds, and the integration end time is the time that frequency gets back to dead band, and no longer than 1 minute, expression formula was as follows:
In formula:
---primary frequency modulation actual integration electricity;
---per second in the duration has work value;
---integration start time have work value;
---integration start time;
---the primary frequency modulation duration after integration starts, more than 1 minute in 1 minute.
When power plant has objection to primary frequency modulation examination, the frequency during primary frequency modulation action can be aided with, guide vane opening (pitch stroke), active power waveform state to traffic department, to exempt examination.From primary frequency modulation primary frequency modulation effect of being examined the statement of particularly hydroelectric power plant of power plant, a lot of situation to be all genset displays, but the actual act device electricity that power scheduling department draws is very little.This shows the computing method existing problems of the primary frequency modulation actual act device electricity of power scheduling department.But the statement reason of power plant is rough, fail to calculate according to the primary frequency modulation data of recording the device electricity of actual act, often statement has little effect, and cannot retrieve deserved interests.
Summary of the invention
Technical matters to be solved by this invention, just be to provide a kind of generating set primary frequency regulation analytic system based on simulation software matlab/simulink, can the device electricity of accurate calculating generator group primary frequency modulation actual act, provide the primary frequency modulation action message meeting scheduling appreciation condition, analyze primary frequency modulation by the reason of power scheduling department appraisal.
Solve the problems of the technologies described above, the present invention adopts following technical scheme to realize:
Based on the generating set primary frequency regulation analytic system of matlab/simulink, it is characterized in that: comprise primary frequency modulation whether action judge module, primary frequency modulation action frequency statistical module, primary frequency modulation duration statistics module, the duration of primary frequency modulation, whether mains frequency exceedes evaluation threshold judge module, primary frequency modulation action device electricity calculates module, meet primary frequency modulation action device electricity output module and the primary frequency modulation action message logging modle of scheduling appreciation condition, whether action judge module inputs mains frequency to described primary frequency modulation, export and be connected to all the other described modules, the duration that the primary frequency modulation action device electricity output module of described satisfied scheduling appreciation condition also inputting described primary frequency modulation, whether mains frequency exceedes and evaluates threshold judge module, primary frequency modulation action device electricity calculates the output of module, export and be connected to described primary frequency modulation action message logging modle, described primary frequency modulation action message logging modle also inputs described primary frequency modulation action frequency statistical module, primary frequency modulation duration statistics module, the duration of primary frequency modulation, whether mains frequency exceedes the output evaluating threshold judge module, and export primary frequency modulation action message.
The described primary frequency modulation whether composition of action judge module and annexation is: dead band module inputs the output of the first constant module (exporting 50Hz) and the difference of the output of the first load module (In1), and output is connected to the input of the first absolute value block; The input of the first comparison module connects the output of the first absolute value block, exports and is connected to the first output module (Out1).
In1 inputs mains frequency.Mains frequency is deducted with 50Hz, the difference obtained and Man made Dead Band compare, with zero balancing after comparative result takes absolute value, draw the judged result of primary frequency modulation whether action: if 50Hz deducts the scope of difference beyond Man made Dead Band of mains frequency, i.e. primary frequency modulation action, Out1 equals 1, otherwise Out1 equals 0.
Composition and the annexation of described primary frequency modulation action frequency statistical module are: the trigger pip of input and first and second rising edge trigger module that the output of the second load module (In2) is connected to the first rising edge trigger module inputs, the output of first and second rising edge trigger module is added, and result delivers to input and second output module (Out2) of the second rising edge trigger module.
The output Out1 of the whether action judge module of the primary frequency modulation described in In2 input.In the primary frequency modulation action moment, namely Out1 became for 1 moment from 0, the input of first and second rising edge trigger module just can be assigned to output, and the two is added the number of times just drawing primary frequency modulation action: primary frequency modulation first time action, and Out1 equals 1, second time action, Out1 equals 2, third time action, and Out1 equals 3, the rest may be inferred, and Out2 is 4,5,6,7 according to this afterwards ...
Composition and the annexation of described primary frequency modulation duration statistics module are: the output of the 3rd load module (In3) is connected to the 3rd rising edge trigger module, rise/fall inputs along the trigger pip of trigger module, the output of the 4th load module (In4) is connected to the 3rd rising edge trigger module, rise/fall along the input of trigger module, and the 3rd output module (Out3) accesses the difference of rise/fall along the output of the output of trigger module and the 3rd rising edge trigger module.
The output Out1 of the whether action judge module of the primary frequency modulation described in In3 input, the time that In4 input is corresponding with mains frequency.In the primary frequency modulation action moment, namely Out1 became for 1 moment from 0, and the 3rd rising edge trigger module, rise/fall are assigned to output along the input of trigger module, and namely all export the time of primary frequency modulation start time, now Out3 equals 0.In the primary frequency modulation involution moment, namely Out1 became for 0 moment from 1, rise/fall is assigned to output again along the input of trigger module, namely the time of primary frequency modulation finish time is exported, now Out3 equals the time that this time deducts the primary frequency modulation start time that the 3rd rising edge trigger module exports, the time that namely primary frequency modulation is lasting.
The duration of described primary frequency modulation, whether mains frequency exceedes the composition of evaluating threshold judge module and annexation is: the second absolute value block inputs the output of the second constant module (exporting 50Hz) and the difference of the output of the 5th load module (In5), and output is connected to the input of the second comparison module; 1. the input of selector switch K1 connects three constant module (exporting 1), and 2. input connects the output of logical and judge module, and 3. input connects the output of the second comparison module, exports the input the 2. with four output module (Out4) being connected to logical and judge module; 1. the input of logical and judge module connects the output of the 6th load module (In6), and 2. output be connected to the input of selector switch K1.
In5 inputs mains frequency, the output Out1 of the whether action judge module of the primary frequency modulation described in In6 input.If the absolute difference of mains frequency and 50Hz is greater than evaluation threshold, then 3. the input of K1 equals 1, otherwise is 0.Primary frequency modulation is not operating, In6 input 0, and 3. output and the input of logical and judge module output 0, K1 connect, and equal 0.Primary frequency modulation action, In6 input 1, once 3. the input of K1 equals 1,1. output and the input of logical and judge module output 1, K1 connect, and Out4 remains 1, until primary frequency modulation involution, i.e. In6 input 0.
Composition and the annexation of described primary frequency modulation action device electricity calculating module are: 2., 3. the input of selector switch K2 directly connects the output of the 7th load module (In7), and 1. input connects the output of In7 through the first time delay module; The output of K switch 2 is selected in the input of selector switch K3 2. selecting, and 3. input connects the output of the 8th load module (In8), and 1. input connects oneself output; 2., 3. directly the output of K switch 2 is selected in selecting in the input of selector switch K4, and 1. input selects the output of K switch 2 through the second time delay module selecting; 1. the input of selector switch K5 connects the 4th constant module (exporting 0), inputs the output that K switch 4 is selected in 2. selecting, and 3. input connects 5 constant virtues digital-to-analogue block (exporting 1); 1. the input of selector switch K6 accesses the difference of the output of In8 and the output of selector switch K3, input 2., 3. selecting select the output of K switch 5; The trigger pip input of integration module meets In7, and the output of K switch 6 is selected in input selecting, exports and is connected to the 5th output module (Out5).
The output Out1 of the whether action judge module of the primary frequency modulation described in In7 input, the active power that In8 input is corresponding with mains frequency.Primary frequency modulation is not operating, and 3. output and the input of In7 input 0, K2 connect, 3. output and the input of K3 connect, and 3. output and the input of K4 connect, and 3. output and the input of K5 connect, 1. output and the input of K6 connect, and integration module input 0, Out5 equals the output of integration module.Primary frequency modulation action, In7 input from 0 become 1, K2 output and input 1. connect, 1. output and the input of K3 are switched on after the first time delay, and integration module starts to calculate action device electricity, and Out5 exports from 0,1. the simultaneously output of K4 and input connect, and the second time delay module starts.If primary frequency modulation involution before the second time delay meets, namely In7 input becomes 0 from 1,3. output and the input of K2, K3, K4 all reclose, second time delay module involution, the output of K5 and input are 3., 1. the output of K6 and input still connect, integration module input reverts to 0, and integration module exports and remains unchanged, the involution until the next primary frequency modulation action moment is triggered.Otherwise the second time delay meets, the output of K5 and input are 1., 3. the output of K6 and input connect, and integration module input sets to 0, and integration module exports and remains unchanged, and forces the calculating stopping action device electricity, the involution until the next primary frequency modulation action moment is triggered.
Composition and the annexation of the primary frequency modulation action device electricity output module of described satisfied scheduling appreciation condition are: the input of the first memory module connects the output of the tenth load module (In10), and the input of the second memory module connects the output of the 11 load module (In11); 3rd comparison module inputs the difference of the output of the first memory module and the output of In10, exports the input U1 being connected to output control module; The difference of the 4th comparison module input output of In11 and the output of the second memory module, exports the input U2 being connected to output control module; 1. the input of selector switch K7 connects the output of the 9th load module (In9), and 2. input connects the output of output control module, and 3. input connects the output of the 6th constant module (exporting 0), exports and is connected to the 6th output module (Out6).
Primary frequency modulation action device electricity described in In9 input calculates the output Out5 of module, the duration of primary frequency modulation described in In10 input, whether mains frequency exceedes the output Out4 evaluating threshold judge module, the output Out1 of the whether action judge module of the primary frequency modulation described in In11 input.According to the output of output control module, the output of K7 switches between the output and zero of In9: if mains frequency exceedes evaluation threshold duration of primary frequency modulation, output control module can be exported Y and is set to 1 during primary frequency modulation involution to next primary frequency modulation action, 1. output and the input of K7 connect, Out6 equals the output of In9, and the primary frequency modulation action device electricity namely meeting scheduling appreciation condition is output; Otherwise 3. 4. the output that output control module output Y remains 0, K7 connect with input, and Out6 equals zero, represent the appreciation condition that primary frequency modulation action device electricity does not meet scheduling.
Composition and the annexation of described primary frequency modulation action message logging modle are: the trigger pip input of negative edge trigger recording module connects the output of the 12 load module (In12), input U5 connects the output of the 13 load module (In13), input U6 connects the output of the 14 load module (In14), and input U8 connects the output of the 16 load module (In16); The input U3 of signal processing module connects the output of In13, and input U4 connects the output of the 15 load module (In15), exports the input U7 that Y1 is connected to negative edge trigger recording module.
The output Out1 of the whether action judge module of the primary frequency modulation described in In12 input, the output Out2 of the primary frequency modulation action frequency statistical module described in In13 input, the output Out3 of the primary frequency modulation duration statistics module described in In14 input, the duration of primary frequency modulation described in In15 input, whether mains frequency exceedes the output Out4 evaluating threshold judge module, the output Out6 of the primary frequency modulation action device electricity output module of the satisfied scheduling appreciation condition described in In16 input.Through inner process, module can record the action message of primary frequency modulation in the moment of primary frequency modulation involution with the form of data list.
Beneficial effect: compared with prior art, the present invention has following remarkable result:
1) generating set primary frequency regulation analytic system of the present invention is according to modular method establishment, each functions of modules is independent, judge primary frequency modulation whether action, statistics primary frequency modulation action frequency, calculate the primary frequency modulation duration, whether mains frequency exceedes and evaluates threshold, integration primary frequency modulation action electricity, export primary frequency modulation action message and meet the action device electricity dispatching appreciation condition check primary frequency modulation duration.
2) generating set primary frequency regulation analytic system of the present invention perfect in shape and function, meets the primary frequency modulation check requirements of scheduling, and the primary frequency modulation action message (comprising device electricity) provided as the foundation of primary frequency modulation statement, can reduce the workload of statement.
3) generating set primary frequency regulation analytic system of the present invention is developed based on matlab/simulink, technology maturation, inner parameter can be revised, and analyzing influence once adjusts the factor of the required index of examination, find primary frequency modulation by the reason examined, improve the efficiency of primary frequency modulation examination and statement.
Accompanying drawing explanation
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
Fig. 1 is system architecture diagram of the present invention;
Fig. 2 is primary frequency modulation in the present invention whether action judge module schematic diagram;
Fig. 3 is the primary frequency modulation action frequency statistical module schematic diagram in the present invention;
Fig. 4 is the primary frequency modulation duration statistics module principle figure in the present invention;
The duration that Fig. 5 being the primary frequency modulation in the present invention, whether mains frequency exceedes evaluation threshold judge module schematic diagram;
Fig. 6 is that the primary frequency modulation action device electricity in the present invention calculates module principle figure;
Fig. 7 is the primary frequency modulation action device electricity output module schematic diagram of the satisfied scheduling appreciation condition in the present invention;
Fig. 8 is the primary frequency modulation action message logging modle schematic diagram in the present invention.
In figure: U1, U2 are the inputs of output control module, Y is the output of output control module, U3, U4 are the inputs of signal control module, Y1 is the output of signal control module, U5, U6, U7, U8 are the inputs of negative edge trigger recording module, K1, K2, K3, K4, K5, K6, K7 are selector switch that function is consistent (when input value is 2. greater than 0,1. and 4. connect, otherwise connect 3. and 4.).
Embodiment
Be illustrated in figure 1 the generating set primary frequency regulation analytic system embodiment based on matlab/simulink of the present invention, by primary frequency modulation, whether action judges, primary frequency modulation action frequency is added up, primary frequency modulation duration statistics, the duration of primary frequency modulation, whether mains frequency exceedes the judgement of evaluation threshold, primary frequency modulation action device electricity calculates, the primary frequency modulation action device electricity meeting scheduling appreciation condition exports and primary frequency modulation action message record seven module compositions, whether action judge module inputs mains frequency to primary frequency modulation, output is connected to all the other modules, the duration that the primary frequency modulation action device electricity output module meeting scheduling appreciation condition also inputting primary frequency modulation, whether mains frequency exceedes and evaluates threshold judge module, primary frequency modulation action device electricity calculates the output of module, output is connected to primary frequency modulation action message logging modle, primary frequency modulation action message logging modle also inputs primary frequency modulation action frequency statistical module, primary frequency modulation duration statistics module, the duration of primary frequency modulation, whether mains frequency exceedes the output evaluating threshold judge module, and export primary frequency modulation action message.
Fig. 2 is the schematic diagram of primary frequency modulation whether action judge module, by load module, output module, constant module, dead band module, absolute value block, comparison module with subtract computing module and form.In1 inputs mains frequency, 50Hz deducts difference that mains frequency obtains and Man made Dead Band compares, if difference is beyond the scope of Man made Dead Band, then the output of dead band module equals the difference of input, its absolute value is greater than zero, Out1 and equals 1, represents primary frequency modulation action, otherwise Out1 is not more than zero and be set to 0 because of the output of dead band module, represents that primary frequency modulation is not operating.
Fig. 3 is the schematic diagram of primary frequency modulation action frequency statistical module, by load module, output module, rising edge trigger module with add computing module and form.The output Out1 of the whether action judge module of the primary frequency modulation described in In2 input, the action situation of its change reflection primary frequency modulation, becomes 1 from 0 and shows primary frequency modulation action, and vanishing interval scale primary frequency modulation involution again.Rising edge trigger module only connects input and output (namely export and equal input) at trigger pip input rising time, and the maintenance of other moment exports constant.Therefore, initial in primary frequency modulation action, original output can be added 1 and export by primary frequency modulation action frequency statistical module, the value of Out2 like this is just corresponding with primary frequency modulation action frequency, 1 represents primary frequency modulation action once, and 2 represent primary frequency modulation action twice, and the rest may be inferred.
Fig. 4 is the schematic diagram of primary frequency modulation duration statistics module, and by load module, output module, rising edge trigger module, rise/fall is along trigger module and subtract computing module and form.The output Out1 of the whether action judge module of the primary frequency modulation described in In3 input, the time that In4 input is corresponding with mains frequency.Initial in primary frequency modulation action, rising edge trigger module and rise/fall can record the time of primary frequency modulation start time along trigger module simultaneously, and when primary frequency modulation involution, only rise/fall is along the time of trigger module record primary frequency modulation finish time, deduct the time of the primary frequency modulation start time of rising edge trigger module record, primary frequency modulation continue time.
The duration that Fig. 5 being primary frequency modulation, whether mains frequency exceedes the schematic diagram evaluating threshold judge module, by load module, output module, constant module, absolute value block, comparison module, logical and module, selector switch module composition.In5 inputs mains frequency, the output Out1 of the whether action judge module of the primary frequency modulation described in In6 input.If the absolute difference of mains frequency and 50Hz is greater than evaluation threshold, then the output of comparison module equals 1, otherwise is 0.Primary frequency modulation is not operating, and In6 exports 0, and 3. output and the input of logical and judge module output 0, K1 connect, and equal 0, and the duration of expression primary frequency modulation, mains frequency does not exceed evaluation threshold.Primary frequency modulation action, In6 exports 1, once equal 1 compared with the output of module, 1. logical and judge module is connected with regard to the output and input exporting 1, K1, and Out4 remains 1, and the duration of expression primary frequency modulation, mains frequency exceedes evaluation threshold, until primary frequency modulation involution.
Fig. 6 is the schematic diagram that primary frequency modulation action device electricity calculates module, by load module, output module, constant module, time delay module, integration module, selector switch module composition.The output Out1 of the whether action judge module of the primary frequency modulation described in In7 input, the active power that In8 input is corresponding with mains frequency.Primary frequency modulation action, the output of In7 becomes 1 from 0, and the output of integration module can by involution, simultaneously 1. and 4. the connecting of K2, and time delay one starts (time delay is variable).Treat time delay one end, 1. and 4. K3 connects, 1. and 4. K4 connects, time delay two starts (time delay is also variable), but the output of time delay two is still 3. and 4. still connecting of zero, K5, and 1. and 4. K6 also connects, the active power this moment inputted is admitted to integration module with the difference of active power thereafter, calculates the device electricity of primary frequency modulation actual act and exports.If the primary frequency modulation perseveration time is less than time delay two, the integration of active power can be terminated in the moment of primary frequency modulation involution, simultaneously 3. and 4. the reclosing of K2, K3, K4, and time delay two is also stopped.Otherwise until the moment that time delay two terminates, 1. and 4. K5 is switched on, and 3. and 4. K6 is also switched on, and the integration of active power is also stopped.Calculate required generating set primary frequency regulation actual act device electricity according to this.
Fig. 7 is the schematic diagram of the primary frequency modulation action device electricity output module meeting scheduling appreciation condition, by load module, output module, constant module, memory module, comparison module, output control module, selector switch module composition.Primary frequency modulation action device electricity described in In9 input calculates the output Out5 of module, the duration of primary frequency modulation described in In10 input, whether mains frequency exceedes the output Out4 evaluating threshold judge module, the output Out1 of the whether action judge module of the primary frequency modulation described in In11 input.The output of In10 becomes 0 from 1, then output control module input U1 equals 1, otherwise U1 equals 0; The output of In11 becomes 1 from 0, then output control module input U2 equals 1, otherwise U2 equals 0.Output control module is when U1 equals 1, and putting Y is 1, when U2 equals 1, and involution Y(Y=0).Out6 is switched between the output and zero of In9 by K7, and as Y=1,1. and 4. K7 connects, and Out6 equals the output of In9, otherwise 3. and 4. connects, and Out6 equals zero.Thus realize: just export primary frequency modulation action device electricity when satisfied scheduling appreciation condition, and during satisfied scheduling appreciation condition, Out6 equals zero, and does not namely export now non-vanishing primary frequency modulation action device electricity.
Fig. 8 is the schematic diagram of primary frequency modulation action message logging modle, by load module, signal processing module, negative edge trigger recording module composition.The output Out1 of the whether action judge module of the primary frequency modulation described in In12 input, the output Out2 of the primary frequency modulation action frequency statistical module described in In13 input, the output Out3 of the primary frequency modulation duration statistics module described in In14 input, the duration of primary frequency modulation described in In15 input, whether mains frequency exceedes the output Out4 evaluating threshold judge module, the output Out6 of the primary frequency modulation action device electricity output module of the satisfied scheduling appreciation condition described in In16 input.Signal processing module is responsible for equaling the In15 output extension of 1 to next primary frequency modulation start time, so that negative edge trigger recording module correctly records its value.When the output of In12 becomes 0 from 1, negative edge trigger recording module can record the value of input U5, U6, U7 and U8, thus provides the information of each primary frequency modulation action meeting scheduling appreciation condition.
Change the setting of the dead band module in Fig. 2, the comparison module in Fig. 5, the time delay module in Fig. 6 individually or simultaneously, analyze the generating set primary frequency regulation action message under different setting, different Man made Dead Bands can being obtained, evaluating the impact arranged threshold, time delay analyzing, thus analyze primary frequency modulation by the reason of power scheduling department appraisal.