Abstract

In order to get the compressibility factor of working fluid under different conditions, experimental measurement method of under high pressure and high temperature and data mining method were studied in this paper. Experimental measurement method based on real gas state equation and prediction method based on Least Squares Support Vector Machine were proposed. First, an experimental method for measuring at high temperature and high pressure was designed; in this method the temperature, pressure, and density (mass and volume) of corresponding state were measured and substituted into the actual gas equation of state, and then can be calculated. Meanwhile, in order to obtain continuous value in plane, Squares Support Vector Machines are introduced to establish the prediction model of . Take Hexamethyldisiloxane, for example; the experimental data of was obtained using the experimental method. Meanwhile the prediction model of , which can be used as calculation function of , was established based on those experimental data, and the (: 500 K~800 K, : 1.3 MPa~2.25 MPa) was calculated by using this calculation function. By comparison with this published data, it was found that the average relative error was 2.14%.

1. Introduction

Compressibility factor (-factor) [13] is an important parameter of thermal physical properties and is often used to calculate other physical parameters. -factor changes with temperature and pressure. In engineering calculation, the -factor values under different are needed. However, for the new refrigerant or different batches, these data are not complete, especially at high temperature and high pressure.

Currently the method based on the law of corresponding states is a common mean [4, 5]. However, this approach is an empirical method. At high temperature and high pressure region, sometimes the error of this method will be serious. Therefore, it is very necessary to devise a method to measure and calibrate -factor in the region of high temperature and high pressure.

It is direct to calculate -factor by actual gas state equation [6]. It can be known from the equation that -factor and density (mass and volume ) are corresponding when temperature and pressure were given. Then, -factor can be solved by , , , and . So it is the premise to obtain and value under the condition of ().

Based on the above analysis, a measurement method of -factor is designed based on actual gas state equation. In this experiment, a given quality of working fluid is heated in a container, whose volume is constant, and the changes of and are recorded, and and at different () are got; finally -factor can be obtained correspondingly. This method is simple, and the precision can be guaranteed at the high temperature and high pressure region, even at supercritical region.

However, -factor obtained by experiment is discrete in particular () status, and the needs of engineering applications cannot be met. In general, empirical formula established by the experimental data is used to meet the practical engineering application. And the accuracy of the empirical formula is the key. In this paper, -factor prediction method based on Least Squares Support Vector Machine is proposed. In this method, LSSVM is used to replace the traditional empirical formula to establish prediction function in plane.

In this paper, Hexamethyldisiloxane (MM) was taken, for example, by using this method; -factor at different () was measured, and -factor prediction function of MM was established. -factor values of MM (: 500 K~800 K, : 1.3 MPa~2.25 MPa) and the graph were obtained by the prediction function. By comparison with the published data, it was found that the average relative error was 2.14%. The effectiveness of this method and precision of the function were verified.

2. Design Density Measurement Method

2.1. The Scheme of Experiment

By the real gas state equation [7],

It can be got that

It can be seen from formula (2), as long as the corresponding temperature, pressure, and density (mass and volume) can be measured, that the corresponding -factor can be calculated.

In the region of high temperature and high pressure, especially in a supercritical state, because of sealing, the change of mass and volume tends to bring measurement error. So in this experiment, the mass and volume are fixed. In this method a certain mass working fluid is added to a container, whose volume is constant. The working fluid in the container will be at superheated or supercritical state if the container is heated continuously. During the heating process, the changes of and should be recorded correspondingly.

Further analysis showed that, beside the measuring working fluid, there is also air in the container. So is the total pressure of measuring working fluid and air, but not the actual pressure of this measured medium. For the ideal gas, the pressure of component can be solved by Dalton law of partial pressure [8, 9]:where is total pressure, is partial pressure of the th component, is total molar mass, is molar mass of the th component, and is the molar mass fraction of the th component.

However, this law considers that -factor is constant equal to 1. For the actual gas, -factor is changed with temperature and pressure. So the -factor of each component in each state must be got before calculating the partial pressure of actual gas. Obviously, this contradicts with the purpose of this paper.

Therefore, in order to eliminate the influence of other components (air) on the pressure measurement of working fluid, the container must be vacuumed before being heated. Then is the actual pressure of working fluid. Furthermore the corresponding density of () points can be got.

The corresponding -factor can be obtained by substituting , , and to formula (2).

2.2. Experimental Devices

The whole experiment requires the following devices: the measured medium, pressure vessels, temperature sensors, pressure sensors, electronic scale, heating device, temperature control device, vacuum pump, and so on. The experimental structure was shown in Figure 1.

As shown in Figure 1, the temperature control device heats the container through adjusting the temperature of heating equipment. The temperature and pressure of the container are measured by the temperature and pressure sensors.

3. Experiment

3.1. Experimental Material

As an important organic working medium, MM is increasingly applied to ORC system with its excellent thermodynamic properties under the state of high temperature and high pressure [10, 11]. Take MM, for example; this paper used the experimental method to measure its density in the state of high temperature and high pressure (: 500 K~850 K, : 1.2 MPa~2.1 MPa) and calculated the corresponding -factor.

K type thermocouples and pressure gauge were used to measure the temperature and pressure, the use of electronic scales measuring refrigerant mass. At the same time, it used resistance box as the heating device and used temperature controller to adjust the heating temperature. Pressure vessel, whose volume is constant of 1084 mL, was made of stainless steel.

3.2. Error Analysis

First of all, the experimental uncertainty should be analyzed.

