Generating set primary frequency regulation analytic system based on matlab/simulink
Technical field
The present invention relates to a kind of system that the 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 is meant to safeguarding the safe and stable operation of electric system; Guarantee the quality of power supply; Except that normal electrical energy production, conveying, use, the service by electricity power enterprise provides comprises: primary frequency modulation, Automatic Generation Control (AGC), peak regulation, idle adjusting, subsequent use, black start etc.
Wherein, Primary frequency modulation is meant when power system frequency departs from objectives frequency; Genset is through the automatic reaction of governing system; Adjustment is meritorious exerts oneself to reduce the service that frequency departure was provided, and belongs to the basic assistant service that genset must provide, and does not satisfy the corresponding requirements of power monitoring department and can be examined by power scheduling department.
For improving the power system safety and stability operation level, in February, 2010 assistant service examination is operated in the south electric network region within the jurisdiction and is in full swing.Since the enforcement, primary frequency modulation examination proportion in the assistant service examination is higher, and for example straight to transfer power plant's primary frequency modulation cost of verification and evaluation be 2921.4246 ten thousand yuan Guangdong Province 2011, accounts for 62.7% of whole assistant service cost of verification and evaluation.
The standard of power scheduling department examination primary frequency modulation is that integration electric weight/theory of primary frequency modulation actual act moved the number percent of integration electric weight less than 50%.The actual integration start time be frequency cross Dead Time add the time-delay 6 seconds, the integration concluding time is the time that frequency is got back to the dead band, no longer than 1 minute, expression formula was following:
In the formula:
---primary frequency modulation actual integration electric weight;
The meritorious value of per second in
---the duration;
The meritorious value of
---integration zero hour;
---integration zero hour;
---the primary frequency modulation duration after integration begins, surpass 1 minute in 1 minute.
When power plant had objection to primary frequency modulation examination, frequency, guide vane opening (pitch stroke), the active power waveform that can be aided with during the primary frequency modulation action were stated to traffic department, to exempt examination.Examined the particularly statement of hydroelectric power plant of power plant from primary frequency modulation, a lot of situation all are that genset has correctly been brought into play the primary frequency modulation effect, but the actual act integration electric weight that power scheduling department draws is very little.This shows the computing method existing problems of the primary frequency modulation actual act integration electric weight of power scheduling department.But the statement reason of power plant is rough, fail according to record the primary frequency modulation data integration electric weight of calculating actual act, often statement having little effect, and can't retrieve deserved interests.
Summary of the invention
Technical matters to be solved by this invention; Just provide a kind of generating set primary frequency regulation analytic system based on the matlab/simulink of simulation software; The accurate integration electric weight of calculating generator group primary frequency modulation actual act; Provide and meet the primary frequency modulation action message of dispatching appreciation condition, the reason that the analysis primary frequency modulation is examined by power scheduling department.
Solve the problems of the technologies described above, the present invention adopts following technical scheme to realize:
Generating set primary frequency regulation analytic system based on matlab/simulink; It is characterized in that: comprise whether mains frequency surpasses primary frequency modulation action integration electric weight output module and the primary frequency modulation action message logging modle of estimating threshold judge module, primary frequency modulation action integration electric weight computing module, satisfying the scheduling appreciation condition duration that whether primary frequency modulation moving judge module, primary frequency modulation action frequency statistical module, primary frequency modulation duration statistical module, primary frequency modulation; Whether described primary frequency modulation moves judge module input mains frequency; Output is connected to described all the other modules; Whether mains frequency surpasses the output of estimating threshold judge module, primary frequency modulation action integration electric weight computing module duration that the primary frequency modulation of described satisfied scheduling appreciation condition action integration electric weight output module also being imported described primary frequency modulation; Output is connected to described primary frequency modulation action message logging modle; Whether mains frequency surpasses the output of estimating the threshold judge module duration that described primary frequency modulation action message logging modle also being imported described primary frequency modulation action frequency statistical module, primary frequency modulation duration statistical module, primary frequency modulation, and output primary frequency modulation action message.
Whether described primary frequency modulation moves the composition and the annexation of judge module is: the dead band module is imported the difference of output with the output of first load module (In1) of the first constant module (output 50Hz), exports the input that is connected to first absolute value block; The input of first comparison module connects the output of first absolute value block, and output is connected to first output module (Out1).
In1 imports mains frequency.Deduct mains frequency with 50Hz; Difference that obtains and manual frequency dead band compare; Comparative result takes absolute value afterwards and zero balancing, draws the judged result whether primary frequency modulation moves: if 50Hz deducts the scope that the difference of mains frequency has exceeded the manual frequency dead band, i.e. and primary frequency modulation action; Out1 equals 1, otherwise Out1 equals 0.
The composition and the annexation of described primary frequency modulation action frequency statistical module are: the output of second load module (In2) is connected to the input of the first rising edge trigger module and the trigger pip input of first and second rising edge trigger module; The output addition of first and second rising edge trigger module, the result delivers to the input and second output module (Out2) of the second rising edge trigger module.
In2 imports described primary frequency modulation and whether moves the output Out1 of judge module.In the primary frequency modulation action constantly, promptly Out1 becomes 1 constantly by 0, and the input of first and second rising edge trigger module just can be composed to output; The two addition just draws the number of times of primary frequency modulation action: primary frequency modulation moves for the first time, and Out1 equals 1, for the second time action; Out1 equals 2, action for the third time, and Out1 equals 3; The rest may be inferred, and Out2 is 4,5,6,7 according to this afterwards ...
The composition and the annexation of described primary frequency modulation duration statistical module are: the output of the 3rd load module (In3) is connected to the trigger pip input of the 3rd rising edge trigger module, rising/negative edge trigger module; The output of the 4th load module (In4) is connected to the input of the 3rd rising edge trigger module, rising/negative edge trigger module, the difference of the output of the 3rd output module (Out3) access rising/negative edge trigger module and the output of the 3rd rising edge trigger module.
In3 imports described primary frequency modulation and whether moves the output Out1 of judge module, In4 input and mains frequency time corresponding.In the primary frequency modulation action constantly, promptly Out1 becomes 1 constantly by 0, and the input of the 3rd rising edge trigger module, rising/negative edge trigger module is composed to output, promptly all exports the primary frequency modulation time of the zero hour, and this moment, Out3 equaled 0.In the primary frequency modulation involution constantly; Be that Out1 becomes 0 constantly by 1; The input of rising/negative edge trigger module is composed to output once more; Promptly export the primary frequency modulation time of the finish time, this moment, Out3 equaled the time that this time deducts primary frequency modulation zero hour of the 3rd rising edge trigger module output, i.e. time of continuing of primary frequency modulation.
Whether mains frequency surpasses composition and the annexation of estimating the threshold judge module and be the duration of described primary frequency modulation: second absolute value block is imported the difference of output of output and the 5th load module (In5) of the second constant module (output 50Hz), exports the input that is connected to second comparison module; 1. the input of SS K1 connects three constant module (output 1), and 2. input connects the output of logical and judge module, and 3. input connects the output of second comparison module, the input that output is connected to the logical and judge module 2. with the 4th output module (Out4); 1. the input of logical and judge module connects the output of the 6th load module (In6), and the input that output is connected to SS K1 2..
In5 imports mains frequency, and In6 imports described primary frequency modulation and whether moves the output Out1 of judge module.If the absolute difference of mains frequency and 50Hz is greater than estimating threshold, then 3. the input of K1 equals 1, otherwise is 0.Primary frequency modulation does not move, In6 input 0, and logical and judge module output 0,3. the output of K1 and input connect, and equal 0.The primary frequency modulation action, In6 input 1, in case 3. the input of K1 equals 1, logical and judge module output 1,1. the output of K1 and input connect, and Out4 remains 1, until the primary frequency modulation involution, i.e. In6 input 0.
The composition and the annexation of described primary frequency modulation action integration electric weight computing module are: 2., 3. the input of SS K2 directly connects the output of the 7th load module (In7), and 1. input connects the output of In7 through first time delay module; The output of K switch 2 is selected in the input of SS K3 2. selecting, and 3. input connects the output of the 8th load module (In8), and 1. input connects the output of oneself; The input of SS K4 2., 3. directly the output of K switch 2 is selected in selecting, and 1. input selects the output of K switch 2 through the second time delay module selecting; 1. the input of SS K5 connects the 4th constant module (output 0), imports the output that K switch 4 is selected in 2. selecting, and 3. input connects 5 constant virtues digital-to-analogue piece (output 1); 1. the input of SS K6 inserts the difference of output of output and the SS K3 of In8, and input 2., 3. the output of K switch 5 is selected in selecting; The trigger pip input of integration module meets In7, and the output of K switch 6 is selected in the input selecting, and output is connected to the 5th output module (Out5).
In7 imports described primary frequency modulation and whether moves the output Out1 of judge module, the active power that the In8 input is corresponding with mains frequency.Primary frequency modulation does not move, In7 input 0, and 3. the output of K2 and input connect; 3. the output of K3 and input connect, and 3. the output of K4 and input connect, and 3. the output of K5 and input connect; 1. the output of K6 and input connect, integration module input 0, and Out5 equals the output of integration module.The primary frequency modulation action, the In7 input becomes 1 by 0, and 1. the output of K2 and input connect; 1. the output of K3 and input are switched on after first time-delay, and integration module begins to calculate action integration electric weight, and Out5 is since 0 output; 1. the output of K4 simultaneously and input connect, and second time delay module starts.If primary frequency modulation involution before second time-delay is satisfied; Be that the In7 input becomes 0 by 1,3. the output of K2, K3, K4 and input all connect the second time delay module involution again; 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 output remains unchanged, until the next primary frequency modulation action involution that constantly is triggered.Otherwise second time-delay is satisfied, and the output of K5 and input are 1., 3. output and the input of K6 connect, and the integration module input puts 0, and integration module output remains unchanged, and forces to stop to move the calculating of integration electric weight, until the next primary frequency modulation action involution that constantly is triggered.
The composition and the annexation of the primary frequency modulation action integration electric weight output module of described satisfied scheduling appreciation condition are: the input of first memory module connects the output of the tenth load module (In10), and the input of second memory module connects the output of the 11 load module (In11); The 3rd comparison module is imported the difference of output of output and the In10 of first memory module, and output is connected to the input U1 of output control module; The difference of the output of the 4th comparison module input In11 and the output of second memory module, output is connected to the input U2 of output control module; 1. the input of SS 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 (output 0), and output is connected to the 6th output module (Out6).
In9 imports the output Out5 of described primary frequency modulation action integration electric weight computing module; Whether mains frequency surpasses the output Out4 that estimates the threshold judge module duration that In10 importing described primary frequency modulation, and In11 imports described primary frequency modulation and whether moves the output Out1 of judge module.Output according to output control module; The output of K7 is switched between the output and zero of In9: mains frequency surpasses the evaluation threshold duration of as if primary frequency modulation; Output control module can be changed to 1 with its output Y during primary frequency modulation involution to next primary frequency modulation action; 1. the output of K7 and input connect, and Out6 equals the output of In9, promptly satisfy the primary frequency modulation action integration electric weight of scheduling appreciation condition and are exported; Otherwise output control module output Y remains 0, and 3. 4. the output of K7 connect with input, and Out6 equals zero, and represents primary frequency modulation action integration electric weight not satisfy the appreciation condition of scheduling.
The 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), and output Y1 is connected to the input U7 of negative edge trigger recording module.
In12 imports described primary frequency modulation and whether moves the output Out1 of judge module; In13 imports the output Out2 of described primary frequency modulation action frequency statistical module; In14 imports the output Out3 of described primary frequency modulation duration statistical module; Whether mains frequency surpasses the output Out4 that estimates the threshold judge module duration that In15 importing described primary frequency modulation, and In16 imports the output Out6 of the primary frequency modulation action integration electric weight output module of described satisfied scheduling appreciation condition.Through inner processing, module can be noted 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 set up according to modular method; Each functions of modules is independent, the action integration electric weight that judge whether primary frequency modulation moves, add up the primary frequency modulation action frequency, calculate the primary frequency modulation duration, whether mains frequency surpasses evaluation threshold, integration primary frequency modulation action electric weight, output primary frequency modulation action message and satisfied scheduling appreciation condition duration of checking primary frequency modulation.
2) generating set primary frequency regulation analytic system of the present invention perfect in shape and function meets the primary frequency modulation examination requirement of scheduling, and the primary frequency modulation action message that provides (comprising the integration electric weight) can be used as the foundation of primary frequency modulation statement, reduces 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 is once transferred the factor of the required index of examination; Seek the reason that primary frequency modulation is examined, improve the efficient of primary frequency modulation examination and statement.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is done and to describe in further detail.
Fig. 1 is a system architecture diagram of the present invention;
Fig. 2 is whether the primary frequency modulation among the present invention moves the judge module schematic diagram;
Fig. 3 is the primary frequency modulation action frequency statistical module schematic diagram among the present invention;
Fig. 4 is the primary frequency modulation duration statistical module schematic diagram among the present invention;
Whether mains frequency surpasses evaluation threshold judge module schematic diagram duration that Fig. 5 being the primary frequency modulation among the present invention;
Fig. 6 is that the primary frequency modulation action integration electric weight among the present invention calculates module principle figure;
Fig. 7 is the primary frequency modulation action integration electric weight output module schematic diagram of the satisfied scheduling appreciation condition among the present invention;
Fig. 8 is the primary frequency modulation action message logging modle schematic diagram among the present invention.
Among the figure: U1, U2 are the inputs of output control module; Y is the output of output control module, and U3, U4 are the inputs of signal controlling module, and Y1 is the output of signal controlling module; U5, U6, U7, U8 are the inputs of negative edge trigger recording module; K1, K2, K3, K4, K5, K6, K7 are the consistent SS of function (1. and 4. input value were 2. connected greater than 0 o'clock, otherwise connected 3. and 4.).
Embodiment
Be illustrated in figure 1 as the generating set primary frequency regulation analytic system embodiment based on matlab/simulink of the present invention; Whether judge above estimating, primary frequency modulation action integration electric weight calculates, the electric weight output of primary frequency modulation action integration and seven modules of primary frequency modulation action message record of satisfied scheduling appreciation condition are formed by threshold for mains frequency duration that whether moving judgement, primary frequency modulation action frequency statistics, primary frequency modulation duration statistics, primary frequency modulation by primary frequency modulation; Whether primary frequency modulation moves judge module input mains frequency; Output is connected to all the other modules; Whether mains frequency surpasses the output of estimating threshold judge module, primary frequency modulation action integration electric weight computing module duration that the primary frequency modulation action integration electric weight output module that satisfies the scheduling appreciation condition also being imported primary frequency modulation; Output is connected to primary frequency modulation action message logging modle; Whether mains frequency surpasses the output of estimating the threshold judge module duration that primary frequency modulation action message logging modle also being imported primary frequency modulation action frequency statistical module, primary frequency modulation duration statistical module, primary frequency modulation, and output primary frequency modulation action message.
Fig. 2 is whether primary frequency modulation moves the schematic diagram of judge module, by load module, output module, constant module, dead band module, absolute value block, comparison module with subtract computing module and constitute.In1 imports mains frequency, and 50Hz deducts difference and the manual frequency dead band that mains frequency obtains and compares, if difference has exceeded the scope in manual frequency dead band; The output of the dead band module difference that equals to import then; Its absolute value is greater than zero, and Out1 equals 1, the action of expression primary frequency modulation; Otherwise Out1 is changed to 0 because of the output of dead band module is not more than zero, and the expression primary frequency modulation does not move.
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 constitute.In2 imports described primary frequency modulation and whether moves the output Out1 of judge module, and it changes the action situation of reflection primary frequency modulation, and become 1 by 0 and show the primary frequency modulation action, and vanishing interval scale primary frequency modulation involution once more.The rising edge trigger module only rises in the trigger pip input and connects input and output (i.e. output equals input) constantly, and other keeps exporting constant constantly.Therefore, initial in the primary frequency modulation action, primary frequency modulation action frequency statistical module can add 1 output again with original output; So the value of Out2 is just corresponding with the primary frequency modulation action frequency; 1 expression primary frequency modulation moves once, 2 expression primary frequency modulations actions twice, and the rest may be inferred.
Fig. 4 is the schematic diagram of primary frequency modulation duration statistical module, by load module, output module, rising edge trigger module, rising/negative edge trigger module with subtract computing module and constitute.In3 imports described primary frequency modulation and whether moves the output Out1 of judge module, In4 input and mains frequency time corresponding.Initial in the primary frequency modulation action; Rising edge trigger module and rising/negative edge trigger module can be noted the primary frequency modulation time of the zero hour simultaneously; And when the primary frequency modulation involution; Time of rising/negative edge trigger module record primary frequency modulation finish time only deducts time of primary frequency modulation zero hour of rising edge trigger module record, get final product time of continuing of primary frequency modulation.
Whether mains frequency surpasses the schematic diagram of estimating the threshold judge module duration that Fig. 5 being primary frequency modulation, is made up of load module, output module, constant module, absolute value block, comparison module, logical and module, SS module.In5 imports mains frequency, and In6 imports described primary frequency modulation and whether moves the output Out1 of judge module.If the absolute difference of mains frequency and 50Hz is greater than estimating threshold, then the output of comparison module equals 1, otherwise is 0.Primary frequency modulation does not move, In6 output 0, and the logical and judge module exports 0, and 3. the output of K1 and input connect, and equal 0, and mains frequency surpasses the evaluation threshold duration of the expression primary frequency modulation.The primary frequency modulation action, In6 exports 1, and in case equal 1 than the output of module, the logical and judge module just exports 1, and 1. the output of K1 and input connect, and Out4 remains 1, and mains frequency surpasses the evaluation threshold duration of the expression primary frequency modulation, until the primary frequency modulation involution.
Fig. 6 is the schematic diagram of primary frequency modulation action integration electric weight computing module, is made up of load module, output module, constant module, time delay module, integration module, SS module.In7 imports described primary frequency modulation and whether moves the output Out1 of judge module, the active power that the In8 input is corresponding with mains frequency.The primary frequency modulation action, the output of In7 becomes 1 by 0, and the output meeting of integration module is by involution, and 1. and 4. while K2 connects, and time-delay one starts (time delay is variable).The end of waiting to delay time, 1. and 4. K3 connects, and 1. and 4. K4 connects; Time-delay two starts (time delay is also variable); But two the output of delaying time still is zero, and 3. and 4. K5 still connects, and 1. and 4. K6 also connects; The difference of the active power of input and active power thereafter is admitted to integration module this moment, calculates the integration electric weight and the output of primary frequency modulation actual act.If the primary frequency modulation perseveration time, the integration of active power can be terminated in the moment of primary frequency modulation involution less than time-delay two, 3. and 4. reclosing of K2, K3, K4 simultaneously, time-delay two also is stopped.Otherwise by the time the moment of two end of delaying time, 1. and 4. K5 is switched on, and 3. and 4. K6 also is switched on, and the integration of active power also is stopped.Calculate required generating set primary frequency regulation actual act integration electric weight according to this.
Fig. 7 is the schematic diagram that satisfies the primary frequency modulation action integration electric weight output module of scheduling appreciation condition, is made up of load module, output module, constant module, memory module, comparison module, output control module, SS module.In9 imports the output Out5 of described primary frequency modulation action integration electric weight computing module; Whether mains frequency surpasses the output Out4 that estimates the threshold judge module duration that In10 importing described primary frequency modulation, and In11 imports described primary frequency modulation and whether moves the output Out1 of judge module.The output of In10 becomes 0 by 1, and then output control module input U1 equals 1, otherwise U1 equals 0; The output of In11 becomes 1 by 0, and then output control module input U2 equals 1, otherwise U2 equals 0.Output control module equals at 1 o'clock at U1, and putting Y is 1, equals at 1 o'clock at U2, involution Y (Y=0).Out6 switches between the output and zero of In9 through K7, and when Y=1,1. and 4. K7 connects, and Out6 equals the output of In9, otherwise 3. and 4. connects, and Out6 equals zero.Thereby realization: when satisfying the scheduling appreciation condition, just export primary frequency modulation action integration electric weight, Out6 equals zero when dispatching appreciation condition and do not satisfy, and does not promptly export non-vanishing primary frequency modulation action integration electric weight this moment.
Fig. 8 is the schematic diagram of primary frequency modulation action message logging modle, is made up of load module, signal processing module, negative edge trigger recording module.In12 imports described primary frequency modulation and whether moves the output Out1 of judge module; In13 imports the output Out2 of described primary frequency modulation action frequency statistical module; In14 imports the output Out3 of described primary frequency modulation duration statistical module; Whether mains frequency surpasses the output Out4 that estimates the threshold judge module duration that In15 importing described primary frequency modulation, and In16 imports the output Out6 of the primary frequency modulation action integration electric weight output module of described satisfied scheduling appreciation condition.Signal processing module is responsible for In15 output extension to the next primary frequency modulation zero hour that equals 1, so that negative edge trigger recording module correctly writes down its value.Output at In12 becomes for 0 the moment by 1, and negative edge trigger recording module can be noted the value of input U5, U6, U7 and U8, thereby the information of the each primary frequency modulation action that meets the scheduling appreciation condition is provided.
Change the setting of dead band module among Fig. 2, the comparison module among Fig. 5, the time delay module among Fig. 6 individually or simultaneously; Analyze the generating set primary frequency regulation action message under different the setting; Can obtain different manual frequency dead bands, estimate threshold, be provided with the influence of analyzing, thereby analyze primary frequency modulation by the reason of power scheduling department examination time delay.