Method and system for fusing steady state system and dynamic system

By integrating steady-state and dynamic systems in chemical process simulation software and using steady-state simulation to provide high-quality initial value conditions, the problem of complex integration of steady-state and dynamic systems in the existing technology is solved, and seamless software switching and simplification of user operations are achieved.

CN119962011APending Publication Date: 2025-05-09SUPCON TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411991168.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

There are technical bottlenecks in the integration between steady-state systems and dynamic systems in the existing chemical process simulation software. Users need to manually import and export projects, or they need to write unit modules and initial value generation algorithms, which has a high threshold and complex operation.

Method used

A method of fusion between steady-state systems and dynamic systems is proposed. By constructing and running the steady-state system, high-quality initial value conditions are generated and used for dynamic system simulation, thereby achieving seamless switching and initial value loading between steady-state and dynamic systems.

Benefits of technology

It realizes seamless switching between steady state and dynamic system in chemical process simulation software, simplifies user operation processes, improves the intuitiveness and friendliness of the software, and makes up for the shortcomings in dynamic simulation in design, optimization and prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119962011A_ABST
    Figure CN119962011A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for fusing a steady-state system and a dynamic system. The method comprises the following steps of: constructing a steady-state system model and carrying out steady-state configuration configuration, initializing to generate a steady-state equation, configuring a steady-state variable attribute, carrying out initial value pre-estimation on a steady-state variable to obtain a steady-state variable initial value, and solving to obtain a steady-state value in response to operation of the steady-state system; constructing a dynamic system model based on the constructed steady-state system, performing dynamic configuration based on steady-state configuration, initializing to generate a dynamic equation, configuring dynamic variable attributes, performing initial value pre-estimation on additional variables, inheriting steady-state variables by inheriting variables, and performing dynamic process simulation solution in response to operation of the dynamic system to obtain dynamic variable values; the steady-state simulation provides a high-quality initial value condition for the dynamic simulation, operation data enabling the equipment to stably operate is obtained, influence factors possibly influencing the stable operation of the equipment are found, the defects of the dynamic simulation in the aspects of design, optimization and prediction are overcome, and a decomposition method is adopted to achieve dynamic model solving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chemical process simulation, and in particular to a method and system for integrating a steady-state system and a dynamic system. Background Art

[0002] In the field of chemical process simulation, steady-state systems and dynamic systems are two core simulation modes. Steady-state systems focus on evaluating the long-term average behavior of the system under fixed conditions, while dynamic systems focus on the characteristics of the system changing over time. There are still some technical bottlenecks in the integration of these two systems in existing chemical process simulation software. There are two main types of integration solutions for steady-state systems and dynamic systems in existing mainstream chemical process simulation software:

[0003] The first type is to distinguish steady-state systems from dynamic systems. Users first build engineering cases in software that supports steady-state systems, and then export them. Import the previously built steady-state system engineering cases into software that supports dynamic systems, and build dynamic engineering cases on this basis. The disadvantage of this solution is that users need to manually import and export projects, and the interface styles of the two software are very different, which increases the difficulty for users to build engineering cases, and they need to modify them back and forth every time a problem occurs.

[0004] The second type is to achieve the switching between steady-state system and dynamic system in a set of software. By setting the writing rules of the unit modules in the system, the system simulation operation is automatically performed according to the model written by the user. The disadvantage of this solution is that the unit modules in the software need to be written by the user, and the initial values ​​of the variables need to be given or the initial value generation algorithm needs to be written by the user, which has a high threshold. This mode looks very common, but in actual operation, it is difficult for users to troubleshoot unit module writing errors, and the development efficiency is very low. Summary of the invention

[0005] In order to overcome the deficiencies of the above technologies, the present invention provides a method and system for integrating a steady-state system and a dynamic system, integrating the dynamic system with the steady-state system, providing high-quality initial conditions for the dynamic simulation by the steady-state simulation, obtaining operating data for stable operation of the equipment, and finding influencing factors that may affect the stable operation of the equipment, thereby making up for the shortcomings of dynamic simulation in design, optimization and prediction.

[0006] The technical solution adopted by the present invention to overcome the technical problems is:

[0007] The first aspect of the present invention proposes a method for integrating a steady-state system and a dynamic system, wherein the steady-state system and the dynamic system are respectively used for steady-state simulation and dynamic simulation in chemical process simulation software, and the steady-state system and the dynamic system are switched in response to an operation instruction. The method for integrating the steady-state system and the dynamic system comprises: constructing and running a steady-state system: constructing a steady-state system model and performing steady-state configuration configuration, initializing the steady-state system model with the steady-state configuration configuration, generating a corresponding steady-state equation, configuring the steady-state variable attributes in the steady-state equation, performing an initial value estimation on the steady-state variable to obtain the initial value of the steady-state variable, and performing a steady-state process simulation in response to running the steady-state system. , obtain the steady-state value based on the initial value of the steady-state variable and the solution of the steady-state equation; integrate the steady-state system to build and run the dynamic system, build the dynamic system model based on the constructed steady-state system, and dynamically configure the dynamic system model based on the steady-state configuration configuration, initialize the dynamic system model with the dynamic configuration configuration and generate the corresponding dynamic equation, configure the dynamic variable state variable properties in the dynamic equation, estimate the initial value of the additional variable in the dynamic variable, the inherited variable in the dynamic variable inherits the steady-state variable, and uses the steady-state value as the initial value of the inherited variable, responds to the running dynamic system to perform dynamic process simulation, and obtains the dynamic variable value based on the solution of the dynamic equation.

[0008] The dynamic system is integrated with the steady-state system, and the steady-state simulation provides high-quality initial conditions for the dynamic simulation, so as to obtain the operating data that enables the equipment to operate stably, and find the influencing factors that may affect the stable operation of the equipment, so as to make up for the shortcomings of dynamic simulation in design, optimization and prediction.

[0009] Furthermore, the steady-state system and the dynamic system switch in response to the operation instruction, including: in response to the dynamic system switching to the steady-state system, if the dynamic system has not been initialized and the initial value estimated, the steady-state variables of the steady-state system after the switch are initialized and estimated; if the dynamic system has been initialized and the initial value estimated, the steady-state variables of the steady-state system after the switch use the dynamic values ​​of the dynamic variables as the initial values ​​of the steady-state variables for steady-state simulation.

[0010] When switching between steady-state and dynamic systems, initial values ​​can be loaded by defining common variables at the bottom of the steady-state system and the dynamic system.

[0011] Furthermore, the attributes of the dynamic variables and steady-state variables respectively include at least fixed attributes or calculated attributes, and the fixed attributes and calculated attributes can be switched in configuration; if the attribute is a fixed attribute, the dynamic variable or the steady-state variable is a fixed value, and if the attribute is a calculated attribute, the value of the dynamic variable or the steady-state variable is to be calculated; the number of dynamic variables whose attributes in the dynamic equation are calculated attributes is equal to the number of dynamic equations, and the number of steady-state variables whose attributes in the steady-state equation are calculated attributes is equal to the number of steady-state equations.

[0012] By switching the configuration of the attributes, the number of variables in the calculated attributes is made equal to the number of equations to be solved, thus ensuring the success of the solution.

[0013] Furthermore, the dynamic equation is solved by a decomposition method that alternately fixes state variables and differential variables, specifically including: fixing the values ​​of state variables in the dynamic equation at least based on a linear search method or a trust region method to obtain the values ​​of differential variables; fixing the values ​​of differential variables corresponding to the state variables to solve the dynamic equation, thereby updating the values ​​of the state variables.

[0014] Furthermore, the dynamic equation is numerically solved by fixing the differential variables corresponding to the state variables, using at least one of the explicit Euler method, implicit Euler method and fourth-order Runge-Kutta method numerical methods.

[0015] Furthermore, it also includes modifying the properties of the dynamic variables except the state variables or the properties of the steady-state variables based on the information of the external controller or the measurement module, so as to simulate the influence of the external conditions on the operation of the dynamic system.

[0016] Furthermore, the running dynamic system also includes solving the dynamic equation based on the step parameters and the running options to obtain the dynamic variable value.

[0017] Furthermore, the constructing of the dynamic system model based on the constructed steady-state system model specifically includes: inheriting the basic configuration and the flow chart configuration of the steady-state system model, and inheriting the steady-state values ​​corresponding to the steady-state variables.

