Method, system and equipment for predicting state of reactor core and medium
Through data fusion and state prediction models, the multi-physics parameters of the reactor core are processed to generate accurate core state information, which solves the problem of long calculation time of high-fidelity numerical models and achieves real-time accurate prediction and improved prediction of reactor core state. efficiency.
Patent Information
- Application Number
- CN202410536680.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-30
AI Technical Summary
High-fidelity numerical reactor models take a long time to calculate and cannot accurately reflect the rapid changes in reactor measured data, resulting in the inability to accurately predict the reactor core status in real time.
By obtaining the initial state measurement parameters of the reactor core, using the data fusion model to perform fusion processing of multi-physics parameters, generating a target data matrix, and using the state prediction model to predict the core state information, including determining state particles and error particles, and then updating Core status.
It achieves accurate prediction of the reactor core state, reduces the mutual coupling and influence between different physical fields, and improves the accuracy and efficiency of prediction.
Smart Images

Figure CN118569050A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of nuclear reactors, and in particular to a method, system, equipment and medium for predicting the state of a reactor core. Background Art
[0002] High-fidelity numerical reactor models provide a tool for a comprehensive understanding and assessment of the behavior of nuclear energy systems. They are widely used in the nuclear energy field because they can accurately describe and simulate the physical processes and behaviors of reactors. However, the calculation time of high-fidelity numerical reactor models is usually measured in days or months, while the refresh frequency of reactor measured data is usually measured in seconds. Obviously, high-fidelity numerical reactor models cannot accurately reflect changes in reactor measured data. Summary of the invention
[0003] In view of this, one of the objects of the present application is to provide a method, system, electronic device and computer-readable storage medium for predicting the state of a reactor core, which can accurately predict the state of a reactor core.
[0004] In a first aspect, an embodiment of the present application provides a method for predicting a reactor core state, comprising:
[0005] Acquire a first core state measurement parameter of the target reactor core at a first time step, wherein the first time step is a time step obtained by dividing the combustion process of the target reactor core, and the first core state measurement parameter includes state measurement parameters of the target reactor core in multiple physical fields;
[0006] When the first core state measurement parameter is input into the data fusion model, the state measurement parameters of multiple physical fields are fused through the data fusion model to obtain a target data matrix;
[0007] When the target data matrix is input into the state prediction model, the first core state information is predicted by the state prediction model, wherein the first core state information is used to characterize the core state of the target reactor core at a second time step, and the second time step is later than the first time step.
[0008] In a possible implementation manner, when a target data matrix is input into a state prediction model, obtaining first core state information through prediction by the state prediction model includes:
[0009] According to the state prediction model, determine the prediction covariance matrix;
[0010] Initializing the first core state measurement parameters to obtain a state estimation vector and a state covariance matrix;
[0011] According to the state estimation vector and the state covariance matrix, the target state particle at the first time step is determined;
[0012] According to the predicted covariance matrix, the target error particle at the first time step is determined;
[0013] First core state information is determined according to the target state particles and the target error particles.
[0014] In a possible implementation manner, determining first core state information according to target state particles and target error particles includes:
[0015] According to the preset state transfer equation and target error particles, the target state particles are propagated to the second time step to obtain the core state information.
[0016] In a possible implementation, when the target data matrix is input into the state prediction model, after first core state information is obtained through prediction by the state prediction model, the method further includes:
[0017] Under the condition that the prior probability is determined according to the core state information, the target state particle and the target error particle, a second core state measurement parameter of the target reactor core at the second time step is obtained;
[0018] Determine a second target state particle at a second time step according to a second core state measurement parameter and a priori probability;
[0019] Mapping the second target state particle to the measurement space to obtain the measurement hardware value and the covariance matrix of the measurement hardware value;
[0020] The first core state information is updated according to the measured hardware value and the covariance matrix of the measured hardware value.
[0021] In a possible implementation manner, updating the first core state information according to the measured hardware value and the covariance matrix of the measured hardware value includes:
[0022] In the case of obtaining the measurement value and uncertainty at the second time step, determining the residual according to the measurement value and the measurement hardware value at the second time step;
[0023] Determine the gain based on the covariance matrix and uncertainty of the measured hardware values;
[0024] The first core state information is updated according to the residual and the gain.
[0025] In a possible implementation, the state measurement parameters of multiple physical fields are fused through a data fusion model to obtain a target data matrix, including:
[0026] The state measurement parameters of multiple physical fields are fused by a data fusion model to obtain a first data matrix;
[0027] The first data matrix is subjected to order reduction processing to obtain a second data matrix, wherein the target data matrix includes the second data matrix.
[0028] In a possible implementation, the state measurement parameters of multiple physical fields are fused by a data fusion model to obtain a first data matrix, including:
[0029] Determine the spatial distribution data of the target reactor core under various physical fields to obtain multiple initial data matrices;
[0030] Multiple initial data matrices are concatenated to obtain a first data matrix.
[0031] In a possible implementation, performing order reduction processing on the first data matrix to obtain the second data matrix includes:
[0032] Determining a covariance matrix of the first data matrix when the first data matrix is reshaped according to a predetermined reshaping function;
[0033] Obtaining initial principal components of the covariance matrix of the first data matrix and eigenvalues corresponding to the initial principal components;
[0034] When the variance contribution rate of each initial principal component is determined, the target principal component is determined according to a preset variance contribution rate threshold;
[0035] The reshaped first data matrix is reconstructed according to the target principal component and the eigenvalue corresponding to the target principal component to obtain a second data matrix.
[0036] In a possible implementation, obtaining initial principal components of the covariance matrix of the first data matrix and eigenvalues corresponding to the initial principal components includes:
[0037] According to the principal component analysis method or the singular value decomposition method, the initial principal components and the eigenvalues corresponding to the initial principal components are determined.
[0038] In a second aspect, an embodiment of the present application provides a system for predicting a reactor core state, comprising:
[0039] An acquisition module is used to acquire a first core state measurement parameter of a target reactor core at a first time step, wherein the first time step is a time step obtained by dividing a combustion process of the target reactor core, and the first core state measurement parameter includes state measurement parameters of the target reactor core in multiple physical fields;
[0040] A fusion module is used for fusing the state measurement parameters of multiple physical fields through the data fusion model to obtain a target data matrix when the first core state measurement parameter is input into the data fusion model;
[0041] A prediction module is used to obtain first core state information through the state prediction model when a target data matrix is input into the state prediction model, wherein the first core state information is used to characterize the core state of the target reactor core at a second time step, and the second time step is later than the first time step.
[0042] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and when the computer program is executed by the processor, the method for predicting the reactor core state provided in the first aspect is implemented.
[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by one or more processors, the method for predicting the reactor core state provided in the first aspect is implemented.
[0044] The method for predicting the state of a reactor core provided in an embodiment of the present application obtains a first core state measurement parameter of a target reactor core at a first time step; and when the first core state measurement parameter is input into a data fusion model, the state measurement parameters of multiple physical fields are fused through the data fusion model to obtain a target data matrix, which can reduce the mutual coupling and mutual influence between different physical fields and improve the consistency between different physical fields; when the target data matrix is input into a state prediction model, the first core state information can be accurately obtained through the prediction of the state prediction model, thereby achieving accurate prediction of the state of the target reactor core. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. It should be understood that the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 A method flow chart of a method for obtaining a reactor core state provided in an embodiment of the present application;
[0047] Figure 2 A schematic diagram of functional modules of a system for obtaining the state of a reactor core provided in the present application;
[0048] Figure 3 An internal structure diagram of an electronic device provided in an embodiment of the present application.
[0049] Description of reference numerals:
[0050] The system 200 for acquiring the reactor core status includes an acquisition module 210 , a fusion module 220 , and a prediction module 230 . DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0053] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0054] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0055] In various embodiments of the present application, the expression "or" or "at least one of A or / and B" includes any combination or all combinations of the words listed at the same time. For example, the expression "A or B" or "at least one of A or / and B" may include A, may include B, or may include both A and B.
[0056] In the description of the present application, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, it is based on the orientation or position relationship shown in the drawings, or is the orientation or position relationship in which the product of the invention is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.
[0057] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0058] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.
[0059] See also Figure 1 , Figure 1 A method flow chart of a method for obtaining a reactor core state provided in an embodiment of the present application. The method for obtaining a reactor core state can be applied to electronic devices in the following embodiments, including personal computers, servers, mobile devices, cloud computing platforms, and supercomputers. The method for obtaining a reactor core state specifically includes the following steps:
[0060] Step 110, obtaining a first core state measurement parameter of the target reactor core at a first time step, wherein the first time step is a time step obtained by dividing the combustion process of the target reactor core, and the first core state measurement parameter includes state measurement parameters of the target reactor core in multiple physical fields;
[0061] Step 120, when the first core state measurement parameter is input into the data fusion model, the state measurement parameters of multiple physical fields are fused by the data fusion model to obtain a target data matrix;
[0062] Step 130, when the target data matrix is input into the state prediction model, the first core state information is predicted by the state prediction model, wherein the first core state information is used to characterize the core state of the target reactor core at a second time step, and the second time step is later than the first time step.
[0063] The method for predicting the state of a reactor core provided in an embodiment of the present application obtains a first core state measurement parameter of a target reactor core at a first time step; and when the first core state measurement parameter is input into a data fusion model, the state measurement parameters of multiple physical fields are fused through the data fusion model to obtain a target data matrix, which can reduce the mutual coupling and mutual influence between different physical fields and improve the consistency between different physical fields; when the target data matrix is input into a state prediction model, the first core state information can be accurately obtained through the prediction of the state prediction model, thereby achieving accurate prediction of the state of the target reactor core.
[0064] The following will be Figure 1 Each step of the method is described in detail.
[0065] In step 110, a first core state measurement parameter of the target reactor core at a first time step may be obtained by an electronic device, wherein the first time step is a time step obtained by dividing the combustion process of the target reactor core, and the first core state measurement parameter includes state measurement parameters of the target reactor core in multiple physical fields.
[0066] The target reactor core may be any one of the multiple reactor cores in at least one nuclear power plant, or may be at least two of the multiple reactor cores in at least one nuclear power plant, and the number of target reactor cores may be selected according to actual needs. For the purpose of clear and concise introduction, the target reactor core in this embodiment and the following embodiments may be regarded as any one of the multiple reactor cores in at least one nuclear power plant.
[0067] At present, common nuclear reactor types around the world include pressurized water reactors, boiling water reactors, heavy water reactors, gas-cooled reactors and molten salt reactors. The method for obtaining the reactor core state provided in this embodiment can be applied to any type of nuclear reactor and has a wide range of applications.
[0068] The first time step may also be referred to as the first burnup step. The burnup step is the main process of nuclear fuel depletion and fission product accumulation in the reactor core. The process can be divided into multiple time steps or burnup steps. The first time step is any time step among the multiple time steps.
[0069] The multiple physical fields are physical fields related to the disciplines to which the operating parameters involved in the target reactor core belong, such as temperature distribution, neutron flux distribution, flow field distribution, stress distribution, power distribution, product deposition distribution and other physical fields.
[0070] Corresponding to the above example, the first core state measurement parameter may include data such as temperature, neutron flux, mechanical stress, thermal stress, oxides, carbonates, silicates, velocity of flowing media such as water, pressure, temperature, etc.
[0071] In step 120, when the first core state measurement parameter is input into the data fusion model, the state measurement parameters of multiple physical fields are fused through the data fusion model to obtain a target data matrix.
[0072] The state measurement parameters in multiple physical fields can be acquired through multiple detectors in the target reactor core. The state measurement parameters acquired by each detector may be different, and the acquisition accuracy may not be exactly the same, and there may even be large differences.
[0073] In this embodiment, the state measurement parameters of multiple physical fields are fused through a data fusion model to obtain a target data matrix. In addition, the target data matrix is applied to predict the core state of the target reactor core in the following embodiment, which can reduce the influence between different physical fields, obtain a comprehensive and multi-angle prediction of the core state, reduce the uncertainty of information, and thus improve the accuracy of predicting the core state of the target reactor core.
[0074] In step 130, when the target data matrix is input into the state prediction model, the first core state information is predicted by the state prediction model, wherein the first core state information is used to characterize the core state of the target reactor core at a second time step, and the second time step is later than the first time step.
[0075] Specifically, the target data matrix is obtained based on the first core state measurement parameters at the first time step. On the basis of determining the target data matrix, the first core state information at the second time step can be further predicted by the state prediction model in this embodiment to determine the core state of the target reactor core at the second time step.
[0076] Among them, the state prediction model is trained based on the historical core state information in the training samples and the historical data matrix corresponding to the training samples. The training samples also include historical core state measurement parameters. The historical data matrix is obtained by fusing the historical core state measurement parameters based on the data fusion model.
[0077] In a possible implementation, the state measurement parameters of multiple physical fields are fused through a data fusion model to obtain a target data matrix, including:
[0078] The state measurement parameters of multiple physical fields are fused by a data fusion model to obtain a first data matrix;
[0079] The first data matrix is subjected to order reduction processing to obtain a second data matrix, wherein the target data matrix includes the second data matrix.
[0080] This embodiment can fuse the state measurement parameters of multiple physical fields through the data fusion model, which can reduce the impact between different physical fields, obtain a comprehensive and multi-angle prediction of the core state, reduce the uncertainty of information, and thus improve the accuracy of predicting the core state of the target reactor core.
[0081] Furthermore, this embodiment performs order reduction processing on the first data matrix, which can reduce the amount of data that needs to be processed, reduce the complexity of solving the prediction of the state prediction model, and help improve the prediction efficiency of the state prediction model.
[0082] In some embodiments, the target data matrix includes a first data matrix, and the data fusion model may only perform fusion processing on state measurement parameters of multiple physical fields during the processing process to meet special prediction accuracy requirements.
[0083] In some embodiments, in the process of fusing state measurement parameters of multiple physical fields, the consistency of state measurement parameters of different physical fields can be achieved according to a preset coupling strategy. Specifically, each physical field can be forced to be consistent within each time step.
[0084] In some embodiments, the consistency of state measurement parameters of different physical fields can also be achieved by iteratively solving until convergence. Specifically, a set of equations for describing the coupling relationship between different physical fields can be established first, and the initial values of all physical fields can be set. In each iteration, the coupling equations are updated according to the value of the current physical field, and it is checked whether the value of the physical field has converged to a preset accuracy range. If it converges to the preset accuracy range, the iteration can be stopped, otherwise, the iteration is continued until it is detected that the value of the physical field converges to the preset accuracy range.
[0085] In a possible implementation, the state measurement parameters of multiple physical fields are fused by a data fusion model to obtain a first data matrix, including:
[0086] Determine the spatial distribution data of the target reactor core under various physical fields to obtain multiple initial data matrices;
[0087] Multiple initial data matrices are concatenated to obtain a first data matrix.
[0088] In this embodiment, a splicing method can be selected according to needs, including any splicing method such as horizontal splicing, vertical splicing, block splicing, diagonal splicing, etc.
[0089] In a possible implementation, performing order reduction processing on the first data matrix to obtain the second data matrix includes:
[0090] Determining a covariance matrix of the first data matrix when the first data matrix is reshaped according to a predetermined reshaping function;
[0091] Obtaining initial principal components of the covariance matrix of the first data matrix and eigenvalues corresponding to the initial principal components;
[0092] When the variance contribution rate of each initial principal component is determined, the target principal component is determined according to a preset variance contribution rate threshold;
[0093] The reshaped first data matrix is reconstructed according to the target principal component and the eigenvalue corresponding to the target principal component to obtain a second data matrix.
[0094] This embodiment obtains the target principal components by screening the initial principal components of the covariance matrix of the first data matrix, thereby reducing the order of the first data matrix, simplifying data analysis, and further improving the prediction efficiency of the state prediction model.
[0095] In a possible implementation, obtaining initial principal components of the covariance matrix of the first data matrix and eigenvalues corresponding to the initial principal components includes:
[0096] According to the principal component analysis method or the singular value decomposition method, the initial principal components and the eigenvalues corresponding to the initial principal components are determined.
[0097] This embodiment can achieve dimensionality reduction based on principal component analysis or singular value decomposition. Taking the principal component analysis as an example, the original data in the covariance matrix of the first data matrix is mapped to a new low-dimensional space, and each dimension in the new space is the main component of the original data. By retaining the most important principal components, data dimensionality reduction can be achieved, reducing the dimension of the data, thereby simplifying data analysis and improving the prediction efficiency of the state prediction model.
[0098] In addition, principal component analysis can also identify redundant information and noise in the data and extract the most representative features, thereby simplifying and streamlining the data. By retaining the main components, the essential characteristics of the data can be more effectively captured, improving the prediction accuracy of the state prediction model.
[0099] In order to more clearly illustrate the specific implementation process in the above embodiment, an example of a process for determining the first data matrix is as follows:
[0100] 1.1 Determine the number of physical fields as M1.
[0101] 1.2 Divide the target reactor core into discrete small units to form a computing network. The number of spatial grids in the target reactor core is M2.
[0102] 1.3 Define initial conditions for each physical field. The initial condition refers to the initial state of the physical field at the beginning of the calculation, and the parameters related to the initial state may include the rod position of the control rod in the target reactor core, the critical boron concentration, the core power level, the burnup level, the power operation history, etc. Discretize each of the above state parameters, and finally form different state permutations and combinations to obtain M3 initial core states.
[0103] 1.4 Set the coupling strategy. Set the total running time T and the time step dt. The number of timing points for each simulation is M4, and M4*dt=T.
[0104] 1.5 Iteration of multiple physical fields. For the initial states of the M3 cores, the nuclear reactor design software is used to perform iterative calculations of multiple physical fields, and the spatial distribution of each field in the nuclear reactor multi-physical field is recorded in each time step. Finally, multiple initial data matrices X1 are formed, whose dimensions are (M3, M4, M1, M2).
[0105] 1.6 Splice the data of multiple physical fields. With the help of the reshape function in the open source matrix calculation library such as numpy (np), the splicing of multiple initial data matrices is completed, and the first data matrix X2 is obtained as follows:
[0106] X2 = np.reshape(X1, (M3, M4, M1*M2)) Formula 1
[0107] Following the above example, an example of a process for determining the second data matrix is as follows:
[0108] 2.1 Reshape the first data matrix X2 into a two-dimensional matrix as follows:
[0109] X2 reshaped =np.reshape(X2, (M3*M4, M1*M2)) Formula 2
[0110] 2.2 Calculate the covariance matrix of the reshaped first data matrix X2 as follows:
[0111] cov_M = np.cov(X2 reshaped , rowvar=False) Formula 3
[0112] Among them, cov_M is the calculated covariance, and rowvar=False is the input keyword of the np.cov function.
[0113] 2.3 Perform principal component analysis on the covariance matrix of the first data matrix X2 after calculation and reshaping. Perform principal component analysis (PCA) on the covariance matrix to obtain the principal components and their corresponding eigenvalues. Optionally, use the decomposition module of the open source machine learning library skleam, import the PCA module, and output the principal component decomposition and the corresponding eigenvalues as follows:
[0114] eig val , eig vec =PCA(cov_M) Formula 4
[0115] Among them, eig val is a list of eigenvalues (also called characteristic values), which are usually arranged in a list from large to small, expressed as (eig val,1≥eig val,2 ≥…≥eig val,neig ), neig is the number of eigenvalues. eig vec is a list of eigenvectors (also called eigenvalue vectors) corresponding to the eigenvalues.
[0116] 2.4 Calculation of cumulative variance contribution rate. For each initial principal component, calculate its corresponding variance contribution rate. The variance contribution rate represents the percentage of the total variance explained by the initial principal component.
[0117] var r,i =eig val,i / np.sum(eig val ) Formula 5
[0118] cum_var r =np.cumsum(var r ) Formula 6
[0119] Among them, var r Represents the normalized eigenvalue list, var r,j is the value of the i-th variable in the list. cum_var r Indicates that var r,i A list of accumulated values is obtained by accumulation, where the last value in the list is 1.
[0120] 2.5 Determine the target principal component and its eigenvalue. According to the cumulative variance contribution rate, determine the number of principal components to be retained M5. Traverse the variance contribution rate of the principal components until the cumulative variance contribution rate reaches a preset threshold such as 0.99. Usually, since the variance contribution rate of the principal component decreases exponentially, only a few principal components need to be retained to achieve a retention accuracy of more than 0.99. Therefore, M5<<M1*M2. Among them,
[0121] M5 = np.argmax(cum_var r >=0.99)+1 Formula 7
[0122] W=eig vec [:,M5] Formula 8
[0123] Among them, W represents the dimension reduction matrix, and the dimension is (M1*M2, M5).
[0124] 2.6 Reconstruct the second data matrix X3. Use the retained target principal components and corresponding eigenvalues to reconstruct the two-dimensional matrix: X2 recon , the dimension is (M3*M4, M5), where
[0125] X2 recon =np.dot(X2 reshaped, W) Formula 9
[0126] Furthermore, the two-dimensional matrix X2 recon Reconstruct into a three-dimensional matrix X3 with dimensions (M3, M4, M5).
[0127] It can be seen that the dimension of the time series data matrix can be reduced while the cumulative variance contribution rate of the PCA principal component (target principal component) is kept above 0.99. This can reduce the dimension and improve the prediction efficiency while maintaining a high data interpretation ability.
[0128] In some embodiments, the second time step is the next time step adjacent to the first time step.
[0129] In a possible implementation manner, when a target data matrix is input into a state prediction model, obtaining first core state information through prediction by the state prediction model includes:
[0130] According to the state prediction model, determine the prediction covariance matrix;
[0131] Initializing the first core state measurement parameters to obtain a state estimation vector and a state covariance matrix;
[0132] According to the state estimation vector and the state covariance matrix, the target state particle at the first time step is determined;
[0133] According to the predicted covariance matrix, the target error particle at the first time step is determined;
[0134] The first core state information is determined according to the target state particles and the target error particles.
[0135] This embodiment can further improve the accuracy of determining the first core state information by combining the state prediction model with Bayesian filtering, and thus predict the core distribution with high accuracy.
[0136] In a possible implementation manner, determining first core state information according to target state particles and target error particles includes:
[0137] According to the preset state transfer equation and target error particles, the target state particles are propagated to the second time step to obtain the core state information.
[0138] Similarly, in order to more clearly illustrate the specific implementation process in the above embodiment, following the above process examples 1.1-1.6 and 2.1-2.6, an example process for determining a state prediction model is as follows:
[0139] 3.1 Build the transformer model. The input is the matrix X representing the time series and the reduced dimension is d and M5 respectivelyin , the output is a matrix X with time series and reduced dimensions k and M5 respectively out .
[0140] According to the characteristics of nonlinear dynamics of nuclear reactors, the time series value of d can be between 2 and 100, and d ≤ M4. The optional value of k is selected according to the required prediction length, usually 1 ≤ k ≤ d.
[0141] 3.1.1 Constructing the input encoder: (1) For X jn The input is embedded and encoded to map each element into a low-dimensional feature space. An embedding layer can be used to convert the input into a lower-dimensional feature representation. (2) In order to capture temporal information, position encoding can be added to introduce the sequential information of the temporal dimension into the model.
[0142] 3.1.2 Constructing the Transformer encoding layer: It consists of multiple Transformer encoder layers, each of which contains a self-attention mechanism and a feed-forward neural network. The self-attention mechanism can learn the dependencies between elements in time series data and model the time series information. The feed-forward neural network is used to perform nonlinear transformations on time series data.
[0143] 3.1.3 Constructing Transfomer decoding layer: Similar to the input encoder, the decoder layer is responsible for converting the features learned by the model into output time series data. Multi-layer Transformer decoder layers can be used to reconstruct and map features.
[0144] 3.1.4 Constructing the output decoder: The output decoder maps the output of the decoder layer back to the target dimension k and the spatial dimension M5.
[0145] 3.2 Selection of state prediction model parameters.
[0146] 3.2.1 Number of Transformer Layers (n layers ): The number of Transformer layers in the encoder and decoder. Deeper models can provide more complex representation capabilities, but also increase computational costs and training difficulty. The present invention generally takes a value of 4-12.
[0147] 3.2.2 Hidden layer dimension of feedforward neural network (d model ): Specifies the dimension of the hidden layer in a feedforward neural network. A larger hidden layer dimension provides stronger nonlinear modeling capabilities. Also called the dimension of the feature vector, it is generally 128-1024.
[0148] 3.2.3 Number of attention heads (n heads ): specifies the number of multi-head attention in the attention mechanism. Each attention head can focus on different parts of the input sequence, thus providing better representation and modeling capabilities. The value is usually 4-16. A common choice is to set the number of attention heads to the number of layers in the model (n layers ), which can balance the complexity of the model and the computational efficiency to a certain extent.
[0149] 3.2.4 Embedding Dimension (e dim ): specifies the dimension of the input embedding layer and position encoding. Usually, the embedding dimension should be large enough to capture the rich features of the input data. The general value is d model / n heads .
[0150] 3.2.5 Activation function type, generally takes the value "ReLU", which is not limited in the present invention.
[0151] 3.2.6 Learning rate (LR): specifies the learning rate used during model training, which is used to control the step size of parameter updates. The choice of learning rate has an important impact on the training effect and convergence speed of the model. The general value is 0.001-0.0001.
[0152] 3.3 Construct a training data set. From the second data matrix X3, construct a training set and a test set. Suppose the number of working condition samples corresponding to the training set is M31, and the number of working condition samples corresponding to the test set is M32, M3 = M31 + M32. Then the training set input is X_train in , the dimension is (M31, M4-dk, d, M5), and its corresponding output set is X_train out The dimensions are (M31, M4-dk, k, M5), where (M4-dk) represents the maximum number of segments to be intercepted for a time series. Similarly, we get X_test in and X_test out Their dimensions are (M31, M4-dk, d, M5) and (M32, M4-dk, k, M5)
[0153] Take the training set as an example:
[0154] (1) Determine the number of training samples: Since the length of each time series segment is M4, after truncation, M4-dk segments remain, so the number of training samples is M3*(M4-dk).
[0155] (2) Initialize X_train in and X_train out : Create an empty X_train in and X_trainout Matrices with dimensions (M31, M4-dk, d, M5) and (M31, M4-dk, k, M5) respectively.
[0156] (3) Construct training samples: For each sample (M3 time series), iterate according to the dimension of the time series. For each time series, starting from the first time step, sequentially intercept time series segments of length M4-dk. For each time series segment, take the data of the first d time steps as input and the data of the next k time steps as output. Add the intercepted time series segments to X_train in and X_train out The corresponding position in .
[0157] Similarly, construct the test set X_test in and X_test out No longer on display.
[0158] 3.4 Model training and model testing.
[0159] According to X_train in and X_train out Construct a sample set for model training and use an appropriate loss function, such as mean squared error or mean absolute error, to measure the model output model_train out And the true output X_train out The difference between them. You can use optimization algorithms such as gradient descent to minimize the loss and update the model parameters in 3.2.
[0160] The input of the test set is X_test in Apply to the transformer model to obtain model_test out , if model_test out If the preset conditions are met, the trained state prediction model is obtained, otherwise the process of 3.4 is repeated until model_test out The preset conditions are met.
[0161] In order to improve the accuracy and prediction ability of the state prediction model, by understanding the uncertainty in the model, the limitations of the state prediction model can be identified and corresponding improvement measures can be taken to improve the accuracy and reliability of the model prediction. It is necessary to build a full-order model and quantify uncertainty, such as the example process 4.1-4.4.
[0162] 4.1 Full-order model construction and uncertainty quantification Since the dimension reduction matrix W in the previous example is an orthogonal matrix (each column is unit orthogonal), its inverse matrix is equal to its transposed matrix. Calculate the inverse transformation matrix W of the dimension reduction matrix W inv , the dimension is (M5, M1*M2). Using the linalg.inv function in the numpy library, we can get:
[0163] W inv =np.linalg.inv(W) Formula 10
[0164] 4.2 Reduced-order matrix model_test predicted by Transformer out and the inverse transformation matrix W inv Multiply to get the restored prediction matrix full_model_test out as follows:
[0165] full_model_test out =np.dot(model_test out , W inv .T) Formula 11
[0166] 4.3 Get the true value of the original data. out The corresponding full-order multi-physics field distribution value under the same time series input and the same sequence output under the same working condition sample. Here, through a simple corresponding relationship, we can get: X2 full Its dimension is X2(M3_2, M4-dk, k, M5).
[0167] 4.4 Evaluation Model Transformer State Prediction Model and Reduced Order Model Error
[0168] The error of the prediction model is:
[0169]
[0170] Among them, i=1,…,k; j=1,…,M5.
[0171] Following the above process example, an example of a process for determining the core status information is as follows:
[0172] 5.1 Combine the state prediction model with Bayesian filtering, and perform real-time estimation of the state of multi-physics coupling of the target reactor core based on the measured values. At this time, due to the real-time numerical twin, only the state of one time step at the next moment needs to be predicted. Therefore, in the current example process, k = 1. At this time, the covariance matrix predicted by the model can be:
[0173] Q = Diag (MSE (1, j), j = 1, ..., M5) Formula 13
[0174] 5.2 Monte Carlo Sampling.
[0175] In the multivariate Gaussian distribution Assume that Monte Carlo sampling is used to sample N state particles:
[0176]
[0177] Similarly, sampling N model error particles is as follows:
[0178]
[0179] 5.3 Prediction of the target reactor core state at time t+1 (second time step):
[0180] Propagate each state particle to the next time step as follows
[0181]
[0182] Among them, F represents the state transition equation, which describes the mathematical model of how the system state evolves over time. It is used to predict the state of the target reactor core system in the next time step (the second time step) based on the historical state and input of the current time step (the first time step).
[0183] Among them, in the present invention, the state transfer equation F is formed from the complete calculation process of the above-mentioned example processes 2.1-4.4.
[0184] Therefore, the predicted core state (first core state information) at the next time step (second time step) can be obtained as follows:
[0185]
[0186] In a possible implementation, when the target data matrix is input into the state prediction model, after first core state information is obtained through prediction by the state prediction model, the method further includes:
[0187] Under the condition that the prior probability is determined according to the core state information, the target state particle and the target error particle, a second core state measurement parameter of the target reactor core at the second time step is obtained;
[0188] Determine a second target state particle at a second time step according to a second core state measurement parameter and a priori probability;
[0189] Mapping the second target state particle to the measurement space to obtain the measurement hardware value and the covariance matrix of the measurement hardware value;
[0190] The first core state information is updated according to the measured hardware value and the covariance matrix of the measured hardware value.
[0191] In a possible implementation manner, updating the first core state information according to the measured hardware value and the covariance matrix of the measured hardware value includes:
[0192] In the case of obtaining the measurement value and uncertainty at the second time step, determining the residual according to the measurement value and the measurement hardware value at the second time step;
[0193] Determine the gain based on the covariance matrix and uncertainty of the measured hardware values;
[0194] The first core state information is updated according to the residual and the gain.
[0195] This embodiment realizes the correction and update of the first core state information, and further improves the accuracy and reliability of the predicted first core state information.
[0196] Similarly, in order to more clearly illustrate the specific implementation process in the above embodiment, following the above process examples 5.1-5.3, an example process of determining a state prediction model is as follows:
[0197] 5.4 Obtain the measured value at time t+1 and the prior probability.
[0198] Specifically, the prior probability is determined according to the following formula:
[0199]
[0200] Assume that there are ND1 temperature detectors, ND2 pressure detectors, ND3 velocity detectors, ND4 neutron detectors, etc. arranged inside and outside the nuclear reactor. The total number of detectors is expressed as NDet = ND1 + ND2 + ND3 + ND4 + ...
[0201] The observation function is a mathematical function used to describe the relationship between the state of a system and its observations. In state estimation problems, we usually cannot directly observe the true state of the system, but infer the state of the system through a series of observations. The observation function defines how to map the state of the system to the observation space.
[0202] The observation function is usually expressed as h(x), where x is the state vector of the system. It accepts the state of the system as input and outputs the corresponding observation. The observation function can be nonlinear and can contain noise terms to reflect the uncertainty of the actual observation.
[0203] The instrument control system or data centralized processing system of the nuclear power plant obtains the measurement value z at time t+1 (the second time step) t+1, and the associated uncertainty R mes The relevant instrumentation and control system is standard, and it is generally easy to obtain the corresponding measurement signals in nuclear power plants. The covariance matrix R of the measured values mes , the dimension is (NDet, NDet), where NDet represents the total number of detectors in the nuclear reactor.
[0204] 5.5 Predict the detector measurement value corresponding to the target reactor core state at time t+1:
[0205] Predicting new states and prior probability Afterwards, based on the multidimensional Gaussian hypothesis, N state particles are sampled:
[0206]
[0207] Then mapped to the measurement space, we get:
[0208]
[0209] Where h is the observation function in process 5.4.
[0210]
[0211] 5.6t+1 (second time step) measurement update of the target reactor core state:
[0212] The residual between the measurement and prediction can be expressed as y:
[0213]
[0214] The corresponding gain is calculated as K:
[0215]
[0216] According to the gain and residual, the predicted reactor state can be corrected or updated to the best estimated state St+1 as follows:
[0217]
[0218] The posterior probability Pt+1 is as follows:
[0219]
[0220] 5.7 Let t=t+1 (update the second time step to the next time step of the second time step), and repeat the above example processes 5.1-5.6 until the target reactor core stops operating.
[0221] Corresponding to the above method embodiment, the present application embodiment also provides a system for obtaining the reactor core state, see Figure 2 , Figure 2 A schematic diagram of functional modules of a system for obtaining a reactor core state provided in an embodiment of the present application, wherein the system 200 for obtaining a reactor core state includes:
[0222] An acquisition module 210 is used to acquire a first core state measurement parameter of a target reactor core at a first time step, wherein the first time step is a time step obtained by dividing a combustion process of the target reactor core, and the first core state measurement parameter includes a state measurement parameter of the target reactor core in a plurality of physical fields;
[0223] A fusion module 220 is used to, when the first core state measurement parameter is input into the data fusion model, fuse the state measurement parameters of multiple physical fields through the data fusion model to obtain a target data matrix;
[0224] The prediction module 230 is used to obtain the first core state information through the state prediction model when the target data matrix is input into the state prediction model, wherein the first core state information is used to characterize the core state of the target reactor core at the second time step, and the second time step is later than the first time step.
[0225] In some embodiments, the prediction module 230 is further configured to:
[0226] According to the state prediction model, determine the prediction covariance matrix;
[0227] Initializing the first core state measurement parameters to obtain a state estimation vector and a state covariance matrix;
[0228] According to the state estimation vector and the state covariance matrix, the target state particle at the first time step is determined;
[0229] According to the predicted covariance matrix, the target error particle at the first time step is determined;
[0230] The first core state information is determined according to the target state particles and the target error particles.
[0231] In some embodiments, the system 200 for obtaining the reactor core status further includes a determination submodule, the determination submodule being configured to:
[0232] According to the preset state transfer equation and target error particles, the target state particles are propagated to the second time step to obtain the core state information.
[0233] In some embodiments, the system 200 for acquiring the reactor core status further includes an acquisition submodule, and the acquisition submodule is used to:
[0234] In the case of inputting the target data matrix into the state prediction model, after obtaining the first core state information through prediction by the state prediction model, the method further includes:
[0235] Under the condition that the prior probability is determined according to the core state information, the target state particle and the target error particle, a second core state measurement parameter of the target reactor core at the second time step is obtained;
[0236] Determine a second target state particle at a second time step according to a second core state measurement parameter and a priori probability;
[0237] Mapping the second target state particle to the measurement space to obtain the measurement hardware value and the covariance matrix of the measurement hardware value;
[0238] The first core state information is updated according to the measured hardware value and the covariance matrix of the measured hardware value.
[0239] In some embodiments, the acquisition submodule is further used to:
[0240] In the case of obtaining the measurement value and uncertainty at the second time step, determining the residual according to the measurement value and the measurement hardware value at the second time step;
[0241] Determine the gain based on the covariance matrix and uncertainty of the measured hardware values;
[0242] The first core state information is updated according to the residual and the gain.
[0243] In some embodiments, the fusion module is further configured to:
[0244] The state measurement parameters of multiple physical fields are fused by a data fusion model to obtain a first data matrix;
[0245] The first data matrix is subjected to order reduction processing to obtain a second data matrix, wherein the target data matrix includes the second data matrix.
[0246] In some embodiments, the fusion module is further configured to:
[0247] Determine the spatial distribution data of the target reactor core under various physical fields to obtain multiple initial data matrices;
[0248] Multiple initial data matrices are concatenated to obtain a first data matrix.
[0249] In some embodiments, the fusion module is further configured to:
[0250] Determining a covariance matrix of the first data matrix when the first data matrix is reshaped according to a predetermined reshaping function;
[0251] Obtaining initial principal components of the covariance matrix of the first data matrix and eigenvalues corresponding to the initial principal components;
[0252] When the variance contribution rate of each initial principal component is determined, the target principal component is determined according to a preset variance contribution rate threshold;
[0253] The reshaped first data matrix is reconstructed according to the target principal component and the eigenvalue corresponding to the target principal component to obtain a second data matrix.
[0254] In some embodiments, the fusion module is further configured to:
[0255] According to the principal component analysis method or the singular value decomposition method, the initial principal components and the eigenvalues corresponding to the initial principal components are determined.
[0256] The embodiment of the present application provides a system for predicting the state of a reactor core, which can achieve the following Figure 1 The various processes implemented in the method embodiments can achieve similar or identical technical effects, and will not be described again here to avoid repetition.
[0257] This application also provides an electronic device, see Figure 3 , Figure 3 An internal structure diagram of an electronic device provided for an embodiment of the present application. The electronic device includes a processor, a memory, and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the electronic device stores an operating system and may also store a computer program, which, when executed by the processor, enables the processor to implement the method for obtaining fuel consumption distribution applied to the electronic device in the above embodiment. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute the method for obtaining fuel consumption distribution. Those skilled in the art will appreciate that Figure 3 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0258] The embodiment of the present application also discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for predicting the reactor core state as in the method embodiment is implemented.
[0259] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the embodiment of the method for predicting the reactor core state as described above, and can achieve similar or identical technical effects. To avoid repetition, it will not be described here.
[0260] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRA M), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRD RAM), and memory bus dynamic RAM (RDRAM), etc.
[0261] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
Claims
1. A method for predicting a reactor core state, characterized in that: The method comprises: Acquire a first core state measurement parameter of a target reactor core at a first time step, wherein the first time step is a time step obtained by dividing a combustion process of the target reactor core, and the first core state measurement parameter includes state measurement parameters of the target reactor core in multiple physical fields; When the first core state measurement parameter is input into the data fusion model, the state measurement parameters of the plurality of physical fields are fused by the data fusion model to obtain a target data matrix; When the target data matrix is input into the state prediction model, first core state information is predicted by the state prediction model, wherein the first core state information is used to characterize the core state of the target reactor core at a second time step, and the second time step is later than the first time step.
2. The method according to claim 1, characterized in that In the case where the target data matrix is input into the state prediction model, obtaining first core state information through prediction by the state prediction model includes: Determining a prediction covariance matrix according to the state prediction model; Initializing the first core state measurement parameters to obtain a state estimation vector and a state covariance matrix; Determine the target state particle at the first time step according to the state estimation vector and the state covariance matrix; Determining a target error particle at the first time step according to the prediction covariance matrix; The first core state information is determined according to the target state particles and the target error particles.
3. The method according to claim 2, characterized in that The determining the first core state information according to the target state particles and the target error particles includes: According to a preset state transfer equation and the target error particle, the target state particle is propagated to the second time step to obtain the core state information.
4. The method according to claim 2, characterized in that In the case where the target data matrix is input into the state prediction model, after first core state information is obtained through prediction by the state prediction model, the method further includes: Under the condition that the prior probability is determined according to the core state information, the target state particle and the target error particle, obtaining a second core state measurement parameter of the target reactor core at a second time step; Determining a second target state particle at the second time step according to the second core state measurement parameter and the prior probability; Mapping the second target state particle to the measurement space to obtain a measurement hardware value and a covariance matrix of the measurement hardware value; The first core state information is updated according to the measured hardware value and a covariance matrix of the measured hardware value.
5. The method according to claim 4, characterized in that The updating the first core state information according to the measured hardware value and the covariance matrix of the measured hardware value includes: In a case where the measurement value and the uncertainty at the second time step are obtained, a residual is determined according to the measurement value at the second time step and the measurement hardware value; Determining a gain based on a covariance matrix of the measurement hardware values and the uncertainty; The first core state information is updated according to the residual and the gain.
6. The method according to claim 1, characterized in that The fusing the state measurement parameters of the multiple physical fields by the data fusion model to obtain a target data matrix includes: Performing fusion processing on the state measurement parameters of the multiple physical fields through the data fusion model to obtain a first data matrix; Performing order reduction processing on the first data matrix to obtain a second data matrix, wherein the target data matrix includes the second data matrix.
7. The method according to claim 6, characterized in that The fusing the state measurement parameters of the multiple physical fields by the data fusion model to obtain a first data matrix includes: Determine the spatial distribution data of the target reactor core under various physical fields to obtain multiple initial data matrices; The multiple initial data matrices are concatenated to obtain the first data matrix.
8. The method according to claim 6, characterized in that The step of performing order reduction processing on the first data matrix to obtain a second data matrix includes: Determining a covariance matrix of the first data matrix when the first data matrix is reshaped according to a preset reshaping function; Obtaining initial principal components of the covariance matrix of the first data matrix, and eigenvalues corresponding to the initial principal components; When the variance contribution rate of each of the initial principal components is determined, a target principal component is determined according to a preset variance contribution rate threshold; The reshaped first data matrix is reconstructed according to the target principal component and the eigenvalue corresponding to the target principal component to obtain the second data matrix.
9. The method according to claim 8, characterized in that The obtaining of the initial principal components of the covariance matrix of the first data matrix and the eigenvalues corresponding to the initial principal components includes: According to the principal component analysis method or the singular value decomposition method, the initial principal component and the eigenvalue corresponding to the initial principal component are determined.
10. A system for predicting a reactor core state, characterized in that: The system comprises: An acquisition module, used for acquiring a first core state measurement parameter of a target reactor core at a first time step, wherein the first time step is a time step obtained by dividing the combustion process of the target reactor core, and the first core state measurement parameter includes state measurement parameters of the target reactor core in multiple physical fields; A fusion module, configured to, when the first core state measurement parameter is input into a data fusion model, fuse the state measurement parameters of the plurality of physical fields through the data fusion model to obtain a target data matrix; A prediction module is used to obtain first core state information through prediction of the state prediction model when the target data matrix is input into the state prediction model, wherein the first core state information is used to characterize the core state of the target reactor core at a second time step, and the second time step is later than the first time step.
11. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method according to any one of claims 1 to 9 is implemented.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Cited By
Method and system for predicting state of reactor core
WO2025228422A1
