Method and system for obtaining thermal physical property parameters of supercritical fluid working medium

Through the neural network model and Levenberg-Marquardt optimization algorithm, the problem of slow calculation speed of thermal physical parameters of supercritical fluid working fluid in the existing technology is solved, fast and accurate multi-parameter calculation is realized, and combined with the simulation software system, the simulation is improved. Computational efficiency and accuracy of the model.

CN114036875BActive Publication Date: 2024-10-22WUHAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111537340.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-15
Publication Date
2024-10-22
Estimated Expiration
2041-12-15

AI Technical Summary

Technical Problem

Existing methods for calculating thermal physical properties of fluid working fluids are slow in supercritical flow and heat exchange processes, and are difficult to adapt to a variety of working fluids and processes, which limits the computing speed and real-time performance of the simulation system. Precision software is difficult to integrate with simulation systems.

Method used

Using a neural network model, through data normalization processing and BP neural network combined with Levenberg-Marquardt optimization algorithm, the model is trained to obtain the thermal physical property parameter calculation formula, output multiple thermal physical property parameters, suitable for various fluid systems, and combined with simulation Software system integration.

Benefits of technology

It achieves rapid and accurate calculation of the thermophysical parameters of supercritical fluid working fluids, improves the calculation speed, accuracy and stability of the simulation model, and is suitable for a variety of working fluids and processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114036875B_ABST
    Figure CN114036875B_ABST
Patent Text Reader

Abstract

A method for obtaining thermal physical property parameters of a supercritical fluid working medium, comprising the following steps: S1, using the required total data set size as a training data set, a verification data set and a test data set respectively; S2, using a data normalization method to normalize all input layer and output layer data according to the maximum-minimum method; S3, in the learning stage, using the training data set to correct the weights and thresholds of each layer of a neural network calculation model; S4, using the verification data set to monitor whether the prediction error of the verification data set decreases normally, and when the prediction error of the verification data set reaches a preset error value and the number of error increases reaches a preset number, the training is terminated; S5, using the test data set to confirm whether the neural network calculation model meets the accuracy and calculation efficiency required by the engineering simulation of the thermal physical properties of the fluid working medium, and if so, jump to step S6; S6, extracting the characteristic parameters of each layer in the neural network calculation model, substituting them into the neural network input-output equations, and obtaining the calculation formula of the thermal physical properties.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of obtaining thermal physical property parameters of fluid working medium, and in particular to a method and system for obtaining thermal physical property parameters of supercritical fluid working medium. Background Art

[0002] In the design, manufacture, operation and maintenance of process flow and core equipment of various fluid working fluids, especially in the simulation optimization of key process such as flow and heat transfer, a large number of working fluid thermophysical property parameter calculations need to be performed in the corresponding calculation program, and accurate and efficient thermophysical property parameter calculations are used as the basis. Typical thermophysical property parameters mainly include two categories: thermodynamic properties (density, specific heat capacity at constant pressure, etc.) and migration properties (thermal conductivity, dynamic viscosity coefficient, etc.). Especially when the working conditions of the fluid working fluid enter supercritical flow and heat transfer, its thermophysical property parameters are affected by many factors. Some thermophysical property parameters (especially specific heat capacity at constant pressure) change very drastically with temperature and pressure near the critical point, so that even a slight change in flow will have a significant impact on heat transfer, and even cause a significant deterioration in heat transfer. Therefore, accurate and rapid calculation of the migration and thermodynamic properties of supercritical fluid working fluids is the key to studying supercritical flow and heat transfer phenomena.

