Introduction

Recent developments in improved oil technologies have increased the demand for heavy oil in the international market. Crude oil is classified as light or heavy oil based on different physical properties, such as molecular weight, viscosity, density, and API gravity. The most common definition of heavy crude oil is crude oil with API gravity less than 20, according to the International Energy Agency (IEA) and US geological survey (USGS). Viscosity and density play very important roles in oil production, transportation through pipelines, and oil recovery processes. Obtaining reliable viscosity and density measurements can be difficult, especially for live oil. These properties are very important and should be evaluated precisely for reservoir simulation. Measuring the viscosity and the density of dead oil is easier using empirical correlations at temperatures other than the reservoir temperatures (Ahrabi et al. 1987). These dead oil measurements can be used as the starting point for live oil viscosity and density predictions. The difficulty and high costs of viscosity and density measurements at reservoir conditions are the main reasons for the lack of such data at other temperatures. Additionally, viscosity and density are important guidelines for numerical simulations to determine the economics of the Enchanted oil recovery (EOR) project and the success or failure of a given EOR scheme. Consequently, a correlation must estimate these values under different temperatures (Miller 1995). The viscosity of crude oil depends on many factors, such as the source chemical composition (Sattarin et al. 2007). Therefore, developing a comprehensive model of viscosity to include different regions of the world seems to be a very challenging task. Several correlations for predicting dead oil viscosity are available in the literature. Some of these models are discussed in this paper, such as the Beggs and Robinson (1975) model for temperatures ranging from 21 to 146 °C and the Elsharkawy and Alikhan (1999) model based on crude oil samples from the Middle East for temperatures ranging from 38 to 150 °C. Naseri et al. (2005) presented a model for temperatures ranging from 40 to 146 °C. Other authors suggest that the variation in compositions is why correlating the viscosity of heavy crude with high accuracy is improbable (Beal 1946). Beal created a chart that described the viscosities of 655 dead oil samples at 38 °C, representing 492 oil fields around the world and covering viscosities ranging from 0.8 to 155 cP, gravities ranging from 10.1° to 52.5°API and temperatures from 38 to 105 °C. In addition, Kartoatmodjo and Schmidt (1994) developed an empirical correlation to predict the viscosity of dead oil with 3588 data points from 661 dead oil samples that covered gravities ranging from 14.4° to 58.9°API, viscosities ranging from 0.5 to 682 cP, and temperatures ranging from 75 to 320 °F. Labedi (1992) also correlated the dead oil viscosity in the range of 0.66 to 4.79 cP and gravity in the range from 32.2° to 48.0°API as a function of API gravity and temperature covering the range from 38 to 152 °C. Using 91 data points, Labedi (1992) claimed that his equation was more accurate than previous efforts (Beal 1946) and (Beggs and Robinson 1975), which might have been true for this tight viscosity range; however, large errors were observed when this model was applied outside of these temperature, viscosity, or API ranges. Hossain et al. (2005) statistically analyzed a data bank covering the dead oil viscosity range of 22–415 cP and the temperature range of 51 to 93 °F for oil samples with gravities in the range of 15.8° to 22.3°API. In this work, a temperature range between 20 C and 160 C was set to perform the experimental measurements of viscosity and density of the dead oil samples. This range was chosen because this is the most common range of operation in reservoirs and pre-refinery processes.

Experimental details

Sample preparation

Samples of dry heavy crude oil were collected in specially designed 2.5-L glass stoppered bottles and were stored at 20 °C. The crude oil samples were mixed with an emulsion breaker (commercial-grade Nalco demulsifier), centrifuged to remove the traces of basic sediments and water (BS&W), and finally the samples were maintained in an oven at 40 °C. Prior to the analysis, each sample was shaken vigorously using open-air platform shakers to achieve homogeneity. As soon as the bottles were opened, the water contents of the samples were measured with a Metrohm KF (model 832-Thermoprep), and the moisture range was measured to be between 10 × 10−4 and 5 × 10−3 g g−1. Before each test, all instruments were calibrated according to the manufacturer’s specifications. As per the test procedures, triplicate measurements were performed, and the average was used. Descriptive statistics of the tested samples (API, temperature, viscosity, and density) are shown in Table 1.

