NUCLEAR DENSOMETERS

Abstract: A system for quickly indicating changes in density of a flow of material (13) using a radioactive source (14) and detec­ tor (15) where the count rate indicative of density is processed for sensing significant changes in the density in the flow of material as distinguished from random changes and for pro­ ducing an indication of such changes. In one aspect of the invention, a time filter is utilized with an RC circuit and diodes to require a count rate indicative of a significant density cha­ nge before producing an indication. In another aspect of the present invention the count rate is processed with respect to a predetermined formulation to determine the occurrence of a significant density change in a time frame and for producing an indication when such change occurs.

Description: The present invention relates to nuclear densometers, and more particularly, to an apparatus for processing data to obtain a fast response to changes in the density of a fluid. The prior art has developed digitally processed data for nuclear densometers, as illustrated by U.S. Patent No. 3,657,532. As set forth in that Patent, digital systems allow the incorporation of extremely reliable, inexpensive and compact integrated circuits and can be used to develop digital pulse counting techniques. However, in the prior art, there remains a substantially long time response to a change in density in the fluid sample being tested and as a consequence, a considerable volume of incorrect density fluid may be passed through the system for use before a correction in the density can be detected or made. US 3551672 discloses apparatus for monitoring the flow rate of a substance in a conduit and for triggering an alarm should the flow rate fall below a predetermined value. The apparatus monitors pulses derived from emissions by radioactive materials which are passed through the conduit, and discriminates between different rates of occurrence of pulses by comparing the interval between successive pulses to a predetermined but variable interval and providing electrical pulses, "down pulses", corresponding to radiation pulses occurring at intervals greater than the predetermined interval and electrical pulses, "up pulses", occurring at intervals less than the predetermined interval. These up pulses and down pulses may be utilised, for example, to give an indication of a rate of radioactive emission or to actuate an alarm or control. In oil well cementing operations, the density of the cementing slurry is an important factor. The bore hole cementing fluid typically is a slurry of chemical constituents mixed with water and has a certain density. Should the composition of the slurry mixture change during the pumping operation, the density obviously changes and a change in mixture can affect the desired results in the cementing operation. For that reason, it is desirable to be able to quickly sense changes in density, i.e. changes in the mixture and to be able to provide a correction to the mixture before a large volume of incorrect mixture is introduced into the system. Similarly, in fracturing of wells, monitoring of the density of the fracturing fluid is desirable. We have now devised an apparatus serving to obtain a relatively quick response time to a change of density of a fluid, for example in a cementing or fracturing fluid system, so that the fluid may be continuously monitored and corrected, if necessary, to obtain a consistent density for the fluid mixture. Embodiments of the present invention involve sensing the density of a fluid by providing statistical count signals which are proportional to density and processing the count signals so that significant changes in density produce a quick response and indication of such change and so that statistical variations in the count signals are suppressed. In embodiments of the present invention count signals are processed by a circuit means which has one or more fixed differential threshold detection levels so that the magnitude of the detected signals must exceed the fixed differential threshold level for a period of time. Also in embodiments of the present invention, count signals are processed by a computer to determine a relationship. When the count signals over a time period indicate a significant change in density an indication of such change is developed by using both a large and a small weighting factor. For random changes in density an indication is developed with a small weighting factor normally. The computer processes the count signals to ascertain the magnitude and duration of any changes in the count signal and upon meeting pre-set criteria produces an indication of the change. The present invention provides a nuclear densometer comprising a radioactive source, detector for detecting radiation produced by said source and set up for generating electrical pulses in response thereto, threshold and amplifying means coupled to the detector, and signal modifying means coupled to the threshold and amplifying means and set up for reducing the pulse rate, and for generating a count rate signal, characterised in that, the signal modifying means have a predetermined dead time for reducing the pulse rate and in that the densometer further comprises processor means coupled to the signal modifying means and set up for generating a modified count rate value from the count rate signal, a previously stored modified count rate value and a weighting factor, for generating a density value of the fluid from the modified count rate value, for increasing the weighting factor if significant changes of density occur for a sufficient period of time, for setting a small weighting factor if no significant changes of density occur, and for storing the modified count rate value, and in that recording means are coupled to the processor means for recording the density value of the fluid. An embodiment of the present invention will now be described, by way of example only, with reference to the accompanying drawings, in which: Figure 1 is a schematic block diagram illustrating an embodiment of the present invention; Figure 2 is a graph illustrating density with respect to counting rate; Figure 3 is a schematic illustration of the flow chart for use with the microprocessor to process the data for obtaining fast response times and indications to changes in densities. Referring now to Figure 1, a housing 10 is mounted on a tubular pipe with a bore 12 through which a well cementing fluid 13 is caused to flow between cementing tanks or trucks (not shown) and a well bore to be cemented (not shown). A source of radiation 14 is located on one side of the bore 12 and, on an opposite side, a radiation detector 15 is located. The radiation provided by the source 14 is a constant intensity over a long period of time (random intensity over a finite period) of gamma ray emissions. The gamma rays are transmitted through the material surrounding the bore 12, the slurry of cement 13 within the bore and to the detector 15. The detector 15 may be, for example, a crystal of sodium or cesium iodide (thallium activated) or other material capable of scintillating under irradiation and may include an electron photo multiplier tube for converting light flashes of the scintillation of the crystal into an electrical pulse. As will be apparent, the only variable with respect to density between the source 14 and detector 15 is the cement slurry 13. A percentage of the gamma rays emitted by the source 14 are absorbed or attentuated by the cement slurry 13 and do not reach the detector 15. Thus the counting rate of the output signal from the photo multiplier tube of the detector 15 is similarly related to the density of cement slurry 13 through which the rays must pass to reach the crystal in the detector 15 and the intensity of the source 14. The detector 15 is powered by a high voltage power supply 16 and the output signals from the detector 15 are supplied to a comparator circuit 17. The comparator circuit 17 eliminates extraneous noise signals below a selected amplitude level determined by a reference level set by potentioner 17A, and amplifies the output signals which are passed through the circuit. The output of the comparator circuit 17 represents count pulses above the threshold level set by the comparator 17. The output signals from the comparator 17 are applied to a one-shot 20 which linearizes the relationship of the comparator output as shown by the sloped line 19 in Figure 2. Because of the dead time of the one-shot 20, the output frequency of one shot 20 is reduced more at the higher counting rates than at the low counting rates. The output of the one-shot 20 is supplied to a counter register 25 and the counter register 25 outputs to a computer 26. The computer may be a ZYLOG 16 Bit microprocessor. The counter register 25 is keyed by a clock 28 to systematically and regularly process the counts in the register 25 to the computer 26. The computer 26, upon processing of the data, provides an output to a recorder 27. Before detailing the present invention in respect to processing of data by the computer 26, some background information may be helpful to an understanding of the present invention. The number of pulses detected by the detector 15 may be shown to be: N = Sr₁ (1) Where N is the number of pulses counted during a time period S for randomly generated pulses from a detector and where the counting rate r₁ is related to the density of material. For a fluid material having a given density, the following relationship exists: N = K I e -αt (2) Where N is the number of pulses detected; K is a constant; I e -αt is the activity of the source at time "t" for a decay factor α . The intensity I may also be stated to be: I = I k e -K/D(u/D) (3) Where u/D is the mass absorption coefficient of the substance of the bore, I K is the radiation intensity at the detector with the bore empty, K is a constant dependent upon the width of the bore and D equals the density of the fluid material. Rewriting equation 3 gives the following: A plot of the counting rate versus density is illustrated by the curve 18 in Figure 2. In the operation of the present invention, the detected counts are processed by the one shot 20 which produces a responsive output count signal to the count register 25 and to the computer 26 on a periodic basis. So long as the density of the slurry is constant, as shown by the vertical line 28 in Figure 2, the count rate signal is processed using a relatively small factor ( 1 / 32). However, if there is a large change in density, a large weighting factor ( 1 / 4) is used to process the count rate signal. The computer 26 samples the accumulated count signals each tenth of a second and develops a smoothing variable or weighting factor. The smoothing variable or weighting factor is a function of the density of the slurry and if large changes of density occur for a sufficient period of time, then the smoothing variable or weighting factor is changed to provide an indication of the change in density. Specifically, the computer 26 is programmed to determine the following: ρ s,n = ρ s,n-1 + 1 τ (ρ r,n -ρ s,n-1 ) (5) where ρ s,n =n th smoothed point value of sampled count rate data ρ r,n =n th raw data point value of current count rate data 1 / τ = a weighting factor with one of two values dependent upon the following factors: 1. τ=4 if the absolute value of the difference between a new count rate and an old count rate average is equal to, or greater than, 1/128 of the old count rate average value for ten times in succession without a change in sign. 2. If τ is not 4, then the value of τ is set to 32. If the raw count rate data is being processed for the first time, then a program step 44 sets a prior smoothed value "ρ s,n-1 " as equal to the raw count rate data value and the sign(SIGN₁) is set by a program step 45. The difference "S" between the smoothed value and the raw data value is determined by a program step 46 where S = ρ r,n - ρ s,n-1 and a) if this value exceeds zero (0), the program step 47 maintaines the sign positive and the absolute of the difference "S" is compared to the value of in program step 30; b) if the difference value "S" is lens than or equal to zero (0), the program step 48 changes the sign to negative and the absolute of the difference "S" is compared to the value of in program step 30. In the program, to initialize the program the sign is set to "1" (a positive value) in step 45 and in step 43, the program is set equal to zero (0) for the first time processing of data. The service request step 41 is initiated by a clock 49 set to initiate requests at 0.1 second intervals. In the program, if ten successive samples of accumulated count signals of the data |ρ r,n - ρ s,n-1 )| are equal to or greater than 1/128 ρ s,n-1 and the sign (positive or negative) does not change, then the weighting factor is set to a value of 1 / 4 in equation 5 which produces a faster indication of the change in density. The weighting factor is set equal to 1 / 32 for any sample period when the output signal is indicative that no significant changes of density are occuring. As shown in Figure 3, the program for the computer 26 provides a fast response to changes in density. In the program the basis of the determination of a large change in density is upon a determination of the absolute value of "S" relative to a predetermined relationship which is expressed; (1) where ρ r,n is the raw data value of count rate ρ s,n-1 is the old smoothed data value of count rate preceding an nth raw data value This determination as shown in the program step 30 of the flow chart. (2) If the absolute value of |ρ r,n -ρ s,n-1 | exceeds, or is equal to, or "yes", then the program follows to an "exclusive or" gate 31 which determines the sign (positive or negative) of the absolute value. If the sign of the absolute value is the same as the sign of the immediately preceding absolute value ("yes") then the counter 32 value is incremented by one (N=N+1) which counts the number of successive times of this occurrence without a change of sign (positive or negative) occuring. If the sign does not change, and the counter 32 value (N) is equal to ten (10) or greater, then this determination by the program step 33 ("yes") sets a weighting factor ( 1 / τ) to ( 1 / 4) in the program step 34. If the sign changes, or S is less than then N is set to zero (0) in 35 and the weighting value is also set equal to ( 1 / 32) in a program step 36. (3) The program utilizes either the weighting factor of 1 / 4 or 1 / 32 as the case may be, sets SIGN₂ equal to SIGN₁ (positive or negative) at step 37 and determines the new smoothed value at step 38 by the relationship ρ s,n = ρ s,n-1 + 1 τ (ρ r,n - ρ s,n-1 ) where ρ s,n = the new smoothed value ρ s,n-1 = the old smoothed value ρ r,n = the new raw data value The new or updated smoothed value ρ s,n is curve fitted to the count rate curve 18 (See Fig 2). when this is complete then the result is converted to a density representation prior to display on the recorder supplied to recorder circuitry and also recycled in the program to the output of point 39. The program is in a loop at step 40 until a service request occurs at program step 41, the raw data (count rate value) is loaded into the program by the program step 42. Upon loading of the raw data, the program step 43 determines if the raw data is appearing for the first time in the program.

