Uranium hexafluoride conversion simulation platform, method and system
By designing a cross-platform and multi-threaded UFH conversion simulation platform, the problem of the existing platform's calculation time and difficulty in intuitive performance is solved, real-time simulation and data display are realized, and simulation algorithm efficiency and production stability are improved.
Patent Information
- Application Number
- CN202210293387.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-23
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2042-03-23
AI Technical Summary
The existing UFH conversion simulation platform has problems such as long calculation time, difficulty in intuitive data performance, and complex thread communication, making it difficult to realize real-time simulation and data display.
A cross-platform, multi-threaded uranium hexafluoride conversion simulation platform is designed to realize simulation calculations of reaction chamber and converter models through the interaction of the main thread layer and the slave thread layer, and display the results in real time.
The design efficiency and effectiveness of simulation algorithms are improved, the stability of flow control of uranium hexafluoride conversion device and the accuracy of material proportioning, ensuring the safety and stability of product quality and production operation.
Smart Images

Figure CN114626160B_ABST
Abstract
Description
Technical Field
[0001] The present invention specifically relates to a uranium hexafluoride conversion simulation platform, method and system. Background Art
[0002] The GFX conversion process is called the "one-step dry process", which uses a converter to directly convert uranium hexafluoride into uranium trioxide powder. The process is as follows: Figure 1 As shown: UF6 gas and water vapor that meet the process requirements undergo gas phase hydrolysis reaction in the reaction chamber to generate feather-like UO2F2 particles and HF gas. UO2F2 powder settles naturally and falls to the bottom of the reaction chamber, and is sent to the converter by the screw conveyor at the bottom of the reaction chamber, where it undergoes a reduction and defluorination reaction with the water vapor entering from the tail of the furnace to produce U3O8 powder, which is discharged from the tail of the furnace and discharged through a cooling screw discharge device.
[0003] Establishing a control simulation platform for uranium hexafluoride conversion devices, exploring ways to improve the stability of flow control and material ratio accuracy of uranium hexafluoride conversion devices, and providing references for the design and optimization of control methods for actual industrial devices have far-reaching practical significance. However, the simulation platform for uranium hexafluoride conversion devices currently has the following problems:
[0004] 1. The uranium hexafluoride conversion process uses a distributed micromechanism model, which takes a long time to calculate and is difficult to achieve real-time simulation and data display;
[0005] 2. The data at different locations inside the reactor are very abstract, making it difficult to intuitively represent the state of the reaction;
[0006] 3. The simulation process requires interaction between multiple platforms, and thread communication and control are complex. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide a cross-platform, multi-threaded uranium hexafluoride conversion simulation platform for the above-mentioned deficiencies in the prior art, to provide a virtual verification means for exploring and improving the stability of flow control and material ratio accuracy of a uranium hexafluoride conversion device, to ensure product quality and safe and stable production operation, and to improve the efficiency and effectiveness of algorithm design. Accordingly, a method for simulating uranium hexafluoride conversion using the above-mentioned platform and a uranium hexafluoride conversion simulation system having the platform are provided.
[0008] The technical solution adopted to solve the technical problem of the present invention is:
[0009] The present invention provides a uranium hexafluoride conversion simulation platform, comprising: a main thread layer and a slave thread layer,
[0010] The main thread layer is used to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model and the simulation parameters related to the converter model to the slave thread layer respectively by using the blocking queue.
[0011] The slave thread layer is used to call the first simulation calculation software to perform simulation calculations on the reaction chamber controller model and the converter controller model respectively, and use the reaction chamber control parameters obtained by simulation as the simulation control parameters of the reaction chamber model, and use the converter control parameters obtained by simulation as the simulation control parameters of the converter model.
[0012] The slave thread layer is also used to call the second simulation calculation software to perform simulation calculations on the reaction chamber model and the converter model respectively.
[0013] The main thread layer is also used to retrieve the simulation results from the thread layer via the blocking queue for display.
[0014] Optionally, the slave thread layer includes a control system module, a reaction chamber module and a converter module.
[0015] The main thread layer is used to output simulation parameters related to the reaction chamber controller model to the control system module, and the control system module is used to call the first simulation calculation software to perform simulation calculation on the reaction chamber controller model, and transmit the reaction chamber control parameters obtained by simulation to the reaction chamber module.
[0016] The main thread layer is also used to output simulation parameters related to the reaction chamber model to the reaction chamber module, and the reaction chamber module is used to call the second simulation calculation software to perform simulation calculation on the reaction chamber model.
[0017] The main thread layer is also used to output simulation parameters related to the converter controller model to the control system module, and the control system module is also used to call the first simulation calculation software to perform simulation calculation on the converter controller model, and transmit the converter control parameters obtained by simulation to the converter module.
[0018] The main thread layer is also used to output simulation parameters related to the converter model to the converter module, and the converter module is used to call the second simulation calculation software to perform simulation calculation on the converter model.
[0019] Optionally, the main thread layer includes a data module, and the data module includes a simulation parameter setting module and a data display module.
[0020] The simulation parameter setting module is used to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model and the simulation parameters related to the converter model to the slave thread layer by using a blocking queue.
[0021] The data display module is used to retrieve the simulation results output from the thread layer through the blocking queue for display.
[0022] Optionally, the main thread layer further includes a data storage module, which is electrically connected between the data module and the slave thread layer, and is also electrically connected to the data management software.
[0023] The simulation parameters output by the simulation parameter setting module are input to the slave thread layer via the data storage module, and the data storage module is used to store the simulation parameters output by the simulation parameter setting module as historical data in the data management software.
[0024] The simulation results output from the thread layer are input to the data storage module via the data storage module, and the data storage module is also used to store the simulation results output from the thread layer as historical data in the data management software.
[0025] Optionally, the data display module includes a dynamic data display module and a historical curve display module.
[0026] The dynamic data display module is used to display the reactor two-dimensional dynamic distribution diagram output by the reaction chamber module and the measurement point values thereon, and the converter two-dimensional dynamic distribution diagram output by the converter module and the measurement point values thereon,
[0027] The data storage module is used to retrieve historical data from the data management software according to the instructions transmitted by the historical curve display module, and output the historical data to the historical curve display module for display.
[0028] Optionally, a control module is also included.
[0029] The control module is electrically connected between the main thread layer and the slave thread layer, and is used to determine whether the slave thread layer has output simulation results after a simulation cycle ends. When the judgment result is "yes", the main thread layer is controlled to retrieve the simulation results output from the slave thread layer for display, and output new simulation parameters to the slave thread layer.
[0030] The control module is also used to determine whether the main thread layer has simulation parameter output after a simulation cycle ends. When the judgment result is "yes", the control slave thread layer takes out the simulation parameters output by the main thread layer and performs simulation calculation.
[0031] Optionally, the control module is further used to control the slave thread layer to simulate a window length in advance by using a background calculation method, so as to ensure the real-time performance of the main thread data display.
[0032] Optionally, the uranium hexafluoride conversion simulation platform is written based on Java language, and the blocking queue is ArrayBlockingQueue provided under the java.util.concurrent package.
[0033] The present invention also provides a uranium hexafluoride conversion simulation method.
[0034] The main thread layer uses a blocking queue to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model, and the simulation parameters related to the converter model to the slave thread layer.
[0035] The first simulation calculation software is called from the thread layer to perform simulation calculations on the reaction chamber controller model and the converter controller model respectively, and the reaction chamber control parameters obtained by simulation are used as the simulation control parameters of the reaction chamber model, and the converter control parameters obtained by simulation are used as the simulation control parameters of the converter model.
[0036] The second simulation software is also called from the thread layer to simulate the reaction chamber model and the converter model respectively.
[0037] The main thread layer also retrieves the simulation results from the thread layer through the blocking queue for display.
[0038] Optionally, the slave thread layer includes a control system module, a reaction chamber module and a converter module.
[0039] The main thread layer outputs simulation parameters related to the reaction chamber controller model to the control system module, and the control system module calls the first simulation calculation software to perform simulation calculation on the reaction chamber controller model, and transmits the reaction chamber control parameters obtained by simulation to the reaction chamber module.
[0040] The main thread layer also outputs simulation parameters related to the reaction chamber model to the reaction chamber module, and the reaction chamber module calls the second simulation calculation software to perform simulation calculation on the reaction chamber model.
[0041] The main thread layer also outputs simulation parameters related to the converter controller model to the control system module, and the control system module also calls the first simulation calculation software to perform simulation calculation on the converter controller model, and transmits the converter control parameters obtained by simulation to the converter module.
[0042] The main thread layer also outputs simulation parameters related to the converter model to the converter module, and the converter module calls the second simulation calculation software to perform simulation calculation on the converter model.
[0043] Optionally, the main thread layer includes a data module, and the data module includes a simulation parameter setting module and a data display module.
[0044] The simulation parameter setting module uses a blocking queue to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model and the simulation parameters related to the converter model to the slave thread layer respectively.
[0045] The data display module retrieves the simulation results output from the thread layer through the blocking queue for display.
[0046] Optionally, the main thread layer also includes a data storage module.
[0047] The simulation parameters output by the simulation parameter setting module are input to the slave thread layer via the data storage module, and the data storage module stores the simulation parameters output by the simulation parameter setting module as historical data in the data management software.
[0048] The simulation results output from the thread layer are input to the data storage module via the data storage module, and the data storage module also stores the simulation results output from the thread layer as historical data in the data management software.
[0049] Optionally, the data display module includes a dynamic data display module and a historical curve display module.
[0050] The dynamic data display module displays the reactor two-dimensional dynamic distribution diagram output by the reaction chamber module and the measurement point values thereon, and the converter two-dimensional dynamic distribution diagram output by the converter module and the measurement point values thereon,
[0051] The data storage module retrieves historical data from the data management software according to the instructions transmitted by the historical curve display module, and outputs the historical data to the historical curve display module for display.
[0052] Optionally, after a simulation cycle ends, the control module determines whether there is a simulation result output from the slave thread layer. When the judgment result is "yes", the control main thread layer retrieves the simulation result output from the slave thread layer for display, and outputs new simulation parameters to the slave thread layer.
[0053] The control module also determines whether the main thread layer has simulation parameter output after a simulation cycle ends. When the judgment result is "yes", the control module controls the slave thread layer to take out the simulation parameters output by the main thread layer and perform simulation calculation.
[0054] Optionally, the control module also uses a background calculation method to control the slave thread layer to simulate a window length in advance to ensure the real-time display of the main thread data.
[0055] The present invention also provides a uranium hexafluoride conversion simulation system, comprising a first simulation calculation software, a second simulation calculation software, and the above-mentioned uranium hexafluoride conversion simulation platform.
[0056] Optionally, data management software is also included.
[0057] The data management software is electrically connected to the main thread layer, and is used to store the simulation parameters output by the main thread layer, and the simulation results corresponding to the simulation parameters retrieved by the main thread layer.
[0058] In the present invention, by designing a main thread layer and a slave thread layer, the main thread layer and the slave thread layer perform multi-threaded data interaction through a blocking queue, complete the output of simulation parameters related to a reaction chamber controller model, simulation parameters related to a converter controller model, simulation parameters related to a reaction chamber model, and simulation parameters related to a converter model, and retrieve and display the simulation results thereof, call the controller simulation calculation software and the chemical dynamic simulation calculation software from the thread layer, respectively perform controller model simulation calculation (including a reaction chamber and a converter) and mechanism model simulation calculation (including a reaction chamber and a converter), and during the simulation process, use the control parameters obtained by the controller model simulation as simulation control parameters of the mechanism model, thereby establishing a two-dimensional real-time simulation platform for uranium hexafluoride conversion based on cross-platform, multi-threading, etc., thereby providing a virtual verification means for exploring and improving the stability of flow control and material ratio accuracy of a uranium hexafluoride conversion device, ensuring product quality and safe and stable production operation, and improving the efficiency and effectiveness of algorithm design. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 It is a flow chart of the uranium hexafluoride conversion process;
[0060] Figure 2 This is an overall architecture diagram of the uranium hexafluoride conversion simulation platform provided in Example 1 of the present invention;
[0061] Figure 3 It is the functional implementation flow chart of the thread communication and control module;
[0062] Figure 4 It is a functional implementation flow chart of simulation acceleration;
[0063] Figure 5 It is a schematic diagram of the background calculation of simulation acceleration;
[0064] Figure 6 It is a cross-section of the main screen tab page of the simulation platform;
[0065] Figure 7 It is a two-dimensional data dynamic distribution diagram of velocity field and concentration field;
[0066] Figure 8 It is a cross-section of the historical curve tab page of the simulation platform;
[0067] Fig. 9 It is a cross-section of the control loop tab of the simulation platform;
[0068] Fig.10 This is a cross-section view of the simulation log tab of the simulation platform. DETAILED DESCRIPTION
[0069] The following will be combined with the accompanying drawings in the present invention to clearly and completely describe the technical solutions in the invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of the present invention.
[0070] In the description of the present invention, it should be noted that the directions or positional relationships indicated by “upper” and the like are based on the directions or positional relationships shown in the accompanying drawings and are only for the convenience and simplification of the description. They do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, they cannot be understood as limitations on the present invention.
[0071] In the description of the present invention, the terms “first” and “second” are used for descriptive purposes only and should not be understood as indicating or implying relative importance.
[0072] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connect", "set", "install", "fix" and the like should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0073] The present invention provides a uranium hexafluoride conversion simulation platform, comprising: a main thread layer and a slave thread layer,
[0074] The main thread layer is used to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model and the simulation parameters related to the converter model to the slave thread layer respectively by using the blocking queue.
[0075] The slave thread layer is used to call the first simulation calculation software to perform simulation calculations on the reaction chamber controller model and the converter controller model respectively, and use the reaction chamber control parameters obtained by simulation as the simulation control parameters of the reaction chamber model, and use the converter control parameters obtained by simulation as the simulation control parameters of the converter model.
[0076] The slave thread layer is also used to call the second simulation calculation software to perform simulation calculations on the reaction chamber model and the converter model respectively.
[0077] The main thread layer is also used to retrieve the simulation results from the thread layer via the blocking queue for display.
[0078] The present invention also provides a uranium hexafluoride conversion simulation method.
[0079] The main thread layer uses a blocking queue to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model, and the simulation parameters related to the converter model to the slave thread layer.
[0080] The first simulation calculation software is called from the thread layer to perform simulation calculations on the reaction chamber controller model and the converter controller model respectively, and the reaction chamber control parameters obtained by simulation are used as the simulation control parameters of the reaction chamber model, and the converter control parameters obtained by simulation are used as the simulation control parameters of the converter model.
[0081] The second simulation software is also called from the thread layer to simulate the reaction chamber model and the converter model respectively.
[0082] The main thread layer also retrieves the simulation results from the thread layer through the blocking queue for display.
[0083] The present invention also provides a uranium hexafluoride conversion simulation system, comprising a first simulation calculation software, a second simulation calculation software, and the above-mentioned uranium hexafluoride conversion simulation platform.
[0084] Embodiment 1:
[0085] like Figure 2 As shown, this embodiment provides a uranium hexafluoride conversion simulation platform, including: a main thread layer 1 and a slave thread layer 2,
[0086] The main thread layer 1 is used to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model and the simulation parameters related to the converter model to the slave thread layer 2 by using the blocking queue.
[0087] The slave thread layer 2 is used to call the first simulation calculation software 200 to perform simulation calculations on the reaction chamber controller model and the converter controller model respectively, and the reaction chamber control parameters obtained by simulation are used as the simulation control parameters of the reaction chamber model, and the converter control parameters obtained by simulation are used as the simulation control parameters of the converter model.
[0088] The slave thread layer 2 is also used to call the second simulation calculation software 300 to perform simulation calculations on the reaction chamber model and the converter model respectively.
[0089] The main thread layer 1 is also used to retrieve the simulation results from the thread layer 2 via the blocking queue for display.
[0090] Therefore, by designing the main thread layer 1 and the slave thread layer 2, the main thread layer 1 and the slave thread layer 2 perform multi-threaded data interaction through the blocking queue, complete the output of the simulation parameters related to the reactor controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reactor model and the simulation parameters related to the converter model, and retrieve and display the simulation results, and call the controller simulation calculation software and the chemical dynamic simulation calculation software from the slave thread layer 2 to perform controller model simulation calculation (including the reactor and the converter) and mechanism model simulation calculation (including the reactor and the converter), respectively, and during the simulation process, the control parameters obtained by the controller model simulation are used as the simulation control parameters of the mechanism model, thereby establishing a two-dimensional real-time simulation platform for uranium hexafluoride conversion based on cross-platform and multi-threading, thereby providing a virtual verification means for exploring and improving the stability of flow control and material ratio accuracy of the uranium hexafluoride conversion device, ensuring product quality and safe and stable production operation, and improving the efficiency and effectiveness of algorithm design.
[0091] The uranium hexafluoride conversion simulation platform of this embodiment is written based on Java language, and the blocking queue is ArrayBlockingQueue provided under the java.util.concurrent package.
[0092] The uranium hexafluoride conversion simulation platform of this embodiment realizes data communication between the Java platform and multiple special software by designing a cross-platform interactive module, which utilizes the API interface between the corresponding software (the first simulation calculation software and the second simulation calculation software) and Java.
[0093] Among them, the first simulation calculation software 200 is a special software capable of simulating the control system, such as MATLAB. The second simulation calculation software 300 is a special software capable of dynamically simulating the chemical process, such as Comsol. The Comsol platform includes a reaction chamber module and a converter module to calculate the mechanism model. The Matlab platform includes SimScape physical model, conventional control module, and advanced control module to calculate the controller.
[0094] In this embodiment, the slave thread layer 2 includes a control system module 21, a reaction chamber module 22 and a converter module 23.
[0095] The main thread layer 1 is used to output simulation parameters related to the reaction chamber controller model to the control system module 21. The control system module 21 is used to call the first simulation calculation software 200 to perform simulation calculation on the reaction chamber controller model, and transmit the reaction chamber control parameters obtained by simulation to the reaction chamber module 22.
[0096] The main thread layer 1 is also used to output simulation parameters related to the reaction chamber model to the reaction chamber module 22, and the reaction chamber module 22 is used to call the second simulation calculation software 300 to perform simulation calculation on the reaction chamber model.
[0097] The main thread layer 1 is also used to output simulation parameters related to the converter controller model to the control system module 21. The control system module 21 is also used to call the first simulation calculation software 200 to perform simulation calculation on the converter controller model, and transmit the converter control parameters obtained by simulation to the converter module 23.
[0098] The main thread layer 1 is also used to output simulation parameters related to the converter model to the converter module 23, and the converter module 23 is used to call the second simulation calculation software 300 to perform simulation calculation on the converter model.
[0099] The slave thread calculates the control system module by calling Matlab, and the Comsol model calculates the reaction chamber module and the converter module, thus realizing the dynamic simulation calculation of the uranium hexafluoride conversion device. The main thread outputs the simulation parameters to the slave thread by using the blocking queue, and retrieves the simulation results of the slave thread through the blocking queue; the main thread controls the simulation calculation process of the slave thread by using the blocking queue.
[0100] In this embodiment,
[0101] The main thread layer 1 includes a data module, which includes a simulation parameter setting module 11 and a data display module.
[0102] The simulation parameter setting module 11 is used to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model and the simulation parameters related to the converter model to the slave thread layer 2 by using a blocking queue.
[0103] The data display module is used to retrieve the simulation results output from the thread layer 2 through the blocking queue for display.
[0104] As attached Figure 8 As shown, the functions of the simulation parameter setting module 11 are control strategy selection (PID and MPC can be selected, MPC is the default), PID parameter setting (when switching to PID control), material flow setting, and ratio setting between each material and the main material.
[0105] In this embodiment,
[0106] The main thread layer 1 also includes a data storage module 14, which is electrically connected between the data module and the slave thread layer 2, and is also electrically connected to the data management software 400.
[0107] The simulation parameters output by the simulation parameter setting module 11 are input to the slave thread layer 2 via the data storage module 14. The data storage module 14 is used to store the simulation parameters output by the simulation parameter setting module 11 as historical data in the data management software 400.
[0108] The simulation results output from the thread layer 2 are input to the data storage module via the data storage module 14 . The data storage module 14 is also used to store the simulation results output from the thread layer 2 as historical data in the data management software 400 .
[0109] In this embodiment,
[0110] The data display module includes a dynamic data display module 12 and a historical curve display module 13.
[0111] The dynamic data display module 12 is used to display the two-dimensional dynamic distribution diagram of the reactor output by the reaction chamber module 22 and the measurement point values thereon, as well as the two-dimensional dynamic distribution diagram of the converter output by the converter module 23 and the measurement point values thereon.
[0112] The data storage module 14 is used to retrieve historical data from the data management software 400 according to the instructions transmitted by the historical curve display module 13, and output the historical data to the historical curve display module 13 for display.
[0113] In this embodiment, the data management software 400 is MySQL.
[0114] The main thread implements the main interface display, control parameter setting, historical curve display, simulation log recording, historical data storage and other functions. The historical data storage function refers to the connection with the Java platform and MySQL to store the simulation data in the database.
[0115] As attached Figure 2 As shown, the data storage module 14 stores the input and output information in the simulation process as historical data in the data storage platform MySQL to facilitate subsequent data call and analysis.
[0116] like Figure 5 As shown in the figure, the dynamic data includes the measurement point value and the two-dimensional dynamic distribution diagram. The measurement point value is directly displayed at the corresponding position of the interface. The two-dimensional dynamic distribution diagram includes the reactor two-dimensional dynamic distribution diagram and the converter two-dimensional dynamic distribution diagram. Among them, the reactor two-dimensional dynamic distribution diagram is obtained by using the grid data calculated by the mechanism model, and the corresponding RGB value is calculated according to the color table, and then interpolated and softened; the converter two-dimensional dynamic distribution diagram is designed using the third-party open source package JFreeChart, attached Figure 6The two-dimensional data dynamic distribution diagram of the reactor velocity field and temperature field and the two-dimensional data dynamic distribution diagram of the converter are shown. For the situation where there are multiple physical quantities dynamically distributed at the same position, a dynamic switching function is set in the form of a drop-down box, and the user can freely select the physical quantity. Figure 7 As shown, the historical curve display includes: bit number selection, upper and lower limit settings, display of current time and current data, time axis length selection, and forward and backward flipping functions.
[0117] As attached Fig. 9 As shown, the main thread layer 1 also includes a user log module 15, which records the simulation process of the control simulation platform and the operations performed at the corresponding time from the start of the simulation, including: simulation time initialization, control strategy modification, and setting value modification.
[0118] See attached Figure 3 In this embodiment, a control module is also included.
[0119] The control module is electrically connected between the main thread layer 1 and the slave thread layer 2, and is used to determine whether the slave thread layer 2 has output simulation results after a simulation cycle ends. When the judgment result is "yes", the main thread layer 1 is controlled to retrieve the simulation results output from the slave thread layer 2 for display, and output new simulation parameters to the slave thread layer 2.
[0120] The control module is also used to determine whether the main thread layer 1 has simulation parameters output after a simulation cycle ends. When the judgment result is "yes", the control slave thread layer 2 takes out the simulation parameters output by the main thread layer 1 and performs simulation calculations.
[0121] If the main thread does not output the new simulation parameters to the corresponding blocking queue, when the slave thread completes a simulation calculation, the slave thread will "pause" because it cannot obtain data. When the main thread outputs the simulation parameters, the slave thread will obtain the data and perform simulation calculations.
[0122] In this embodiment,
[0123] The control module includes a simulation acceleration module, which is used to control the slave thread layer 2 to simulate a window length in advance by using a background calculation method to ensure the real-time performance of the data display of the main thread layer 1.
[0124] As attached Figure 4As shown in the figure, the simulation acceleration module: Since the uranium hexafluoride conversion device model adopts a distributed partial micro mechanism model, the model calculation takes a long time. How to ensure the real-time performance of the simulation is a difficult problem that needs to be solved. The solution of this simulation platform is: using the background calculation method, the slave thread simulates a window length in advance, and the window length is 30 seconds, so as to ensure the real-time performance of the main thread data display. The data currently displayed by the main thread is actually the data of the previous cycle (play queue), and the slave thread is calculating the model data at this time (the data is saved in the preparation queue). When the main thread data refresh is completed and the slave thread calculation is completed at the same time, the next calculation cycle begins, and the data calculated and saved by the slave thread is displayed (the data in the preparation queue is stored in the play queue), and the slave thread starts a new calculation. This cycle is repeated to achieve the effect of real-time refresh display.
[0125] As attached Figure 5 As shown, the array lengths of the play queue p and the reserve queue r are both 30, and one data is read per second, that is, 30 data are read per cycle. The specific process is as follows:
[0126] (1) At time t-30, the simulation obtains 30 data within 30 seconds starting from time t and stores them in the preparation queue r[t-30]~r[t-1]. The 30 data obtained by simulation at time t-60 are stored in the play queue, that is, r[t-60]~r[t-31] are stored in sequence in p[t-30]~p[t-1]. The data presented to the user at time t-30 is real-time data.
[0127] (2) At time t, the simulation obtains 30 data within 30 seconds starting from time t+30 and stores them in the preparation queue r[t]~r[t+29], and the 30 data obtained by simulation at time t-30 are stored in the play queue, that is, r[t-30]~r[t-1] are stored in sequence in p[t]~p[t+29], so the data presented to the user at time t is also real-time data;
[0128] …and so on.
[0129] Example 2
[0130] This embodiment provides a simulation method for converting uranium hexafluoride using the simulation platform of embodiment 1, referring to Figure 2 :
[0131] The main thread layer 1 uses a blocking queue to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model, and the simulation parameters related to the converter model to the slave thread layer 2.
[0132] The first simulation calculation software 200 is called from the thread layer 2 to perform simulation calculations on the reaction chamber controller model and the converter controller model respectively, and the reaction chamber control parameters obtained by simulation are used as the simulation control parameters of the reaction chamber model, and the converter control parameters obtained by simulation are used as the simulation control parameters of the converter model.
[0133] The second simulation calculation software 300 is also called from the thread layer 2 to perform simulation calculations on the reaction chamber model and the converter model respectively.
[0134] The main thread layer 1 also retrieves the simulation results from the thread layer 2 via the blocking queue for display.
[0135] In this embodiment, the slave thread layer 2 includes a control system module 21, a reaction chamber module 22 and a converter module 23.
[0136] The main thread layer 1 outputs the simulation parameters related to the reaction chamber controller model to the control system module 21. The control system module 21 calls the first simulation calculation software 200 to perform simulation calculation on the reaction chamber controller model, and transmits the reaction chamber control parameters obtained by the simulation to the reaction chamber module 22.
[0137] The main thread layer 1 also outputs simulation parameters related to the reaction chamber model to the reaction chamber module 22, and the reaction chamber module 22 calls the second simulation calculation software 300 to perform simulation calculation on the reaction chamber model.
[0138] The main thread layer 1 also outputs simulation parameters related to the converter controller model to the control system module 21. The control system module 21 also calls the first simulation calculation software 200 to perform simulation calculation on the converter controller model, and transmits the converter control parameters obtained by simulation to the converter module 23.
[0139] The main thread layer 1 also outputs simulation parameters related to the converter model to the converter module 23, and the converter module 23 calls the second simulation calculation software 300 to perform simulation calculation on the converter model.
[0140] In this embodiment,
[0141] The main thread layer 1 includes a data module, which includes a simulation parameter setting module 11 and a data display module.
[0142] The simulation parameter setting module 11 uses a blocking queue to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model and the simulation parameters related to the converter model to the slave thread layer 2.
[0143] The data display module retrieves the simulation results output from thread layer 2 through the blocking queue for display.
[0144] In this embodiment,
[0145] The main thread layer 1 also includes a data storage module 14,
[0146] The simulation parameters output by the simulation parameter setting module 11 are input to the slave thread layer 2 via the data storage module 14. The data storage module 14 stores the simulation parameters output by the simulation parameter setting module 11 as historical data in the data management software 400.
[0147] The simulation results output from the thread layer 2 are input to the data storage module via the data storage module 14 . The data storage module 14 also stores the simulation results output from the thread layer 2 as historical data in the data management software 400 .
[0148] In this embodiment,
[0149] The data display module includes a dynamic data display module 12 and a historical curve display module 13.
[0150] The dynamic data display module 12 displays the reactor two-dimensional dynamic distribution diagram output by the reaction chamber module and the measurement point values thereon, as well as the converter two-dimensional dynamic distribution diagram output by the converter module and the measurement point values thereon.
[0151] The data storage module 14 retrieves historical data from the data management software 400 according to the instructions transmitted by the historical curve display module 13 , and outputs the historical data to the historical curve display module 13 for display.
[0152] In this embodiment,
[0153] After a simulation cycle is completed, the control module determines whether there is any simulation result output from the slave thread layer 2. When the judgment result is "yes", the control module controls the main thread layer 1 to retrieve the simulation result output from the slave thread layer 2 for display, and outputs the new simulation parameters to the slave thread layer 2.
[0154] After a simulation cycle ends, the control module determines whether the main thread layer 1 has simulation parameters output. When the judgment result is "yes", the control module controls the slave thread layer 2 to obtain the simulation parameters output by the main thread layer 1 and perform simulation calculations.
[0155] In this embodiment,
[0156] The control module also uses the background calculation method to control the slave thread layer 2 to simulate a window length in advance to ensure the real-time display of the main thread layer 1 data.
[0157] Example 3
[0158] This embodiment provides a uranium hexafluoride conversion simulation system. Figure 2 , including first simulation computing software 200, second simulation computing software 300, and the uranium hexafluoride conversion simulation platform 100 of Example 1.
[0159] In this embodiment, data management software 400 is also included.
[0160] The data management software 400 is electrically connected to the main thread layer 1 , and is used to store the simulation parameters output by the main thread layer 1 , and the simulation results corresponding to the simulation parameters retrieved by the main thread layer 1 .
[0161] Among them, the first simulation computing software 200 is MATLAB, the second simulation computing software 300 is Comsol, and the data management software 400 is MySQL.
[0162] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A uranium hexafluoride conversion simulation platform, characterized in that: include: Main thread layer and slave thread layer, The main thread layer is used to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model and the simulation parameters related to the converter model to the slave thread layer by using a blocking queue. The slave thread layer is used to call the first simulation calculation software to perform simulation calculations on the reaction chamber controller model and the converter controller model respectively, and use the reaction chamber control parameters obtained by simulation as the simulation control parameters of the reaction chamber model, and use the converter control parameters obtained by simulation as the simulation control parameters of the converter model. The slave thread layer is also used to call the second simulation calculation software to perform simulation calculations on the reaction chamber model and the converter model respectively. The main thread layer is also used to retrieve the simulation results of the slave thread layer through the blocking queue for display; The platform also includes a control module, which is used to control the slave thread layer to simulate a window length in advance by using a background calculation method to ensure the real-time display of the main thread data.
2. The uranium hexafluoride conversion simulation platform according to claim 1, characterized in that: The slave thread layer includes a control system module, a reaction chamber module and a converter module. The main thread layer is used to output simulation parameters related to the reaction chamber controller model to the control system module, and the control system module is used to call the first simulation calculation software to perform simulation calculation on the reaction chamber controller model, and transmit the reaction chamber control parameters obtained by simulation to the reaction chamber module. The main thread layer is also used to output simulation parameters related to the reaction chamber model to the reaction chamber module, and the reaction chamber module is used to call the second simulation calculation software to perform simulation calculation on the reaction chamber model. The main thread layer is also used to output simulation parameters related to the converter controller model to the control system module, and the control system module is also used to call the first simulation calculation software to perform simulation calculation on the converter controller model, and transmit the converter control parameters obtained by simulation to the converter module. The main thread layer is also used to output simulation parameters related to the converter model to the converter module, and the converter module is used to call the second simulation calculation software to perform simulation calculation on the converter model.
3. The uranium hexafluoride conversion simulation platform according to claim 1, characterized in that: The main thread layer includes a data module, and the data module includes a simulation parameter setting module and a data display module. The simulation parameter setting module is used to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model and the simulation parameters related to the converter model to the slave thread layer respectively by using a blocking queue. The data display module is used to retrieve the simulation results output from the thread layer through the blocking queue for display.
4. The uranium hexafluoride conversion simulation platform according to claim 3, characterized in that: The main thread layer also includes a data storage module, which is electrically connected between the data module and the slave thread layer, and is also electrically connected to the data management software. The simulation parameters output by the simulation parameter setting module are input to the slave thread layer via the data storage module, and the data storage module is used to store the simulation parameters output by the simulation parameter setting module as historical data in the data management software. The simulation results output from the thread layer are input to the data storage module via the data storage module, and the data storage module is also used to store the simulation results output from the thread layer as historical data in the data management software.
5. The uranium hexafluoride conversion simulation platform according to claim 4, characterized in that: The data display module includes a dynamic data display module and a historical curve display module. The dynamic data display module is used to display the reactor two-dimensional dynamic distribution diagram output by the reaction chamber module and the measurement point values thereon, and the converter two-dimensional dynamic distribution diagram output by the converter module and the measurement point values thereon, The data storage module is used to retrieve historical data from the data management software according to the instructions transmitted by the historical curve display module, and output the historical data to the historical curve display module for display.
6. The uranium hexafluoride conversion simulation platform according to claim 1, characterized in that: The control module is electrically connected between the main thread layer and the slave thread layer, and is also used to determine whether the slave thread layer has output simulation results after a simulation cycle ends. When the judgment result is "yes", the main thread layer is controlled to retrieve the simulation results output from the slave thread layer for display, and output new simulation parameters to the slave thread layer. The control module is also used to determine whether the main thread layer has simulation parameter output after a simulation cycle ends. When the judgment result is "yes", the control slave thread layer takes out the simulation parameters output by the main thread layer and performs simulation calculation.
7. The uranium hexafluoride conversion simulation platform according to any one of claims 1 to 6, characterized in that: The uranium hexafluoride conversion simulation platform is written based on Java language, and the blocking queue is ArrayBlockingQueue provided under the java.util.concurrent package.
8. A uranium hexafluoride conversion simulation method, characterized in that: The main thread layer uses a blocking queue to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model, and the simulation parameters related to the converter model to the slave thread layer. The first simulation calculation software is called from the thread layer to perform simulation calculations on the reaction chamber controller model and the converter controller model respectively, and the reaction chamber control parameters obtained by simulation are used as the simulation control parameters of the reaction chamber model, and the converter control parameters obtained by simulation are used as the simulation control parameters of the converter model. The second simulation software is also called from the thread layer to simulate the reaction chamber model and the converter model respectively. The main thread layer also retrieves the simulation results from the thread layer through the blocking queue for display; The control module uses the background calculation method to control the slave thread layer to simulate a window length in advance to ensure the real-time display of the main thread data.
9. The uranium hexafluoride conversion simulation method according to claim 8, characterized in that: The slave thread layer includes a control system module, a reaction chamber module and a converter module. The main thread layer outputs simulation parameters related to the reaction chamber controller model to the control system module, and the control system module calls the first simulation calculation software to perform simulation calculation on the reaction chamber controller model, and transmits the reaction chamber control parameters obtained by simulation to the reaction chamber module. The main thread layer also outputs simulation parameters related to the reaction chamber model to the reaction chamber module, and the reaction chamber module calls the second simulation calculation software to perform simulation calculation on the reaction chamber model. The main thread layer also outputs simulation parameters related to the converter controller model to the control system module, and the control system module also calls the first simulation calculation software to perform simulation calculation on the converter controller model, and transmits the converter control parameters obtained by simulation to the converter module. The main thread layer also outputs simulation parameters related to the converter model to the converter module, and the converter module calls the second simulation calculation software to perform simulation calculation on the converter model.
10. The uranium hexafluoride conversion simulation method according to claim 8, characterized in that: The main thread layer includes a data module, and the data module includes a simulation parameter setting module and a data display module. The simulation parameter setting module uses a blocking queue to output the simulation parameters related to the reaction chamber controller model, the simulation parameters related to the converter controller model, the simulation parameters related to the reaction chamber model and the simulation parameters related to the converter model to the slave thread layer respectively. The data display module retrieves the simulation results output from the thread layer through the blocking queue for display.
11. The uranium hexafluoride conversion simulation method according to claim 10, characterized in that: The main thread layer also includes a data storage module. The simulation parameters output by the simulation parameter setting module are input to the slave thread layer via the data storage module, and the data storage module stores the simulation parameters output by the simulation parameter setting module as historical data in the data management software. The simulation results output from the thread layer are input to the data storage module via the data storage module, and the data storage module also stores the simulation results output from the thread layer as historical data in the data management software.
12. The uranium hexafluoride conversion simulation method according to claim 11, characterized in that: The data display module includes a dynamic data display module and a historical curve display module. The dynamic data display module displays the reactor two-dimensional dynamic distribution diagram output by the reaction chamber module and the measurement point values thereon, and the converter two-dimensional dynamic distribution diagram output by the converter module and the measurement point values thereon, The data storage module retrieves historical data from the data management software according to the instructions transmitted by the historical curve display module, and outputs the historical data to the historical curve display module for display.
13. The uranium hexafluoride conversion simulation method according to claim 8, characterized in that: After a simulation cycle is completed, the control module determines whether there is any simulation result output from the slave thread layer. When the judgment result is "yes", the control main thread layer retrieves the simulation result output from the slave thread layer for display and outputs the new simulation parameters to the slave thread layer. The control module also determines whether the main thread layer has simulation parameter output after a simulation cycle ends. When the judgment result is "yes", the control module controls the slave thread layer to take out the simulation parameters output by the main thread layer and perform simulation calculation.
14. A uranium hexafluoride conversion simulation system, characterized in that: It comprises first simulation calculation software, second simulation calculation software, and a uranium hexafluoride conversion simulation platform as described in any one of claims 1 to 7.
15. The uranium hexafluoride conversion simulation system according to claim 14, characterized in that: Also includes data management software, The data management software is electrically connected to the main thread layer, and is used to store the simulation parameters output by the main thread layer, and the simulation results corresponding to the simulation parameters retrieved by the main thread layer.
Citation Information
Patent Citations
Multi-platform target tracking and distribution interactive simulation system
CN101465071A
Design method for numerical simulation analysis platform of control system of aero-engine
CN108663948A