[0018] Another aspect of the present invention also proposes a fusion system of a steady-state system and a dynamic system, which is used to run the above-mentioned fusion method of a steady-state system and a dynamic system, and at least includes a steady-state system module and a dynamic system module; the steady-state module is used to construct a steady-state system model, and generate a steady-state equation based on the steady-state configuration configuration and initialization of the steady-state system model, make initial value estimates of the steady-state variables in the steady-state equation, and solve the steady-state equation to obtain a steady-state value in response to the running of the steady-state system; the dynamic module is used to inherit the steady-state system model to construct a steady-state system model, and perform dynamic configuration configuration based on the inherited steady-state configuration configuration, initialize and generate dynamic equations, inherit the steady-state values ​​of the inherited variables of the dynamic variables in the dynamic equations, make initial value estimates of the additional variables in the dynamic variables, and solve the dynamic variables using the decomposition method in response to the running of the dynamic system.

[0019] The beneficial effects of the present invention are:

[0020] 1. Realize the switching between two operating modes under one set of software, integrate the functions of steady-state and dynamic systems, and enable users to switch operating modes seamlessly. This not only simplifies the user's operation process, but also greatly increases the intuitiveness and friendliness of the software, making its operation smoother;

[0021] 2. Integrate the dynamic system with the steady-state system, and use the steady-state simulation to provide high-quality initial conditions for the dynamic simulation, so as to obtain the operating data that enables the equipment to operate stably, and find the factors that may affect the stable operation of the equipment, so as to make up for the shortcomings of dynamic simulation in design, optimization and prediction;

[0022] 3. Added the initial value loading function. When switching between steady-state and dynamic systems, initial values ​​can be loaded by defining common variables at the bottom of the steady-state system and the dynamic system, and initial values ​​can be estimated according to the configuration and model. The automatic loading of initial values ​​makes it easier for users to switch between different modes without worrying about subsequent problems caused by inaccurate initial value settings, which greatly reduces the difficulty of getting started and improves the efficiency of the entire simulation process.

[0023] 4. The dynamic equation is solved by the decomposition method of alternating fixed state variables and fixed differential variables, which ensures the successful solution of the dynamic equation. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A schematic flow chart of a method for integrating a steady-state system and a dynamic system according to an embodiment of the present invention;

[0025] Figure 2 This is a schematic diagram of the interface of the chemical process simulation software according to an embodiment of the present invention;

[0026] Figure 3 An execution flow chart of a process simulation for a steady-state system according to an embodiment of the present invention;

[0027] Figure 4 A schematic diagram of a steady-state system model simulating an industrial production scenario according to an embodiment of the present invention;

[0028] Figure 5 This is an execution flow chart of process simulation for a dynamic system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] First, some abbreviations and key terms mentioned in the present invention are explained.

[0030] Steady-state system: A system whose operation is independent of time and only focuses on the balance relationship between matter and energy;

[0031] Dynamic systems: systems whose operation is time-dependent, where there are lags in the devices and accumulation of matter and energy;

[0032] Steady-state variables: all variables in a steady-state system;

[0033] Dynamic variables: all variables in a dynamic system, including inherited variables and additional variables shared with the steady state;

[0034] Inherited variables: variables in dynamic variables that are shared with steady-state variables;

[0035] Additional variables: In addition to inherited variables, additional variables in a dynamic system include state variables, but also some other variables, such as the height of a container;

[0036] State variables: variables used to describe the state of the system. They are special variables that are part of the additional variables. The amount of change over time is used to represent the characteristics of the system at different time points. Generally, the accumulated amount of matter and energy is selected as the state variable. For chemical processes involving storage tanks, reactors or separation equipment, the accumulated amount of matter is an important state variable. They are used to measure the accumulation or consumption of matter in the system.

[0037] Differential variable: the derivative of the state variable with respect to time;

[0038] Algebraic variables: general variables in the system (except state variables and differential variables). Unless otherwise specified, the variables mentioned in this application are considered to be algebraic variables.

[0039] In order to facilitate those skilled in the art to better understand the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The following is only exemplary and does not limit the protection scope of the present invention.

[0040] like Figure 1 As shown, a flow diagram of a method for integrating a steady-state system and a dynamic system described in this embodiment, the steady-state system and the dynamic system are respectively used for steady-state simulation and dynamic simulation in chemical process simulation software, and the steady-state system and the dynamic system are switched in response to an operation instruction, such as Figure 2 As shown, in the chemical process simulation software, the steady-state system and the dynamic system are switched through the steady-state system and dynamic system options in the operation interface menu.

[0041] S1, build and run the steady-state system. The execution flow chart of the steady-state system for process simulation is as follows: Figure 3 As shown, the description is as follows.

[0042] S11, construct a steady-state system model and perform steady-state configuration configuration.