Claims: A nuclear densometer comprising a radioactive source (14), detector (15) for detecting radiation produced by said source and set up for generating electrical pulses in response thereto, threshold and amplifying means (17) coupled to the detector, and signal modifying means (20) coupled to the threshold and amplifying means and set up for reducing the pulse rate and for generating a count rate signal, characterised in that, the signal modifying means have a predetermined dead time for reducing the pulse rate and in that the densometer further comprises processor means (26) coupled to the signal modifying means (20) and set up for generating a modified count rate value from the count rate signal, a previously stored modified count rate value and a weighting factor, for generating a density value of the fluid from the modified count rate value, for increasing the weighting factor if significant changes of density occur for a sufficient period of time, for setting a small weighting factor if no significant changes of density occur, and for storing the modified count rate value, and in that recording means are coupled to the processor means for recording the density value of the fluid. A nuclear densometer according to claim 1, further including: counter means (25) coupled to the signal modifying means (20) and to the processor means (26). A nuclear densometer according to claim 1 or 2, further including: clock means (28), coupled to the counter means (25) and to the processor means (26), generating a clock signal of predetermined frequency. A nuclear densometer according to claim 1, 2 or 3, wherein: the processor means (26) are set up for determining the absolute value of a difference value S, where the difference value S is equal to the previously stored modified count rate value subtracted from the count rate signal and for setting the weighting factor at a relatively high value when a) the absolute value of the difference value S is greater than or equal to the product of a predetermined scaling factor and the previously stored modified count rate value, b) condition (a) is satisfied for a predetermined time period, and c) the sign of the difference value S is unchanged for the pre-determined time period, the processor means otherwise setting the weighting factor at a relatively low value. A nuclear densometer according to claim 4, wherein: the processor means (26) are set up for determining the modified count rate signal from the relationship ρs,n = ρs,n-i + s τ where ρs,n is the modified count rate signal, ρs,n-i is the previously stored modified count rate value, S is the difference value, and 1 / τ is the weighting factor. A nuclear densometer according to claim 4, wherein: the relatively low value is 1 / 32 and the relatively high value is 1 / 4. A nuclear densometer according to any of claims 4 to 6, wherein: the predetermined time period is equal to the duration of 10 cycles of the clock signal. A nuclear densometer according to any of claims 3 to 7, wherein: the predetermined frequency of the clock signal is such that the counter means (25) generates a count rate signal every 0.1 seconds. A nuclear densometer according to any of claims 4 to 8, wherein: the predetermined scaling factor is 1/128.

Inventors: DAVIS, JAMES LLOYD
Applicants: HALLIBURTON COMPANY
Application year: 1984
Main classification: G01N23
IPC codes: G01N23