[0003] Existing methods for calculating the thermophysical properties of fluid working fluids mainly include the state equation method, the fitted empirical correlation method, etc. Each time the existing calculation method calls the thermophysical property parameter calculation module, only a single thermophysical property parameter to be calculated can be obtained. The state equation method requires multiple equation iterations to solve, and the calculation speed is slow. Moreover, the existing calculation methods are generally only applicable to specific fluid systems, process steps, and temperature and pressure ranges. The shortcomings of the existing thermophysical property parameter calculation methods affect the computing speed and real-time performance of the simulation system, limiting its application areas. The physical property calculation software that has been developed with high calculation accuracy is difficult to use in combination with the simulation system due to limitations such as program interfaces, and is not suitable for the requirements of process flow and core equipment system simulation and optimization design. Summary of the invention

[0004] In view of this, the present invention provides a method and system for obtaining thermal physical property parameters of a supercritical fluid working medium.

[0005] A method for obtaining thermal physical property parameters of a supercritical fluid working medium.

[0006] S1. The required total data set size is used, and the temperature and pressure within the required temperature and pressure range are used as independent variables. The thermophysical property parameters are calculated by the physical property calculation software and used as the training data set, the verification data set and the test data set respectively;

[0007] S2, using the data normalization method, normalize all input layer and output layer data according to the maximum and minimum method;

[0008] In order to speed up the learning and training of the model and eliminate the errors introduced by different input and output parameters with different orders of magnitude, the input and output data of the training data set, validation data set, and test data set are all normalized. When using the neural network model to calculate the thermophysical parameters, the input parameters (temperature, pressure, etc.) are normalized and substituted into the neural network input and output equations or thermophysical property calculation formulas. The results are then denormalized to obtain the desired thermophysical parameter values.

[0009] S3, in the learning phase, the weights and thresholds of each layer of the neural network calculation model are corrected using the training data set;

[0010] Each layer refers to the input layer, hidden layer and output layer. In order to improve the learning and training efficiency, obtain faster convergence speed and higher approximation accuracy, the BP neural network selects the Levenberg-Marquardt optimization algorithm (hereinafter referred to as the LM algorithm). The LM algorithm is an algorithm that uses the gradient to find the maximum (minimum) value, and has the advantages of both the gradient descent method and the Newton method. Each iteration searches for a suitable damping factor λ. When λ is very small, the step length is equal to the Newton method step length. When λ is very large, the step length is approximately equal to the gradient descent method step length.

[0011] S4. Using the validation data set, monitor whether the prediction error of the validation data set decreases normally. When the prediction error of the validation data set reaches a preset error value and the error increases for a preset number of times, the training is terminated, and the weights and thresholds of each layer of the neural network calculation model with the minimum validation data set error are returned.

[0012] S5. Using the test data set, confirm whether the neural network calculation model meets the accuracy and calculation efficiency required by the fluid working medium thermal physical property engineering simulation, and jump to step S6 if it meets the requirements;

[0013] S6. Extract the characteristic parameters of each layer in the neural network calculation model, substitute them into the neural network input and output equations, obtain the calculation formula of thermal properties, and establish a physical property calculation module based on the calculation formula for integration with the simulation software system for fluid flow and heat transfer calculation.

[0014] The specific expressions of the neural network input and output equations are related to the actual number of neural network layers selected, the number of nodes in each layer, the training data set and the verification data set selected each time. They are obtained through training calculation optimization and are reflected in various characteristic parameters such as weights and thresholds of each layer of the neural network.

[0015] The thermophysical property calculation formula substitutes the weights and thresholds of each layer of the neural network obtained in each training calculation and optimization process into the neural network input and output equations to derive an explicit functional expression between the output parameters (various thermophysical property parameters, dependent variables) and the input parameters (pressure, temperature, etc., independent variables).

[0016] In the method for obtaining the thermophysical property parameters of a supercritical fluid working medium described in the present invention,

[0017] The 2D input layer data in the input layer of the neural network calculation model includes temperature and pressure data;

[0018] The 4-dimensional output thermophysical property parameters in the output layer of the neural network calculation model include density, specific heat capacity at constant pressure, thermal conductivity and dynamic viscosity coefficient.

[0019] In the method for obtaining the thermophysical property parameters of a supercritical fluid working medium described in the present invention,