[0043] Through process simulation software, unit models and material flows for simulating industrial production scenarios are added to the process simulation interface, and material flows are used to connect the unit equipment models.

[0044] In one embodiment of the present invention, Figure 4 As shown, in the process simulation interface, unit equipment models for simulating industrial production scenarios are added, including equipment models such as source streams, flash tanks and valves, to construct a steady-state system model of a chemical process including flash tanks, source streams and valves.

[0045] Steady-state configuration includes at least basic configuration and flow chart configuration. Basic configuration includes variable unit configuration, component selection, thermodynamic method and solver configuration, etc. These configurations are effective for the entire process. Flow chart configuration mainly includes adding unit models, setting model parameters and adding stream connections between models.

[0046] In one embodiment of the present invention, the configuration unit in the steady-state configuration selects the standard unit system. The component configuration is the conventional component, and the configuration of the thermodynamic method and the solver are defaulted.

[0047] Configuration parameters are set for logistics and equipment. In one embodiment of the present invention, parameters such as feed flow, composition, temperature and pressure of the flash tank, flow coefficient and opening of the valve are configured.

[0048] S12, after initializing the steady-state system model configured with the steady-state configuration, generating the corresponding steady-state equation, and configuring the steady-state variable attributes in the steady-state equation.

[0049] Among them, the properties of steady-state variables are divided into two properties: fixed properties and calculated properties. The properties of the steady-state variables in the steady-state equation are changed so that the number of equations is equal to the number of steady-state variables of the calculated properties, ensuring that the equation can be solved.

[0050] In some implementations, during the simulation process, the properties of the steady-state variables in the steady-state equation are exchanged to achieve forward calculation or reverse deduction in the same process.

[0051] In some embodiments, an ideal operating environment is built in the process simulation software. In order to better simulate the working conditions, the field data collected by the measurement module is connected to the steady-state system model. In this case, the externally collected values ​​and the values ​​of the steady-state variables may also form a new equation, so it is necessary to modify the properties of the steady-state variables.

[0052] In one embodiment of the present invention, Figure 4 Taking the flash tank shown in FIG. 1 as an example, the steady-state equations 1 and 2 generated after initialization are shown in equations (1) and (2), respectively.

[0053]

[0054] Wherein, equation 1 is the material balance equation. in is the flash tank inlet molar flow rate, F vap ,F liq is the single-phase molar flow rate of the gas phase and liquid phase outlet, z in is the composition ratio of the inlet component, y i ,x i is the composition ratio of gas phase and liquid phase outlet, It is the derivative (differential variable) of the accumulation of each component substance in the container with respect to time.

[0055] Equation 2 is the energy balance equation. in is the flash tank inlet molar enthalpy, H vap ,H liq is the single-phase molar enthalpy of the gas and liquid phase outlets, is the heat load of the flash tank, It is the derivative (differential variable) of the container energy accumulation with respect to time.

[0056] S13, performing initial value estimation on the steady-state variables to obtain initial values ​​of the steady-state variables.

[0057] In a steady-state system, since the system does not change with time, its differential variable property can be considered constant and always equal to zero. This means that in steady-state analysis, the flash tank does not involve the concept of volume, so the pressure is set to a fixed value during the initial configuration. That is, the container pressure P is fixed, and the single-phase outlet pressure P vap ,P liq , is 0, is 0.

[0058] In one embodiment of the present invention, initial values ​​of all steady-state variables in the steady-state system are given by a programmed initial value estimation algorithm.

[0059] S14, in response to running the steady-state system to perform steady-state process simulation, a steady-state value is obtained based on the initial value of the steady-state variable and the solution of the steady-state equation.

[0060] All steady-state variables and steady-state equations in the system are organized into mathematical problems for iterative solution.

[0061] S2, integrates the steady-state system to build and operate the dynamic system. Figure 5 As shown, the execution flow chart of the process simulation of the dynamic system.

[0062] S21, constructing a dynamic system model based on the constructed steady-state system, and performing dynamic configuration configuration on the dynamic system model based on the steady-state configuration configuration.

[0063] The dynamic system model inherits the steady-state configuration of the steady-state system, including the basic configuration and the flow chart configuration.

[0064] On the basis of inheriting the steady-state system, since the dynamic system is related to time, there is time lag and accumulation of matter and energy, so dynamic configuration is also required.

[0065] In some implementations, for example, the unit model needs to add configuration items related to the size and shape of the container.

