Summary
Drilling fluids are subject to substantial variations in pressure and temperature while they are circulated in a well. These changes are so great that the mass density of the drilling fluid varies significantly during circulation. Accurate estimation of the hydrostatic and hydrodynamic pressures therefore requires a reliable model of the pressure and temperature dependence of the mass density of the drilling fluid. Usually, the mass density of a drilling fluid is measured manually with a mud balance. The pressure and temperature dependence of the mass density of the fluid [i.e., its pressure, volume, and temperature (PVT) behavior] is then calculated from a PVT model of its components and their relative proportions. However, variations in the composition of the fluid mix and uncertainties in the PVT behavior of each component may lead to inaccuracies. To overcome these limitations, an apparatus has been designed to measure the PVT behavior of the drilling fluid directly and automatically. The setup measures both the mass density and the speed of sound of the fluid at specific conditions of pressure and temperature. It is possible to estimate the adiabatic compressibility from the speed of sound in the liquid mix. The device utilizes a heat exchanger from which the specific heat capacity of the drilling fluid can be derived. The isothermal compressibility can be calculated by combining the specific heat capacity and the adiabatic compressibility. While estimating the specific heat capacity using the heat exchanger, the thermal conductivity of the fluid is also estimated as a byproduct. A PVT model of the drilling fluid is obtained by combining measurements made at different conditions of pressure and temperature. The automatic and continuous provision of drilling fluid PVT behavior enhances the precision of model predictive drilling control systems and, at the same time, can simplify their configuration, therefore making them more accessible to any drilling operation.
Introduction
Drilling fluid mass density is essential for the calculation of the hydrostatic pressure in a borehole. It is also an important parameter in viscous friction calculations because it appears in the Navier-Stokes equation and in buoyancy calculations when performing torque and drag or drillstring dynamic analysis. During drilling operations, the drilling fluid mass density is usually measured with a mud balance at regular intervals. The precision of the mud balance measurements is about ±10 kg/m3. Furthermore, drilling fluids are subject to a wide range of pressures and temperatures, and therefore the drilling fluid mass density cannot be assumed to be constant for the range of depths of normal oilfield wells. Isambourg et al. (1996) found that the pressure and temperature dependence of drilling fluids can be described by a biquadratic function in the temperature range of 20–200°C and a range of pressure between 1 and 1400 bar. The biquadratic model proposed by Isambourg has since been used in a more recent study (Hermoso et al. 2017). Based on multiple published density measurements made on various fluids (Zamora et al. 2000, 2012; McMordie et al. 1982; Peters et al. 1990; Hemphill and Isambourg 2005; Demirdal and Cunha 2007, 2009; Demirdal et al. 2007; Hussein and Amin 2010), it has been found that the PVT model can be reduced to a linear function of temperature combined with a quadratic form of pressure without losing much of its accuracy and which is the model published in API RP 13D (2017):
where is the mass density, is the temperature, is the pressure, and , , , , , and are the parameters of the PVT model. The accuracy of the model described by Eq. 1 is about 0.35% on average with a standard deviation of 0.23% for a temperature range from 3 to 260°C and pressures from 1 to 2000 bar, based on measurements of 26 different fluids.
Calibrating Eq. 1 for a particular drilling fluid requires access to a high-pressure and -temperature densitometer, which is not routinely available at the rigsite, except, perhaps, during drilling operations in high-pressure, high-temperature conditions. The alternative is to estimate the parameters of the PVT model by combining the PVT behavior of each component of the drilling fluid. Because a drilling fluid is a mixture of solids and liquids, its mass density is simply the volumetric weighted average of all the components:
where is the drilling fluid mass density, is the set of indices for the different components, is the volume fraction of the ith component, and is its corresponding mass density.
The PVT behavior of several aqueous solutions of NaCl, NaBr, KCl, KBr, CaCl2, CaBr2, ZnCl2, and ZnBr2 has been described by Kemp et al. (1989). Their model is relatively complex and does not reduce to Eq. 1. For that reason, Eq. 1 has been expanded to account for the concentration of salt by replacing the parameter with a cubic form of the weight of salt:
where is the mass density of the brine and is the weight fraction of the salt at the normal condition of temperature and pressure (atmospheric pressure and 297 K). , , , , , , , , and are the coefficients of the model as published in API RP 13D (2017).
The PVT behavior of base oils can also be described by Eq. 1. Zamora et al. (2013) presented parameters for several base oils and some brines. Moreover, the solid components have coefficients of thermal expansion and compressibility (Isambourg et al. 1996) which should be accounted for. Knowing the PVT characteristics of each component, it is possible to estimate the mass density of the fluid mixture with Eq. 2. However, as the various components have different compressibilities and thermal expansion characteristics, the volumetric fraction of each component changes with pressure and temperature. A method to calculate changes in volume fractions with pressure and temperature is described by Cayeux et al. (2014).
In practice, the downhole drilling fluid density will also be influenced by the presence of cuttings, dissolution of formation solids, absorption of formation fluids in the liquid phase, and barite sagging. These additional considerations are not addressed in this paper because the objective is to propose an alternative system of surface measurement to those which are, themselves, subject to the same limitations.
However, the problem remains that the composition of the drilling fluid changes continuously throughout a drilling operation, either because of the actions taken by the fluid engineer to maintain the quality of the drilling fluid or because formation fluids and solids are entrained during circulation. Even more problematically, it is often not easy to get an accurate description of the component quantities of the drilling fluid. Cayeux (2020) illustrated the impact of this lack of information on the estimated hydrostatic pressure. For instance, if the drilling fluid density is known at atmospheric pressure and 50°C (e.g., 1700 kg/m3) and nothing else, the 95 percentile estimate of the hydrostatic pressure at 3500 mTVD (true vertical depth), lies between −5 and +7 bar (Fig. 1a). However, for an oil-based fluid (OBM) with a 70/30 oil/water ratio (OWR), the 95 percentile at 3500 mTVD reduces to −2.5 and +3 bar (Fig. 1b). Knowing the fluid density for a water-based drilling fluid (WBM) at three different temperatures under atmospheric conditions will reduce the confidence interval, but only to −4 to 5.5 bar (Fig. 1c).
(a) Impact of an unspecified drilling fluid of mass density 1700 kg/m3 on the estimated hydrostatic pressure. (b) Hydrostatic pressure variations based on the additional knowledge that the fluid is an OBM with an OWR of 70/30. (c) Impact on hydrostatic pressure estimates for a WBM with mass density measurements at three different temperatures under atmospheric conditions (Cayeux 2020).
(a) Impact of an unspecified drilling fluid of mass density 1700 kg/m3 on the estimated hydrostatic pressure. (b) Hydrostatic pressure variations based on the additional knowledge that the fluid is an OBM with an OWR of 70/30. (c) Impact on hydrostatic pressure estimates for a WBM with mass density measurements at three different temperatures under atmospheric conditions (Cayeux 2020).
Having to rely on manual measurements and assumptions about the drilling fluid formulation presents difficulties when trying to automate the drilling process. Therefore, it would be a considerable advantage if the drilling fluid mass density could be measured in real time. Although such information is available on some rigs, it would be even better to obtain a full description of the drilling fluid PVT characteristics directly from inline measurements. Therefore, the goal of the present work is to establish whether it is possible to design an inline apparatus capable of measuring the PVT behavior of a drilling fluid with acceptable precision (for example, to ±5%) over a wide range of pressures and temperatures, typically 10–200°C and from 1 to 2000 bar.
Inline PVT Measurement
Because Eq. 1 has six parameters, it is necessary to have at least six measurements made under different conditions of pressure and temperature. An obvious approach would be to measure the mass density of the fluid under six different pairs of pressure and temperature; consequently, from Eq. 1, the following set of simultaneous equations can be written:
where , , , , , and are the measured mass densities at the respective conditions of pressure and temperatures , , , , , and . This system of equations is linear in , , , , , and and can be easily solved using a Gauss-Jordan method, for instance (Teukolsky et al. 1992).
It is desirable to avoid operating at high pressures and temperatures to keep the design of the apparatus as simple as possible. Considering that the model of Eq. 1 has an average accuracy of about 0.35% over a range of temperatures spanning more than 250°C and a range of pressures up to 2000 bar, it is possible to calibrate the parameters with measurements made on a smaller range of pressures and temperatures. However, the accuracy of the calibrated model will depend on the accuracy of measurements and the range of pressures and temperatures over which they are taken. Fig. 2 illustrates how measurement uncertainty and the associated range of measurements influence the uncertainty of the extrapolated value when utilizing a model of known precision. In this illustration, the model is calibrated using randomly chosen values of the measurements within their accuracy range to provide a stochastic description of the envelope of model predictions outside the measurement range. The precision of the measurements limits the acceptable extrapolation range, and a narrow measurement range results in increasing uncertainties the greater the extrapolation.
Illustration of the impact of measurement accuracy and domain span on the uncertainty of the extrapolated value.
Illustration of the impact of measurement accuracy and domain span on the uncertainty of the extrapolated value.
Accounting for model accuracy and measurement precision and repeatability, it is useful to establish a calibration range of pressures and temperatures for the sample measurements that will permit extrapolation of the model to higher pressures and temperatures with acceptable accuracy. If the densitometer has a measurement precision of 0.05 kg/m3 and repeatability of 0.01 kg/m3, based, for example, on an Anton Paar L-dens 7500 inline densitometer, stochastic simulations can be run to quantify the measurement error for a suitable calibration range of pressures and temperatures. Measurement precision is regarded as a source of systematic error (i.e., one randomly drawn value is applied to all measurements), while measurement repeatability is considered as a random error drawn individually for each measurement. For example, if the PVT model is to be used over a range of 1000 bar and 200°C, the root mean square (RMS) of the difference between the predicted density and the “true” value can be calculated with random variations in the systematic bias of the density measurement when the calibration samples lie within a small range of pressure and temperature. The results of 250 stochastic simulations presented in Fig. 3 show that to achieve a 5% average accuracy for the entire range of 1000 bar and 200°C, it is necessary to use a calibration range of at least 30 bar and 25°C.
RMS value of an extrapolated PVT model for a range of pressures spanning 1000 bar and a range of temperatures of 200°C, when the calibration measurements are taken within a range of temperatures given on the x-axis and a range of pressures given in the y-axis. The results are based on a densitometer having a measurement accuracy of 0.05 kg/m3 and 250 stochastic simulations.
RMS value of an extrapolated PVT model for a range of pressures spanning 1000 bar and a range of temperatures of 200°C, when the calibration measurements are taken within a range of temperatures given on the x-axis and a range of pressures given in the y-axis. The results are based on a densitometer having a measurement accuracy of 0.05 kg/m3 and 250 stochastic simulations.
A possible design for an inline apparatus could involve pumping the drilling fluid past a controllable heating element with a controllable choke downstream of a densitometer applying backpressure while measuring the mass density (Fig. 4). The set points for the heating element and the choke could be changed six times to collect the necessary mass densities to calibrate the PVT model of Eq. 1. However, in practice, the measurement sequence would take too long because changing the heating element temperature would require time to equilibrate. Gathering a complete set of calibration measurements might easily take 15–30 minutes. In practice, with a typical annular velocity of 0.8 m/s, if PVT measurements are available every 30 minutes, then the same measured values would apply for an annular fluid column of about 1400 m in length. In a typical deep well, it might mean only four or five PVT measurements in the entire annulus. This would affect the resolution of the bottomhole pressure estimate, especially if the device had measured a momentarily heavy or light sample from the mud system. Conversely, if the PVT measurements are available every 30–60 seconds, with typical annular velocities around 0.8–1 m/s, the same PVT measurement will apply for about 30 m (i.e., one stand), which is a reasonable discretization length for hydraulic calculations. So, the aim of the inline PVT measurement device should be to provide measurements at most every minute.
Possible design of a PVT inline setup where various temperature and pressure conditions can be applied to a drilling fluid to collect at least six measurements of mass density under variable conditions of pressures and temperatures.
Possible design of a PVT inline setup where various temperature and pressure conditions can be applied to a drilling fluid to collect at least six measurements of mass density under variable conditions of pressures and temperatures.
To speed up measurements, an alternative would be to perform six measurements simultaneously. Fig. 5 shows a configuration where the densitometers are mounted in series. The configuration would consist of six parallel branches or any combination of series and parallel branches. Fig. 6 depicts two parallel branches where, in one branch, the temperature of the fluid remains constant, while in the second, it is changed. For each of the branches, backpressure is applied at two intermediate positions. This configuration has the advantage of fewer chokes and pressure sensors, four instead of five.
Simultaneous measurements of mass density under six conditions of pressures and temperatures. Here, the densitometers are configured in series.
Simultaneous measurements of mass density under six conditions of pressures and temperatures. Here, the densitometers are configured in series.
Simultaneous measurements of mass density under six conditions of pressures and temperatures. Here, in a combined parallel and series configuration.
Simultaneous measurements of mass density under six conditions of pressures and temperatures. Here, in a combined parallel and series configuration.
With simultaneous measurements of mass density, it is possible to provide in real time a complete, calibrated, PVT model. Yet, the circuitry is complex, involving four or five chokes. Therefore, it would be worthwhile to investigate whether the hydraulic circuit could be further simplified.
Reducing the Number of Pressure and Temperature Conditions
The pressure and temperature dependence of drilling fluid densities is related to the fluid compressibility and its thermal dilatation. Therefore, if it is possible to directly measure the fluid compressibility, it would be possible to simplify the setup and reduce the number of pressure and temperature conditions required for the solution. The isothermal compressibility () of a fluid is defined as follows (Landau and Lifshitz 1980):
where is the volume that is related to the mass density through
where is the mass of matter contained in the volume . It is possible to express the isothermal compressibility of the fluid in terms of the PVT model described in Eq. 1:
Let us now consider the definition of the speed of sound () in matter:
where is the entropy. Then, the isentropic compressibility is defined as follows:
and it is possible to express a relation between the isentropic compressibility to the speed of sound in the medium:
Finally, the isentropic compressibility is related to the isothermal compressibility through the following relation (Landau and Lifshitz 1980):
where is the volumetric coefficient of thermal expansion and is the isobaric specific heat capacity. It is possible to express the volumetric coefficient of thermal expansion in terms of the PVT model described in Eq. 1:
Thus, if the mass density and the speed of sound are measured at the same time, six equations can be obtained with only three combinations of pressure and temperature:
where , , and are the respective speeds of sound for the conditions of pressure and temperature , , and , , , and are the estimated isothermal compressibility coefficients at the respective conditions of pressure and temperature , , and , and , , and are the estimated volumetric coefficients of thermal expansion at the respective conditions of pressure and temperature , , .
The resulting system of equations is nonlinear. To solve that system of equations, Eq. 13 is reformulated:
where , with , , , , , . The matrix is as follows:
the matrix is
the matrix is
the matrix is
and
Eq. 14 can then be rearranged as follows:
Noting that , , and are expressed as a function of , Eq. 19 has the form , which can be solved efficiently by a fixed-point iteration method:
where denotes the iteration level. The algorithm stops when , being a small real value.
Because the term in Eq. 11 is much smaller than , it is therefore possible to use
as an initial value for the fixed-point iteration method. In practice, the solution of Eq. 13 with the fixed-point iteration method does not require more than a half dozen iterations to achieve a stopping condition of .
Suppose the speed of sound can be measured with an uncertainty of 0.1 m/s and repeatability of 0.01 m/s, based, for example, on the characteristics of an inline combined densitometer and speed-of-sound sensor model L-Com 5500 from Anton Paar, then it is possible to proceed as before and estimate the range of pressures and temperatures required to obtain a predictability of the mass density over a range of 1000 bar and 200°C. The results in Fig. 7 show that it is possible to achieve a precision better than 5% on average over the whole range of pressure and temperature of 1000 bar and 200°C, with three calibration measurements over a range of 60 bar and 5°C.
RMS value of an extrapolated PVT model for a range of pressures spanning 1000 bar and a range of temperatures of 200°C, when the calibration measurements are taken within a range of temperatures given on the x-axis and a range of pressures given in the y-axis. The results are based on a densitometer having a measurement accuracy of 0.05 kg/m3, a measurement of the speed of sound with an accuracy of 0.1 m/s, and 250 stochastic simulations.
RMS value of an extrapolated PVT model for a range of pressures spanning 1000 bar and a range of temperatures of 200°C, when the calibration measurements are taken within a range of temperatures given on the x-axis and a range of pressures given in the y-axis. The results are based on a densitometer having a measurement accuracy of 0.05 kg/m3, a measurement of the speed of sound with an accuracy of 0.1 m/s, and 250 stochastic simulations.
This result shows that it is possible to reduce the number of pressure and temperature conditions to three by measuring the speed of sound in the drilling fluid in addition to the mass density. However, this reduction in the number of pressure and temperature conditions depends on knowing the specific heat of the drilling fluid, which is often not the case. In the next section, the influence of the fluid specific heat capacity on the heat transfer along an insulated pipe will be analyzed.
Heat Transfer along an Insulated Pipe after Passing a Heat Source
The definition of specific heat is (Landau and Lifshitz 1980) as follows:
where is the amount of heat (i.e., it characterizes the amount of energy necessary to change the temperature of a given mass of matter).
The specific heat capacity of the drilling fluid can be obtained using a hydraulic circuit consisting of a pump, a volumetric flow-rate measurement, and an insulated pipe in which a drilling fluid is circulated with a heating element upstream of the pipe (Fig. 8).
Schematic view of a hydraulic circuit where drilling fluid flows inside a pipe that is thermally insulated and where there is a heat source that is positioned upstream of the pipe.
Schematic view of a hydraulic circuit where drilling fluid flows inside a pipe that is thermally insulated and where there is a heat source that is positioned upstream of the pipe.
Consider the energy conservation of a system under isobaric conditions (Corre et al. 1984):
where is the enthalpy per unit mass, is the forced-convective heat flow, is the conductive and natural convective heat flow, and is a heat source per unit time and per unit length.
For an isotropic solid, like steel or an insulating material, the pure conductive heat flow is expressed as follows:
where is the thermal conductivity.
The Nusselt number in the heat flow direction () is introduced to estimate the natural convective heat flow in a drilling fluid:
where is the convective heat transfer coefficient in the heat flow direction, is the characteristic length, is the heat flux (i.e., thermal power per unit area), and is the temperature difference. For laminar flow, Corre et al. (1984) use the following expression of the Nusselt number (Corre et al. 1984):
where , is the volumetric flow rate, is the specific heat capacity of the drilling fluid, is the thermal conductivity of the drilling fluid, and is defined as follows:
Furthermore, the convective wall heat flux in laminar flow conditions () is then (Barletta 1996)
where is the internal pipe radius, is the wall temperature, and is the drilling fluid temperature.
The enthalpy of a thermodynamic system is the sum of its internal energy and the work required to achieve its pressure and volume:
In differential form, Eq. 29 can then be expressed as [see Landau and Lifshitz (1980) for a demonstration]:
Assuming that the pressure drop along the pipe length of Fig. 8 is negligible, then , so the energy balance of the drilling fluid contained in the pipe can be expressed as:
where is the drilling fluid temperature, s is the curvilinear abscissa, and is the temperature of the wall inside the pipe. The characteristic length of the Nusselt number is the internal pipe diameter (i.e., ). The hydraulic work arising from viscous pressure losses is
The energy balance for the pipe and the insulation material is defined in a cylindrical coordinate system as
where , , and are, respectively, the mass density, specific heat capacity, and thermal conductivity of the solid material of either the pipe or the insulation material, and is the generated heat per unit time and unit length of the heating element. Considering the axial symmetry of the system, the term is necessarily equal to zero.
In steady-state conditions, without heat generation and in pure axial conduction, Eq. 33 can be written as follows:
After integration over a cylindrical area between and , the axial heat flux per unit length () is derived:
The axial heat flux over an axial distance can be estimated:
where is the axial difference of temperature.
Similarly, in steady-state conditions without heat generation and in pure radial conduction, Eq. 33 can be written as follows:
After integration over a shell of radius and length , the radial heat flux per unit radial distance () is as follows:
And therefore, the radial heat flux between and is
where is the radial temperature difference.
Analysis of the heat transfer along an insulated pipe after the fluid has passed a heat source shows that the temperature along the pipe depends not only on the specific heat capacity but also the thermal conductivity of the fluid.
Experimental Setup for Determining and
Attaching temperature sensors to the outside of the pipe in Fig. 8 enables the radial heat flux to be measured while circulating fluid in the system. This proposition was verified by constructing a flow loop similar to that shown in Fig. 8. Fig. 9 shows a schematic view of the experimental setup. A 10-L tank is equipped with an agitator and copper coil through which tap water is circulated. The flow rate is controlled so that the temperature in the tank remains constant.
Schematic representation of the experimental setup used to study the heat transfer along an insulated pipe.
Schematic representation of the experimental setup used to study the heat transfer along an insulated pipe.
A progressive cavity pump injects the fluid into the insulated instrumented pipe section. The pump is equipped with an encoder to measure the pump speed, and because there is very little pressure loss in the flow loop, the flow rate is directly proportional to the pump speed. The conversion factor from pump speed to volumetric flow rate has been calibrated by measuring the time to pump a known volume of fluid. The insulated pipe section comprises a 2-m length of 20-mm-diameter stainless-steel tube. Close to the inlet is a cylindrical aluminum block 200 mm in length and 100 mm in diameter heated by four resistors. A temperature sensor (TT1) is placed inside the aluminum block, and a controller regulates the electrical current to the heating resistor to regulate the temperature of the aluminum to a given set point. The remaining temperature sensors are placed 250 mm apart, and the insulation material is 30 mm thick.
Fig. 10 shows what happens when the heating element is turned on at 550 seconds, and then just after 3,100 seconds, when the flow rate is decreased from 0.451 to 0.096 L/min. The first temperature sensor downstream of the heating element (TT2 in Fig. 10) is positioned 100 mm above the top of the heating element and therefore is dominated by the heat conducted through the pipe with minimal influence from the circulating fluid. Because the mass density is known, temperature measurements at two different fluid velocities allow the specific heat capacity and the thermal conductivity of the drilling fluid (Fig. 11) to be derived from the heat transfer model described by Eqs. 31 and 33.
In this experimental setup, there are 10 temperature sensors. The heating element is set to 50°C while circulating at 0.45 L/min at time 550 seconds. The flow rate is reduced to 0.1 L/min at time 3,100 seconds while the heating element is maintained at a constant temperature.
In this experimental setup, there are 10 temperature sensors. The heating element is set to 50°C while circulating at 0.45 L/min at time 550 seconds. The flow rate is reduced to 0.1 L/min at time 3,100 seconds while the heating element is maintained at a constant temperature.
Measured temperature above the top of the heating element for a flow rate of 0.45 and 0.10 L/min.
Measured temperature above the top of the heating element for a flow rate of 0.45 and 0.10 L/min.
Overall Experimental Design
The measurement of radial heat flux along a pipe under varying flow conditions, shown in Fig. 12, with three stages of pressure and temperature permits the determination of the PVT properties of the fluid, as follows:
Ambient pressure and temperature conditions at the inlet
Increasing the temperature by 5–10°C at a pressure in the region of 50–60 bar
Increasing the temperature by a further 5–10°C with a pressure in the region of 25–30 bar
Schematic representation of a setup that is capable of measuring the PVT behavior of a drilling fluid, its specific heat capacity, and thermal conductivity.
Schematic representation of a setup that is capable of measuring the PVT behavior of a drilling fluid, its specific heat capacity, and thermal conductivity.
The volumetric flow rate and mass density at the inlet are measured with a Coriolis flowmeter. A speed-of-sound sensor is installed upstream of the inlet of the progressive cavity pump. In the second stage, a heating element downstream of the pump increases the fluid temperature by 5–10°C. A stainless-steel pipe is mounted on a thermal insulator downstream from the heating element. A differential pressure sensor measures the pressure losses along the pipe. The temperature distribution along a pipe is measured by at least four temperature sensors after which the mass density and speed of sound are again measured with a Coriolis flowmeter. The pressure in this second stage is controlled by a choke downstream of the flowmeter. The third stage consists of a pipe of a different diameter from the first, designed to create flow conditions that differ from those in the previous stage. A similar heating element further increases the temperature. The pipe is thermally insulated from the heating element and, again, at least four temperature sensors are placed along the pipe to measure the temperature distribution as well as a differential pressure transducer. Another combined sensor measures the mass density and the speed of sound under the third set of conditions. The pressure in this third stage is controlled by a choke at the outlet.
The heat transfer (Eq. 31) depends on , , and the Nusselt number , which in turn depends on , . The solution of Eq. 31 gives the temperature evolution of the system. Because the fluid’s mass density is measured, it remains to determine and . These parameters are obtained by solving the minimization problem:
where and are, respectively, the measured and estimated temperatures at different positions along the pipe. If Eq. 31 is divided by , then the equation depends on a term proportional to and . Because the second term is small compared with the first, the temperature along the pipe is mostly influenced by the ratio of and . Because it is desired to explicitly determine the specific heat capacity of the fluid, it is necessary to create conditions that yield both the specific heat capacity and the thermal conductivity. Two dissimilar pipe sizes will result in different fluid velocities, allowing the term to elicit this difference.
Theoretical Model of Experimental Setup for Determining Cp and
To extract values of Cp and λ from the setup shown in Fig. 12, the system is discretized as shown in Fig. 13 in axial elements of length (indexed by ) and in radial elements of radial distance (indexed by ). Similarly, time may be discretized in time steps of duration (indexed by ).
Eq. 31 governs the heat transfer in the drilling fluid and in the air (outside of the system). For air, there are no heat sources, and there is no forced circulation; therefore, the energy balance at the external wall of the setup reduces to
where is the mass density of air, is the specific heat capacity of air, is the external radius, is the air convective heat transfer coefficient, and is the air temperature.
For the drilling fluid, heat generation arises from viscous pressure drops. Eq. 32 is used to estimate the heat generation caused by the passage of the fluid through the chokes. The energy balance at the internal wall of the pipe is
where is the internal radius of the pipe, is the temperature of the fluid at axial position i, and is the viscous pressure drop at axial position i. Note that and also depend on the axial position.
For any other values of , the energy conservation is based on Eq. 33:
where means the average radius between and and is the heat generation at axial position i, if any.
After regrouping all the terms indexed on one side and the terms indexd on the other, a system of linear equations is obtained. It can be solved for all , for example, using a Gauss-Jordan method:
where is a pentagonal matrix in which coefficients depend on the current boundary conditions and values estimated at the previous timestep , is a vector of unknown temperature at timestep , and is a vector of coefficients that depend only on the current boundary conditions and values estimated at the previous timestep . The boundary conditions are the air temperature, the temperature of the pipe and the drilling fluid at the inlet, the volumetric flow rate at the inlet, the drilling fluid mass density in in-situ conditions, the specific heat capacity and the thermal conductivity of the drilling fluid, and the heat generated by the heating elements. In practice, a Crank-Nicolson scheme is used to improve the stability of the numerical resolution (Crank and Nicolson 1947). It is then possible to calculate, as a function of time, the temperature anywhere in the system and on the external side of the pipe.
Initial values of and are unknown and therefore must be estimated. Because temperatures are measured along the pipes, and can be estimated by solving Eq. 40.
Setting , the sum of squared temperature differences, and defining , the vector of model parameters. is a minimum when
Linearizing the solution vector from one iteration to another:
where is the iteration number. Then the first order approximation of is
where are the members of the Jacobian matrix . Then, a first-order approximation of is
where is the temperature difference for sensor at iteration . Substituting in Eq. 45, here is the resulting equation:
which can be rewritten as follows:
which is a system of linear equations that can be solved for resulting in a new value of for the next iteration. The procedure stops when , where is small and , which is a normalized version of the solution vector with and being chosen such that and are of the same order of magnitude for normal expected values of and . When convergence is achieved, acceptable estimates of and have been found. The Jacobian terms are estimated using a central difference approximation:
The initial values for are chosen from standard values for water/brines and base oils mixed with a quantity of barite that is necessary to obtain the current fluid mass density. Equations for determining the necessary amount of barite for a given mass density can be found in Cayeux (2020), and equations for estimating the specific heat capacity and thermal conductivity of a mix with solids can be found in Cayeux et al. (2014).
Having obtained values of Cp and λ, the parameters A, B, C, D, E, and F of the API PVT model can be calculated from Eq. 14.
Originally, only the specific heat capacity of the fluid () had to be determined to enable conversion of the isentropic to isothermal compressibility (Eq. 11). However, by designing a setup based on temperature measurements at different positions along a pipe downstream of a heat source, it was found that these temperatures depended not only on but also on the fluid thermal conductivity (). While the determination of is a necessary step in establishing the value of as a byproduct, it is a valuable input to additional downhole heat transfer calculations.
Discussion
An inline PVT measurement sensor for drilling fluids has been described. It reduces the number of pressure and temperature conditions required to predict the fluid densities by measuring the speed of sound in the medium. However, to obtain the isothermal compressibility of a drilling fluid, it is also necessary to measure its specific heat. Therefore, the initial design of the apparatus was modified to incorporate the measurement of temperatures along a pipe after applying a step change in temperature to the fluid. However, it has been found that the specific heat could not be determined without also finding another thermo-physical property of the fluid, namely, its thermal conductivity. An experimental setup was constructed to obtain these values, but, so far, the experiments have only been conducted with aqueous solutions of sodium chloride, potassium chloride brines, and methanol. After the initial experiments, it was found the design had to be modified based on the lessons learned from the first series of tests. It remains to be seen whether the new design based on constant flow rates with two pipe diameters provides the necessary measurement precision to calibrate the specific heat and thermal conductivity of the drilling fluid. In addition, the setup must be tested with both WBM and OBM. The precision of the apparatus over the wide range of pressures and temperatures depends on the availability of high-precision process industry densitometers and speed-of-sound sensors. Drilling fluids are notoriously difficult to analyze because of their high solids content. There is a risk of a deterioration in the accuracy of the sensors because of surface erosion of their internal pipes. This possibility will have to be tested in an experimental setup over extended periods to determine changes in accuracy against independent laboratory PVT measurements.
Future Work
The proposed design can provide the complete PVT behavior of the drilling fluid as well as its specific heat capacity and thermal conductivity continuously, in real time and without delay. The next step is to build a laboratory prototype of the proposed design to verify the working principle. The measured values will be compared with laboratory measurements of mass density made over a wide range of pressures and temperatures, as well as laboratory measurements of specific heat capacity and thermal conductivity. If the results are satisfactory then, after further refinement of the design, consideration will be given to the development of a system that can be used for field trials at the rigsite.
Conclusions
Knowledge of the PVT behavior of a drilling fluid is important for estimating downhole pressures during drilling operations. As the drilling fluid composition changes, it is difficult to define PVT behavior accurately based on sporadic mass density measurements made under ambient conditions at the surface.
A PVT model for a drilling fluid can be calibrated using a set of six pressure and temperature measurements. Calibration measurements made at low values of pressure and temperature can be reliably extrapolated to those to which the fluid is exposed when being circulated in the borehole, so long as the precision of the mass density measurement is in the order of 0.05 kg/m3. However, a setup capable of measuring mass density under six different pressure and temperature conditions either would produce the PVT model parameters with substantial time delay if only one set of sensors is used or would require a relatively complex hydraulic setup to acquire the six sets of measurements simultaneously.
It has been shown that the number of pressure and temperature conditions can be reduced to three if the speed of sound in the drilling fluid is measured at the same time as the mass density. However, this method requires knowledge of the specific heat capacity of the drilling fluid. A method involving the addition of extra temperature sensors to the apparatus has been described. The additional temperature measurements are used to estimate the specific heat capacity of the fluid. The thermal conductivity of the fluid is also obtained as a valuable byproduct of the analytic procedure.
The outcome of this work is an inline setup that provides the PVT behavior of the drilling fluid as well as its specific heat capacity and thermal conductivity continuously and without delay. The latter two parameters are, of themselves, very important for heat transfer calculations in real-time model-predictive-control drilling automation applications.
Nomenclature
- A
6×6 matrix
parameter of the drilling fluid PVT model, ML−3, kg/m3
parameter of the oil-phase PVT model, ML−3, kg/m3
- B
6×6 matrix
parameter of the drilling fluid PVT model, ML−3ϑ−1, kg/(m3K)
parameter of the drilling fluid PVT model, ML−3ϑ−2, kg/(m3K2)
parameter of the oil-phase PVT model, ML−3ϑ−1, kg/(m3K)
parameter of the brine-phase PVT model, ML−3ϑ−1, kg/(m3K)
speed of sound, LT−1, m/s
speed of sound at conditions of pressure and temperature , LT−1, m/s
speed of sound at conditions of pressure and temperature , LT−1, m/s
speed of sound at conditions of pressure and temperature , LT−1, m/s
- C
6×6 matrix
parameter of the drilling fluid PVT model, L−2T−2, kg/(m3Pa)
parameter of the oil-phase PVT model, L−2T−2, kg/(m3Pa)
isobaric specific heat capacity, L2T−2−1, J/(kg·K)
specific heat capacity of air, L2T−2−1, J/(kg·K)
specific heat capacity of the drilling fluid, L2T−2−1, J/(kg·K)
specific heat capacity of a solid material, L2T−2−1, J/(kg·K)
parameter of the brine-phase PVT model, L−2T−2, kg/(m3Pa)
- D
6×6 matrix
parameter of the drilling fluid PVT model, L−2T−2ϑ−1, kg/(m3PaK)
parameter of the drilling fluid PVT model, L−2T−2ϑ−2, kg/(m3PaK2)
parameter of the oil-phase PVT model, L−2T−2ϑ−1, kg/(m3PaK)
parameter of the brine-phase PVT model, L−2T−2ϑ−1, kg/(m3PaK)
- E
6×1 matrix
parameter of the drilling fluid PVT model, L−1M−1T−4, kg/(m3Pa2)
parameter of the oil-phase PVT model, L−1M−1T−4, kg/(m3Pa2)
parameter of the brine-phase PVT model, L−1M−1T−4, kg/(m3Pa2)
volume fraction of the th component of the drilling fluid, dimensionless
sum of the square temperature differences, ϑ2, K2
parameter of the drilling fluid PVT model, L−1M−1T−4ϑ−1, kg/(m3Pa2K)
parameter of the drilling fluid PVT model, L−1M−1T−4ϑ−2, kg/(m3Pa2K2)
parameter of the oil-phase PVT model, L−1M−1T−4ϑ−1, kg/(m3Pa2K)
parameter of the brine-phase PVT model, L−1M−1T−4ϑ−1, kg/(m3Pa2K)
convective heat transfer coefficient, MT−3ϑ−1, W/(m2K)
convective heat transfer coefficient, MT−3ϑ−1, W/(m2K)
enthalpy per unit mass, L2T−2, J/kg
- J
nT×2 Jacobian matrix
length [L](m)
characteristic length, L, m
mass of drilling fluid contained in volume , M, kg
number of axial elements
Nusselt number, dimensionless
absolute pressure, ML−1T−2, Pa
- P
na·nr×na·nr matrix, ML2T–3ϑ–1,W/K
heat flux, MT−3, W/m2
axial heat flux per unit length, MLT−3, W/m
radial heat flux per unit radial length, MLT–3, W/m
heat source per unit time and per unit length, MLT−3, W/m
heat source per unit time and per unit length generated by the heating element, MLT−3, W/m
heat source per unit time and per unit length generated by pressure loss, MLT−3, W/m
convective wall heat flux in laminar conditions, MT−3, W/m2
amount of heat, ML2T−2, J
axial heat flux over a length , ML2T−3, W
conductive and natural convective heat flow, ML2T−3, W
forced convective heat flow, ML2T−3, W
radial heat flux between and , ML2T−3, W
volumetric flow rate, L3T−1, m3/s
radial distance, L, m
difference of measured and estimated temperature at position , , K
- R
na·nr vector, ML2T–3, W
radial distance in a solid, L, m
radial distance in a solid, L, m
internal pipe radius, L, m
curvilinear abscissa, L, m
entropy, ML2T−2 ϑ−1, J/K
parameter of the brine density model, ML−3, kg/m3
parameter of the brine density model, ML−3, kg/m3
parameter of the brine density model, ML−3, kg/m3
parameter of the brine density model, ML−3, kg/m3
temperature, , K
air temperature, , K
temperature at the internal wall of the pipe, , K
measured temperature, , K
estimated temperature, , K
temperature of the drilling fluid, , K
drilling fluid temperature at axial position , , K
internal pipe wall temperature, , K
fluid velocity, LT−1, m/s
weight fraction of a salt, dimensionless
- x
6×1 matrix
- X1
6×6 matrix
- X2
6×6 matrix
- X3
6×6 matrix
volumetric coefficient of thermal expansion, ϑ−1, K−1
volumetric coefficient of thermal expansion at conditions of pressure and temperature , ϑ−1, K−1
volumetric coefficient of thermal expansion at conditions of pressure and temperature , ϑ−1, K−1
volumetric coefficient of thermal expansion at conditions of pressure and temperature , ϑ−1, K−1
vector of the calibration parameters and
vector of the normalized calibration parameters and
viscous pressure drop at axial position , ML−1T−2, Pa
length of a radial element, L, m
length of an axial element, L, m
duration of a timestep, T, seconds
axial temperature difference, ϑ, K
difference between the -temperature measurement and its corresponding estimated value at iteration , ϑ, K
radial temperature difference, ϑ, K
small number, dimensionless
isothermal compressibility coefficient at conditions of pressure and temperature , M−1LT2, Pa−1
isothermal compressibility coefficient at conditions of pressure and temperature , M−1LT2, Pa−1
isothermal compressibility coefficient at conditions of pressure and temperature , M−1LT2, Pa−1
isentropic compressibility, M−1LT2, Pa−1
isothermal compressibility coefficient, M−1LT2, Pa−1
thermal conductivity, MLT−3ϑ−1, W/(m·K)
thermal conductivity of the drilling fluid, MLT−3ϑ−1, W/(m·K)
thermal conductivity of a solid material, MLT−3ϑ−1, W/(m·K)
iteration number in the calibration procedure for and
mass density of air, ML−3, kg/m3
mass density of the component of the drilling fluid, ML−3, kg/m3
mass density of a drilling fluid, ML−3, kg/m3
mass density measurement at conditions of pressure and temperature , ML−3, kg/m3
mass density measurement at conditions of pressure and temperature , ML−3, kg/m3
mass density measurement at conditions of pressure and temperature , ML−3, kg/m3
mass density measurement at conditions of pressure and temperature , ML−3, kg/m3
mass density measurement at conditions of pressure and temperature , ML−3, kg/m3
mass density measurement at conditions of pressure and temperature , ML−3, kg/m3
mass density of a solid material, ML−3, kg/m3
mass density of a brine, ML−3, kg/m3
a set of indices for the components of the drilling fluid
Acknowledgments
Finally, I would like to extend a special thanks to John Thorogood for very fruitful discussions and valuable inputs during the preparation of this manuscript.
Article History
This paper (SPE 204084) was accepted for presentation at the SPE/IADC International Drilling Conference and Exhibition, Virtual, 8–12 March 2021, and revised for publication. Original manuscript received for review 25 April 2022. Revised manuscript received for review 20 June 2022. Paper peer approved 13 July 2022.