WO2024104485A1 - Multi-fidelity network construction method and apparatus for nuclear reactor simulation test - Google Patents
Multi-fidelity network construction method and apparatus for nuclear reactor simulation test Download PDFInfo
- Publication number
- WO2024104485A1 WO2024104485A1 PCT/CN2023/132550 CN2023132550W WO2024104485A1 WO 2024104485 A1 WO2024104485 A1 WO 2024104485A1 CN 2023132550 W CN2023132550 W CN 2023132550W WO 2024104485 A1 WO2024104485 A1 WO 2024104485A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- fidelity
- network
- data
- trained
- fidelity network
- Prior art date
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 78
- 238000012360 testing method Methods 0.000 title claims abstract description 51
- 238000010276 construction Methods 0.000 title claims abstract description 16
- 238000000034 method Methods 0.000 claims abstract description 44
- 238000012549 training Methods 0.000 claims abstract description 33
- 238000004590 computer program Methods 0.000 claims description 49
- 238000003860 storage Methods 0.000 claims description 11
- 230000008878 coupling Effects 0.000 abstract description 4
- 238000010168 coupling process Methods 0.000 abstract description 4
- 238000005859 coupling reaction Methods 0.000 abstract description 4
- 230000008569 process Effects 0.000 description 15
- 238000013528 artificial neural network Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000009826 distribution Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000009257 reactivity Effects 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 230000004913 activation Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000009792 diffusion process Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000000446 fuel Substances 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000003062 neural network model Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- ORILYTVJVMAKLC-UHFFFAOYSA-N Adamantane Natural products C1C(C2)CC3CC1CC2C3 ORILYTVJVMAKLC-UHFFFAOYSA-N 0.000 description 1
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 238000000342 Monte Carlo simulation Methods 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 229910052768 actinide Inorganic materials 0.000 description 1
- 150000001255 actinides Chemical class 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000005253 cladding Methods 0.000 description 1
- 239000002826 coolant Substances 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000009795 derivation Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000004992 fission Effects 0.000 description 1
- 239000012530 fluid Substances 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 238000000265 homogenisation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 231100000572 poisoning Toxicity 0.000 description 1
- 230000000607 poisoning effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 229910052724 xenon Inorganic materials 0.000 description 1
- FHNFHKCVQCLJFQ-UHFFFAOYSA-N xenon atom Chemical compound [Xe] FHNFHKCVQCLJFQ-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/27—Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
Definitions
- the present application relates to the technical field of nuclear power plant reactor core design and operation, and in particular to a multi-fidelity network construction method, apparatus, computer equipment, storage medium and computer program product for nuclear reactor simulation testing.
- simulations need to be performed for the actual or assumed operating conditions of the reactor to verify the safety of the designed or operated reactor.
- the designed reactor it is necessary to quantitatively evaluate the various operating boundaries and operating consequences of the reactor under various assumed accident conditions to ensure the safety of the designed reactor; on the other hand, in the operating reactor, various simulation calculations need to be performed to ensure that the design calculation parameters are consistent with the actual operating parameters within a certain error range, thereby ensuring the consistency between the designed reactor and the actual reactor, and thus ensuring that the operating reactor has sufficient safety margins under various accident conditions.
- some parameters directly related to the safety of reactor operation cannot be measured directly, but must be derived from some measurable reactor fluid parameters (such as temperature, pressure, etc.) or neutron detector readings (such as characterizing fission reaction rate) combined with the simulation model of the reactor.
- Some measurable reactor fluid parameters such as temperature, pressure, etc.
- neutron detector readings such as characterizing fission reaction rate
- PCM nuclear design software package PCM uses the equivalent homogenization assumption and neutron diffusion approximation to realize the simulation of the three-dimensional core.
- point reactor equations have no spatial distribution, they are often used for inversion monitoring of reactivity based on power changes and xenon poisoning.
- state transition models which represent the process of core state changing from the state at the next moment due to control actions.
- State transition models are used for both the state distribution of non-measurable variables at the current moment and the prediction of core state at subsequent moments, and there are unknown errors.
- the present application provides a method for constructing a multi-fidelity network for nuclear reactor simulation testing.
- the method comprises:
- At least one trained second fidelity network is combined with a first fidelity network to obtain a multi-fidelity network, and the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
- the method before acquiring at least one second fidelity network according to the second fidelity data of the sample nuclear reactor, the method further includes:
- data other than the first fidelity data is used as the second fidelity data.
- obtaining at least one second fidelity network according to second fidelity data of a sample nuclear reactor includes:
- Using the second fidelity data to train at least one second fidelity network to obtain at least one trained second fidelity network includes:
- Each second fidelity network is trained using the sub-data corresponding to each fidelity level to obtain at least one trained second fidelity network.
- At least one trained second fidelity network is combined with a first fidelity network to obtain a multi-fidelity network, comprising:
- the input end of the first fidelity network and the input ends of each trained second fidelity network are used together as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain a multi-fidelity network.
- the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network, including:
- the method further comprises:
- the simulation test result of the target nuclear reactor is obtained based on the state parameters at the second moment.
- the present application also provides a multi-fidelity network construction device for nuclear reactor simulation testing.
- the device comprises:
- an acquisition module configured to acquire a first fidelity network according to first fidelity data of the sample nuclear reactor, and to acquire at least one second fidelity network according to second fidelity data of the sample nuclear reactor;
- a training module configured to train at least one second fidelity network using second fidelity data to obtain at least one trained second fidelity network
- a combination module is used to combine at least one trained second fidelity network with a first fidelity network to obtain a multi-fidelity network, and use the first fidelity data to train the multi-fidelity network to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
- the present application further provides a computer device.
- the computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
- At least one trained second fidelity network is combined with a first fidelity network to obtain a multi-fidelity network, and the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
- the present application further provides a computer-readable storage medium.
- the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
- At least one trained second fidelity network is combined with a first fidelity network to obtain a multi-fidelity network, and the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
- the present application further provides a computer program product.
- the computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
- At least one trained second fidelity network is combined with a first fidelity network to obtain a multi-fidelity network, and the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
- the above-mentioned multi-fidelity network construction method, device, computer equipment, storage medium and computer program product for nuclear reactor simulation testing obtains a first fidelity network according to the first fidelity data of the sample nuclear reactor, and obtains at least one second fidelity network according to the second fidelity data of the sample nuclear reactor; uses the second fidelity data to train at least one second fidelity network to obtain at least one trained second fidelity network; combines at least one trained second fidelity network with the first fidelity network to obtain a multi-fidelity network, and uses the first fidelity data to train the multi-fidelity network to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to simulate the target nuclear reactor.
- the second fidelity network can first obtain a reference simulation result according to the input parameters, and input the input parameters and the simulation result into the first fidelity network together, and the first fidelity network can output the final simulation result according to the coupling between different fidelity data.
- FIG1 is a schematic diagram of a flow chart of a method for constructing a multi-fidelity network for nuclear reactor simulation testing in one embodiment
- FIG2 is a schematic diagram of the structure of a second fidelity network in one embodiment
- FIG3 is a schematic diagram of the structure of a multi-fidelity network in one embodiment
- FIG4 is a schematic diagram of a process of generating adversarial network training in another embodiment
- FIG5 is a structural block diagram of a multi-fidelity network construction device for nuclear reactor simulation testing in one embodiment
- FIG. 6 is a diagram showing the internal structure of a computer device in one embodiment.
- a multi-fidelity network construction method for nuclear reactor simulation testing is provided.
- This embodiment uses the method applied to a computer device as an example.
- the computer device may be a terminal or a server.
- the terminal may be, but is not limited to, various industrial computers.
- the server may be, for example, a computer.
- the method can be implemented by a separate server or a server cluster composed of multiple servers. In this embodiment, the method includes the following steps:
- Step 102 acquiring a first fidelity network according to first fidelity data of a sample nuclear reactor, and acquiring at least one second fidelity network according to second fidelity data of the sample nuclear reactor.
- the first fidelity data refers to high-fidelity data, which can be generated by high-fidelity software
- the second fidelity data refers to low-fidelity data with lower data accuracy than the first fidelity data, which can be quickly generated by low-fidelity software.
- Both the first fidelity data and the second fidelity data include multiple control parameters and state parameters of the input and output of the sample nuclear reactor, including: 1) reactivity parameters, such as control rod positions, etc.; 2) power parameters, such as power level, power distribution; 3) nuclear density parameters, such as the nuclear density at the axial height of each component (including fissile nuclides, minor actinide nuclides, light nuclides, etc.); 4) macroscopic or microscopic reaction cross sections; 5) thermal parameters, such as coolant temperature, pressure, flow, etc., fuel or material temperature, etc.
- reactivity parameters and power parameters can be used as input parameters, and other state parameters as output parameters.
- a suitable neural network is selected as the first fidelity network.
- another one or more suitable neural networks are selected as the second fidelity networks.
- Step 104 Use the second fidelity data to train at least one second fidelity network to obtain at least one trained second fidelity network.
- all second fidelity data can be directly used to train a second fidelity network to obtain a trained second fidelity network.
- the second fidelity data can also be first differentiated by accuracy, and each group of data in the second fidelity data can be scored for accuracy according to the state characteristics of the sample nuclear reactor, and then all data can be divided into multiple fidelity levels according to the accuracy score, and the same number of second fidelity networks as the fidelity level are prepared, and each second fidelity network is trained using data of a fidelity level.
- the second fidelity data is divided into two parts according to the accuracy, and the data with higher accuracy is used as medium fidelity data, and the data with lower accuracy is used as low fidelity data.
- Two second fidelity networks are prepared: a medium fidelity network and a low fidelity network.
- the medium fidelity data is used to train the medium fidelity network to obtain a trained medium fidelity network
- the low fidelity data is used to train the low fidelity network to obtain a trained low fidelity network.
- Step 106 combine at least one trained second fidelity network with the first fidelity network to obtain a multi-fidelity network, and use the first fidelity data to train the multi-fidelity network to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on the target nuclear reactor.
- each trained second fidelity network is connected to the input end of the first fidelity network; the input end of the first fidelity network and the input end of each trained second fidelity network are used as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain a multi-fidelity network.
- the input data is first input into each trained second fidelity network, and each trained second fidelity network outputs its own simulation results. These simulation results are used as reference data and input into the first fidelity network together with the input data.
- the first fidelity network processes the input data in combination with the reference data, outputs a simulation data, compares the simulation data with the label data corresponding to the input data, and adjusts the weight parameters of the first fidelity network.
- the training is completed to obtain a trained multi-fidelity network.
- each trained second fidelity network is not adjusted, that is, the first fidelity data is only used to train the first fidelity network.
- control parameters and current state parameters of the target nuclear reactor are obtained, and then the control parameters and current state parameters are input into a trained multi-fidelity network.
- the multi-fidelity network can output predicted state parameters, and the predicted state parameters can characterize the changes in the state parameters of the target nuclear reactor under the influence of the control parameters. Based on the predicted state parameters, the target nuclear reactor can be simulated and tested to determine the optimal control method and control parameters for the target nuclear reactor.
- a first fidelity network is obtained according to the first fidelity data of the sample nuclear reactor, and at least one second fidelity network is obtained according to the second fidelity data of the sample nuclear reactor.
- a two-fidelity network using the second fidelity data to train at least one second fidelity network to obtain at least one trained second fidelity network; combining at least one trained second fidelity network with the first fidelity network to obtain a multi-fidelity network, and using the first fidelity data to train the multi-fidelity network to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to simulate and test the target nuclear reactor.
- the second fidelity network when simulating the target nuclear reactor through the multi-fidelity network, the second fidelity network can first obtain a reference simulation result based on the input parameters, and input the input parameters and the simulation result into the first fidelity network together.
- the first fidelity network can output the final simulation result based on the coupling between different fidelity data, thereby improving the simulation efficiency while ensuring the simulation accuracy.
- the method before acquiring at least one second fidelity network based on the second fidelity data of the sample nuclear reactor, the method further includes: acquiring multiple data sets of the sample nuclear reactor; determining the accuracy of each data set, and using the data in a data set with the highest accuracy as the first fidelity data; and using the data in the multiple data sets, except the first fidelity data, as the second fidelity data.
- the first fidelity data and second fidelity data of the sample nuclear reactor can be generated by a variety of software with different fidelity. These software are based on mathematical physics equations and are used for derivation and calculation.
- the measured data under some operating conditions can also be obtained manually.
- the measured data itself can exist as the highest level of fidelity or as low-fidelity data, depending on the nature of data acquisition and data acquisition conditions. Therefore, it is necessary to divide these data into fidelity levels, with high-fidelity data as first-fidelity data and the rest of the data as second-fidelity data.
- the data format needs to be unified between data of different fidelity levels.
- the state space parameters of the sample nuclear reactor are defined as High-fidelity software is used to generate high-fidelity data sets. Because high-fidelity simulation software has high calculation accuracy, but low calculation efficiency. For example, the calculation of a typical reactor state point takes about several minutes or hours. Therefore, high-fidelity data is relatively scarce. Assume that the input of the high-fidelity simulation software is The output is Get high-fidelity input-output pairs: Since the reactor process can be essentially regarded as a Markov process, its input state space and output state space can be essentially consistent. Similarly, construct the medium-fidelity input-output pair: And low-fidelity input-output pairs:
- At least one second fidelity network is obtained based on second fidelity data of a sample nuclear reactor, including: classifying the second fidelity data into levels to obtain at least one fidelity level and sub-data corresponding to each fidelity level; obtaining a corresponding second fidelity network based on the sub-data corresponding to each fidelity level; the number of second fidelity networks is the same as the number of fidelity levels.
- the second fidelity data is used to train at least one second fidelity network to obtain at least one trained second fidelity network, including: using sub-data corresponding to each fidelity level to train each second fidelity network to obtain at least one trained second fidelity network.
- a standard neural network is selected to perform fitting training on the input and output to achieve and As shown in Figure 2, the number of layers (or depth) m of the neural network, the number of nodes (or width) n of each layer, the activation function ReLU or leakyReLu, the learning rate, the optimization algorithm Adam or SGD, etc. are the hyperparameters of neural network training, which can be set according to different problems or according to the hyperparameter optimization algorithm HPO. To finally determine the relevant parameters.
- the methods of building and training neural networks can be selected according to the data type, training requirements, etc., which will not be described here.
- Some deep learning open source platforms can be used, including PaddlePaddle, Pytorch, Tensorflow, etc., which can easily implement an optimized neural network model to characterize the intrinsic relationship of low-fidelity data or medium-fidelity data.
- the second fidelity data by classifying the second fidelity data, at least one fidelity level and sub-data corresponding to each fidelity level are obtained; the corresponding second fidelity network is obtained according to the sub-data corresponding to each fidelity level; the number of second fidelity networks is the same as the number of fidelity levels; the sub-data corresponding to each fidelity level are respectively used to train each second fidelity network to obtain at least one trained second fidelity network. Multiple trained second fidelity networks can be obtained.
- At least one trained second fidelity network is combined with a first fidelity network to obtain a multi-fidelity network, including: connecting the output of each trained second fidelity network to one of the inputs of the first fidelity network; using the input of the first fidelity network and the input of each trained second fidelity network as the input of the multi-fidelity network, and using the output of the first fidelity network as the output of the multi-fidelity network to obtain the multi-fidelity network.
- the first fidelity network as a high-fidelity network
- the second fidelity network as an example
- the low-fidelity network since the low-fidelity network itself has a large amount of data, while the amount of high-fidelity data is relatively small, directly training the high-fidelity data source will lead to a large overfitting error. Therefore, the high-fidelity input data x high is input into the already trained low-fidelity network, medium-fidelity network, etc., to obtain the output of these non-high-fidelity network levels and In fact, or The difference from the true y high characterizes the error of the low-fidelity network extended to the high-fidelity data.
- the first fidelity network is constructed, as shown in FIG3, and the output of the low-fidelity network and the output network of the medium-fidelity network are mapped to one of the inputs of the high-fidelity network, and a multi-fidelity network is obtained by combining them.
- the depth and width m high and n high of the multi-fidelity network, as well as the activation function, training hyperparameters, etc. need to be determined according to the state parameters of the specific nuclear reactor, which will not be repeated here.
- each trained second fidelity network is connected to one of the input ends of the first fidelity network; the input end of the first fidelity network and the input end of each trained second fidelity network are used as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain a multi-fidelity network.
- the multi-fidelity network can combine the output results of different fidelity networks to obtain the final simulation result, and the second fidelity network part in the multi-fidelity network is obtained by training with a large amount of low-fidelity data, which can greatly improve the computational efficiency and accuracy of training to meet real-time requirements.
- a multi-fidelity network is trained using first fidelity data to obtain a trained multi-fidelity network, including: using the multi-fidelity network as a generator network, and obtaining a corresponding discriminator network based on the generator network; constructing a generative adversarial network based on the generator network and the discriminator network; training the generative adversarial network using the first fidelity data to obtain a trained generative adversarial network; and obtaining a trained generator network from the trained generative adversarial network as a trained multi-fidelity network.
- the first fidelity network as a high-fidelity network and the second fidelity network including a medium-fidelity network and a low-fidelity network as an example, as shown in FIG3, based on the output of the generator network and Traditional neural network training directly uses And the deviation of y high , such as L1loss loss function: You can directly Then carry out training.
- the adversarial training method is used to improve the ability of neural networks to deceive adversarial samples.
- the basic idea of adversarial training is to continuously generate and learn adversarial samples during network training.
- the reactor state label generated by the generator G(X) can deceive the discriminator and be consistent with the real reactor state label. That is, the output of the discriminator D(Y) is the possibility of judging the true label.
- the discriminator's network structure, learning rate and other hyperparameters are adjusted according to the specific actual scenario.
- a multi-fidelity network is used as a generator network, and a corresponding discriminator network is obtained according to the generator network; a generative adversarial network is constructed according to the generator network and the discriminator network; the generative adversarial network is trained using the first fidelity data to obtain a trained generative adversarial network; and a trained generator network is obtained from the trained generative adversarial network as a trained multi-fidelity network.
- a trained multi-fidelity network can be obtained, and the trained multi-fidelity network can combine the output results of different fidelity networks to obtain simulation results corresponding to the input data.
- the trained multi-fidelity network is used to simulate and test the target nuclear reactor pair, that is, the target nuclear reactor can be simulated and tested through the trained multi-fidelity network to simulate the state change of the target reactor.
- the step of performing simulation testing on the target nuclear reactor through the trained multi-fidelity network includes: obtaining control parameters and state parameters of the target nuclear reactor at a first moment; inputting the control parameters and the state parameters of the first moment into the trained multi-fidelity network to obtain the state parameters of the target nuclear reactor at a second moment; and obtaining the simulation test results of the target nuclear reactor based on the state parameters at the second moment.
- a multi-fidelity network obtained by combining the low-fidelity network, the medium-fidelity network, and the high-fidelity network can realize the change of the reactor state.
- the multi-fidelity network inputs x high , which includes the control parameters of the target nuclear reactor and the state parameters at the first moment.
- the low-fidelity network and the medium-fidelity network first process the input data x high and output them respectively.
- control parameters and the state parameters of the target nuclear reactor at the first moment are obtained; the control parameters and the state parameters of the first moment are input into the trained multi-fidelity network to obtain the state parameters of the target nuclear reactor at the second moment; and the simulation test results of the target nuclear reactor are obtained based on the state parameters at the second moment.
- the final simulation results can be output according to the coupling between different fidelity data, thereby improving the simulation efficiency while ensuring the simulation accuracy.
- a multi-fidelity network for nuclear reactor simulation testing comprising:
- Acquire multiple data sets of a sample nuclear reactor determine the accuracy of each data set, and use the data in a data set with the highest accuracy as first fidelity data; and use the data in the multiple data sets, except the first fidelity data, as second fidelity data.
- a first fidelity network is obtained according to the first fidelity data of the sample nuclear reactor.
- the second fidelity data is graded to obtain at least one fidelity grade and sub-data corresponding to each fidelity grade; a corresponding second fidelity network is obtained according to the sub-data corresponding to each fidelity grade; the number of the second fidelity networks is the same as the number of the fidelity grades.
- Each second fidelity network is trained using the sub-data corresponding to each fidelity level to obtain at least one trained second fidelity network.
- each trained second fidelity network is connected to one of the input ends of the first fidelity network; the input end of the first fidelity network and the input end of each trained second fidelity network are used as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain a multi-fidelity network.
- the multi-fidelity network is used as a generator network, and the corresponding discriminator network is obtained according to the generator network; a generative adversarial network is constructed according to the generator network and the discriminator network; the generative adversarial network is trained using the first fidelity data to obtain a trained generative adversarial network; the trained generator network is obtained from the trained generative adversarial network as a trained multi-fidelity network, and the trained multi-fidelity network is used to perform simulation tests on a target nuclear reactor.
- the specific steps of performing simulation test on the target nuclear reactor through the trained multi-fidelity network include: obtaining control parameters and first-time state parameters of the target nuclear reactor; inputting the control parameters and first-time state parameters into the trained multi-fidelity network to obtain second-time state parameters of the target nuclear reactor; and obtaining simulation test results of the target nuclear reactor based on the second-time state parameters.
- steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
- the embodiment of the present application also provides a multi-fidelity network construction device for nuclear reactor simulation testing, which is used to implement the multi-fidelity network construction method for nuclear reactor simulation testing involved above.
- the implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the multi-fidelity network construction device for nuclear reactor simulation testing provided below can refer to the limitations of the multi-fidelity network construction method for nuclear reactor simulation testing above, and will not be repeated here.
- the device 500 includes: an acquisition module 501, a training module 502 and a combination module 503, wherein:
- the acquisition module 501 is used to acquire a first fidelity network according to the first fidelity data of the sample nuclear reactor, and to acquire at least one second fidelity network according to the second fidelity data of the sample nuclear reactor.
- the training module 502 is used to train at least one second fidelity network using the second fidelity data to obtain at least one trained second fidelity network.
- the combination module 503 is used to combine at least one trained second fidelity network with the first fidelity network to obtain a multi-fidelity network, and use the first fidelity data to train the multi-fidelity network to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
- the acquisition module 501 is also used to acquire multiple data sets of a sample nuclear reactor; determine the accuracy of each data set, and use the data in a data set with the highest accuracy as first fidelity data; and use the data in multiple data sets except the first fidelity data as second fidelity data.
- the acquisition module 501 is further used to grade the second fidelity data to obtain at least one fidelity grade and sub-data corresponding to each fidelity grade; obtain the corresponding second fidelity network according to the sub-data corresponding to each fidelity grade; the number of second fidelity networks is the same as the number of fidelity grades.
- the training module 502 is further configured to respectively use the sub-data corresponding to each fidelity level to train each second fidelity network to obtain at least one trained second fidelity network.
- the combination module 503 is also used to connect the output end of each trained second fidelity network to one of the input ends of the first fidelity network; the input end of the first fidelity network and the input end of each trained second fidelity network are used as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain a multi-fidelity network.
- the combination module 503 is also used to use the multi-fidelity network as a generator network, and obtain a corresponding discriminator network based on the generator network; construct a generative adversarial network based on the generator network and the discriminator network; use the first fidelity data to train the generative adversarial network to obtain a trained generative adversarial network; obtain a trained generator network from the trained generative adversarial network as a trained multi-fidelity network.
- the apparatus further comprises:
- the test module 504 is used to obtain the control parameters and the state parameters of the target nuclear reactor at the first moment; input the control parameters and the state parameters of the first moment into the trained multi-fidelity network to obtain the state parameters of the target nuclear reactor at the second moment; and obtain the simulation test results of the target nuclear reactor based on the state parameters at the second moment.
- Each module in the multi-fidelity network construction device for nuclear reactor simulation testing can be implemented in whole or in part by software, hardware, or a combination thereof.
- Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
- a computer device which may be a server, and its internal structure diagram may be shown in FIG6.
- the computer device includes a processor, a memory, an input/output interface (Input/Output, referred to as I/O) and a communication interface.
- the processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface.
- the processor of the computer device is used to provide computing and control capabilities.
- the memory of the computer device includes a non-volatile storage medium and an internal memory.
- the non-volatile storage medium stores an operating system, a computer program and a database.
- the internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium.
- the database of the computer device is used to store neural network data.
- the input/output interface of the computer device is used to exchange information between the processor and an external device.
- the communication interface of the computer device is used to communicate with an external terminal through a network connection.
- FIG. 6 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
- the specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
- a computer device including a memory and a processor, wherein the memory stores a computer program
- a computer program is provided for executing the computer program by a processor, wherein the following steps are implemented when the processor executes the computer program: obtaining a first fidelity network according to first fidelity data of a sample nuclear reactor, and obtaining at least one second fidelity network according to second fidelity data of the sample nuclear reactor; training at least one second fidelity network using the second fidelity data to obtain at least one trained second fidelity network; combining at least one trained second fidelity network with the first fidelity network to obtain a multi-fidelity network, and training the multi-fidelity network using the first fidelity data to obtain a trained multi-fidelity network; and using the trained multi-fidelity network to perform simulation testing on a target nuclear reactor.
- the processor when the processor executes the computer program, the following steps are also implemented: acquiring multiple data sets of a sample nuclear reactor; determining the accuracy of each data set, and using the data in a data set with the highest accuracy as first fidelity data; and using the data in multiple data sets, except the first fidelity data, as second fidelity data.
- the second fidelity data is graded to obtain at least one fidelity level and sub-data corresponding to each fidelity level; a corresponding second fidelity network is obtained according to the sub-data corresponding to each fidelity level; the number of second fidelity networks is the same as the number of fidelity levels.
- the processor executes the computer program, the following steps are also implemented: the output end of each trained second fidelity network is connected to one of the input ends of the first fidelity network; the input end of the first fidelity network and the input end of each trained second fidelity network are used as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain the multi-fidelity network.
- the processor when the processor executes the computer program, the following steps are also implemented: obtaining control parameters and first-moment state parameters of the target nuclear reactor; inputting the control parameters and first-moment state parameters into a trained multi-fidelity network to obtain second-moment state parameters of the target nuclear reactor; and obtaining simulation test results of the target nuclear reactor based on the second-moment state parameters.
- a computer-readable storage medium on which a computer program is stored.
- the computer program is executed by a processor, the following steps are implemented: a first fidelity network is obtained based on first fidelity data of a sample nuclear reactor, and at least one second fidelity network is obtained based on second fidelity data of the sample nuclear reactor; at least one second fidelity network is trained using the second fidelity data to obtain at least one trained second fidelity network; at least one trained second fidelity network is combined with the first fidelity network to obtain a multi-fidelity network, and the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
- the second fidelity data is graded to obtain at least one fidelity level and sub-data corresponding to each fidelity level; a corresponding second fidelity network is obtained according to the sub-data corresponding to each fidelity level; the number of second fidelity networks is the same as the number of fidelity levels.
- the following steps are further implemented: using the sub-data corresponding to each fidelity level to train each second fidelity network to obtain at least one trained second fidelity network.
- the following steps are also implemented: obtaining control parameters and first-time state parameters of the target nuclear reactor; inputting the control parameters and first-time state parameters into a trained multi-fidelity network to obtain second-time state parameters of the target nuclear reactor; and obtaining simulation test results of the target nuclear reactor based on the second-time state parameters.
- a computer program product comprising a computer program, which, when executed by a processor, implements the following steps:
- a first fidelity network is obtained according to first fidelity data of a sample nuclear reactor, and at least one second fidelity network is obtained according to second fidelity data of the sample nuclear reactor; at least one second fidelity network is trained using the second fidelity data to obtain at least one trained second fidelity network; at least one trained second fidelity network is combined with the first fidelity network to obtain a multi-fidelity network, and the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
- the following steps are also implemented: acquiring multiple data sets of a sample nuclear reactor; determining the accuracy of each data set, and using the data in a data set with the highest accuracy as first fidelity data; and using the data in multiple data sets, except the first fidelity data, as second fidelity data.
- the second fidelity data is graded to obtain at least one fidelity level and sub-data corresponding to each fidelity level; a corresponding second fidelity network is obtained according to the sub-data corresponding to each fidelity level; the number of second fidelity networks is the same as the number of fidelity levels.
- the following steps are further implemented: using the sub-data corresponding to each fidelity level to train each second fidelity network to obtain at least one trained second fidelity network.
- the output end of each trained second fidelity network is connected to one of the input ends of the first fidelity network; the input end of the first fidelity network and the input end of each trained second fidelity network are used as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain the multi-fidelity network.
- the following steps are also implemented: using the multi-fidelity network as a generator network, and obtaining a corresponding discriminator network based on the generator network; constructing a generative adversarial network based on the generator network and the discriminator network; using the first fidelity data to train the generative adversarial network to obtain a trained generative adversarial network; obtaining a trained generator network from the trained generative adversarial network as a trained multi-fidelity network.
- the following steps are also implemented: obtaining control parameters and first-time state parameters of the target nuclear reactor; inputting the control parameters and first-time state parameters into a trained multi-fidelity network to obtain second-time state parameters of the target nuclear reactor; and obtaining simulation test results of the target nuclear reactor based on the second-time state parameters.
- user information including but not limited to user device information, user personal information, etc.
- data including but not limited to data used for analysis, stored data, displayed data, etc.
- any reference to the memory, database or other media used in the embodiments provided in this application can include non-volatile computer-readable storage media. At least one of volatile and non-volatile memory.
- Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc.
- Volatile memory may include random access memory (RAM) or external cache memory, etc.
- RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
- SRAM static random access memory
- DRAM dynamic random access memory
- the database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database.
- Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto.
- the processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but is not limited thereto.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Mathematical Physics (AREA)
- Computing Systems (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Molecular Biology (AREA)
- General Health & Medical Sciences (AREA)
- Geometry (AREA)
- Medical Informatics (AREA)
- Computer Hardware Design (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Monitoring And Testing Of Nuclear Reactors (AREA)
Abstract
The present application relates to a multi-fidelity network construction method and apparatus for a nuclear reactor simulation test. The method comprises: acquiring a first fidelity network according to first fidelity data of a sample nuclear reactor, and acquiring at least one second fidelity network according to second fidelity data of the sample nuclear reactor (102); training the at least one second fidelity network by using the second fidelity data to obtain at least one trained second fidelity network (104); and combining the at least one trained second fidelity network with the first fidelity network to obtain a multi-fidelity network, and training the multi-fidelity network by using the first fidelity data to obtain a trained multi-fidelity network, wherein the trained multi-fidelity network is used for performing a simulation test on a target nuclear reactor (106). By using the method, a final simulation result can be output according to the coupling between different fidelity data, thereby improving the simulation efficiency while ensuring the simulation precision.
Description
相关申请Related Applications
本申请要求2022年11月18日申请的,申请号为202211447961.8,名称为“用于核反应堆仿真测试的多保真度网络构建方法和装置”的中国专利申请的优先权,在此将其全文引入作为参考。This application claims priority to Chinese patent application number 202211447961.8, filed on November 18, 2022, and entitled “Multi-fidelity network construction method and device for nuclear reactor simulation testing”, the entire text of which is hereby incorporated by reference.
本申请涉及核电厂反应堆堆芯设计及运行技术领域,特别是涉及一种用于核反应堆仿真测试的多保真度网络构建方法、装置、计算机设备、存储介质和计算机程序产品。The present application relates to the technical field of nuclear power plant reactor core design and operation, and in particular to a multi-fidelity network construction method, apparatus, computer equipment, storage medium and computer program product for nuclear reactor simulation testing.
核反应堆在设计及运行过程中,均需要针对反应堆实际或假定的运行条件进行模拟,以验证设计或运行反应堆的安全性。一方面,针对设计的反应堆,需要在各种假定的事故条件下,对反应堆的各种运行边界及运行后果进行定量评估,以保证设计反应堆的安全性;另一方面,在运行的反应堆中,需要进行各种模拟计算,使得设计计算的参数与实际运行的参数在一定误差范围内是吻合的,进而保证设计反应堆与实际反应堆的一致性,从而保证运行反应堆在各种事故条件下也有足够的安全边界。此外,一些跟反应堆运行安全直接相关的参数(例如,燃料棒包壳温度等)并不能直接测量,而必须通过一些可测量的反应堆流体参数(如温度、压力等)或者中子探测器读数(如表征裂变反应率),结合反应堆的仿真模型推衍得到。这些模型都是近似的对真实反应堆过程的抽象,只能部分的模拟堆内中子行为以及燃耗行为。如核设计软件包PCM中采用了等效均匀化假设和中子扩散近似以实现三维堆芯的模拟。点堆方程虽没有空间分布但常用于基于测量功率变化的反应性以及氙毒的反演监测。这些模型统称为状态转移模型,表示堆芯状态由于控制动作转移到下一时刻状态的变化过程。状态转移模型既用于当前时刻下非可测量变量的状态分布,也用于后续时刻堆芯状态的预测,存在未知的误差。During the design and operation of nuclear reactors, simulations need to be performed for the actual or assumed operating conditions of the reactor to verify the safety of the designed or operated reactor. On the one hand, for the designed reactor, it is necessary to quantitatively evaluate the various operating boundaries and operating consequences of the reactor under various assumed accident conditions to ensure the safety of the designed reactor; on the other hand, in the operating reactor, various simulation calculations need to be performed to ensure that the design calculation parameters are consistent with the actual operating parameters within a certain error range, thereby ensuring the consistency between the designed reactor and the actual reactor, and thus ensuring that the operating reactor has sufficient safety margins under various accident conditions. In addition, some parameters directly related to the safety of reactor operation (for example, fuel rod cladding temperature, etc.) cannot be measured directly, but must be derived from some measurable reactor fluid parameters (such as temperature, pressure, etc.) or neutron detector readings (such as characterizing fission reaction rate) combined with the simulation model of the reactor. These models are approximate abstractions of the real reactor process and can only partially simulate the neutron behavior and burnup behavior in the reactor. For example, the nuclear design software package PCM uses the equivalent homogenization assumption and neutron diffusion approximation to realize the simulation of the three-dimensional core. Although point reactor equations have no spatial distribution, they are often used for inversion monitoring of reactivity based on power changes and xenon poisoning. These models are collectively referred to as state transition models, which represent the process of core state changing from the state at the next moment due to control actions. State transition models are used for both the state distribution of non-measurable variables at the current moment and the prediction of core state at subsequent moments, and there are unknown errors.
目前已有大量的反应堆理论研究成果,包括高保真度模型(如蒙特卡罗方法、输运理论或扩散近似等)和低保真度模型(如点堆动力学等),但是这些模型都是采用单一保真度的数据建模得到,在使用过程中均存在较大的缺陷。较高保真度的数理方程模型计算效率难以满足实时性要求,较低保真度引入过多简化假设难以满足精度要求。At present, there are a large number of reactor theory research results, including high-fidelity models (such as Monte Carlo method, transport theory or diffusion approximation, etc.) and low-fidelity models (such as point reactor dynamics, etc.), but these models are all obtained by using single-fidelity data modeling, and there are major defects in the process of use. The computational efficiency of the high-fidelity mathematical equation model is difficult to meet the real-time requirements, and the low-fidelity introduces too many simplified assumptions and is difficult to meet the accuracy requirements.
因此,目前的核反应堆仿真无法在保证精度的同时提高仿真效率。Therefore, current nuclear reactor simulations cannot improve simulation efficiency while ensuring accuracy.
发明内容Summary of the invention
第一方面,本申请提供了一种用于核反应堆仿真测试的多保真度网络构建方法。所述方法包括:In a first aspect, the present application provides a method for constructing a multi-fidelity network for nuclear reactor simulation testing. The method comprises:
根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络;Acquire a first fidelity network based on first fidelity data of the sample nuclear reactor, and acquire at least one second fidelity network based on second fidelity data of the sample nuclear reactor;
采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络;Using the second fidelity data to train at least one second fidelity network to obtain at least one trained second fidelity network;
将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,并采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络;训练好的多保真度网络用于对目标核反应堆进行仿真测试。At least one trained second fidelity network is combined with a first fidelity network to obtain a multi-fidelity network, and the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
在其中一个实施例中,根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络之前,还包括:In one embodiment, before acquiring at least one second fidelity network according to the second fidelity data of the sample nuclear reactor, the method further includes:
获取样本核反应堆的多个数据集;Acquire multiple data sets of sample nuclear reactors;
确定各数据集的精确程度,将精确程度最高的一个数据集中的数据作为第一保真度数据;Determine the accuracy of each data set, and use the data in a data set with the highest accuracy as the first fidelity data;
将多个数据集中,除第一保真度数据以外的数据,作为第二保真度数据。Among the multiple data sets, data other than the first fidelity data is used as the second fidelity data.
在其中一个实施例中,根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络,包括:
In one embodiment, obtaining at least one second fidelity network according to second fidelity data of a sample nuclear reactor includes:
对第二保真度数据进行等级划分,得到至少一个保真度等级、以及各保真度等级对应的子数据;Classifying the second fidelity data into different levels to obtain at least one fidelity level and sub-data corresponding to each fidelity level;
根据各保真度等级对应的子数据获取对应的第二保真度网络;第二保真度网络的数量和保真度等级的数量相同;Obtaining corresponding second fidelity networks according to the sub-data corresponding to each fidelity level; the number of second fidelity networks is the same as the number of fidelity levels;
采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络,包括:Using the second fidelity data to train at least one second fidelity network to obtain at least one trained second fidelity network includes:
分别采用各保真度等级对应的子数据,对各第二保真度网络进行训练,得到至少一个训练好的第二保真度网络。Each second fidelity network is trained using the sub-data corresponding to each fidelity level to obtain at least one trained second fidelity network.
在其中一个实施例中,将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,包括:In one embodiment, at least one trained second fidelity network is combined with a first fidelity network to obtain a multi-fidelity network, comprising:
将各训练好的第二保真度网络的输出端,分别连接到第一保真度网络的其中一个输入端;Connecting the output of each trained second fidelity network to one of the inputs of the first fidelity network;
将第一保真度网络的输入端、以及各训练好的第二保真度网络的输入端共同作为多保真度网络的输入端,将第一保真度网络的输出端作为多保真度网络的输出端,得到多保真度网络。The input end of the first fidelity network and the input ends of each trained second fidelity network are used together as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain a multi-fidelity network.
在其中一个实施例中,采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络,包括:In one embodiment, the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network, including:
将多保真度网络作为生成器网络,并根据生成器网络获取对应的判别器网络;Use the multi-fidelity network as the generator network, and obtain the corresponding discriminator network based on the generator network;
根据生成器网络和判别器网络构建生成对抗网络;Construct a generative adversarial network based on the generator network and the discriminator network;
采用第一保真度数据对生成对抗网络进行训练,得到训练好的生成对抗网络;Using the first fidelity data to train the generative adversarial network to obtain a trained generative adversarial network;
从训练好的生成对抗网络中获取训练好的生成器网络,作为训练好的多保真度网络。Obtain the trained generator network from the trained generative adversarial network as the trained multi-fidelity network.
在其中一个实施例中,方法还包括:In one embodiment, the method further comprises:
获取目标核反应堆的控制参数和第一时刻状态参数;Acquiring control parameters and first moment state parameters of a target nuclear reactor;
将控制参数和第一时刻状态参数输入训练好的多保真度网络,得到目标核反应堆的第二时刻状态参数;Inputting the control parameters and the state parameters at the first moment into the trained multi-fidelity network to obtain the state parameters of the target nuclear reactor at the second moment;
基于第二时刻状态参数得到目标核反应堆的仿真测试结果。The simulation test result of the target nuclear reactor is obtained based on the state parameters at the second moment.
第二方面,本申请还提供了一种用于核反应堆仿真测试的多保真度网络构建装置。所述装置包括:In a second aspect, the present application also provides a multi-fidelity network construction device for nuclear reactor simulation testing. The device comprises:
获取模块,用于根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络;an acquisition module, configured to acquire a first fidelity network according to first fidelity data of the sample nuclear reactor, and to acquire at least one second fidelity network according to second fidelity data of the sample nuclear reactor;
训练模块,用于采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络;A training module, configured to train at least one second fidelity network using second fidelity data to obtain at least one trained second fidelity network;
组合模块,用于将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,并采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络;训练好的多保真度网络用于对目标核反应堆进行仿真测试。A combination module is used to combine at least one trained second fidelity network with a first fidelity network to obtain a multi-fidelity network, and use the first fidelity data to train the multi-fidelity network to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
第三方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络;Acquire a first fidelity network based on first fidelity data of the sample nuclear reactor, and acquire at least one second fidelity network based on second fidelity data of the sample nuclear reactor;
采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络;Using the second fidelity data to train at least one second fidelity network to obtain at least one trained second fidelity network;
将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,并采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络;训练好的多保真度网络用于对目标核反应堆进行仿真测试。At least one trained second fidelity network is combined with a first fidelity network to obtain a multi-fidelity network, and the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
第四方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络;Acquire a first fidelity network based on first fidelity data of the sample nuclear reactor, and acquire at least one second fidelity network based on second fidelity data of the sample nuclear reactor;
采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络;Using the second fidelity data to train at least one second fidelity network to obtain at least one trained second fidelity network;
将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,并采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络;训练好的多保真度网络用于对目标核反应堆进行仿真测试。At least one trained second fidelity network is combined with a first fidelity network to obtain a multi-fidelity network, and the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
第五方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络;Acquire a first fidelity network based on first fidelity data of the sample nuclear reactor, and acquire at least one second fidelity network based on second fidelity data of the sample nuclear reactor;
采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络;Using the second fidelity data to train at least one second fidelity network to obtain at least one trained second fidelity network;
将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,并采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络;训练好的多保真度网络用于对目标核反应堆进行仿真测试。At least one trained second fidelity network is combined with a first fidelity network to obtain a multi-fidelity network, and the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
上述用于核反应堆仿真测试的多保真度网络构建方法、装置、计算机设备、存储介质和计算机程序产品,根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络;采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络;将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,并采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络;训练好的多保真度网络用于对目标核反应堆进行仿真测试。这样,通过多保真度网络对目标核反应堆进行仿真时,第二保真度网络能够先根据输入参数得到参考仿真结果,将输入参数和仿真结果一起输入第一保真度网络中,第一保真度网络能够根据不同保真度数据之间的耦合,输出最终的仿真结果。本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。The above-mentioned multi-fidelity network construction method, device, computer equipment, storage medium and computer program product for nuclear reactor simulation testing obtains a first fidelity network according to the first fidelity data of the sample nuclear reactor, and obtains at least one second fidelity network according to the second fidelity data of the sample nuclear reactor; uses the second fidelity data to train at least one second fidelity network to obtain at least one trained second fidelity network; combines at least one trained second fidelity network with the first fidelity network to obtain a multi-fidelity network, and uses the first fidelity data to train the multi-fidelity network to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to simulate the target nuclear reactor. In this way, when the target nuclear reactor is simulated by the multi-fidelity network, the second fidelity network can first obtain a reference simulation result according to the input parameters, and input the input parameters and the simulation result into the first fidelity network together, and the first fidelity network can output the final simulation result according to the coupling between different fidelity data. Details of one or more embodiments of the present application are presented in the following drawings and descriptions. Other features, objects, and advantages of the application will be apparent from the description and drawings, and from the claims.
为了更清楚地说明本申请实施例或传统技术中的技术方案,下面将对实施例或传统技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据公开的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without paying any creative work.
图1为一个实施例中用于核反应堆仿真测试的多保真度网络构建方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a method for constructing a multi-fidelity network for nuclear reactor simulation testing in one embodiment;
图2为一个实施例中第二保真度网络的结构示意图;FIG2 is a schematic diagram of the structure of a second fidelity network in one embodiment;
图3为一个实施例中多保真度网络的结构示意图;FIG3 is a schematic diagram of the structure of a multi-fidelity network in one embodiment;
图4为另一个实施例中生成对抗网络训练的流程示意图;FIG4 is a schematic diagram of a process of generating adversarial network training in another embodiment;
图5为一个实施例中用于核反应堆仿真测试的多保真度网络构建装置的结构框图;FIG5 is a structural block diagram of a multi-fidelity network construction device for nuclear reactor simulation testing in one embodiment;
图6为一个实施例中计算机设备的内部结构图。FIG. 6 is a diagram showing the internal structure of a computer device in one embodiment.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
在一个实施例中,如图1所示,提供了一种用于核反应堆仿真测试的多保真度网络构建方法,本实施例以该方法应用于计算机设备进行举例说明,可以理解的是,该计算机设备具体可以是终端或服务器。其中,终端可以但不限于是各种工业计算机。服务器可以用
独立的服务器或者是多个服务器组成的服务器集群来实现。本实施例中,该方法包括以下步骤:In one embodiment, as shown in FIG1 , a multi-fidelity network construction method for nuclear reactor simulation testing is provided. This embodiment uses the method applied to a computer device as an example. It is understandable that the computer device may be a terminal or a server. The terminal may be, but is not limited to, various industrial computers. The server may be, for example, a computer. The method can be implemented by a separate server or a server cluster composed of multiple servers. In this embodiment, the method includes the following steps:
步骤102,根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络。Step 102: acquiring a first fidelity network according to first fidelity data of a sample nuclear reactor, and acquiring at least one second fidelity network according to second fidelity data of the sample nuclear reactor.
其中,第一保真度数据是指高保真度数据,可以通过高保真度软件生成;第二保真度数据是指,与第一保真度数据相比,数据精度较低的低保真度数据,可以通过低保真度软件快速生成。第一保真度数据和第二保真度数据均包括样本核反应堆的输入输出的多项控制参数和状态参数,具体包括:1)反应性参数,如控制棒棒位等;2)功率参数,如功率水平、功率分布;3)核子密度参数,如每个组件轴向高度上核子密度(包括裂变核素、次锕系核素、轻核实等等);4)宏观或微观反应截面;5)热工参数,如冷却剂温度、压力、流量等,燃料或材料的温度等等。其中,反应性参数和功率参数可以作为输入参数,其他状态参数作为输出参数。Among them, the first fidelity data refers to high-fidelity data, which can be generated by high-fidelity software; the second fidelity data refers to low-fidelity data with lower data accuracy than the first fidelity data, which can be quickly generated by low-fidelity software. Both the first fidelity data and the second fidelity data include multiple control parameters and state parameters of the input and output of the sample nuclear reactor, including: 1) reactivity parameters, such as control rod positions, etc.; 2) power parameters, such as power level, power distribution; 3) nuclear density parameters, such as the nuclear density at the axial height of each component (including fissile nuclides, minor actinide nuclides, light nuclides, etc.); 4) macroscopic or microscopic reaction cross sections; 5) thermal parameters, such as coolant temperature, pressure, flow, etc., fuel or material temperature, etc. Among them, reactivity parameters and power parameters can be used as input parameters, and other state parameters as output parameters.
可选的,根据目标核反应堆的仿真需求,以及第一保真度数据的数据类型,选择一个合适的神经网络作为第一保真度网络。同样的,根据目标核反应堆的仿真需求,以及第二保真度数据的数据类型,选择另一个或多个合适的神经网络分别作为第二保真度网络。Optionally, according to the simulation requirements of the target nuclear reactor and the data type of the first fidelity data, a suitable neural network is selected as the first fidelity network. Similarly, according to the simulation requirements of the target nuclear reactor and the data type of the second fidelity data, another one or more suitable neural networks are selected as the second fidelity networks.
步骤104,采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络。Step 104: Use the second fidelity data to train at least one second fidelity network to obtain at least one trained second fidelity network.
可选的,可以直接采用所有第二保真度数据对一个第二保真度网络进行训练,得到一个训练好的第二保真度网络。也可以先对第二保真度数据进行精度区分,针对样本核反应堆的状态特性,对第二保真度数据中的每一组数据进行精度评分,然后根据精度评分将所有数据分为多个保真度等级,准备和保真度等级相同数量的第二保真度网络,分别采用一个保真度等级的数据对每个第二保真度网络进行训练。例如,将第二保真度数据按照精度区分为两个部分,将精度较高的数据作为中保真度数据,将精度较低的数据作为低保真度数据,准备两个第二保真度网络:中保真度网络和低保真度网络,采用中保真度数据对中保真度网络进行训练,得到训练好的中保真度网络,同时采用低保真度数据对低保真度网络进行训练,得到训练好的低保真度网络。Optionally, all second fidelity data can be directly used to train a second fidelity network to obtain a trained second fidelity network. The second fidelity data can also be first differentiated by accuracy, and each group of data in the second fidelity data can be scored for accuracy according to the state characteristics of the sample nuclear reactor, and then all data can be divided into multiple fidelity levels according to the accuracy score, and the same number of second fidelity networks as the fidelity level are prepared, and each second fidelity network is trained using data of a fidelity level. For example, the second fidelity data is divided into two parts according to the accuracy, and the data with higher accuracy is used as medium fidelity data, and the data with lower accuracy is used as low fidelity data. Two second fidelity networks are prepared: a medium fidelity network and a low fidelity network. The medium fidelity data is used to train the medium fidelity network to obtain a trained medium fidelity network, and the low fidelity data is used to train the low fidelity network to obtain a trained low fidelity network.
步骤106,将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,并采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络;训练好的多保真度网络用于对目标核反应堆进行仿真测试。Step 106: combine at least one trained second fidelity network with the first fidelity network to obtain a multi-fidelity network, and use the first fidelity data to train the multi-fidelity network to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on the target nuclear reactor.
可选的,将每一个训练好的第二保真度网络的输出端,分别连接到第一保真度网络的输入端;将第一保真度网络的输入端、以及每一个训练好的第二保真度网络的输入端共同作为多保真度网络的输入端,将第一保真度网络的输出端作为多保真度网络的输出端,得到多保真度网络。多保真度网络在训练时,输入数据先输入到每一个训练好的第二保真度网络中,每一个训练好的第二保真度网络输出各自的仿真结果,将这些仿真结果作为参考数据,和输入数据共同输入第一保真度网络中,第一保证度网络结合参考数据,对输入数据进行处理,输出一个仿真数据,将仿真数据和输入数据对应的标签数据进行对比,调整第一保真度网络的权重参数。待第一保证度网络输出的仿真数据和输入数据对应的标签数据的对比结果满足仿真需求时,完成训练,得到训练好的多保真度网络。整个训练过程中,各训练好的第二保真度网络不做调整,即第一保真度数据仅用于训练第一保真度网络。Optionally, the output end of each trained second fidelity network is connected to the input end of the first fidelity network; the input end of the first fidelity network and the input end of each trained second fidelity network are used as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain a multi-fidelity network. When training the multi-fidelity network, the input data is first input into each trained second fidelity network, and each trained second fidelity network outputs its own simulation results. These simulation results are used as reference data and input into the first fidelity network together with the input data. The first fidelity network processes the input data in combination with the reference data, outputs a simulation data, compares the simulation data with the label data corresponding to the input data, and adjusts the weight parameters of the first fidelity network. When the comparison result of the simulation data output by the first fidelity network and the label data corresponding to the input data meets the simulation requirements, the training is completed to obtain a trained multi-fidelity network. During the entire training process, each trained second fidelity network is not adjusted, that is, the first fidelity data is only used to train the first fidelity network.
在一个可行的实施方式中,获取目标核反应堆的控制参数和当前状态参数,然后将控制参数和当前状态参数输入训练好的多保真度网络,多保真度网络能够输出的预测状态参数,预测状态参数能够表征目标核反应堆在控制参数的影响下状态参数产生的变化,基于预测状态参数就可以对目标核反应堆进行仿真测试,从而确定对目标核反应堆最佳的控制方式和控制参数。In a feasible implementation, the control parameters and current state parameters of the target nuclear reactor are obtained, and then the control parameters and current state parameters are input into a trained multi-fidelity network. The multi-fidelity network can output predicted state parameters, and the predicted state parameters can characterize the changes in the state parameters of the target nuclear reactor under the influence of the control parameters. Based on the predicted state parameters, the target nuclear reactor can be simulated and tested to determine the optimal control method and control parameters for the target nuclear reactor.
上述用于核反应堆仿真测试的多保真度网络构建方法中,根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据样本核反应堆的第二保真度数据获取至少一个第
二保真度网络;采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络;将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,并采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络;训练好的多保真度网络用于对目标核反应堆进行仿真测试。这样,通过多保真度网络对目标核反应堆进行仿真时,第二保真度网络能够先根据输入参数得到参考仿真结果,将输入参数和仿真结果一起输入第一保真度网络中,第一保真度网络能够根据不同保真度数据之间的耦合,输出最终的仿真结果,从而在保证仿真精度的同时提高仿真效率。In the above-mentioned multi-fidelity network construction method for nuclear reactor simulation testing, a first fidelity network is obtained according to the first fidelity data of the sample nuclear reactor, and at least one second fidelity network is obtained according to the second fidelity data of the sample nuclear reactor. A two-fidelity network; using the second fidelity data to train at least one second fidelity network to obtain at least one trained second fidelity network; combining at least one trained second fidelity network with the first fidelity network to obtain a multi-fidelity network, and using the first fidelity data to train the multi-fidelity network to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to simulate and test the target nuclear reactor. In this way, when simulating the target nuclear reactor through the multi-fidelity network, the second fidelity network can first obtain a reference simulation result based on the input parameters, and input the input parameters and the simulation result into the first fidelity network together. The first fidelity network can output the final simulation result based on the coupling between different fidelity data, thereby improving the simulation efficiency while ensuring the simulation accuracy.
在一个实施例中,根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络之前,还包括:获取样本核反应堆的多个数据集;确定各数据集的精确程度,将精确程度最高的一个数据集中的数据作为第一保真度数据;将多个数据集中,除第一保真度数据以外的数据,作为第二保真度数据。In one embodiment, before acquiring at least one second fidelity network based on the second fidelity data of the sample nuclear reactor, the method further includes: acquiring multiple data sets of the sample nuclear reactor; determining the accuracy of each data set, and using the data in a data set with the highest accuracy as the first fidelity data; and using the data in the multiple data sets, except the first fidelity data, as the second fidelity data.
可选的,可以通过多种不同保真度的软件生成样本核反应堆的第一保真度数据和第二保真度数据,这些软件是基于数学物理方程,进行推到计算的。也可以人工获取部分运行工况下的实测数据,实测数据本身,可以作为最高级别的保真度而存在,也可以作为低保真度数据而存在,基于数据获取的本质以及数据获取条件而定,因此需要对这些数据进行保真度划分,将高保真度的数据作为第一保真度数据,其余数据作为第二保真度数据。不同保真度数据之间需要统一数据格式。Optionally, the first fidelity data and second fidelity data of the sample nuclear reactor can be generated by a variety of software with different fidelity. These software are based on mathematical physics equations and are used for derivation and calculation. The measured data under some operating conditions can also be obtained manually. The measured data itself can exist as the highest level of fidelity or as low-fidelity data, depending on the nature of data acquisition and data acquisition conditions. Therefore, it is necessary to divide these data into fidelity levels, with high-fidelity data as first-fidelity data and the rest of the data as second-fidelity data. The data format needs to be unified between data of different fidelity levels.
具体的,定义样本核反应堆的状态空间参数为利用高保真度软件,生成高保真度数据集。因为高保真度仿真软件的计算精度较高,但计算效率较低。例如进行典型一次反应堆状态点的计算,大约为几分钟或几小时不等。因此高保真度数据就相对于稀缺。假设高保真度仿真软件的输入为输出为得到高保真度的输入输出对:由于反应堆的过程本质上可以看作一个马尔可夫过程,因此其输入状态空间与输出状态空间本质上可以是一致的。同理,构建中保真度的输入输出对:以及低保真度的输入输出对:
Specifically, the state space parameters of the sample nuclear reactor are defined as High-fidelity software is used to generate high-fidelity data sets. Because high-fidelity simulation software has high calculation accuracy, but low calculation efficiency. For example, the calculation of a typical reactor state point takes about several minutes or hours. Therefore, high-fidelity data is relatively scarce. Assume that the input of the high-fidelity simulation software is The output is Get high-fidelity input-output pairs: Since the reactor process can be essentially regarded as a Markov process, its input state space and output state space can be essentially consistent. Similarly, construct the medium-fidelity input-output pair: And low-fidelity input-output pairs:
本实施例中,通过获取样本核反应堆的多个数据集;确定各数据集的精确程度,将精确程度最高的一个数据集中的数据作为第一保真度数据;将多个数据集中,除第一保真度数据以外的数据,作为第二保真度数据。能够得到不同保真度的数据。In this embodiment, by acquiring multiple data sets of a sample nuclear reactor, determining the accuracy of each data set, taking the data in a data set with the highest accuracy as first fidelity data, and taking the data in multiple data sets except the first fidelity data as second fidelity data, data of different fidelity can be obtained.
在一个实施例中,根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络,包括:对第二保真度数据进行等级划分,得到至少一个保真度等级、以及各保真度等级对应的子数据;根据各保真度等级对应的子数据获取对应的第二保真度网络;第二保真度网络的数量和保真度等级的数量相同。In one embodiment, at least one second fidelity network is obtained based on second fidelity data of a sample nuclear reactor, including: classifying the second fidelity data into levels to obtain at least one fidelity level and sub-data corresponding to each fidelity level; obtaining a corresponding second fidelity network based on the sub-data corresponding to each fidelity level; the number of second fidelity networks is the same as the number of fidelity levels.
进一步的,采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络,包括:分别采用各保真度等级对应的子数据,对各第二保真度网络进行训练,得到至少一个训练好的第二保真度网络。Furthermore, the second fidelity data is used to train at least one second fidelity network to obtain at least one trained second fidelity network, including: using sub-data corresponding to each fidelity level to train each second fidelity network to obtain at least one trained second fidelity network.
可选的,以第二保真度网络包含中保真度网络和低保真度网络为例,对于两个第二保真度网络,选用标准的神经网络,对输入输出进行拟合训练,实现和的网络构建。如图2所示,神经网络的层数(或称深度)m,以及每个层的节点数(或称宽度)n,激活函数ReLU或者leakyReLu,学习率,优化算法Adam或SGD等,为神经网络训练的超参数,可根据不同的问题来设置,也可以根据超参数优化算法HPO
来最终确定相关参数。神经网络的构建和训练等方法可以根据数据类型、训练需求等进行选择,这里不再赘述。可以采用一些深度学习开源平台,包括PaddlePaddle、Pytorch、Tensorflow等,可以很容易实现一个优化的神经网络模型以表征低保真度数据或中保真度数据的内在关系。Optionally, taking the second fidelity network including a medium fidelity network and a low fidelity network as an example, for the two second fidelity networks, a standard neural network is selected to perform fitting training on the input and output to achieve and As shown in Figure 2, the number of layers (or depth) m of the neural network, the number of nodes (or width) n of each layer, the activation function ReLU or leakyReLu, the learning rate, the optimization algorithm Adam or SGD, etc. are the hyperparameters of neural network training, which can be set according to different problems or according to the hyperparameter optimization algorithm HPO. To finally determine the relevant parameters. The methods of building and training neural networks can be selected according to the data type, training requirements, etc., which will not be described here. Some deep learning open source platforms can be used, including PaddlePaddle, Pytorch, Tensorflow, etc., which can easily implement an optimized neural network model to characterize the intrinsic relationship of low-fidelity data or medium-fidelity data.
本实施例中,通过对第二保真度数据进行等级划分,得到至少一个保真度等级、以及各保真度等级对应的子数据;根据各保真度等级对应的子数据获取对应的第二保真度网络;第二保真度网络的数量和保真度等级的数量相同;分别采用各保真度等级对应的子数据,对各第二保真度网络进行训练,得到至少一个训练好的第二保真度网络。能够得到多个训练好的第二保真度网络。In this embodiment, by classifying the second fidelity data, at least one fidelity level and sub-data corresponding to each fidelity level are obtained; the corresponding second fidelity network is obtained according to the sub-data corresponding to each fidelity level; the number of second fidelity networks is the same as the number of fidelity levels; the sub-data corresponding to each fidelity level are respectively used to train each second fidelity network to obtain at least one trained second fidelity network. Multiple trained second fidelity networks can be obtained.
在一个实施例中,将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,包括:将各训练好的第二保真度网络的输出端,分别连接到第一保真度网络的其中一个输入端;将第一保真度网络的输入端、以及各训练好的第二保真度网络的输入端共同作为多保真度网络的输入端,将第一保真度网络的输出端作为多保真度网络的输出端,得到多保真度网络。In one embodiment, at least one trained second fidelity network is combined with a first fidelity network to obtain a multi-fidelity network, including: connecting the output of each trained second fidelity network to one of the inputs of the first fidelity network; using the input of the first fidelity network and the input of each trained second fidelity network as the input of the multi-fidelity network, and using the output of the first fidelity network as the output of the multi-fidelity network to obtain the multi-fidelity network.
可选的,以第一保真度网络为高保真度网络,第二保真度网络包含中保真度网络和低保真度网络为例,由于本身低保真度网络存在大量的数据,而高保真度的数据量相对较少,直接针对高保真度数据源进行训练将带来较大的过拟合误差。因此,将高保真输入数据xhigh投入到已经训练好的低保真度网络、中保真度网络等,获得这几个非高保真度网络等级下的输出和事实上,或与真实yhigh的差异,表征了低保真度网络扩展到高保真度数据的误差。Optionally, take the first fidelity network as a high-fidelity network, and the second fidelity network as an example, since the low-fidelity network itself has a large amount of data, while the amount of high-fidelity data is relatively small, directly training the high-fidelity data source will lead to a large overfitting error. Therefore, the high-fidelity input data x high is input into the already trained low-fidelity network, medium-fidelity network, etc., to obtain the output of these non-high-fidelity network levels and In fact, or The difference from the true y high characterizes the error of the low-fidelity network extended to the high-fidelity data.
进一步,通过第一保真度网络的学习训练,能够修正相关的误差。因此构建第一保真度网络,如图3所示,将低保真度网络的输出和中保真度网络的输出网络映射到高保真度网络的其中一项输入上,组合得到多保真度网络。其中,多保真度网络的深度和宽度mhigh和nhigh,以及激活函数、训练超参数等,需要根据具体核反应堆的状态参数而确定,这里不再赘述。Furthermore, through the learning and training of the first fidelity network, the relevant errors can be corrected. Therefore, the first fidelity network is constructed, as shown in FIG3, and the output of the low-fidelity network and the output network of the medium-fidelity network are mapped to one of the inputs of the high-fidelity network, and a multi-fidelity network is obtained by combining them. Among them, the depth and width m high and n high of the multi-fidelity network, as well as the activation function, training hyperparameters, etc., need to be determined according to the state parameters of the specific nuclear reactor, which will not be repeated here.
本实施例中,将各训练好的第二保真度网络的输出端,分别连接到第一保真度网络的其中一个输入端;将第一保真度网络的输入端、以及各训练好的第二保真度网络的输入端共同作为多保真度网络的输入端,将第一保真度网络的输出端作为多保真度网络的输出端,得到多保真度网络。多保真度网络能够结合不同保真度网络的输出结果得到最终的仿真结果,且通过大量低保真度的数据训练得到多保真度网络中的第二保真度网络部分,能够大幅提高训练的计算效率和精度,以满足实时性要求。In this embodiment, the output end of each trained second fidelity network is connected to one of the input ends of the first fidelity network; the input end of the first fidelity network and the input end of each trained second fidelity network are used as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain a multi-fidelity network. The multi-fidelity network can combine the output results of different fidelity networks to obtain the final simulation result, and the second fidelity network part in the multi-fidelity network is obtained by training with a large amount of low-fidelity data, which can greatly improve the computational efficiency and accuracy of training to meet real-time requirements.
在一个实施例中,采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络,包括:将多保真度网络作为生成器网络,并根据生成器网络获取对应的判别器网络;根据生成器网络和判别器网络构建生成对抗网络;采用第一保真度数据对生成对抗网络进行训练,得到训练好的生成对抗网络;从训练好的生成对抗网络中获取训练好的生成器网络,作为训练好的多保真度网络。In one embodiment, a multi-fidelity network is trained using first fidelity data to obtain a trained multi-fidelity network, including: using the multi-fidelity network as a generator network, and obtaining a corresponding discriminator network based on the generator network; constructing a generative adversarial network based on the generator network and the discriminator network; training the generative adversarial network using the first fidelity data to obtain a trained generative adversarial network; and obtaining a trained generator network from the trained generative adversarial network as a trained multi-fidelity network.
可选的,以第一保真度网络为高保真度网络,第二保真度网络包含中保真度网络和低保真度网络为例,如图3所示,基于生成器网络的输出和传统的神经网络训练直接利用和yhigh的偏差,如L1loss损失函数:就可直
接开展训练。Optionally, taking the first fidelity network as a high-fidelity network and the second fidelity network including a medium-fidelity network and a low-fidelity network as an example, as shown in FIG3, based on the output of the generator network and Traditional neural network training directly uses And the deviation of y high , such as L1loss loss function: You can directly Then carry out training.
基于上述做法,在真实的样本中加入人工精心设计好的噪声,合成一个新的输入数据(或称为对抗数据),将导致整个生产器网络预测错误。即在对抗数据面前,深度生成器网络是脆弱的,可以轻易迷惑这些深度神经网络。深度神经网络对对抗样本的预测错误率非常高,在人类认为几乎无法判别原样本和对抗样本的区别的情况下(偏差非常小),原本的深度神经网络的功能已经失效,不能作为反应堆后续状态预测的基础。特别是,在核电厂实际测量过程中,所有的测量参数都伴随着随机的可能消除的误差,一些潜在的误差扰动可能导致深度神经网络模型预测的灾难性错误结果。提升神经网络的对抗鲁棒性(抵御对抗样本的能力)对反应堆预测模型的开发直观重要。因此,基于对抗学习的思想,新增一个判别器。利用对抗训练的方法,提升神经网络对抗样本欺骗的能力。对抗训练的基本思想是在网络训练过程中,不断生成并学习对抗样本。使得通过生成器G(X)生成的反应堆状态标签,能够欺骗判别器,与真实的反应堆状态标签一致。即判别器D(Y)的输出则是判断来自真实标签的可能性。判别器的网络结构、学习率等超参数根据具体的实际场景调整。Based on the above approach, adding artificially designed noise to the real samples to synthesize a new input data (or adversarial data) will cause the entire generator network to make prediction errors. That is, in the face of adversarial data, the deep generator network is fragile and can easily confuse these deep neural networks. The prediction error rate of deep neural networks for adversarial samples is very high. When humans think that it is almost impossible to distinguish the difference between the original sample and the adversarial sample (the deviation is very small), the original function of the deep neural network has failed and cannot be used as the basis for the subsequent state prediction of the reactor. In particular, in the actual measurement process of nuclear power plants, all measurement parameters are accompanied by random errors that may be eliminated, and some potential error disturbances may lead to catastrophic errors in the prediction of deep neural network models. Improving the adversarial robustness of neural networks (the ability to resist adversarial samples) is intuitively important for the development of reactor prediction models. Therefore, based on the idea of adversarial learning, a discriminator is added. The adversarial training method is used to improve the ability of neural networks to deceive adversarial samples. The basic idea of adversarial training is to continuously generate and learn adversarial samples during network training. The reactor state label generated by the generator G(X) can deceive the discriminator and be consistent with the real reactor state label. That is, the output of the discriminator D(Y) is the possibility of judging the true label. The discriminator's network structure, learning rate and other hyperparameters are adjusted according to the specific actual scenario.
进一步的,如图4所示,对于生成器G(X)来说,需要不断的欺骗判别器D,使得log(D(G(X)))达到最大,即使得与yhigh尽量的接近。对于判别器D来说,需要不断的学习,防止被生成器欺骗,此时,针对真正输入yhigh需要达到最大化的判断正确为真,同时,针对假的输入实现最大的判断为假。使得log(D(Y))+log(1-D(G(X)))最大化。具体的训练过程,是先训练判别器D,然后训练生成器G,直到判别器D与生成器G达到一个纳什均衡。Furthermore, as shown in Figure 4, for the generator G(X), it is necessary to constantly deceive the discriminator D so that log(D(G(X))) reaches the maximum, that is, As close as possible to y high . For the discriminator D, it needs to keep learning to prevent being deceived by the generator. At this time, for the real input y high, it needs to maximize the correct judgment as true, and at the same time, for the false input Achieve the maximum false judgment. Maximize log(D(Y))+log(1-D(G(X))). The specific training process is to first train the discriminator D, and then train the generator G, until the discriminator D and the generator G reach a Nash equilibrium.
本实施例中,将多保真度网络作为生成器网络,并根据生成器网络获取对应的判别器网络;根据生成器网络和判别器网络构建生成对抗网络;采用第一保真度数据对生成对抗网络进行训练,得到训练好的生成对抗网络;从训练好的生成对抗网络中获取训练好的生成器网络,作为训练好的多保真度网络。能够得到训练好的多保真度网络,训练好的多保真度网络能够结合不同保真度网络的输出结果得到输入数据对应的仿真结果。In this embodiment, a multi-fidelity network is used as a generator network, and a corresponding discriminator network is obtained according to the generator network; a generative adversarial network is constructed according to the generator network and the discriminator network; the generative adversarial network is trained using the first fidelity data to obtain a trained generative adversarial network; and a trained generator network is obtained from the trained generative adversarial network as a trained multi-fidelity network. A trained multi-fidelity network can be obtained, and the trained multi-fidelity network can combine the output results of different fidelity networks to obtain simulation results corresponding to the input data.
训练好的多保真网络用于对目标核反应对进行仿真测试,即,目标核反应堆可以通过训练好的多保真网络进行仿真测试,以实现对目标反应堆状态变化的模拟。具体地,在一个实施例中,目标核反应堆通过训练好的多保真网络进行仿真测试的步骤包括:获取目标核反应堆的控制参数和第一时刻状态参数;将控制参数和第一时刻状态参数输入训练好的多保真度网络,得到目标核反应堆的第二时刻状态参数;基于第二时刻状态参数得到目标核反应堆的仿真测试结果。The trained multi-fidelity network is used to simulate and test the target nuclear reactor pair, that is, the target nuclear reactor can be simulated and tested through the trained multi-fidelity network to simulate the state change of the target reactor. Specifically, in one embodiment, the step of performing simulation testing on the target nuclear reactor through the trained multi-fidelity network includes: obtaining control parameters and state parameters of the target nuclear reactor at a first moment; inputting the control parameters and the state parameters of the first moment into the trained multi-fidelity network to obtain the state parameters of the target nuclear reactor at a second moment; and obtaining the simulation test results of the target nuclear reactor based on the state parameters at the second moment.
可选的,以第一保真度网络为高保真度网络,第二保真度网络包含中保真度网络和低保真度网络为例,通过低保真度网络、中保真度网络,以及高保真网络组合得到的多保真度网络,可以实现对反应堆状态变化的模拟。如图3所示,在实际应用过程中,向多保真度网络输入xhigh,xhigh包括目标核反应堆的控制参数和第一时刻状态参数,是先由低保真度网络、中保真度网络处理输入数据xhigh,分别输出和然后将xhigh输入高
保真度网络,同时也将和输入高保真度网络,高保真度网络输出反应堆状态仿真变化包括目标核反应堆的第二时刻状态参数。其中,第一时刻和第二时刻之间的关系,取决于多保真度网络在训练过程中,训练数据(xhigh,yhigh)中xhigh和yhigh之间的时刻关系。Optionally, taking the first fidelity network as a high-fidelity network and the second fidelity network including a medium-fidelity network and a low-fidelity network as an example, a multi-fidelity network obtained by combining the low-fidelity network, the medium-fidelity network, and the high-fidelity network can realize the change of the reactor state. As shown in Figure 3, in the actual application process, the multi-fidelity network inputs x high , which includes the control parameters of the target nuclear reactor and the state parameters at the first moment. The low-fidelity network and the medium-fidelity network first process the input data x high and output them respectively. and Then input x high into high Fidelity network, and will also and Input high fidelity network, high fidelity network output reactor state simulation change Including the state parameters of the target nuclear reactor at the second moment. The relationship between the first moment and the second moment depends on the moment relationship between x high and y high in the training data (x high , y high ) during the training process of the multi-fidelity network.
本实施例中,获取目标核反应堆的控制参数和第一时刻状态参数;将控制参数和第一时刻状态参数输入训练好的多保真度网络,得到目标核反应堆的第二时刻状态参数;基于第二时刻状态参数得到目标核反应堆的仿真测试结果。能够根据不同保真度数据之间的耦合,输出最终的仿真结果,从而在保证仿真精度的同时提高仿真效率。In this embodiment, the control parameters and the state parameters of the target nuclear reactor at the first moment are obtained; the control parameters and the state parameters of the first moment are input into the trained multi-fidelity network to obtain the state parameters of the target nuclear reactor at the second moment; and the simulation test results of the target nuclear reactor are obtained based on the state parameters at the second moment. The final simulation results can be output according to the coupling between different fidelity data, thereby improving the simulation efficiency while ensuring the simulation accuracy.
在一个实施例中,一种用于核反应堆仿真测试的多保真度网络构建,包括:In one embodiment, a multi-fidelity network for nuclear reactor simulation testing is constructed, comprising:
获取样本核反应堆的多个数据集;确定各数据集的精确程度,将精确程度最高的一个数据集中的数据作为第一保真度数据;将多个数据集中,除第一保真度数据以外的数据,作为第二保真度数据。Acquire multiple data sets of a sample nuclear reactor; determine the accuracy of each data set, and use the data in a data set with the highest accuracy as first fidelity data; and use the data in the multiple data sets, except the first fidelity data, as second fidelity data.
根据样本核反应堆的第一保真度数据获取第一保真度网络。对第二保真度数据进行等级划分,得到至少一个保真度等级、以及各保真度等级对应的子数据;根据各保真度等级对应的子数据获取对应的第二保真度网络;第二保真度网络的数量和保真度等级的数量相同。A first fidelity network is obtained according to the first fidelity data of the sample nuclear reactor. The second fidelity data is graded to obtain at least one fidelity grade and sub-data corresponding to each fidelity grade; a corresponding second fidelity network is obtained according to the sub-data corresponding to each fidelity grade; the number of the second fidelity networks is the same as the number of the fidelity grades.
分别采用各保真度等级对应的子数据,对各第二保真度网络进行训练,得到至少一个训练好的第二保真度网络。Each second fidelity network is trained using the sub-data corresponding to each fidelity level to obtain at least one trained second fidelity network.
将各训练好的第二保真度网络的输出端,分别连接到第一保真度网络的其中一个输入端;将第一保真度网络的输入端、以及各训练好的第二保真度网络的输入端共同作为多保真度网络的输入端,将第一保真度网络的输出端作为多保真度网络的输出端,得到多保真度网络。The output end of each trained second fidelity network is connected to one of the input ends of the first fidelity network; the input end of the first fidelity network and the input end of each trained second fidelity network are used as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain a multi-fidelity network.
将多保真度网络作为生成器网络,并根据生成器网络获取对应的判别器网络;根据生成器网络和判别器网络构建生成对抗网络;采用第一保真度数据对生成对抗网络进行训练,得到训练好的生成对抗网络;从训练好的生成对抗网络中获取训练好的生成器网络,作为训练好的多保真度网络,训练好的多保真度网络用于对目标核反应堆进行仿真测试。The multi-fidelity network is used as a generator network, and the corresponding discriminator network is obtained according to the generator network; a generative adversarial network is constructed according to the generator network and the discriminator network; the generative adversarial network is trained using the first fidelity data to obtain a trained generative adversarial network; the trained generator network is obtained from the trained generative adversarial network as a trained multi-fidelity network, and the trained multi-fidelity network is used to perform simulation tests on a target nuclear reactor.
其中,目标核反应堆通过训练好的多保真网络进行仿真测试的具体步骤包括:获取目标核反应堆的控制参数和第一时刻状态参数;将控制参数和第一时刻状态参数输入训练好的多保真度网络,得到目标核反应堆的第二时刻状态参数;基于第二时刻状态参数得到目标核反应堆的仿真测试结果。Among them, the specific steps of performing simulation test on the target nuclear reactor through the trained multi-fidelity network include: obtaining control parameters and first-time state parameters of the target nuclear reactor; inputting the control parameters and first-time state parameters into the trained multi-fidelity network to obtain second-time state parameters of the target nuclear reactor; and obtaining simulation test results of the target nuclear reactor based on the second-time state parameters.
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的用于核反应堆仿真测试的多保真度网络构建方法的用于核反应堆仿真测试的多保真度网络构建装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个用于核反应堆仿真测试的多保真度网络构建装置实施例中的具体限定可以参见上文中对于用于核反应堆仿真测试的多保真度网络构建方法的限定,在此不再赘述。Based on the same inventive concept, the embodiment of the present application also provides a multi-fidelity network construction device for nuclear reactor simulation testing, which is used to implement the multi-fidelity network construction method for nuclear reactor simulation testing involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the multi-fidelity network construction device for nuclear reactor simulation testing provided below can refer to the limitations of the multi-fidelity network construction method for nuclear reactor simulation testing above, and will not be repeated here.
在一个实施例中,如图5所示,提供了一种用于核反应堆仿真测试的多保真度网络构
建装置500,包括:获取模块501、训练模块502和组合模块503,其中:In one embodiment, as shown in FIG. 5 , a multi-fidelity network architecture for nuclear reactor simulation testing is provided. The device 500 includes: an acquisition module 501, a training module 502 and a combination module 503, wherein:
获取模块501,用于根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络。The acquisition module 501 is used to acquire a first fidelity network according to the first fidelity data of the sample nuclear reactor, and to acquire at least one second fidelity network according to the second fidelity data of the sample nuclear reactor.
训练模块502,用于采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络。The training module 502 is used to train at least one second fidelity network using the second fidelity data to obtain at least one trained second fidelity network.
组合模块503,用于将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,并采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络;训练好的多保真度网络用于对目标核反应堆进行仿真测试。The combination module 503 is used to combine at least one trained second fidelity network with the first fidelity network to obtain a multi-fidelity network, and use the first fidelity data to train the multi-fidelity network to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
在一个实施例中,获取模块501还用于获取样本核反应堆的多个数据集;确定各数据集的精确程度,将精确程度最高的一个数据集中的数据作为第一保真度数据;将多个数据集中,除第一保真度数据以外的数据,作为第二保真度数据。In one embodiment, the acquisition module 501 is also used to acquire multiple data sets of a sample nuclear reactor; determine the accuracy of each data set, and use the data in a data set with the highest accuracy as first fidelity data; and use the data in multiple data sets except the first fidelity data as second fidelity data.
在一个实施例中,获取模块501还用于对第二保真度数据进行等级划分,得到至少一个保真度等级、以及各保真度等级对应的子数据;根据各保真度等级对应的子数据获取对应的第二保真度网络;第二保真度网络的数量和保真度等级的数量相同。In one embodiment, the acquisition module 501 is further used to grade the second fidelity data to obtain at least one fidelity grade and sub-data corresponding to each fidelity grade; obtain the corresponding second fidelity network according to the sub-data corresponding to each fidelity grade; the number of second fidelity networks is the same as the number of fidelity grades.
训练模块502还用于分别采用各保真度等级对应的子数据,对各第二保真度网络进行训练,得到至少一个训练好的第二保真度网络。The training module 502 is further configured to respectively use the sub-data corresponding to each fidelity level to train each second fidelity network to obtain at least one trained second fidelity network.
在一个实施例中,组合模块503还用于将各训练好的第二保真度网络的输出端,分别连接到第一保真度网络的其中一个输入端;将第一保真度网络的输入端、以及各训练好的第二保真度网络的输入端共同作为多保真度网络的输入端,将第一保真度网络的输出端作为多保真度网络的输出端,得到多保真度网络。In one embodiment, the combination module 503 is also used to connect the output end of each trained second fidelity network to one of the input ends of the first fidelity network; the input end of the first fidelity network and the input end of each trained second fidelity network are used as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain a multi-fidelity network.
在一个实施例中,组合模块503还用于将多保真度网络作为生成器网络,并根据生成器网络获取对应的判别器网络;根据生成器网络和判别器网络构建生成对抗网络;采用第一保真度数据对生成对抗网络进行训练,得到训练好的生成对抗网络;从训练好的生成对抗网络中获取训练好的生成器网络,作为训练好的多保真度网络。In one embodiment, the combination module 503 is also used to use the multi-fidelity network as a generator network, and obtain a corresponding discriminator network based on the generator network; construct a generative adversarial network based on the generator network and the discriminator network; use the first fidelity data to train the generative adversarial network to obtain a trained generative adversarial network; obtain a trained generator network from the trained generative adversarial network as a trained multi-fidelity network.
在一个实施例中,装置还包括:In one embodiment, the apparatus further comprises:
测试模块504,用于获取目标核反应堆的控制参数和第一时刻状态参数;将控制参数和第一时刻状态参数输入训练好的多保真度网络,得到目标核反应堆的第二时刻状态参数;基于第二时刻状态参数得到目标核反应堆的仿真测试结果。The test module 504 is used to obtain the control parameters and the state parameters of the target nuclear reactor at the first moment; input the control parameters and the state parameters of the first moment into the trained multi-fidelity network to obtain the state parameters of the target nuclear reactor at the second moment; and obtain the simulation test results of the target nuclear reactor based on the state parameters at the second moment.
上述用于核反应堆仿真测试的多保真度网络构建装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the multi-fidelity network construction device for nuclear reactor simulation testing can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图6所示。该计算机设备包括处理器、存储器、输入/输出接口(Input/Output,简称I/O)和通信接口。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储神经网络数据。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种用于核反应堆仿真测试的多保真度网络构建方法。In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, an input/output interface (Input/Output, referred to as I/O) and a communication interface. Among them, the processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store neural network data. The input/output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a multi-fidelity network construction method for nuclear reactor simulation testing is implemented.
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 6 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计
算机程序,该处理器执行计算机程序时实现以下步骤:根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络;采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络;将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,并采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络;训练好的多保真度网络用于对目标核反应堆进行仿真测试。In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program A computer program is provided for executing the computer program by a processor, wherein the following steps are implemented when the processor executes the computer program: obtaining a first fidelity network according to first fidelity data of a sample nuclear reactor, and obtaining at least one second fidelity network according to second fidelity data of the sample nuclear reactor; training at least one second fidelity network using the second fidelity data to obtain at least one trained second fidelity network; combining at least one trained second fidelity network with the first fidelity network to obtain a multi-fidelity network, and training the multi-fidelity network using the first fidelity data to obtain a trained multi-fidelity network; and using the trained multi-fidelity network to perform simulation testing on a target nuclear reactor.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:获取样本核反应堆的多个数据集;确定各数据集的精确程度,将精确程度最高的一个数据集中的数据作为第一保真度数据;将多个数据集中,除第一保真度数据以外的数据,作为第二保真度数据。In one embodiment, when the processor executes the computer program, the following steps are also implemented: acquiring multiple data sets of a sample nuclear reactor; determining the accuracy of each data set, and using the data in a data set with the highest accuracy as first fidelity data; and using the data in multiple data sets, except the first fidelity data, as second fidelity data.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:对第二保真度数据进行等级划分,得到至少一个保真度等级、以及各保真度等级对应的子数据;根据各保真度等级对应的子数据获取对应的第二保真度网络;第二保真度网络的数量和保真度等级的数量相同。In one embodiment, when the processor executes the computer program, the following steps are also implemented: the second fidelity data is graded to obtain at least one fidelity level and sub-data corresponding to each fidelity level; a corresponding second fidelity network is obtained according to the sub-data corresponding to each fidelity level; the number of second fidelity networks is the same as the number of fidelity levels.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:分别采用各保真度等级对应的子数据,对各第二保真度网络进行训练,得到至少一个训练好的第二保真度网络。In one embodiment, when the processor executes the computer program, the following steps are further implemented: using the sub-data corresponding to each fidelity level to train each second fidelity network to obtain at least one trained second fidelity network.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:将各训练好的第二保真度网络的输出端,分别连接到第一保真度网络的其中一个输入端;将第一保真度网络的输入端、以及各训练好的第二保真度网络的输入端共同作为多保真度网络的输入端,将第一保真度网络的输出端作为多保真度网络的输出端,得到多保真度网络。In one embodiment, when the processor executes the computer program, the following steps are also implemented: the output end of each trained second fidelity network is connected to one of the input ends of the first fidelity network; the input end of the first fidelity network and the input end of each trained second fidelity network are used as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain the multi-fidelity network.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:将多保真度网络作为生成器网络,并根据生成器网络获取对应的判别器网络;根据生成器网络和判别器网络构建生成对抗网络;采用第一保真度数据对生成对抗网络进行训练,得到训练好的生成对抗网络;从训练好的生成对抗网络中获取训练好的生成器网络,作为训练好的多保真度网络。In one embodiment, when the processor executes the computer program, the following steps are also implemented: using the multi-fidelity network as a generator network, and obtaining a corresponding discriminator network based on the generator network; constructing a generative adversarial network based on the generator network and the discriminator network; using the first fidelity data to train the generative adversarial network to obtain a trained generative adversarial network; obtaining a trained generator network from the trained generative adversarial network as a trained multi-fidelity network.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:获取目标核反应堆的控制参数和第一时刻状态参数;将控制参数和第一时刻状态参数输入训练好的多保真度网络,得到目标核反应堆的第二时刻状态参数;基于第二时刻状态参数得到目标核反应堆的仿真测试结果。In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining control parameters and first-moment state parameters of the target nuclear reactor; inputting the control parameters and first-moment state parameters into a trained multi-fidelity network to obtain second-moment state parameters of the target nuclear reactor; and obtaining simulation test results of the target nuclear reactor based on the second-moment state parameters.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络;采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络;将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,并采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络;训练好的多保真度网络用于对目标核反应堆进行仿真测试。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: a first fidelity network is obtained based on first fidelity data of a sample nuclear reactor, and at least one second fidelity network is obtained based on second fidelity data of the sample nuclear reactor; at least one second fidelity network is trained using the second fidelity data to obtain at least one trained second fidelity network; at least one trained second fidelity network is combined with the first fidelity network to obtain a multi-fidelity network, and the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:获取样本核反应堆的多个数据集;确定各数据集的精确程度,将精确程度最高的一个数据集中的数据作为第一保真度数据;将多个数据集中,除第一保真度数据以外的数据,作为第二保真度数据。In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: acquiring multiple data sets of a sample nuclear reactor; determining the accuracy of each data set, and using the data in a data set with the highest accuracy as first fidelity data; and using the data in multiple data sets, except the first fidelity data, as second fidelity data.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:对第二保真度数据进行等级划分,得到至少一个保真度等级、以及各保真度等级对应的子数据;根据各保真度等级对应的子数据获取对应的第二保真度网络;第二保真度网络的数量和保真度等级的数量相同。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the second fidelity data is graded to obtain at least one fidelity level and sub-data corresponding to each fidelity level; a corresponding second fidelity network is obtained according to the sub-data corresponding to each fidelity level; the number of second fidelity networks is the same as the number of fidelity levels.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:分别采用各保真度等级对应的子数据,对各第二保真度网络进行训练,得到至少一个训练好的第二保真度网络。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: using the sub-data corresponding to each fidelity level to train each second fidelity network to obtain at least one trained second fidelity network.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:将各训练好的第二保真度网络的输出端,分别连接到第一保真度网络的其中一个输入端;将第一保真度网络的输入端、以及各训练好的第二保真度网络的输入端共同作为多保真度网络的输入端,将第
一保真度网络的输出端作为多保真度网络的输出端,得到多保真度网络。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: connecting the output end of each trained second fidelity network to one of the input ends of the first fidelity network; using the input end of the first fidelity network and the input end of each trained second fidelity network as the input end of the multi-fidelity network; The output of the single-fidelity network is used as the output of the multi-fidelity network to obtain a multi-fidelity network.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:将多保真度网络作为生成器网络,并根据生成器网络获取对应的判别器网络;根据生成器网络和判别器网络构建生成对抗网络;采用第一保真度数据对生成对抗网络进行训练,得到训练好的生成对抗网络;从训练好的生成对抗网络中获取训练好的生成器网络,作为训练好的多保真度网络。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: using the multi-fidelity network as a generator network, and obtaining a corresponding discriminator network based on the generator network; constructing a generative adversarial network based on the generator network and the discriminator network; using the first fidelity data to train the generative adversarial network to obtain a trained generative adversarial network; obtaining a trained generator network from the trained generative adversarial network as a trained multi-fidelity network.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:获取目标核反应堆的控制参数和第一时刻状态参数;将控制参数和第一时刻状态参数输入训练好的多保真度网络,得到目标核反应堆的第二时刻状态参数;基于第二时刻状态参数得到目标核反应堆的仿真测试结果。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining control parameters and first-time state parameters of the target nuclear reactor; inputting the control parameters and first-time state parameters into a trained multi-fidelity network to obtain second-time state parameters of the target nuclear reactor; and obtaining simulation test results of the target nuclear reactor based on the second-time state parameters.
在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据样本核反应堆的第二保真度数据获取至少一个第二保真度网络;采用第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络;将至少一个训练好的第二保真度网络与第一保真度网络进行组合,得到多保真度网络,并采用第一保真度数据对多保真度网络进行训练,得到训练好的多保真度网络;训练好的多保真度网络用于对目标核反应堆进行仿真测试。A first fidelity network is obtained according to first fidelity data of a sample nuclear reactor, and at least one second fidelity network is obtained according to second fidelity data of the sample nuclear reactor; at least one second fidelity network is trained using the second fidelity data to obtain at least one trained second fidelity network; at least one trained second fidelity network is combined with the first fidelity network to obtain a multi-fidelity network, and the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:获取样本核反应堆的多个数据集;确定各数据集的精确程度,将精确程度最高的一个数据集中的数据作为第一保真度数据;将多个数据集中,除第一保真度数据以外的数据,作为第二保真度数据。In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: acquiring multiple data sets of a sample nuclear reactor; determining the accuracy of each data set, and using the data in a data set with the highest accuracy as first fidelity data; and using the data in multiple data sets, except the first fidelity data, as second fidelity data.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:对第二保真度数据进行等级划分,得到至少一个保真度等级、以及各保真度等级对应的子数据;根据各保真度等级对应的子数据获取对应的第二保真度网络;第二保真度网络的数量和保真度等级的数量相同。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the second fidelity data is graded to obtain at least one fidelity level and sub-data corresponding to each fidelity level; a corresponding second fidelity network is obtained according to the sub-data corresponding to each fidelity level; the number of second fidelity networks is the same as the number of fidelity levels.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:分别采用各保真度等级对应的子数据,对各第二保真度网络进行训练,得到至少一个训练好的第二保真度网络。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: using the sub-data corresponding to each fidelity level to train each second fidelity network to obtain at least one trained second fidelity network.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:将各训练好的第二保真度网络的输出端,分别连接到第一保真度网络的其中一个输入端;将第一保真度网络的输入端、以及各训练好的第二保真度网络的输入端共同作为多保真度网络的输入端,将第一保真度网络的输出端作为多保真度网络的输出端,得到多保真度网络。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the output end of each trained second fidelity network is connected to one of the input ends of the first fidelity network; the input end of the first fidelity network and the input end of each trained second fidelity network are used as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain the multi-fidelity network.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:将多保真度网络作为生成器网络,并根据生成器网络获取对应的判别器网络;根据生成器网络和判别器网络构建生成对抗网络;采用第一保真度数据对生成对抗网络进行训练,得到训练好的生成对抗网络;从训练好的生成对抗网络中获取训练好的生成器网络,作为训练好的多保真度网络。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: using the multi-fidelity network as a generator network, and obtaining a corresponding discriminator network based on the generator network; constructing a generative adversarial network based on the generator network and the discriminator network; using the first fidelity data to train the generative adversarial network to obtain a trained generative adversarial network; obtaining a trained generator network from the trained generative adversarial network as a trained multi-fidelity network.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:获取目标核反应堆的控制参数和第一时刻状态参数;将控制参数和第一时刻状态参数输入训练好的多保真度网络,得到目标核反应堆的第二时刻状态参数;基于第二时刻状态参数得到目标核反应堆的仿真测试结果。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining control parameters and first-time state parameters of the target nuclear reactor; inputting the control parameters and first-time state parameters into a trained multi-fidelity network to obtain second-time state parameters of the target nuclear reactor; and obtaining simulation test results of the target nuclear reactor based on the second-time state parameters.
需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非
易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other media used in the embodiments provided in this application can include non-volatile computer-readable storage media. At least one of volatile and non-volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but is not limited thereto.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described 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.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。
The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.
Claims (15)
- 一种用于核反应堆仿真测试的多保真度网络构建方法,其特征在于,所述方法包括:A method for constructing a multi-fidelity network for nuclear reactor simulation testing, characterized in that the method comprises:根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据所述样本核反应堆的第二保真度数据获取至少一个第二保真度网络;Acquire a first fidelity network based on first fidelity data of a sample nuclear reactor, and acquire at least one second fidelity network based on second fidelity data of the sample nuclear reactor;采用所述第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络;Using the second fidelity data to train at least one second fidelity network to obtain at least one trained second fidelity network;将至少一个训练好的第二保真度网络与所述第一保真度网络进行组合,得到多保真度网络,并采用所述第一保真度数据对所述多保真度网络进行训练,得到训练好的多保真度网络;所述训练好的多保真度网络用于对目标核反应堆进行仿真测试。At least one trained second fidelity network is combined with the first fidelity network to obtain a multi-fidelity network, and the multi-fidelity network is trained using the first fidelity data to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
- 根据权利要求1所述的方法,其特征在于,所述根据所述样本核反应堆的第二保真度数据获取至少一个第二保真度网络之前,还包括:The method according to claim 1, characterized in that before acquiring at least one second fidelity network according to the second fidelity data of the sample nuclear reactor, it also includes:获取所述样本核反应堆的多个数据集;acquiring a plurality of data sets of the sample nuclear reactor;确定各数据集的精确程度,将精确程度最高的一个数据集中的数据作为所述第一保真度数据;Determine the accuracy of each data set, and use the data in a data set with the highest accuracy as the first fidelity data;将所述多个数据集中,除所述第一保真度数据以外的数据,作为所述第二保真度数据。The data other than the first fidelity data among the multiple data sets are used as the second fidelity data.
- 根据权利要求1所述的方法,其特征在于,所述根据所述样本核反应堆的第二保真度数据获取至少一个第二保真度网络,包括:The method according to claim 1, characterized in that the acquiring at least one second fidelity network according to the second fidelity data of the sample nuclear reactor comprises:对所述第二保真度数据进行等级划分,得到至少一个保真度等级、以及各保真度等级对应的子数据;Classifying the second fidelity data into different levels to obtain at least one fidelity level and sub-data corresponding to each fidelity level;根据各保真度等级对应的子数据获取对应的第二保真度网络;所述第二保真度网络的数量和所述保真度等级的数量相同;Acquire a corresponding second fidelity network according to the sub-data corresponding to each fidelity level; the number of the second fidelity networks is the same as the number of the fidelity levels;所述采用所述第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络,包括:The step of training at least one second fidelity network using the second fidelity data to obtain at least one trained second fidelity network comprises:分别采用各保真度等级对应的子数据,对各第二保真度网络进行训练,得到至少一个训练好的第二保真度网络。Each second fidelity network is trained using the sub-data corresponding to each fidelity level to obtain at least one trained second fidelity network.
- 根据权利要求1所述的方法,其特征在于,所述将至少一个训练好的第二保真度网络与所述第一保真度网络进行组合,得到多保真度网络,包括: The method according to claim 1, characterized in that the combining at least one trained second fidelity network with the first fidelity network to obtain a multi-fidelity network comprises:将各训练好的第二保真度网络的输出端,分别连接到所述第一保真度网络的其中一个输入端;Connecting the output end of each trained second fidelity network to one of the input ends of the first fidelity network;将所述第一保真度网络的输入端、以及各训练好的第二保真度网络的输入端共同作为所述多保真度网络的输入端,将所述第一保真度网络的输出端作为所述多保真度网络的输出端,得到所述多保真度网络。The input end of the first fidelity network and the input ends of each trained second fidelity network are used together as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain the multi-fidelity network.
- 根据权利要求1所述的方法,其特征在于,所述采用所述第一保真度数据对所述多保真度网络进行训练,得到训练好的多保真度网络,包括:The method according to claim 1, characterized in that the using the first fidelity data to train the multi-fidelity network to obtain a trained multi-fidelity network comprises:将所述多保真度网络作为生成器网络,并根据所述生成器网络获取对应的判别器网络;Using the multi-fidelity network as a generator network, and obtaining a corresponding discriminator network according to the generator network;根据所述生成器网络和所述判别器网络构建生成对抗网络;Constructing a generative adversarial network based on the generator network and the discriminator network;采用所述第一保真度数据对所述生成对抗网络进行训练,得到训练好的生成对抗网络;Using the first fidelity data to train the generative adversarial network to obtain a trained generative adversarial network;从所述训练好的生成对抗网络中获取训练好的生成器网络,作为所述训练好的多保真度网络。A trained generator network is obtained from the trained generative adversarial network as the trained multi-fidelity network.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, characterized in that the method further comprises:获取所述目标核反应堆的控制参数和第一时刻状态参数;Acquiring control parameters and first moment state parameters of the target nuclear reactor;将所述控制参数和所述第一时刻状态参数输入所述训练好的多保真度网络,得到所述目标核反应堆的第二时刻状态参数;Inputting the control parameter and the first moment state parameter into the trained multi-fidelity network to obtain the second moment state parameter of the target nuclear reactor;基于所述第二时刻状态参数得到所述目标核反应堆的仿真测试结果。A simulation test result of the target nuclear reactor is obtained based on the state parameter at the second moment.
- 一种用于核反应堆仿真测试的多保真度网络构建装置,其特征在于,所述装置包括:A multi-fidelity network construction device for nuclear reactor simulation testing, characterized in that the device comprises:获取模块,用于根据样本核反应堆的第一保真度数据获取第一保真度网络,以及根据所述样本核反应堆的第二保真度数据获取至少一个第二保真度网络;an acquisition module, configured to acquire a first fidelity network according to first fidelity data of a sample nuclear reactor, and to acquire at least one second fidelity network according to second fidelity data of the sample nuclear reactor;训练模块,用于采用所述第二保真度数据对至少一个第二保真度网络进行训练,得到至少一个训练好的第二保真度网络;A training module, configured to train at least one second fidelity network using the second fidelity data to obtain at least one trained second fidelity network;组合模块,用于将至少一个训练好的第二保真度网络与所述第一保真度网络进行组合,得到多保真度网络,并采用所述第一保真度数据对所述多保真度网络进行训练,得到训练好的多保真度网络;所述训练好的多保真度网络用于对目标核反应堆进行仿真测试。A combination module is used to combine at least one trained second fidelity network with the first fidelity network to obtain a multi-fidelity network, and use the first fidelity data to train the multi-fidelity network to obtain a trained multi-fidelity network; the trained multi-fidelity network is used to perform simulation testing on a target nuclear reactor.
- 根据权利要求7所述的装置,其特征在于,所述获取模块还用于获取所述样本核反应堆的多个数据集;确定各数据集的精确程度,将精确程度最高的一个数据集中的数据 作为所述第一保真度数据;将所述多个数据集中,除所述第一保真度数据以外的数据,作为所述第二保真度数据。The device according to claim 7, characterized in that the acquisition module is also used to acquire multiple data sets of the sample nuclear reactor; determine the accuracy of each data set, and select the data in the data set with the highest accuracy. as the first fidelity data; and among the multiple data sets, data other than the first fidelity data is used as the second fidelity data.
- 根据权利要求7所述的装置,其特征在于,所述获取模块还用于对所述第二保真度数据进行等级划分,得到至少一个保真度等级、以及各保真度等级对应的子数据;根据各保真度等级对应的子数据获取对应的第二保真度网络;所述第二保真度网络的数量和所述保真度等级的数量相同;The device according to claim 7, characterized in that the acquisition module is further used to classify the second fidelity data into levels to obtain at least one fidelity level and sub-data corresponding to each fidelity level; obtain the corresponding second fidelity network according to the sub-data corresponding to each fidelity level; the number of the second fidelity networks is the same as the number of the fidelity levels;所述训练模块还用于分别采用各保真度等级对应的子数据,对各第二保真度网络进行训练,得到至少一个训练好的第二保真度网络。The training module is also used to respectively use the sub-data corresponding to each fidelity level to train each second fidelity network to obtain at least one trained second fidelity network.
- 根据权利要求7所述的装置,其特征在于,所述组合模块还用于将各训练好的第二保真度网络的输出端,分别连接到所述第一保真度网络的其中一个输入端;将所述第一保真度网络的输入端、以及各训练好的第二保真度网络的输入端共同作为所述多保真度网络的输入端,将所述第一保真度网络的输出端作为所述多保真度网络的输出端,得到所述多保真度网络。The device according to claim 7 is characterized in that the combination module is also used to connect the output end of each trained second fidelity network to one of the input ends of the first fidelity network; the input end of the first fidelity network and the input end of each trained second fidelity network are used as the input end of the multi-fidelity network, and the output end of the first fidelity network is used as the output end of the multi-fidelity network to obtain the multi-fidelity network.
- 根据权利要求7所述的装置,其特征在于,所述组合模块还用于将所述多保真度网络作为生成器网络,并根据所述生成器网络获取对应的判别器网络;根据所述生成器网络和所述判别器网络构建生成对抗网络;采用所述第一保真度数据对所述生成对抗网络进行训练,得到训练好的生成对抗网络;从所述训练好的生成对抗网络中获取训练好的生成器网络,作为所述训练好的多保真度网络。The device according to claim 7 is characterized in that the combination module is also used to use the multi-fidelity network as a generator network, and obtain a corresponding discriminator network based on the generator network; construct a generative adversarial network based on the generator network and the discriminator network; use the first fidelity data to train the generative adversarial network to obtain a trained generative adversarial network; obtain a trained generator network from the trained generative adversarial network as the trained multi-fidelity network.
- 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, characterized in that the device further comprises:测试模块,用于获取所述目标核反应堆的控制参数和第一时刻状态参数;将所述控制参数和所述第一时刻状态参数输入所述训练好的多保真度网络,得到所述目标核反应堆的第二时刻状态参数;基于所述第二时刻状态参数得到所述目标核反应堆的仿真测试结果。A test module is used to obtain control parameters and first-time state parameters of the target nuclear reactor; input the control parameters and the first-time state parameters into the trained multi-fidelity network to obtain second-time state parameters of the target nuclear reactor; and obtain simulation test results of the target nuclear reactor based on the second-time state parameters.
- 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至6中任一项所述的方法的步骤。A computer device comprises a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of any one of the methods of claims 1 to 6 when executing the computer program.
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至6中任一项所述的方法的步骤。A computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.
- 一种计算机程序产品,包括计算机程序,其特征在于,该计算机程序被处理器执 行时实现权利要求1至6中任一项所述的方法的步骤。 A computer program product, comprising a computer program, characterized in that the computer program is executed by a processor The method of any one of claims 1 to 6 is implemented when executed.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211447961.8A CN115859783A (en) | 2022-11-18 | 2022-11-18 | Multi-fidelity network construction method and device for nuclear reactor simulation test |
CN202211447961.8 | 2022-11-18 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024104485A1 true WO2024104485A1 (en) | 2024-05-23 |
Family
ID=85664126
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/132550 WO2024104485A1 (en) | 2022-11-18 | 2023-11-20 | Multi-fidelity network construction method and apparatus for nuclear reactor simulation test |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115859783A (en) |
WO (1) | WO2024104485A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115859783A (en) * | 2022-11-18 | 2023-03-28 | 中广核研究院有限公司 | Multi-fidelity network construction method and device for nuclear reactor simulation test |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015037296A1 (en) * | 2013-09-11 | 2015-03-19 | 株式会社日立製作所 | System analysis device |
CN111178535A (en) * | 2018-11-12 | 2020-05-19 | 第四范式(北京)技术有限公司 | Method and device for realizing automatic machine learning |
CN112182938A (en) * | 2020-10-13 | 2021-01-05 | 上海交通大学 | Mesoscopic structural part mechanical property prediction method based on transfer learning-multi-fidelity modeling |
US20210391832A1 (en) * | 2020-06-12 | 2021-12-16 | Nokia Technologies Oy | Machine learning based digital pre-distortion for power amplifiers |
CN113886992A (en) * | 2021-10-21 | 2022-01-04 | 大连理工大学 | Digital twin modeling method based on multi-fidelity data |
CN114676522A (en) * | 2022-03-28 | 2022-06-28 | 西安交通大学 | Pneumatic shape optimization design method, system and equipment integrating GAN and transfer learning |
US20220207218A1 (en) * | 2019-06-24 | 2022-06-30 | Nanyang Technological University | Machine learning techniques for estimating mechanical properties of materials |
CN115859783A (en) * | 2022-11-18 | 2023-03-28 | 中广核研究院有限公司 | Multi-fidelity network construction method and device for nuclear reactor simulation test |
-
2022
- 2022-11-18 CN CN202211447961.8A patent/CN115859783A/en active Pending
-
2023
- 2023-11-20 WO PCT/CN2023/132550 patent/WO2024104485A1/en unknown
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015037296A1 (en) * | 2013-09-11 | 2015-03-19 | 株式会社日立製作所 | System analysis device |
CN111178535A (en) * | 2018-11-12 | 2020-05-19 | 第四范式(北京)技术有限公司 | Method and device for realizing automatic machine learning |
US20220207218A1 (en) * | 2019-06-24 | 2022-06-30 | Nanyang Technological University | Machine learning techniques for estimating mechanical properties of materials |
US20210391832A1 (en) * | 2020-06-12 | 2021-12-16 | Nokia Technologies Oy | Machine learning based digital pre-distortion for power amplifiers |
CN112182938A (en) * | 2020-10-13 | 2021-01-05 | 上海交通大学 | Mesoscopic structural part mechanical property prediction method based on transfer learning-multi-fidelity modeling |
CN113886992A (en) * | 2021-10-21 | 2022-01-04 | 大连理工大学 | Digital twin modeling method based on multi-fidelity data |
CN114676522A (en) * | 2022-03-28 | 2022-06-28 | 西安交通大学 | Pneumatic shape optimization design method, system and equipment integrating GAN and transfer learning |
CN115859783A (en) * | 2022-11-18 | 2023-03-28 | 中广核研究院有限公司 | Multi-fidelity network construction method and device for nuclear reactor simulation test |
Also Published As
Publication number | Publication date |
---|---|
CN115859783A (en) | 2023-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7562576B2 (en) | Rapid Digital Reactor Design Using Machine Learning | |
KR20220124769A (en) | Optimization of expensive cost functions according to complex multidimensional constraints | |
WO2024104485A1 (en) | Multi-fidelity network construction method and apparatus for nuclear reactor simulation test | |
CN112906271B (en) | Reactor transient physical thermal full-coupling fine numerical simulation method and system | |
JP2006189439A (en) | Decision method of non-irradiated bundle design for core of reactor | |
WO2024193344A1 (en) | Method and apparatus for quantifying indication signals of nuclear instrument system, and device, and storage medium | |
US20220253740A1 (en) | Systems and methods for simulating a quantum processor | |
CN114186405A (en) | Parameter uncertainty analysis method and system of nuclear power reactor system | |
CN115147012B (en) | Neural network model-based carbon emission accounting method and device | |
CN112906272B (en) | Reactor steady-state physical thermal full-coupling fine numerical simulation method and system | |
Liu et al. | A cumulative migration method for computing rigorous transport cross sections and diffusion coefficients for LWR lattices with Monte Carlo | |
WO2024016621A1 (en) | Scale determination method and apparatus for reactor test model and computer device | |
Xiang et al. | Controllability of weighted and directed networks with nonidentical node dynamics | |
Hoseyni et al. | A Bayesian ensemble of sensitivity measures for severe accident modeling | |
WO2024148895A1 (en) | Nuclear reactor core information prediction method and apparatus, device, and storage medium | |
Dinh et al. | Development and Application of a Data-Driven Methodology for Validation of Risk-Informed Safety Margin Characterization Models | |
Bai et al. | Accelerating cluster dynamics simulation of fission gas behavior in nuclear fuel on deep computing unit–based heterogeneous architecture supercomputer | |
Prince et al. | Reduced Order Models Generation for HTGRs Pebble Shuffling Procedure Optimization Studies | |
Athe | A framework for predictive capability maturity assessment of simulation codes | |
Ştefan et al. | Towards Testing Considerations Of Experimental Decision Support System Design | |
Dieudonne et al. | Depletion calculations based on perturbations. Application to the study of a REP-like assembly at beginning of cycle with TRIPOLI-4® | |
KR102700977B1 (en) | Method and apparatus for calculation of core damage frequency for seismic probabilistic saftey assessment of nuclear power plants considering mutually exclusive partitioning events | |
Pounders et al. | The history-partitioning method for multigroup stochastic cross section generation | |
CN117540557A (en) | Building energy consumption simulation method and device, computer equipment and storage medium | |
Borg | Fuel failure analysis in Boiling Water Reactors (BWR) using Machine Learning.: A comparison of different machine learning algorithms and their performance at predicting fuel failures. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23890913 Country of ref document: EP Kind code of ref document: A1 |