[0020] The intermediate hidden layer transfer function of the neural network computing model uses the hyperbolic tangent function tansig, while the output layer transfer function uses a linear function.

[0021] In the method for obtaining the thermophysical property parameters of a supercritical fluid working medium described in the present invention,

[0022] The training dataset, validation dataset, and test dataset account for 2:1:1 in the total dataset.

[0023] In the method for obtaining the thermophysical property parameters of a supercritical fluid working medium described in the present invention,

[0024] In the step S3, in the learning phase, using the training data set to correct the weights and thresholds of each layer of the neural network calculation model includes:

[0025] By optimizing the parameters of the neural network computing model, various characteristic parameters such as weights and thresholds of each layer of the neural network are corrected. The parameters of the neural network computing model are optimized, including: changing the number of nodes in the middle hidden layer, adjusting the learning rate, number of iterations, and convergence criteria.

[0026] The present invention also provides a system for obtaining the thermal physical property parameters of a supercritical fluid working medium, which is implemented by any of the methods for obtaining the thermal physical property parameters of a supercritical fluid working medium described above.

[0027] Beneficial technical effects: Compared with the prior art, the method and system for obtaining the thermal physical property parameters of the supercritical fluid working medium of the present invention have the following advantages:

[0028] 1. By adjusting the structure and number of nodes of the neural network, changing the input training data and the amount of data, the calculation accuracy and speed of the output thermal physical parameters can be adjusted. It is suitable for various fluid systems and meets the needs of engineering calculations.

[0029] 2. The output layer can output all the required thermophysical parameters at one time without the need for repeated calculations;

[0030] 3. After the learning process of inputting training data, various characteristic parameters such as weights and thresholds of the BP neural network calculation model are extracted and substituted into the neural network input and output equations to obtain the calculation formula of thermal properties;

[0031] 4. According to the above-obtained thermophysical property calculation formula, programming can be used to establish a physical property calculation module, which is convenient for integration with the simulation software system, and can improve the speed, accuracy and stability of simulation model calculation, thus overcoming the shortcomings of existing fluid working medium thermophysical property parameter calculation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a flow chart of a method for obtaining thermophysical property parameters of a supercritical fluid working medium provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0033] like Figure 1 As shown, the method for obtaining the thermophysical property parameters of a supercritical fluid working medium according to an embodiment of the present invention is based on a BP neural network model. As an information processing system with strong nonlinear operation and function approximation capabilities, it can output all required common thermophysical property parameters (4-dimensional output layer data, namely, density, specific heat at constant pressure, thermal conductivity and dynamic viscosity coefficient) at the same time for the temperature and pressure values ​​(2-dimensional input layer data, namely, temperature and pressure) of various input working conditions (regardless of whether they are supercritical working conditions).

[0034] In order to simplify the form of the later thermal physical property parameter calculation formula, the number of intermediate hidden layers is set to 1.

[0035] The transfer function of the intermediate hidden layer uses the hyperbolic tangent function tansig, while the transfer function of the output layer uses a linear function (used to fit nonlinear functions).

[0036] Using the authoritative physical property calculation software (NIST REFPROP V9.1) with high calculation accuracy, we first use the required total data set size, and use the temperature and pressure within the required temperature and pressure range as independent variables to calculate the thermal physical property parameters (i.e., density, specific heat capacity at constant pressure, thermal conductivity, and dynamic viscosity coefficient), which are used as training data sets, validation data sets, and test data sets (accounting for the total data set size in a ratio of 2:1:1, respectively). In order to avoid the "overfitting" problem of neural networks and improve the generalization ability of neural networks,

[0037] First, the data normalization method is adopted, that is, all the input layer and output layer data are normalized according to the maximum and minimum method (when using neural network to predict data, the corresponding denormalization is performed).

[0038] Secondly, the early termination method is adopted to correct the weights and thresholds of each layer of the neural network using the training data set during the learning phase;