The accuracy of K type thermocouple is 0.75%, the accuracy of pressure gauge is 0.4%, and the electronic precision is 30 kg ± 0.1 g, so the uncertainty of this experimental system is estimated to be 0.87%.

At the same time, the relative error and the mean relative error were calculated by the following formula:where is measurement (computing) value and is published values.

3.3. Analysis of the Experimental Process and Results

First of all, we added 52.5 g, 54.4 g, 58.4 g, 64.8 g, and 71.2 g MM to each pressure vessel, and the corresponding densities were 48.43 kg/m3, 50.18 kg/m3, 53.87 kg/m3, 59.78 kg/m3, and 65.68 kg/m3.

Heat and record and after overheating state. Measurement and calculation results of -factor are shown in Tables 15. This paper uses the PEFPROP property search software to query of MM, and the error analyses are shown in Tables 15.

It can be seen from Tables 15, in this experiment, that the relative error is small, and the average relative error is about 2.25%. For the supercritical state is difficult to measure, the result is also very good.

Beside the fact that the measurement of and may lead to errors, on the other hand, the tightness of experiment device, which results in a small amount of leakage in the heating process, will lead to the changes of density and cause the error of -factor. But the effect is small, which can be enhanced by the sealing means.

4. The Prediction Model of -Factor Based on LSSVM

-factor of refrigerants can be obtained accurately by this experimental method. And the precision is high even at high temperature and high pressure conditions. However, -factor obtained by the experiment method above is discrete. In practice, all -factors on plane are needed. Moreover, all the experimental data are on the isodense line. That is difficult for the practical application.

Obviously, it is extremely difficult, even impossible, to get all -factors on plane by using the experiment only. So this paper proposes a prediction method of -factor based on LSSVM (-LSSVM). And a calculation function of -factor on the plane is established; meanwhile -factor of MM on plane had been got by using this function.

4.1. Least Squares Support Vector Machine

SVR [12, 13] theory was first proposed by Vapnik in the 1990s. SVR is a machine learning technique based on the structural risk minimization principle, which solves the problem of local minima and nonlinear problem. On the base of SVR, the Least Square Support Vector Machine was proposed by Suykens [14, 15] to improve the solution speed and convergence precision.

For a given training set,

Solving for and mapping function ,

In the formula, is the weight vector, is the offset, and is a mapping function. The equation can be used to estimate the unknown nonlinear functions.

Based on the principle of structural risk minimization, constructing, and solving the optimization problem:

In the formula, is the penalty coefficient, which mainly controls the punishment degree, and () is the loss function.

In order to solve and , the Lagrange method is introduced. The definition of Lagrange function is as follows:

In the formula, is the Lagrange multiplier.

Optimizing the formula according to Karush-Kuhn-Tucker (KKT),

Among them,

The transformation by kernel function can be expressed as

The fitting function LSSVM can be expressed as

4.2. The Prediction Method of -Factor Based on LSSVM

Prediction method is very important and must have the following characteristics:(1)the ability to solve the small-scale sample problem [16]: the data obtained by experiment is limited, so the method should find out the variation from small-scale sample set;(2)the ability on nonlinear problem [16]: -factor changes with and , and its relationship with and is nonlinear. So, the prediction model must have the ability to mine the nonlinear relationship.

Through the above analysis, LSSVM is a suitable method for the prediction of -factor. The prediction of -factor is to establish the function of -factor with and :

According to the experiment above, groups of -factor and () can be got, namely, groups of training samples,where .

Substituting into type (7) and solving the optimization problem in accordance with the formulas (8)-(9), then the optimal solution of Lagrange multiplier is obtained:Finally the mapping function is got:where

4.3. Prediction Results and Error Analysis of the MM -Factor

This paper takes MM as an example, and -factor prediction model of MM is established. The experimental data of Tables 15 were used as the training samples of LSSVM prediction model. Through the model optimization, the -factor prediction function of MM can be got finally:

Lagrange multiplier of the prediction function is shown in Table 6.

In order to verify the accuracy of -LSSVM function, -factor on the plane ( K~800 K,  MPa~2.25 MPa) was calculated by this function and compared with the published data. Prediction and comparison results are shown in Tables 711.

Figures 26 are diagram of MM and relative error in 600 K, 650 K, 700 K, 750 K, and 800 K.

It can be seen from Tables 711 and Figures 26 that the predicted results are ideal, and the average relative error is about 2.14%. The maximum relative error in supercritical region is within 5%. The precision of -LSSVM model was verified.

5. Conclusion

The -factor is an important parameter in the calculation of thermodynamic engineering. Accurate measurement and calculation of compressibility factor is significant. The measurement at high temperature and high pressure is the focus of the study. During the study, the following conclusions can be obtained:(1)Based on the actual gas equation of state, the experimental method to measure -factor at high temperature and pressure state is presented. -factor value in superheated and supercritical region can be accurately measured by this method, and the method is relatively simple and easy to operate.(2)-factor prediction method based on LSSVM has been proposed. With this method, the -factor prediction model of MM has been established, and the empirical formula of -factor is obtained. The experiments show that the average relative error of the prediction model is 2.14% and the precision of -LSSVM method has been verified.(3)The method proposed in this paper is universal and can be widely used for other organic working fluids. Besides, it should also have the same accuracy to measure and predict the density of organic working fluids.

Competing Interests

The authors declare that they have no competing interests.

Acknowledgments

This work was sponsored by the Fundamental Research Funds for the Central Universities (2015MS102).