Disclosure of Invention
The invention aims to provide a safety analysis method and a safety analysis system of a steam boiler system, so as to realize safety prevention of the steam boiler system.
In order to achieve the purpose, the invention provides the following scheme:
a safety analysis method of a steam boiler system, the analysis method comprising the steps of:
drawing a control structure block diagram of the steam boiler system according to the function and control action of each component of the steam boiler system;
analyzing the potential failure mode and failure consequence of the steam boiler system according to the control structure block diagram, and establishing an analysis result list containing a failure mode, failure component level influence, failure system level influence, failure reason and countermeasure;
according to the analysis result list, establishing a mapping relation from the analysis result to a control process of the steam boiler system as a first mapping relation;
establishing a mapping relation from the steam boiler system to a modeling element of the Event-B model as a second mapping relation according to the analysis result list and the first mapping relation;
establishing an initial Event-B model for safety prevention of the steam boiler system according to the analysis result list, the first mapping relation and the second mapping relation;
correcting the initial Event-B model to enable the corrected Event-B model to meet the functional requirements of the steam boiler system;
and performing safety prevention on the steam boiler system by using the corrected Event-B model.
Optionally, the control process of the steam boiler system comprises a sensing phase, a detection phase, a control phase and a prevention phase.
Optionally, the first mapping relationship includes: mapping of failure modes and failure causes to sensing phases, mapping of failure system level effects to detection phases, mapping of failure system level effects to safety invariants, mapping of countermeasures to stop modes and degraded modes.
Optionally, the second mapping relationship includes: mapping relation of variables, constants and invariants from the sensing phase to the Event-B model; mapping from the detection phase to the prevention phase; and mapping relations from the detection phase, the security invariance of the Event-B model, the degradation mode and the stop mode to the sensing phase.
Optionally, the initial Event-B model is modified, so that the modified Event-B model meets the functional requirements of the steam boiler system, and the method specifically includes:
judging whether the initial Event-B model meets the functional requirements of a steam boiler system or not, and obtaining a first judgment result;
if the first judgment result shows yes, judging whether the initial Event-B model corresponds to the analysis result list or not, and obtaining a second judgment result;
if the first judgment result shows that the initial Event-B model cannot meet the functional requirements or the second judgment result shows that the initial Event-B model cannot meet the functional requirements, the modeling elements corresponding to the non-corresponding parts in the analysis result list are added in the initial Event-B model to obtain an updated initial Event-B model, and the step of 'judging whether the initial Event-B model meets the functional requirements of the steam boiler system to obtain a first judgment result' is returned;
and if the second judgment result shows that the Event-B model is the modified Event-B model, outputting the initial Event-B model updated by the last iteration as the modified Event-B model.
A safety analysis system for a steam boiler system, the analysis system comprising:
the control structure block diagram establishing module is used for drawing a control structure block diagram of the steam boiler system according to the function and the control action of each component of the steam boiler system;
the analysis result list establishing module is used for analyzing the potential failure mode and failure consequence of the steam boiler system according to the control structure block diagram and establishing an analysis result list containing a failure mode, a failure component level influence, a failure system level influence, a failure reason and a countermeasure;
the first mapping relation establishing module is used for establishing a mapping relation from the analysis result to the control process of the steam boiler system according to the analysis result list to serve as a first mapping relation;
the second mapping relation establishing module is used for establishing a mapping relation from the steam boiler system to a modeling element of the Event-B model as a second mapping relation according to the analysis result list and the first mapping relation;
the initial Event-B model establishing module is used for establishing an initial Event-B model for safety prevention of the steam boiler system according to the analysis result list, the first mapping relation and the second mapping relation;
the Event-B model correction module is used for correcting the initial Event-B model so that the corrected Event-B model can meet the functional requirements of the steam boiler system;
and the safety prevention module is used for performing safety prevention on the steam boiler system by using the corrected Event-B model.
Optionally, the control process of the steam boiler system comprises a sensing phase, a detection phase, a control phase and a prevention phase.
Optionally, the first mapping relationship includes: mapping of failure modes and failure causes to sensing phases, mapping of failure system level effects to detection phases, mapping of failure system level effects to safety invariants, mapping of countermeasures to stop modes and degraded modes.
Optionally, the second mapping relationship includes: mapping relation of variables, constants and invariants from the sensing phase to the Event-B model; mapping from the detection phase to the prevention phase; and mapping relations from the detection phase, the security invariance of the Event-B model, the degradation mode and the stop mode to the sensing phase.
Optionally, the Event-B model modification module specifically includes:
the first judgment submodule is used for judging whether the initial Event-B model meets the functional requirements of the steam boiler system or not and obtaining a first judgment result;
the second judgment submodule is used for judging whether the initial Event-B model corresponds to the analysis result list or not if the first judgment result represents yes, and obtaining a second judgment result;
an Event-B model modification submodule, configured to, if the first determination result indicates that the initial Event-B model cannot meet the functional requirements or the second determination result indicates that the initial Event-B model does not meet the functional requirements, add a modeling element corresponding to a non-corresponding part in an analysis result list to the initial Event-B model, obtain an updated initial Event-B model, call the first determination submodule, and perform "determine whether the initial Event-B model meets the functional requirements of the steam boiler system, and obtain a first determination result";
and the corrected Event-B model output submodule is used for outputting the initial Event-B model updated by the last iteration as the corrected Event-B model if the second judgment result shows that the initial Event-B model is positive.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the invention discloses a safety analysis method of a steam boiler system, which comprises the following steps: drawing a control structure block diagram of the steam boiler system according to the function and control action of each component of the steam boiler system; analyzing the potential failure mode and failure consequence of the steam boiler system according to the control structure block diagram, and establishing an analysis result list containing a failure mode, failure component level influence, failure system level influence, failure reason and countermeasure; according to the analysis result list, establishing a mapping relation from the analysis result to a control process of the steam boiler system as a first mapping relation; establishing a mapping relation from the steam boiler system to a modeling element of the Event-B model as a second mapping relation according to the analysis result list and the first mapping relation; establishing an initial Event-B model for safety prevention of the steam boiler system according to the analysis result list, the first mapping relation and the second mapping relation; correcting the initial Event-B model to enable the corrected Event-B model to meet the functional requirements of the steam boiler system; and performing safety prevention on the steam boiler system by using the corrected Event-B model. According to the invention, through analyzing the control structure and the control flow of the steam boiler system, the mapping relation from the analysis result of the control structure to the control flow and the mapping relation from the steam boiler system to the modeling element of the Event-B model are obtained, so that the initial Event-B model for safety prevention of the steam boiler system is further established, the initial Event-B model is further corrected, the corrected Event-B model is utilized to prevent the safety of the steam boiler system, and the safety prevention of the steam boiler system is realized.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide a safety analysis method and a safety analysis system of a steam boiler system, so as to realize safety prevention of the steam boiler system.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
As shown in figures 1 and 2, the invention carries out failure mode and influence analysis and steam boiler system control flow analysis based on the control structure diagram of the steam boiler system, and establishes a mapping relation between the two analysis results and an Event-B modeling element. And then obtaining modeling elements of the Event-B according to the mapping relation and combining an Event-B formalization method to complete the process of establishing and refining the model.
As shown in fig. 1, the present invention provides a safety analysis method of a steam boiler system, the analysis method comprising the steps of:
step 101, drawing a control structure block diagram of the steam boiler system according to the function and control action of each component of the steam boiler system.
Analyzing the steam boiler system, knowing the working mode and the control structure of the system, analyzing the function and the control action of each independent component in the system, and drawing a control structure chart of the system. The system consists of the following units: the system comprises a hearth, a pump, a valve, a sensor for measuring the water quantity of the hearth, a sensor for measuring the steam quantity discharged from the hearth of the steam boiler, a sensor for measuring the water quantity input through the pump and a sensor for measuring the water quantity output through the valve.
The control structure of the steam boiler system is shown in fig. 3.
And 102, analyzing the potential failure mode and failure consequence of the steam boiler system according to the control structure block diagram, and establishing an analysis result list containing the failure mode, the failure component level influence, the failure system level influence, the failure reason and the countermeasure.
Analyzing the potential failure mode and failure consequence analysis of the hardware layer of the steam boiler system according to the control structure diagram of the steam boiler system obtained in the step 101, and recording the analysis result in a form of a table.
The process of analyzing the failure mode and the failure consequence of the system is a bottom-up process, namely, starting from a component in the system, analyzing the influence of the failed component on other components, and then analyzing the influence of the failed component on the whole system. In this way, failure modes of different structural levels or functional levels can be determined, each failure mode can analyze the influence of the failure mode on the previous level and the influence on the whole system, and effective countermeasures after faults occur can be provided after the relevance of component failure and the system is known. The obtained analysis results are tabulated in table 1.
TABLE 1 analysis results List
And 103, establishing a mapping relation from the analysis result to the control process of the steam boiler system according to the analysis result list as a first mapping relation.
As shown in fig. 4, the control process of the steam boiler system includes a sensing stage, a control stage, and a prevention stage.
That is, the control process of the steam boiler system can be divided into four phases of cycles, first a sensing phase: reading data by all sensors such as mercury sensors, valve sensors and the like in the steam boiler system; then, a detection stage is carried out: if the value read by the water quantity sensor is inconsistent with the value calculated by the pump, the valve sensor and the steam quantity output sensor, a fault occurs; the following control phase: the steam boiler system completes the operation appointed by a user according to a sensor prediction algorithm in the controller and calculates the prediction value of the next cycle sensing stage according to the value obtained in the current sensing stage and the algorithm in the controller; and finally, a prediction stage: and comparing the predicted value obtained in the control stage with the value read in the next cycle sensing stage, and judging whether the steam boiler system has faults or not according to whether the values are equal or not.
An example of a sensor prediction algorithm is given: suppose the system mathematical model is:
xk+1=Axk+Buk+ωk
zk=Cxk+vk
in the formula xk∈RnIs the system state, uk∈RnFor control input, zk∈RnFor controlled object output, A, B, C is the random variable ω of the system matrix of corresponding dimensionk、υkRepresenting process and measurement noise, respectively, independent of each other, with a normal distribution.
If the sensor measures zk+1If the link is lost due to a link failure caused by radio frequency interference, the predicted sensor data is shown in formula (1), and the algorithm timing is shown in formula (2), so as to ensure that the sensor data is transmitted in time:
where k +1 is the state prediction, Pk+1Is the error covariance before correction, Z is the sensor measurement, xk∈RnIs the system state.
The new sensor signals in the model prediction based flexible control algorithm are filtered and passed to the controller, and if there is no new sensor data within a time threshold, the algorithm will provide the predicted sensor data and an updated confidence level indicative of the degree of prediction to the controller. If new sensor data Zk+1Arriving after the time threshold, but before the end of the next sample time, is still used to update the current predicted value, as shown in equation (2), if the new value arrives after the next sample, it is considered lost. The basic idea is to discard old data because the new data can more accurately reflect the real situation of the controller. Sensor packet delays and losses in the algorithm are handled in a uniform manner. If continuous sensor measurement values are lost due to link failure, the corresponding continuous sensor prediction values are obtainedCalculated by equation (2).
A mapping relationship from the former to the latter is established according to the analysis result list obtained in the step 102 and the control flow of the steam boiler system, the mapping elements of the former correspond to all the elements of the heading line in the analysis result list, and the mapping elements of the latter comprise the control process of the steam boiler system, and the stop mode and the degradation mode mentioned by the countermeasure in the analysis result list are used for corresponding to the safety invariant mapping elements of the invariant setting in the modeling element of the Event-B model. The specific mapping relationship is established according to the logical relationship between the former mapping element and the latter mapping element as follows: there is a mapping from failure mode, failure cause to sensing phase; there is a mapping from failed component level impact to detection phase; there is a mapping from the failed system level impact to the security invariants; there is a mapping from countermeasures to stop mode and degraded mode.
104, establishing a mapping relation from the steam boiler system to a modeling element of the Event-B model as a second mapping relation according to the analysis result list and the first mapping relation;
continuing to establish a mapping relationship from the steam boiler system to the modeling elements of the Event-B model, wherein the mapping elements of the Event-B model comprise the main modeling elements of the Event-B: variables, constants, invariants, events. The security invariants are used to prove that some requirements are indeed satisfied and thus correspond to the invariants elements in Event-B, and other patterns can be represented by corresponding variables, constants, events according to their functions. The specific mapping relationship is as follows: mapping relation of variables, constants and invariants from the sensing phase to the Event-B model; mapping from the detection phase to the prevention phase; and mapping relations from the detection phase, the security invariance of the Event-B model, the degradation mode and the stop mode to the sensing phase.
The mapping relationship obtained by the establishment is shown in fig. 5.
And 105, establishing an initial Event-B model for safety prevention of the steam boiler system according to the analysis result list, the first mapping relation and the second mapping relation.
And obtaining an Event-B modeling element by utilizing the analysis result list of the step 102 according to the mapping relation of the step 104, and accordingly, completing the establishment of the initial model by using an Event-B formalization method.
The modeling elements of the partial initial Event-B model are shown in tables 2-4.
TABLE 2 Carrier set Table
| Carrier set name
|
Definition of vector set
|
The constant comprised by the set of vectors
|
| M1
|
Pump model
|
ON、OFF
|
| M2
|
Valve model
|
OPEN、CLOSED
|
| M3
|
Steam boiler model
|
NORMAL、DEGRADE、Stop
|
| M4
|
Control model
|
ENV、DET、CON、PRE |
TABLE 3 VARIABLE-METER
TABLE 4 constant value table
Invariance:
inv1.1 indicates that the pump door is closed when the valve is in the open state; inv1.2 indicates that the valve must be closed when the pump door is open. These two invariants correspond to the functional requirement FUN-2. The proof of these two invariants is done in the model to complete the proof of the functional requirement FUN-2.
And step 106, correcting the initial Event-B model to enable the corrected Event-B model to meet the functional requirements of the steam boiler system.
The invention completes the refinement process of the models according to the specific functional requirements of the steam boiler system, and completes the certification obligations of the models and generates executable codes to complete the development of the steam boiler system by using a theorem certifier on a Rodin platform.
The initial Event-B model is refined according to the functional requirements of the steam boiler system until all functional requirements are met and the Event-B model can handle the list of analysis results from step 102. Wherein the functional requirements of the steam boiler system are shown in table 5.
TABLE 5 functional requirements Table for steam boiler System
| ID
|
Demand for
|
| FUN-1
|
The system should rely on the predicted value of water level to detect whether the water level is within the safe limit
|
| FUN-2
|
The pump and valve cannot be operated simultaneously
|
| FUN-3
|
The valve being openable only before the start of operation
|
| FUN-4
|
When the water level reaches the safety limit, the operation should be carried out in time |
If the modeling elements of the initial Event-B model are not enough to describe the functional requirements of the steam boiler system, the modeling elements such as carrier sets, constants, variables, events and the like are continuously added to meet the functional requirements of the system.
Specifically, as shown in fig. 6, the modifying the initial Event-B model to make the modified Event-B model satisfy the functional requirements of the steam boiler system specifically includes: judging whether the initial Event-B model meets the functional requirements of a steam boiler system or not, and obtaining a first judgment result; if the first judgment result shows yes, judging whether the initial Event-B model corresponds to the analysis result list or not, and obtaining a second judgment result; if the first judgment result shows that the initial Event-B model cannot meet the functional requirements or the second judgment result shows that the initial Event-B model cannot meet the functional requirements, the modeling elements corresponding to the non-corresponding parts in the analysis result list are added in the initial Event-B model to obtain an updated initial Event-B model, and the step of 'judging whether the initial Event-B model meets the functional requirements of the steam boiler system to obtain a first judgment result' is returned; and if the second judgment result shows that the Event-B model is the modified Event-B model, outputting the initial Event-B model updated by the last iteration as the modified Event-B model.
All of the proof obligations generated at step 106 are completed using a theorem prover on the Rodin platform and executable code is generated.
And step 107, performing safety prevention on the steam boiler system by using the corrected Event-B model.
A safety analysis system for a steam boiler system, the analysis system comprising:
and the control structure block diagram establishing module is used for drawing a control structure block diagram of the steam boiler system according to the function and the control action of each component of the steam boiler system.
And the analysis result list establishing module is used for analyzing the potential failure mode and failure consequence of the steam boiler system according to the control structure block diagram and establishing an analysis result list containing a failure mode, a failure component level influence, a failure system level influence, a failure reason and a countermeasure.
And the first mapping relation establishing module is used for establishing a mapping relation from the analysis result to the control process of the steam boiler system according to the analysis result list to serve as a first mapping relation.
The control process of the steam boiler system comprises a sensing stage, a detection stage, a control stage and a prevention stage.
The first mapping relationship comprises: mapping of failure modes and failure causes to sensing phases, mapping of failure system level effects to detection phases, mapping of failure system level effects to safety invariants, mapping of countermeasures to stop modes and degraded modes.
And the second mapping relation establishing module is used for establishing a mapping relation from the steam boiler system to a modeling element of the Event-B model as a second mapping relation according to the analysis result list and the first mapping relation.
The second mapping relationship comprises: mapping relation of variables, constants and invariants from the sensing phase to the Event-B model; mapping from the detection phase to the prevention phase; and mapping relations from the detection phase, the security invariance of the Event-B model, the degradation mode and the stop mode to the sensing phase.
And the initial Event-B model establishing module is used for establishing an initial Event-B model for safety prevention of the steam boiler system according to the analysis result list, the first mapping relation and the second mapping relation.
And the Event-B model correction module is used for correcting the initial Event-B model so that the corrected Event-B model meets the functional requirements of the steam boiler system.
The Event-B model modification module specifically comprises: the first judgment submodule is used for judging whether the initial Event-B model meets the functional requirements of the steam boiler system or not and obtaining a first judgment result; the second judgment submodule is used for judging whether the initial Event-B model corresponds to the analysis result list or not if the first judgment result represents yes, and obtaining a second judgment result; an Event-B model modification submodule, configured to, if the first determination result indicates that the initial Event-B model cannot meet the functional requirements or the second determination result indicates that the initial Event-B model does not meet the functional requirements, add a modeling element corresponding to a non-corresponding part in an analysis result list to the initial Event-B model, obtain an updated initial Event-B model, call the first determination submodule, and perform "determine whether the initial Event-B model meets the functional requirements of the steam boiler system, and obtain a first determination result"; and the corrected Event-B model output submodule is used for outputting the initial Event-B model updated by the last iteration as the corrected Event-B model if the second judgment result shows that the initial Event-B model is positive.
And the safety prevention module is used for performing safety prevention on the steam boiler system by using the corrected Event-B model.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the invention carries out the failure safety analysis on the steam boiler system based on the failure mode and the influence analysis method, adds corresponding redundant components in the system according to the analysis result, ensures the safety of the system from the hardware level, strictly analyzes the control structure and the control flow of the steam boiler system, and adds a prediction stage in the control flow so as to ensure the safety of the system from the software level. Namely, the safety of the system is simultaneously ensured from two layers of hardware and software.
The invention can replace the fault assembly after the tolerable fault occurs, and has certain elasticity.
The invention also establishes an effective mapping relation between the failure mode and the influence analysis and the control flow analysis of the system by combining the Event-B modeling element. The mapping provides a method for converting the fail-safe analysis expressed in natural language into Event-B modeling elements.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.