[0039] Then use the validation data set to monitor whether the error decreases normally. When the prediction error of the validation data set increases significantly and the error increases for a given number of times, the training will terminate early and return the network weights and thresholds with the minimum validation data set error.

[0040] To improve learning efficiency, the BP neural network learning algorithm selects the LM algorithm. By optimizing the parameters of the BP neural network physical property calculation model (such as changing the number of nodes in the middle hidden layer, adjusting the learning rate, number of iterations, convergence criteria and other neural network model hyperparameters, etc.), the weights, thresholds and other characteristic parameters of each layer of the neural network are trained and verified. After the learning process is completed and the convergence criteria are met, the test data set is finally used to confirm whether the neural network calculation model meets the accuracy and calculation efficiency required by engineering simulation.

[0041] After confirming that the neural network calculation model meets the requirements, various characteristic parameters such as weights and thresholds of each layer of the neural network can be further extracted and substituted into the neural network input and output equations to obtain the calculation formulas for thermal properties. Programming based on these calculation formulas, establishing a physical property calculation module, and combining it with the simulation software system for fluid flow and heat transfer calculations can improve the speed, accuracy and stability of simulation model calculations.

[0042] The above, including the embodiments of the present invention, are not limited to specific implementation methods. For ordinary technicians in this field, various other corresponding changes and deformations can be made based on the technical concept of the present invention, and all these changes and deformations should fall within the protection scope of the claims of the present invention.

Claims

1. A method for obtaining thermal physical property parameters of a supercritical fluid working medium, characterized in that: S1. The required total data set size is used, and the temperature and pressure within the required temperature and pressure range are used as independent variables. The thermophysical property parameters are calculated by the physical property calculation software and used as the training data set, the verification data set and the test data set respectively; S2, using the data normalization method, normalize all input layer and output layer data according to the maximum and minimum method; S3, in the learning phase, the weights and thresholds of each layer of the neural network calculation model are corrected using the training data set; S4, using the validation data set, monitoring whether the prediction error of the validation data set decreases normally. When the prediction error of the validation data set reaches a preset error value and the error increases for a preset number of times, the training is terminated, and the weights and thresholds of the input layer, hidden layer, and output layer of the neural network calculation model with the minimum validation data set error are returned; S5. Using the test data set, confirm whether the neural network calculation model meets the accuracy and calculation efficiency required by the fluid working medium thermal physical property engineering simulation, and jump to step S6 if it meets the requirements; S6. Extract characteristic parameters of each layer in the neural network calculation model, substitute them into the neural network input and output equations, obtain the calculation formula of thermal properties, and establish a physical property calculation module based on the calculation formula, which is used to combine with the simulation software system for working fluid flow and heat transfer calculation call; The 2D input layer data in the input layer of the neural network calculation model includes temperature and pressure data; The 4-dimensional output thermophysical parameters in the output layer of the neural network calculation model include density, specific heat capacity at constant pressure, thermal conductivity and dynamic viscosity coefficient; The transfer function of the intermediate hidden layer of the neural network computing model uses the hyperbolic tangent function tansig, while the transfer function of the output layer uses a linear function; The training dataset, validation dataset, and test dataset account for 2:1:1 in the total dataset.

2. The method for obtaining the thermal physical property parameters of a supercritical fluid working medium according to claim 1, characterized in that: In the step S3, in the learning phase, using the training data set to correct the weights and thresholds of each layer of the neural network calculation model includes: By optimizing the parameters of the neural network computing model, the weights, thresholds and various characteristic parameters of each layer of the neural network are corrected. The parameters of the neural network computing model are optimized, including: changing the number of nodes in the middle hidden layer, adjusting the learning rate, number of iterations, and convergence criteria.

3. A system for acquiring thermal physical property parameters of a supercritical fluid working medium, which is implemented by the method for acquiring thermal physical property parameters of a supercritical fluid working medium as described in any one of claims 1-2.