Table 1 Descriptive statistics of the 376 experimental data points of the 30 samples

Density and viscosity measurements

The dynamic viscosity, μ, of 30 dead crude oil samples in the temperature range from 20 to 160 °C was determined using an electromagnetic viscometer. The viscometer consists of two coils that move the piston back and forth magnetically with a constant force. Proprietary circuitry analyzes the piston’s two-way travel time to measure the absolute viscosity. The instrument was calibrated by measuring in triplicate the three reference samples, N600, N2000, and N4000, supplied by Canon Instruments. The calibration was done for the temperature range of interest with a reproducibility of ±0.95 %. The estimated uncertainty of the dynamic viscosity for all the measured ranges was not more than 9 × 10−3 mPa s at 95 % confidence interval. The densities were measured at temperature intervals between 20 and 160 °C using an oscillating U-tube densitometer; the oscillation period in the vibrating U tube of the densitometer was converted to density using Eq. 1.

$$\rho = \, A\tau^{ 2} - B,$$
(1)

where ρ is the density in kg m−3 and τ is the tube oscillation period in seconds, the apparatus constants (A and B) were determined by using the density of dry air and ultrapure water at the temperature of interest. The temperature of the measuring cell is controlled using two integrated measuring sensors (Pt100) with a temperature reproducibility of ±10−2 °C. The calibration was done at the temperatures of interest by using ultrapure water. Triplicate density measurements were performed for all the samples. The results were averaged, and the estimated uncertainty of the measurements was within 0.5 kg m−3.

True boiling point (TBP) determination

Ten dead oil samples out of the 30 samples were selected that covered the entire range of API values. The TBP distillation was carried out in the AUTODEST 800 Fisher GmbH backed column, equivalent to 15-trayes according to ASTM D 2892 for the test exposed to the atmosphere and according to ASTM D 5236 for the test under vacuum. The TBP distillation was performed at a pressure drop ranging from 760 to 2 mmHg with a reflux ratio of 1:5. The specific gravity at 60 °F, API gravity, dynamic viscosity, and true boiling point for each fraction were measured as shown in Tables 2 and 3. The critical properties of each sample are calculated in Table 4.

Table 2 TBP distillation range of 10 crude oil samples according to ASTM D2892 and ASTM D5236
Table 3 Critical properties and acentric factors of the different pseudo-components of the crude oil samples
Table 4 Properties of the different pseudo-components of the crude oil samples

Results and discussion

Proposed models

The experimental data of the viscosity and the density of 30 dead heavy oil samples with different API values were measured in the temperature range of 20–160 °C. These values were subjected to a simple statistical analysis to assess the distribution of the data points (Table 1). The correlation coefficients were estimated to determine and to evaluate the strength of the dependency between each of these two variables. The correlation coefficient for viscosity–density is positive, whereas the coefficient for viscosity-temperature is negative (Table 5). Thus, the viscosity is directly proportional to density and inversely proportional to temperature, with high correlation between the data. The ASTM indicates that dead oil viscosity is labeled according to its standard API at 15.5 °C. This value is the first parameter for any model, and the second parameter is the value of the measured temperature. According to literature reviews, most of the models are based on an intermediate parameter or sometimes two parameters, the API and temperature, to calculate the viscosity (Ahrabi et al. 1987; Little & Kennedy 1968; Lohrenz et al. 1964). In most cases, this parameter has no physical meaning. Therefore, a real physical property was selected as the intermediate parameter, such as density, and the density was modeled using API and temperature. The goal was to create models in the following formats for the density and viscosity predictions

$$\rho_{\text{od}} = f\left( {T,API_{{@60\,^\text{{o} F}}} } \right)$$
(2)
$$\mu_{\text{od}} = f\left( {T,\rho_{od} } \right),$$
(3)

where ρ od is the density of the dead oil in kg m−3, μ od is the viscosity of the dead oil in cP, T is the temperature in degree Celsius, and API@60F is the gravity of the dead oil measure at 60o F.

Table 5 Correlation factors between API, T, μ and ρ

Density model