[0066] In one embodiment of the present invention, Figure 4 Taking the flash tank shown as an example, the configuration parameters are inherited from the steady-state system, and parameters related to the size and shape of the container are configured on this basis, such as the height, bottom diameter, posture (vertical, horizontal) and initial liquid level of the flash tank.

[0067] In a dynamic system, the system is always affected by time, so the differential variable properties need to be calculated. In this case, the flash tank needs to consider its volume, and the pressure is derived by the valve to establish a dynamic relationship between flow and pressure. Through these calculations, accurate variable values ​​can be obtained at each solution.

[0068] S22, generating a dynamic equation after initialization of the dynamic system model configured based on the dynamic configuration, and configuring the dynamic variable attributes in the dynamic equation.

[0069] The dynamic variables generated after initialization can be divided into two parts: one is the inherited variables that are exactly the same as the steady-state variables, and the other is the additional variables of the dynamic system. The properties of dynamic variables are also divided into calculated properties and fixed properties.

[0070] In some embodiments, the inherited variable may inherit the properties of the steady-state variable, or may modify the properties of the inherited steady-state variable. For example, the properties of the container pressure are fixed in a steady-state system, but are related to time and can be calculated in a dynamic system. Therefore, in a dynamic system, the properties of the dynamic variable container pressure are modified.

[0071] In one embodiment of the present invention, the dynamic equations generated after initialization are as shown in formula (1) and formula (2). In the dynamic system, the inherited variables container pressure P, single-phase outlet pressure P vap ,P liq , The variable properties of are all configured as calculated properties.

[0072] S23, initial value estimation is performed on the additional variables of the dynamic variables, the inherited variables in the dynamic variables inherit the steady-state variables, and the steady-state values ​​are used as the initial values ​​of the inherited variables.

[0073] The inherited variables are the initial values ​​corresponding to the variable values ​​after the steady-state system is running. The other part is the additional variables of the dynamic system, which are calculated by executing the preset initial value estimation algorithm.

[0074] It should be noted that during runtime, the convergence speed of the model can be improved by adjusting the initial value estimate, component partitioning, tearing stream setting, etc. In addition, the convergence accuracy can be improved by setting variable tolerances, adding constraints and design regulations, etc.

[0075] In one embodiment of the present invention, the results obtained by running the steady-state system are first loaded into the corresponding variables in the dynamic system, such as Figure 4 F shown in vap ,F liq etc.; then, according to the newly added configuration information under the dynamic system, calculate the value of the additional variable, such as the accumulation of different components in the flash tank N i and the energy accumulation U.

[0076] S24, in response to running the dynamic system to perform dynamic process simulation, the state variables are obtained based on the solution of the dynamic equations.

[0077] Among other things, running the dynamic system also solves the dynamic equations based on the step parameters and the run options.

[0078] The operation of a dynamic system is related to time. Each moment can be considered as the solution of a set of variable equations, which are solved continuously over time. Therefore, in addition to the run option, the dynamic system also includes pause, step, reset and terminate operations.

[0079] If execution is paused, the dynamic system stays at the current moment and retains the values ​​of the dynamic variables at the current moment.

[0080] Execute stepping, according to the stepping parameters set by the user, including the time interval and number of steps for each step, continue to run the corresponding number of steps, and then enter the pause state.

[0081] When a reset is executed, the dynamic system returns to the state before running, and the values ​​of dynamic variables are set to the initial values.

[0082] When the execution is terminated, the system stops running and the current value is used as the final result.

[0083] Mathematical problems formed in dynamic systems can often be expressed as a set of differential-algebraic equations (DAEs). The number of state variables for calculating properties is equal to the number of equations. In order to effectively solve such differential-algebraic equations, the present application adopts a decomposition method to solve the dynamic equations. A set of differential-algebraic equations needs to be solved at each moment during operation. During the solution process, the state variables and differential variables are alternately fixed so that the number of variables is equal to the number of equations, so as to solve the values ​​of all variables at the current moment in sequence; then the time step advances to the next moment, and iterates forward according to the value solved at the previous moment.

[0084] In one embodiment of the present invention, for Figure 4 The accumulation of different components in the flash tank shown is N i and energy accumulation U, as shown in Table 1, alternately fixing the state variable N i , U and the corresponding differential variable and

[0085] Table 1

[0086]

[0087] The specific runtime solution process is as follows. The main steps include:

[0088] S241, fix the value of the state variable in the dynamic equation and obtain the value of the differential variable.

[0089] The linear search method and the trust region method can be used to solve the problem.

[0090] It should be noted that the state variable is the most important variable that distinguishes the dynamic system from the steady-state system and is used to represent the system state.

[0091] S242, fixing the differential variable corresponding to the state variable to numerically solve the dynamic equation, thereby updating the numerical value of the dynamic variable.

[0092] S243, connecting to an external controller to modify the value of the algebraic state variable, thereby realizing external influence on the system operation state.

[0093] In one embodiment of the present invention, Figure 4As shown, in order to better simulate the actual working conditions, an external controller, such as a PID controller, is connected to monitor the status of the flash tank in real time, so that the flash tank can be kept in a relatively stable operating state by controlling the valve. After the external controller completes the solution at each moment, it modifies the valve parameters according to the difference between the current variable value and the set value, and then enters the solution at the next moment. Through the above process, the dynamic process model of the industrial production scenario can be simulated.

[0094] It should be noted that the state variables cannot be modified by external controllers.

[0095] S244, after completing the solution of the dynamic equation at the current moment, S241-S243 are repeatedly executed based on the parameters and operation options, so as to realize the continuous updating and solution of the dynamic variables.

[0096] S3, the steady-state system and the dynamic system are switched in response to the operation instruction.

[0097] pass Figure 2 The steady-state and dynamic menus shown are used to switch between the steady-state system and the dynamic system.

[0098] In some embodiments, the dynamic system is switched to the steady-state system because the modeling of the dynamic system must be based on the modeling of the steady-state system.

[0099] If the current steady-state system is switched from a dynamic system, it means that the dynamic system modeling has been completed. If the dynamic system has not yet performed initialization and initial value estimation, after switching back to the steady state, the data source is still the steady-state value, and initial value estimation is required before running.

[0100] If the dynamic system has been initialized and the initial value has been estimated, the steady-state variables of the switched steady-state system will use the dynamic values ​​of the dynamic variables as the initial values ​​of the steady-state variables for steady-state simulation.

[0101] In another embodiment of the present invention, a fusion system of a steady-state system and a dynamic system is also proposed, which is used to run the above-mentioned fusion method of the steady-state system and the dynamic system, and the fusion system at least includes a steady-state system module and a dynamic system module. Among them, the steady-state module is used to construct a steady-state system model, and generate a steady-state equation based on the steady-state configuration configuration and initialization of the steady-state system model, perform initial value estimation on the steady-state variables in the steady-state equation, and solve the steady-state equation to obtain a steady-state value in response to the running of the steady-state system. The dynamic module is used to inherit the steady-state system model to construct a steady-state system model, and perform dynamic configuration configuration based on the inherited steady-state configuration configuration, initialize and generate a dynamic equation, inherit the steady-state value of the inherited variable of the dynamic variable in the dynamic equation, perform initial value estimation on the additional variable in the dynamic variable, and solve the state variable of the dynamic equation using the alternation method in response to the running of the dynamic system. The present invention proposes a method and system for integrating a steady-state system with a dynamic system, in which the steady-state simulation provides high-quality initial conditions for the dynamic simulation, obtains operating data for stable operation of the equipment, and finds factors that may affect the stable operation of the equipment, thereby making up for the shortcomings of the dynamic simulation in design, optimization and prediction.

[0102] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

[0103] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The system and system embodiment described above are only illustrative, and some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

Claims

1. A method for integrating a steady-state system and a dynamic system, characterized in that: The steady-state system and the dynamic system are used for steady-state simulation and dynamic simulation in chemical process simulation software respectively. The steady-state system and the dynamic system are switched in response to operation instructions. The fusion method of the steady-state system and the dynamic system includes: Build and run a steady-state system: Build a steady-state system model and perform steady-state configuration. After initializing the steady-state system model configured with steady-state configuration, the corresponding steady-state equation is generated, and the steady-state variable properties in the steady-state equation are configured. The initial value of the steady-state variable is estimated by initializing the steady-state variable. In response to operating the steady-state system, a steady-state process simulation is performed to obtain a steady-state value based on initial values ​​of steady-state variables and solving steady-state equations; The steady-state system is integrated to build and run the dynamic system. The dynamic system model is built based on the built steady-state system, and the dynamic system model is dynamically configured based on the steady-state configuration. After initializing the dynamic system model configured by dynamic configuration, the corresponding dynamic equation is generated, and the dynamic variable properties in the dynamic equation are configured. The initial value of the additional variables in the dynamic variables is estimated. The inherited variables in the dynamic variables inherit the steady-state variables, and the steady-state values ​​are used as the initial values ​​of the inherited variables. In response to running the dynamic system, a dynamic process simulation is performed, and dynamic variable values ​​are obtained based on the solution of the dynamic equations.