The first challenge was to develop a unified model of a set of parameters for the entire range of dead crude oil density with only one equation. Curve fitting by regression methods of the experimental density data with respect to the standard ºAPI gravity and temperature was applied. The results were acceptable and well fit by an equation of the following form:

$$\rho_{od} = \bar{a} + \bar{b}\left( {{\text{API}}_{{{\raise0.7ex\hbox{${60\,^{o} F}$} \!\mathord{\left/ {\vphantom {{60\,^{o} F} {60\,^{o} F^{{}} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${60\,^{o} F^{{}} }$}}}} } \right) + \bar{c}\left( T \right),$$
(4)

where ρ od is the density of the dead oil in kg m−3, is the temperature and API@60F is the gravity of the dead oil measure at 60 °F.

The values of \(\bar{a},\bar{b}\,{\text{and}}\,\bar{c}\) are 1.072408845, −0.00652625, and −0.0006639, respectively, with a regression coefficient (R 2) of 0.98.

Viscosity model

Before developing the new viscosity model, understanding the relationship between the input and output variables is essential; specifically, identifying which parameters are insignificant and can be eliminated from the final model and the parameters that are highly correlated with the output. A sensitivity analysis was performed for the main parameters (viscosity μ, density ρ, and temperature T) for all the experimental data (Table 5). The negative correlation coefficient between the dynamic viscosity and temperature shows that whenever the temperature is increased, the viscosity decreases, indicating an inverse correlation between them. The relationship between the viscosity and temperature could be described by Eq. 5. The positive value of the correlation factor between the density and the viscosity indicates a direct correlation, and the equation for these variables follows the form of Eq. 6.

$$\mu_{\text{od}} \,\alpha \,\,\left( {\frac{1}{{T^{b} }}} \right)$$
(5)
$$\mu_{\text{od}} \,\,\alpha \,\,c\ln \rho_{\text{od}} .$$
(6)

Consequently, the dead oil viscosity (\(\mu_{\text{od}}\)) is considered to be a function of the absolute value of reservoir temperature (T) and the crude oil density (ρ). After multiple regression analysis of all the experimental viscosity data, and using many forms for a viscosity equation as a function of density and temperature, the results show that the following functional form was set to be presented the data in this work.

$${ \ln }\left( {\mu_{\text{od}} } \right) = \hat{a} + \frac{{\hat{b}}}{{T^{2} }} + \hat{c}\left( {\rho_{\text{od}}^{2} } \right)\ln \rho_{\text{od}} .$$
(7)

The correlation parameters for the normal and high temperature ranges must be re-evaluated to generalize the prediction ability of the model to represent the whole set of crude oil viscosity data. The data were divided into two sets based on the temperature range. This division drastically increased the accuracy of the model and reduced its relative error. The model can predict the dead oil viscosity data with an average absolute error of 8 % and an R 2 of 0.97. The first set was used with the model for the normal temperature range 20–100 °C, and the second set was used for the high temperature range above 100 °C. The values were evaluated and tested using different techniques, such as curve fitting, nonlinear regression, and the square method. Table 6 shows the values for \(\hat{a}\), \(\hat{b}\), and \(\hat{c}\) for each section of the data set, where the viscosity is in cP, the temperature is in  °C, and the density is in g cm−3.

Table 6 Values of the correlation parameters for the viscosity model (Eq. 7)

Assessment of the proposed density and viscosity models

Statistical analyses were conducted randomly for 376 data points of the 30 dead crude oil samples. The results based on these numbers were randomly divided between training and testing parts in a ratio of 3:1.

Density model evaluation

Fluid densities have been estimated using Standing (1957) method, with n correction factors. The correction factor Δρ p is the change in density due to the effect of pressure on the oil, and Δρ T is the change in density due to the thermal expansion of oils as described in Eq. 8 (Sattarin et al. 2007; Standing 1957).

$$\rho \,\, = \,\rho_{\text{sc}} \, + \Delta \rho_{p} \,\, + \Delta \rho_{T} .$$
(8)

According to Standing’s relationships;

$$\begin{aligned} \Delta \rho_{p} \, & = \left[ {0.167\, + \,\left( {16.181} \right)10^{{0.0425\rho_{sc} }} } \right]\left( \frac{P}{1000} \right) \\ \Delta \rho_{T} & \, = \left[ {0.013\, + 152.4\,\left( {\rho_{sc} \, + \Delta \rho_{p} } \right)^{ - 2.\,45} } \right]x\left( {T - 520} \right) - \, \\ \quad \left[ {8.1\left( {10^{ - 6} } \right) - (90.06)x10^{{ - 0.764\,\left( {\rho_{sc} + \Delta \rho_{p} } \right)}} } \right]\left( {T - 520} \right)^{2}, \\ \end{aligned}$$
(9)

where P is the pressure in bar, T is the temperature in Rankin, and ρ sc is the measured density at standard conditions kg m−3.

The pressure correction factor was neglected because all the measurements were done on dead oil samples under normal pressure. The reliability and accuracy of the data from the density measurements were checked by comparing the experimental values with the predicted values using (1) standing density model and (2) the proposed density model. The results were satisfactory with an R 2 of (0.98 and 0.99) and an average absolute error (ε) of 0.61 and 0.04 %, respectively, as shown in Fig. 1a and b.

Fig. 1
figure 1

a Relationship between experimental density and the Standing model. b Relationship between experimental density and the proposed model

Fig. 2
figure 2

Comparison of the predicted and measured viscosities using the low-temperature model (20 °C < T < 100 °C)

Another way of evaluating the density model is by applying the cubic equation of state (EoS) that was developed by (Peng and Robinson 1976).

$$P = \frac{{R_{g} T}}{v - b} - \frac{a\left( T \right)}{{v\left( {v + b} \right) + b\left( {v - b} \right)}},$$
(10)

where P is the pressure, T is the temperature, v is the molar volume, R g is the universal gas constant.

This equation can also be written using the compressibility factor (Z).

$$Z^{3} - \left( {1 - B} \right)Z^{2} + \left( {A - 3B^{2} - 2B} \right)Z - \left( {AB - B^{2} - B^{3} } \right) = 0.$$
(11)

The parameters (a) and (b) in Eq. 10 are calculated by applying the equation at the critical point.

$$a\left( {T_{\text{c}} } \right) = \alpha \frac{{R_{\text{g}}^{2} T_{\text{c}}^{2} }}{{P_{\text{c}} }}$$
(12)
$$b\left( {T_{\text{c}} } \right) = \beta \frac{{R_{\text{g}} T_{\text{c}} }}{{P_{\text{c}} }}$$
(13)
$$a\left( T \right) = a\left( {T_{\text{c}} } \right)\left( {1 + m\left( {1 - T_{\text{r}}^{{{1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-0pt} 2}}} } \right)} \right)^{2}$$
(14)
$$b\left( T \right) = b\left( {T_{\text{c}} } \right)$$
(15)
$$m = 0. 3 7 4 6 4+ 1. 5 4 2 2 6\omega + 0. 2 6 9 9 2\omega^{2} ,$$
(16)

where T c and P c are the critical temperature and pressure, respectively, T r is the reduced temperature T r = T/T c, and ω is the acentric factor.

The value of α is 0.45724, and the value of β is 0.0778, and these values can be empirically tuned for better results. The values of critical parameters (P c, T c, and ω) are calculated using the correlations developed by (Kesler and Lee 1976). The average of the pseudo-component for each group of hydrocarbons in each distillation range was calculated. In addition, the sample mid-true boiling points at 20, 50, and 80 % distilled were determined (T b), as shown in Table 2. After calculating the compressibility factor (Z), the molar volume was calculated, and this value was then converted to density using the molecular weight. After tuning the EoS parameters, the average error was successfully dropped to 2.3 %, compared with 22.5 % before tuning.

Viscosity model evaluation

To check the ability of the proposed viscosity model to present all experimental data, cross plots of the measured and predicted viscosity values were used. The results for the low-temperature region were in good agreement, with the average relative absolute error approximately 8.5 %. The training and testing parts also had the same error, as depicted in Fig. 2. For the high temperature region, the average relative error was 7 % for the training part and 8 % for the testing part, as shown in Fig. 3. The relationship between viscosity and temperature for randomly selected samples with different API values (high, medium, and low) at normal and high temperatures is shown in Fig. 4. One of the main challenges in this study is that most of the existing models in the literature are limited to certain ranges of temperature, API value, and viscosity. Some of the data points had viscosity values higher than 10,000 cP, whereas the maximum limit for the others models is approximately 600 cP. Ten different models (Beal 1946; Beggs and Robinson 1975; Elsharkawy and Alikhan 1999; Glaso 1980; Hossain et al. 2005; Kartoatmodjo and Schmidt 1994; Labedi 1992; Naseri et al. 2005; Petrosky and Farshad 1995; Standing 1947) were used to determine the capability of these models to predict the experimental viscosity data. Some results showed good agreement with the data, whereas other models had poor predictive capabilities. The main source of error in the models’ predictions is perhaps individual limitations and/or the availability of accurate experimental data. Table 7 shows a summary of the ten evaluated models with all their data ranges. All the models were used to reproduce the data points regardless of their viscosity, temperature, or API limitations. The model created by Standing in 1947 gave the most acceptable results among the ten published models. Several approaches were used to compare these models with the proposed model of the data under study. These approaches were (A) squaring the Pearson product moment correlation coefficient, (B) relative error, (C) standard deviation, and (D) cross plots.

Fig. 3
figure 3

Deviation of the experimental from the predictive values using the high-temperature model (T > 100 °C)

Fig. 4
figure 4

Assessment of the measured viscosity data with the proposed models on randomly selected samples with different API values

Fig. 5
figure 5

Bar chart for the R 2 values for each of the models when applied on our data

Table 7 Summary of the evaluated models, including the API, temperature, and viscosity limits
First approach: squaring the Pearson product moment correlation coefficient

Figure 5 is a bar chart showing the measured values of the linear regression correlation coefficient, R 2, for all the models. This chart shows the R 2 value of the proposed model with the 10 tested models. The proposed model has the highest R 2 value (0.97), followed by the model proposed by Standing (0.95). Two other models by Hosain et al. and Elsharkawy and Alikhan (1999) have correlation coefficients of (0.91) and (0.89), respectively. The lowest R 2 value, 0.19, is for the model by Labedi (1992).

Fig. 6
figure 6

Percentage error distribution on all the data points. Beal and Labedi were excluded from this figure due to the high error values

Second approach: relative error

The relative average error test was performed by calculating the absolute percent error between the calculated and the measured value using the following expression;

$$\varepsilon = \left| {\frac{{{\text{Measured}} - {\text{calculated}}}}{\text{Measured}}} \right| \times 100.$$
(17)

The average values of the absolute errors are shown in Table 8, and the distribution of the errors for all the models is shown in Fig. 6. This distribution shows how this work is the best representative of the studied data with the tightest error distribution. By contrast, the other models have a very wide distribution, which indicates that these models can be applied to these data only within the limitations of each model.

Table 8 Absolute percentage error (ε) and standard deviation (SD)
Fig. 7
figure 7

Deviation of experimental viscosity data from predictive values using proposed model

Third approach: standard deviation

Another statistical test was performed on the data and the models; a measure of the standard deviation (SD) was performed between the experimental and calculated data with Eq. 10:

$${\text{SD}} = \sqrt {\frac{{\sum\nolimits_{i = 1}^{n} {\left( {\hat{\mu }_{i} - \mu_{i} } \right)^{2} } }}{n - p}} , ,$$
(18)

where \(\hat{\mu }_{i}\), \(\mu_{i}\) , n, and p are the experimental, predicted values of dynamic viscosity, the number of data points, and the number of parameters, respectively. The results of this test are shown in Table 8. The proposed model shows the lowest SD while the other model do not show a very good result specially when the SD is above 1000 cP.

Fourth approach: cross plots

The graphical approach in Fig. 7 shows the behavior of all the tested models against the experimental and calculated values. Some models present a relatively high value of R 2, but some of these models are inconsistent with real values around the 45° line, specifically the models of (Naseri et al. 2005) and (Kartoatmodjo and Schmidt 1994). Other models, such as (Beal 1946) and (Labedi 1992), have low R 2 values, and the predicted data are scattered (Fig. 7). This graphical presentation also shows that the Standing model describes the data with some minor scattering points around the (y = x) line while the proposed model is giving the best prediction without any scattering between the experimental data and the model’s measured value.

Fig. 8
figure 8

Deviation of experimental viscosity data from predictive values using EOS

Evaluation using worldwide samples

The proposed model was tested along with the literature models using crude oil from different areas in North America (USDOE 1995) to test its ability to be generalized. Table 9 shows the ranges of these 45 data points. Table 10 shows the average absolute error percent between the predicted value of the viscosity of each model and the experimental results along with the value of R 2 for each case. The overall result shows that it is not an easy task to generalize a dead oil viscosity model along with the API and temperature.

Table 9 Ranges of randomly selected data for testing the model for the 45 international data points
Table 10 Results of reproduction of randomly selected data from around the world

Application of equation of state to predict the viscosity

The viscosity was calculated using a transport model that is based on Enskog’s theory (Chapman and Gowling 1970). The viscosity was calculated as follows:

$$\mu = \mu_{0} b'\rho \left[ {\frac{1}{b'\rho \chi } + 0.8 + 0.7614\left( {b'\rho \chi } \right)} \right],$$
(19)

where

$$b^{\prime}\rho \chi = \frac{v}{{R_{\text{g}} }}\left[ {\frac{R}{v - b} - \frac{1}{{v\left( {v + b} \right) + b\left( {v - b} \right)}}\left( {\frac{\partial a\left( T \right)}{\partial T}} \right)} \right]$$
(20)
$$b^{\prime}\rho = \frac{1}{v}\left[ {b - \frac{1}{{R_{\text{g}} }}\left( {\frac{\partial a\left( T \right)}{\partial T}} \right)} \right]$$
(21)
$$\frac{\partial a\left( T \right)}{\partial T} = - a\left( {T_{c} } \right)\left[ {\frac{{m + m^{2} \left( {1 - T_{r}^{0.5} } \right)}}{{\left( {TT_{c} } \right)^{0.5} }}} \right]$$
(22)
$$\mu_{0} = 0.1\frac{Nh}{v}\exp \left( {3.8\frac{{T_{\text{b}} }}{T}} \right)$$
(23)

where μ 0 is the dilute gas viscosity, ρ is the molar density, b′ is the co-volume, χ is the value of the equilibrium radial distribution function at a distance equal to the molecular diameter from the center of an individual molecule, and T b is the boiling point.

The original values of the parameters α and β gave an average error of density more than 90 %, but after tuning the parameters and using new values of 0.009, 0.0058, respectively, the average error was 80.3 %. Another application of the EoS was made but this time using the Pederson corresponding state with the Peng–Robension EoS this trail also gave us a very high absolute error with the value of 126 %. Consequently, the published EoS theories are not suitable to represent our experimental viscosity data. Figure 8 shows a cross plot between the experimental viscosity data and the predicted viscosity using EoS.

Conclusions

Although, oils of widely varying compositions can have the same gravity, considerable errors may be introduced when the viscosities of heavy oils are estimated from general viscosity trends and the API gravity. This viscosity model is a function of the absolute value of reservoir temperature (T) and the crude oil density (ρ) which are more valuable and simple to use. Good results of the proposed density model at normal and elevated temperatures could be observed with the average absolute error (ε) of 0.04 % and the coefficient of determination R 2 of 0.99. Several empirical models for estimating the viscosity of dead oils were evaluated using dynamic viscosity data of heavy crude oils from the reservoirs of Middle East. Most of the published models for predicting the dynamic viscosity dead oils are unreliable in a wide temperature range. The assessment of the agreement between the experimental viscosity data and the predicted values indicates that the proposed model successfully represents the experimental data with an average absolute relative error of less than 8 % and coefficients of determination R 2 of 0.97 and 0.92 at normal and high temperature, respectively. From statistical analysis, the proposed model was demonstrated as one of the best models in comparison with other models published in the literature. The overall result shows that it is not an easy task to generalize a dead oil viscosity model along with the API and temperature as an input for that model. However, this new model is easy to use, provides fair accuracy and precision over a wide range of heavy oil gravities, and could be used to predict better outcomes in future works.