2. The method for integrating a steady-state system and a dynamic system according to claim 1, characterized in that: The steady-state system and the dynamic system switch in response to the operation instruction, including: In response to the dynamic system switching to the steady-state system, If the dynamic system is not initialized and the initial value is not estimated, the initial value of the steady-state variables of the switched steady-state system is estimated; If the dynamic system has been initialized and the initial value has been estimated, the steady-state variables of the switched steady-state system will use the dynamic values ​​of the dynamic variables as the initial values ​​of the steady-state variables for steady-state simulation.

3. The method for integrating a steady-state system and a dynamic system for chemical process simulation according to claim 1, characterized in that: The attributes of the dynamic variable and the steady-state variable respectively include at least fixed attributes or calculated attributes, and the fixed attributes and calculated attributes can be switched and configured; If the attribute is a fixed attribute, the dynamic variable or steady-state variable is a fixed value. If the attribute is a calculated attribute, the value of the dynamic variable or steady-state variable is to be calculated; The number of dynamic variables whose attributes in the dynamic equation are calculated attributes is equal to the number of dynamic equations. The number of steady-state variables whose attributes in the steady-state equation are calculated attributes is equal to the number of steady-state equations.

4. The method for integrating a steady-state system and a dynamic system for chemical process simulation according to claim 3 is characterized in that: The dynamic equations are solved by a decomposition method that alternately fixes the state variables and the differential variables, where the differential variable is the derivative of the state variable with respect to time.

5. The method for integrating a steady-state system and a dynamic system for chemical process simulation according to claim 4, characterized in that: The dynamic equation is solved by using a decomposition method of alternately fixing state variables and fixing differential variables, specifically including: Fixing the values ​​of state variables in the dynamic equations based on at least a linear search method or a trust region method to obtain the values ​​of differential variables; The dynamic equations are numerically solved by fixing the differential variables corresponding to the state variables, thereby updating the values ​​of the state variables.

6. The method for integrating a steady-state system and a dynamic system for chemical process simulation according to claim 5, characterized in that: The dynamic equation is numerically solved by fixing the differential variables corresponding to the state variables, using at least one of the explicit Euler method, the implicit Euler method and the fourth-order Runge-Kutta method.

7. The method for integrating a steady-state system and a dynamic system for chemical process simulation according to claim 5, characterized in that: It also includes modifying the properties of the dynamic variables except the state variables or the properties of the steady-state variables based on the information of the external controller or the measurement module, so as to simulate the influence of the external conditions on the operation of the dynamic system.

8. The method for integrating a steady-state system and a dynamic system for chemical process simulation according to claim 5, characterized in that: The operating dynamic system further includes solving dynamic equations based on step parameters and operating options to obtain dynamic variable values.

9. The method for integrating a steady-state system and a dynamic system for chemical process simulation according to claim 5, characterized in that: The constructing of the dynamic system model based on the constructed steady-state system model specifically includes: inheriting the basic configuration and the flow chart configuration of the steady-state system model, and inheriting the steady-state values ​​corresponding to the steady-state variables.

10. A fusion system of a steady-state system and a dynamic system, characterized in that: A method for integrating a steady-state system and a dynamic system according to any one of claims 1 to 9, comprising at least a steady-state system module and a dynamic system module; The steady-state module is used to construct a steady-state system model, generate a steady-state equation based on steady-state configuration configuration and initialization of the steady-state system model, estimate the initial value of the steady-state variables in the steady-state equation, and solve the steady-state equation to obtain a steady-state value in response to running the steady-state system; The dynamic module is used to inherit the steady-state system model to construct a steady-state system model, and perform dynamic configuration configuration based on the inherited steady-state configuration configuration, initialize and generate dynamic equations, inherit the steady-state values ​​of the inherited variables of the dynamic variables in the dynamic equations, perform initial value estimation on the additional variables in the dynamic variables, and use the decomposition method to solve the dynamic variables in the dynamic equations in response to the running dynamic system.