Background of the Invention
This invention relates to rotational viscometers for measuring rheometric properties of a fluid. More particularly, this invention relates to a microprocessor controlled rotational type viscometer for automatically and accurately obtaining the steady state shear stress of a fluid at various preselected shear rates.
Properties of fluids, such as the shear stress, shear strength, yield stress, plastic viscosity, etc., are important in many different industries. For example, viscometers are widely used in the drilling industry to measure these properties of drilling fluids that are used to drill oil and gas wells. Information obtained with viscometers is important in controlling the effectiveness of the drilling fluid in, (1) removal of cuttings from the bottom of the hole and carrying them to the surface, (2) holding the cuttings and weight material in suspension when circulation is interrupted, (3) releasing the cuttings and any entrained gases at the surface, (4) transmission of hydraulic horsepower to the drill bit, (5) minimizing annular pressure drops so as to avoid fracturing and the resulting loss of circulation in the uncased hole, (6) maximizing bore hole stability by controlling erosional effects on the well bore while circulating, and (7) reducing to a minimum any adverse effects upon the formation adjacent to the bore hole.
Direct-indicating concentric cylinder rotational viscometers powered by means of an electric motor or hand crank have found wide acceptance in the petroleum industry as an acceptable approach to measuring the viscocity of drilling fluid. In such a viscometer, the drilling mud is contained in the annular space between two cylinders. The outer cylinder or rotor sleeve is driven at a constant rotational velocity or shear rate. Located within the outer cylinder is an inner cylinder. The rotation of the outer cylinder in the mud produces a torque on the inner cylinder. A torsion spring restrains rotational movement of the inner cylinder. A dial scale is attached to the inner cylinder, and with rotation of the inner cylinder, indicates on a fixed pointer the angular displacement of the inner cylinder. The torque produced on the inner cylinder by rotation of the outer cylinder rotates the inner cylinder until the torque on the torsional spring is counter balancing the torque exerted by the fluid. At this point, a reading of the viscosity of the fluid may be taken.
However, direct-indicating rotational viscometers suffer from several problems. Primarily, a high degree of accuracy in shear stress readings is difficult to attain when reading from a scale. Fluctuations in the meter scale about an average position occur as a result of changing physical properties of the fluid and the presence of solid particles in the fluid as the outer cylinder is rotated. As a result, the operator reading the scale must interpolate the average position of the scale. The API recommendation Standard Procedure for Testing Drilling Fluids (APIRP 13B, 7th Edition, April 1978) suggest a that before reading the shear stress at a given shear rate, the dial reading should be allowed to come to a "steady value." Heretofore, rotational viscometers had to depend upon the operator's subjective determination of when a "steady value" has been attained. However, a slow drift in the steady dial reading may occur even with relatively stable readings on the dial, i.e. there are relatively small fluctuations in the dial's position. This drift can be brought about by gradual change in the structure of the fluid. As a result, a quantitative determination of when a steady value or steady state condition of the fluid had been reached is difficult to attain in these prior-art-viscometers.
A further problem in direct-indicating rotational viscometers is the inability of the outer cylinder to change speeds quickly, and at the same time, be capable of maintaining accurate selected shear rate speeds. One such prior-art means for maintaining an accurate shear rate speed in a rotational viscometer is disclosed in U.S. Pat. No. 4,062,225. A phase locked loop (PLL) motor speed control circuit is shown for controlling the shear rate speed of the rotated outer cylinder. Attached to the motor shaft is a high inertia flywheel which functions to dampen out speed variations of the motor at the selected shear rates. Unfortunately, the inertia of the flywheel does not permit a rapid change in the motor speed as the shear rate is changed.
This inability to rapidly change speed becomes especially significant when the viscometer is measuring the "Gel" strength of the fluid. As recommended at Page 6 of the API bulletin identified above, when measuring "Gel" strength, the fluid is mixed at high speed for 10 seconds, stopped for 10 seconds and then run at 3 RPM. The maximum reading is recorded and process of mixing, stopping and running at a low RPM is repeated. For this procedure, it is implied that following the mixing step, the outer cylinder is immediately stopped to allow the fluid to reform. This would not be possible with a motor speed control system utilizing a flywheel to attain high accuracy shear rate control. The inertia of the flywheel requires a significant amount of time for the rotating outer cylinder to come to a stop.
Accordingly, it would be advantageous to provide a rotating type viscometer in which the shear rate speeds can be controlled to a high degree of accuracy, but at the same time, permit rapid changes in the rotation of the outer cylinder. It would also be advantageous to provide a viscometer that could determine quantitatively the steady state condition of the shear stress at each selected shear rate to achieve a high degree of accuracy in shear rate measurements. It would also be advantageous to provide a viscometer that could automatically and accurately measure the shear stress of a fluid at each of a pre-selected number of shear rates to obtain data values which will permit the piece-wise linear approximation to the shear stress profile of the fluid, particularly in the region of actual shear rate conditions encountered in the annulus of a well bore.
Summary of the Invention
In accordance with this invention, a rotational concentric cylinder viscometer for measuring the steady state shear stress of a fluid at a given shear rate is provided. The fluid, whose viscosity is to be measured, is contained between a rotatable outer cylinder and a spring loaded rotatable inner cylinder such that rotation of the outer cylinder produces a torque acting through the fluid on the inner cylinder thereby causing the inner cylinder to rotate. The total amount of rotation of the inner cylinder is related to the shear stress of the fluid as measured at the shear rate.
A microprocessor unit is provided to input and output data signals that will select the various shear rates of rotation of the outer cylinder, and measure the resulting amount of rotation of the inner cylinder at each selected shear rate. A system clock provides several system clock signals to control the various functions and timing of the viscometer. A shear rate controller responds to the system clock and the shear rate selecting data from the microprocessor to rotate the outer cylinder at the selected constant angular velocity. An angular position indicator comprising an absolute value shaft encoder outputs a digital Gray code that is used to indicate the angular position of the inner cylinder.
A function selector means comprising a manually actuated keyboard is connected to the microprocessor input data lines for inputting both the mode of operation of the microprocessor and for inputting the various pre-selected shear rates at which the outer cylinder is to be rotated. A display means is provided to display both a measured shear stress and the angular velocity of the outer cylinder at which the display shear stress was measured.
The shear rate controller that controls the rate of rotation of the outer cylinder includes a programmable frequency divider that responds to the shear rate selecting data from the microprocessor to produce a phase detector clock signal. The phase detector clock signal is produced by dividing the feedback frequency signal obtained from a speed encoder connected to the outer cylinder. The speed encoder is an optical incremental encoder mechanically connected to the outer cylinder for rotation therewith. A motor drive means responds to the phase detector clock signal to generate the excitation signal to the motor that rotates the outer cylinder. This motor drive means includes a phase detector that responds to the system clock and the phase detector clock signal to generate a phase error signal that indicates the phase difference between the phase detector clock signal and a reference signal. Also included is an amplifier that filters and amplifies the phase error signal to produce the motor excitation signal. The motor used to rotate the outer cylinder is a DC-motor of the ironless armature type.
In another aspect of the invention, a method for obtaining the steady state shear stress of a fluid at a selected shear rate using the microprocessor controlled rotating-cylinder viscometer is also disclosed. The method comprises the steps of changing the outer cylinder rotational speed to a selected shear rate, determining a current average value for the angular position of the inner cylinder from a predetermined number of position measurements taken at a predetermined sample rate. The difference between a current average value and the last obtained average value is then obtained. The result is then compared with a predetermined number of degrees to determine if the steady state condition of shear stress has been attained. If not, the process of obtaining a current average value is repeated until the difference is less than or equal to the predetermined number of degrees, at which point the current average value is taken as the steady state shear stress.
In another aspect of the invention, a method for obtaining the instant "GEL" and 10 minute "GEL" using the microprocessor controlled rotating cylinder viscometer is also disclosed. The method comprises the programmed steps of mixing, waiting the appropriate delay time, and starting the outer cylinder at 3 RPM during which the highest shear stress reading obtained in an interval of 20 seconds, corresponding to one complete revolution of the outer cylinder, is stored for later recall.
In yet a further aspect of the invention, a method for obtaining the shear stress profile (shear stress vs. shear rate) of a fluid using the microprocessor controlled rotating-cylinder viscometer is disclosed. The method for determining the steady state shear stress at a selected shear rate is repeated for each of the pre-selected shear rates until all readings have been obtained.
Brief Description of the Drawings
The novel features believed characteristic of this invention are set forth in the appended claims. The invention and advantages thereof may best be understood by reference to the following detailed description of the illustrative embodiments read in conjunction with the accompanying drawings which form a part of this specification, and in which corresponding numerals indicate corresponding parts.
In the Drawings:
FIG. 1 is a block diagram representation of the microprocessor controlled rotating-cylinder viscometer of the present invention;
FIG. 2 is a circuit diagram of the phase locked loop controller of the present invention that controls the rate of rotation of the outer cylinder;
FIG. 3 is a circuit diagram of various blocks illustrated in FIG. 1 including the inner cylinder position indicating means, the I/O function decoder and the keyboard entry to the microprocessor;
FIG. 4 is a tabular listing of the program memory allocation for microprocessor 10 of the present invention; and
FIGS. 5-16 are software flow diagrams for the various routines for the programmed microprocessor 10.
Detailed Description of the Preferred Embodiments of the Present Invention
Referring to the figures and first to FIG. 1, a block diagram of the rotational concentric cylinder viscometer of the present invention is shown. A microprocessor 10 functions to control the operations of the rotating viscometer, and to measure the resulting angular rotation of the inner cylinder indicative of the shear stress of the fluid at a given shear rate. The various elements of the viscometer are connected to the microprocessor 10 by way of three data buses, I/O ports P1 (P10-P17) and P2 (P20-P27), and data bus BUS. In the preferred embodiment of the present invention, microprocessor 10 is manufactured and sold by Intel Corporation as its MCS 8749 Microcomputer.
A crystal controlled system clock 20 is provided to generate various frequencies used to control the functions and timing of the viscometer. In the preferred embodiment, system clock 20 outputs seven frequencies illustrated in the following Table 1:
Frequency f1 is supplied to the microprocessor 20 for its internal timing, f2 is supplied to the programmable keyboard/display interface 72 (FIG. 3), f3 is supplied to the keyboard encode chip 82 (FIG. 3), f4 is supplied to the motor speed control 28, f5 is supplied to the microprocessor 10 for digit display purposes, f6 is supplied to the motor speed indicator 24 and f7 is supplied to the elapsed timer contained in microprocessor 10.
Command control data is outputted by the microprocessor 10 to initiate various sequencies in the elements of the viscometer or to cause data to be applied to the data buses. Operation of the microprocessor controlled viscometer is initiated from a keyboard assembly 12 having 18 buttons. Two of the 18 buttons are used to switch the power on and off to the circuits. The remaining 16 keys are labeled as follows: 10 of the keys contain the digits 0-9, one each of the remaining 6 keys are respectively labeled STORE, RECALL, ERASE, ENTER, AUTO, and GEL. The 10 keys marked with digits 0-9 are used to input numeric data to select the speed for the various shear rates, and to select the memory locations in conjunction with the "STORE" key. The "RECALL" key is used in conjunction with a series of numeric actuated keys to display a stored value. Any speed selected and inputted to the microprocessor 20 from the keyboard and not ENTERed can be erased with the "ERASE" without interfering with the previous selected speed. Automatic programs can be terminated by actuating the "ERASE" key. The functions performed by the "ERASE" key are as follows: It clears entries during a keyboard input sequence; it clears any "Err" messages; it causes an exit from the "GEL" routine while counting elapsed time; it causes an exit from the "GEL" routine during the 20-sec comparison interval; it causes an exit from the "AUTO" sequence during settling time after speed change; it causes an exit from "RECALL"; it causes an exit from "STORE" with no effect on memory contents; it causes an exit during the 10 second mixing interval; and it causes a jump to the calibration routine if depressed during power-up.
All selected speeds have to be entered with the "ENTER" key. The functions of the "ENTER" key are as follows: It loads the keyboard input data into the programmable divider 26; it starts the comparison routine in "GEL" at the displayed elapsed time; and it causes a return to the main program after completion of the calibration routine. All keyboard actuated numbers are displayed, with the keyboard indicator light on, until it is entered into memory. At that time, the display 16 will indicate the actual speed of the rotating outer cylinder and the resulting steady state shear stress. Any invalid number inputted will display an error "Err". The function of the "AUTO" and the "GEL" keys, will be described in detail below.
The viscometer of the present invention may be operated either in an automatic or a manual mode. In the automatic mode, "AUTO", the steady state shear stress for each of a predetermined number of preselected shear rates will be obtained and stored in memory. This data can then be used to obtain a piece-wise linear approximation to the viscosity profile of the fluid at various shear rates. In order to perform the automatic determination of the shear stress, the keyboard 12 key labeled "AUTO" must be depressed.
When the viscometer is operated in a manual mode, it is possible to preselect the speed at which the outer cylinder is to be rotated by inserting the desired rotation rate via the numbered keys and depressing the "ENTER" key. The outer cylinder will begin to rotate at the inputted speed. When the operator is satisfied that the steady state value of the shear stress has been attained, depressing the "STORE" button and a numeric button corresponding to a memory location will cause the microprocessor 10 to read both the actual speed of the outer cylinder, via motor speed indicator 24, and the resulting shear stress. This data will be stored in the memory location corresponding to the numeric key depressed after the "STORE" key. During the manual mode of operation, the measured speed and shear stress data are outputted to two 3-digit displays 16.
Still referring to FIG. 1, control of the rotation of the outer cylinder 36 is achieved through the combination of microprocessor 10, programmable divide-by-N counter 26, motor speed control 28 and the DC-motor 30. In particular, the pre-selected or manually entered shear rate data is outputted by microprocessor 10 as a divide factor N to programmable divide counter 26. Counter 26 divides a feedback frequency signal 5 outputted by an optical incremental encoder 32 that is coupled to the rotation of motor 30. The rate of rotation of motor 30 controls the frequency of the feedback frequency signal 5 that is inputted both to the programmable divide counter 26 and to the motor speed indicator 24. The function of motor speed indicator 24 is to produce a digital code word that indicates the actual rotational speed of the motor that is occurring. The output of motor speed indicator 24 is applied as data input to the microprocessor 10, and is read under control of the micro processor.
The output of programmable divide-by-N counter 26 is applied to motor speed control 28 where it is compared with a reference frequency supplied by system clock 20. For the presently preferred embodiment the reference clock signal is f4, 512 Hz. The phase difference between the reference frequency and the output of the programmable counters 26 is a phase error signal that is filtered and amplified to produce the excitation signal to DC-motor 30. Rotation of the output shaft of motor 30 is reflected as a feedback frequency signal 5. When the feedback frequency signal 5 reaches the proper frequency, as determined by the divide factor N and the reference frequency from system clock 20, the excitation signal to DC-motor 30 will remain constant to cause motor 30 to run at the desired velocity. Variations of the motor 30 speed will be reflected as a variation in the feedback frequency signal 5. These variations will produce an appropriate change in the motor excitation signal to bring the motor speed back to the desired setting.
In the presently preferred embodiment of the invention, the DC-motor 30 is a permanent magnet DC-motor having an armature wound on a hollow non-magnetic core. Motors such as these having no magnetic material in the armature or rotor are known as "Ironless motors." A suitable motor of the ironless type is manufactured and sold by Interelectric Corporation of Switzerland as a Maxom DC-motor series 2332 and by Dr. Faulhaber Company of Germany as series 3557. An ironless motor is desirable because of its low inertia and fast acceleration. These features enable the motor to achieve a fast reacting precision motor control, and a short settling time.
Referring now to FIGS. 1 and 2, the concentric rotating cylinders 36 respond to rotation of the DC-motor 30 to produce a corresponding rotation in the shaft of the inner cylinder. This angular rotation is monitored by absolute value shaft encoder 38 that outputs a digital code word indicative of the actual angular position of the inner cylinder. This digital data is inputted to a code converter 34 whose output is coupled onto one of the microprocessor 10 data buses, P10-P17. In the presently preferred embodiment, absolute value shaft encoder 38 outputs a 9-bit Gray code where only one bit line is permitted to change per interval of angular rotation of the encoder shaft. The position encoder 38 is graduated from -9.degree. to +350.degree. deflection. The code converter 34 converts the Gray code of encoder 38 into its BCD equivalent values. Code converter 34 consists of a ROM having the BCD equivalent codes stored in memory locations that are addressed by the output code words from the encoder 38. Each output code word from encoder 30 serves as a unique address to the code converting ROM.
To perform the code conversion, a 9-bit address to the code converting ROM contained in converter 34 is generated by the encoder 38. The most significant bit of the 10-bit address to the ROM is inputted from the microprocessor 10 on the P23 data bus line. Under program control, microprocessor 10 causes I/O decoder 80 to generate the strobe D to multiplex onto data bus lines P10-P17 two BCD digits of the three BCD digits that represent the angle of the inner cylinder's shaft. Data bus P23 is then set and strobe D generated to output from the code converting ROM the third BCD digit along with the + or - sign for the angle. The encoder disk 35 of encoder 38 is properly etched to produce the Gray code. To produce the electrical signals to read the etched disk 35, the present invention uses a Texas Instruments light emitting diode array T1L 49 and a photosensitive transistor array T1L629.
Turning now to FIG. 2, the motor speed indicator 24, programmable divider counters 26 and motor speed control 28 are illustrated in more detail. The encoder 32 consists of a rotatable disc 40 having slits or means therein for permitting the passage of light from light emitting diode D1 to reach the base of light sensitive transistor Q1. The output of transistor Q1 is amplified and applied to comparator A1 to produce a digital signal at the input of exclusive OR gates 44. The output of exclusive OR gates 44 comprises the feedback frequency signal 5. For the preferred embodiment, encoder 32 produces 3840 pulses per revolution on the output shaft of outer cylinder 36. At a rotor speed of 600 RPM, encoder 32 produces a frequency of 76,800 pulses per second.
As previously discussed, the feedback frequency signal 5 is applied to programmable divider 26 to produce the phase frequency signal on its output. This signal is applied as one input to two input NAND gate 60. Inverter 58 responds to a control signal from data bus P25 to provide the other input to NAND gate 60. Control signal P25 functions to select the phase frequency clock from programmable divider 26 as the input signal to phase detector 68 for all rotor speeds above 1 RPM. When a rotor speeds of 1 RPM is desired, the microprocessor 10 outputs a control signal on P25 to select the feedback frequency signal 5 as the frequency to be applied directly to phase detector 68 by way of NAND gates 62 and 64.
As illustrated in FIG. 2, NAND gates 58, 60, 62 and 64 function as an AND/OR gate to select either the output of the programmable divider 26 or the feedback frequency signal 5 as the input clock signal to phase detector 68 depending upon the state of data bus line P25. The divide parameter N from the divide-by-N counter 26 is supplied to the programmable divider 26 from the microprocessor 10 BUS. Programmable divider 26 is manufactured and sold by Intel Corporation as a model 8253 divide-by-N counter. Prescaler counter 52 which forms part of the motor speed indicator 24 is contained in the Intel 8253 chip.
Also inputted to the motor speed control circuit 28 is a second control signal, P27, from microprocessor 10. This signal enables the phase detector 68 to generate an excitation signal to the motor 30 to cause it to begin rotation. When data bus line P27 is not active, motor 30 will not rotate. When enabled by P27, the 512 Hz frequency signal f4 from the system clock 20 is applied to phase detector 68 which, for the preferred embodiment of the present invention, is manufactured and sold by Motorola Incorporated as a phase/frequency detector MC14568. This particular phase detector contains a divide by 4 internal counter to reduce the 512 Hz reference signal down to 128 Hz. The phase detector 68 produces an error signal representative of the phase difference between the signal from the encoder 32 divided by the division ratio N, and the 128 Hz reference signal. This error signal is filtered and amplified by amplifier A2 and power amplifier Q3 to provide the excitation signal to the motor. It should be clear that the values of the various circuit components, voltages, and their manufacturer type numbers depicted in FIG. 2 and described above will vary depending upon the intended use. In a presently preferred embodiment use in connection with a phase locked loop control system to control the speed of rotation of motor 30, Table 2 below sets out exemplary values which have been found satisfactory.
Still referring to FIG. 2, the motor speed indicator 24 for determining the actual speed of rotation of the motor 30 is shown. The feedback frequency signal 5 is applied to a divide by 64 pre-scaler 52 to reduce the frequency generated by encoder 32. This reduced frequency is applied to a 3-digit BCD counter 54 that is periodically cleared by the 2 Hz reference signal f6 from the system clock 20. Counter 54 is manufactured and sold by Motorola as model MC14553. The 3-digit counter 54 functions to generate a 3-digit BCD code equal to the number of pulses produced in a time interval of one second, and multiplexes each digit sequentially onto its output. The multiplexed output of the 3-digit counter 54 is applied to a tri-state buffer circuit 56 that responds to function strobe A from decoder 22 to apply the BCD digits onto the microprocessor bus P10-P16. Also strobed onto the data bus lines P10-P16 are the digit selection bits that indicate which of the three BCD digits from counter 54 is currently being multiplexed into the buffer 56. For the presently preferred embodiment, buffer 56 is a Texas Instruments tri-state buffer model SN74LS244. The control signal A is generated in response to function control data outputted by microprocessor 10 when a reading of the speed of rotation of the outer cylinder 36 is desired.
Turning now to FIG. 3 in which various functions illustrated in FIG. 1 are illustrated in more particular detail, the absolute value shaft encoder 38 is shown responding to the rotatable inner cylinder 37 of the concentric rotating cylinders. The encoder 38 functions in a similar manner to the optical encoder 32 in that light emitting diodes D3-D11 are used to produce light that is applied to the bases of transistors Q4-Q12 through a disc that rotates with the shaft of the inner cylinder 37. Each output of transistors Q4-Q12 is applied to a respective buffer gate 70 to produce the 9-bit digital code representative of the angular position of the inner cylinder 37. As previously mentioned, the 9-bit Gray code word is applied to code converter 34 for conversion to BCD digits that are applied to the microprocessor data bus lines P10-P17. The data from the encoder 38 is applied to the bus through the code converter 34 in response to function strobe D outputted by the I/O function decoder 22.
The I/O function decoder chip 22 which generates the various function strobe signals is of a 1-of-8 decoder that responds to the microprocessor 10 data bus lines P20-P22 to produce eight strobes used to control various sequencies and to enable data to be inputted to the microprocessor 10 data buses. For the preferred embodiment, decoder 22 is manufactured and sold by Intel Corporation as model 8205. Also illustrated in FIG. 3 is the system clock 20. It will be appreciated by those of ordinary skill in the art that the basic reference frequency produced by a crystal controlled oscillator may be divided down by counters to produce the reference frequencies illustrated. Accordingly, the circuits for this function are not shown and discussed herein.
Further illustrated in FIG. 3 is the keyboard 12 consisting of 16 keys that are used to input the data to the microprocessor 10 needed to operate the viscometer. The output from the various keys are applied to the keyboard encoder 82. Encoder 82 responds to the the 16 KHz reference frequency f3 from the system clock 20 to produce the 4-bit binary code eventually applied through the buffer gates 84 to the microprocessor 10 input data bus lines P10-P13. Function strobe B enables gate 84 to apply the 4-bit code words onto the data lines. Also produced in the keyboard encoder 82 is a strobe signal that is applied to the display interface 72 which generates an interrupt request signal to microprocessor 10. The strobe signal is only produced when one of the numeric keys is depressed. The actuation of one of the mode control keys to the microprocessor 10 does not produce an immediate response from the microprocessor. Rather, the internal software routines will periodically read the output from the keyboard buffer gates 84 and determine if any of the function keys have been depressed.
Still referring to FIG. 3, the two 3-digit displays 16 are shown diagrammatically as composed of 7-segment display digits 74 that respond to digital driver 76 and display interface 72. The digits to be displayed in the digits 74 are loaded from the microprocessor 10 BUS lines into the display interface 72 on the occurrence of the control signal E from the I/O function decoder 22. The various digits to be displayed are serially loaded into display interface 72 which time multiplexes the digits onto the control lines to the digits of display 74. In this manner, the data stored in display interface 72 appears to be continuously displayed by the display unit 74. The presently preferred embodiment has used an Intel Corporation 8279 display chip for display 16.
As previously mentioned, the present invention is able to determine the steady state value for the shear stress at each of the preselected rotor speeds. Shortly after application of power to the electronic circuits, the microprocessor 10 measures the angular position of the inner cylinder at zero speed to determine if an offset error is present. This offset error is used to correct all further angular position measurements. Upon entry into the automatic mode by microprocessor 10, the outer cylinder is rotated at 700 RPM for a period of 10 seconds to mix the fluid. Mixing is required to cause a breakdown of all particle bonds for particles suspended in the fluid. At the end of the 10 second interval, the outer cylinder is then rotated at 600 RPM a period of 2 seconds to allow for the speed of the outer cylinder 36 to stabilize and become phase locked to the fixed reference signal from the system clock 20. Readings of the angular deflection as reflected from absolute value shaft encoder 38 are then taken at a sample rate of 128 samples/second for one second.
Characteristic of all concentric rotating cylinder viscometers is the presence of fluctuations in the angular position of the inner cylinder 37 due to random variations in the torque transmitted by the fluid to the inner cylinder 37. The magnitude and rate of the fluctuations may vary from fluid sample to fluid sample depending on the amount and size of the solid particles present. For the present invention, it is important that the sample rate of angular position readings of the inner cylinder 37 be at least two times the maximum rate of fluctuations present in the angular position of the inner cylinder. As the readings are taken, they are consecutively totalized until all of the readings have been taken. Then, the total is divided by the number of samples taken, 128, to give an average angular deflection of the inner cylinder position for that one second measuring interval. The presence of solid particles in the fluid being tested can exert intermittent or irregular forces on the cylinder thus causing the cylinder to oscillate about a mean angular position. The averaging sequence eliminates the need for a mental averaging by the operator to obtain this mean, and thereby reduces the possibility of an error in the reading.
Many fluids exhibit thixotropic properties and require a certain time period for particle bonds to reform after a reduction in shear rate. After all bonds that can exist at a particular shear rate have reformed, the shear stress will reach an equilibrium value and a reading may be taken. For this reason, the averaging sequence is performed again after a two second time interval. The next average value thus obtained is compared to the previous average value, and if the two valves are within plus or minus one degree (.+-.1.degree.) of each other, the current average value is accepted as the true equilibrium or steady state reading. If the current average value differs in magnitude by more than one degree from the previous average value, another two second time interval elapses and the averaging process is again repeated. This procedure continues until the difference between the present and previous readings are within the desired range.
After the steady state reading has been determined, that reading, along with the shear rate at which it was obtained, is stored in a memory location for later recall and display. In one embodiment of the present invention, the rotational speeds of 600, 300, 200, 100, 60, 30, 15, 6 and 3 RPMs are recommended to obtain shear stress readings that will permit the piece-wise linear approximation of the shear stress versus shear rate curve, and allow the operator to make calculations on certain rheometric properties of the fluid. The various shear rates to obtain the shear stress profile would have been inputted into the microprocessor 10 prior to initiating the automatic mode of operation. The above described procedure for obtaining the steady state shear stress at a shear rate would then be repeated for each of the preselected and inputted shear rates until the measurements of shear stress at each of the speeds has been obtained.
In the automatic mode, after all of the preprogrammed shear rate readings have been measured and recorded, the microprocessor 10 proceeds to the GEL mode. This GEL mode is also separately selectable by the operator by depressing the button on the keyboard marked "GEL." Upon initial entry into the GEL mode, the outer cylinder 36 is rotated at 700 RPM for a period of 10 seconds. Again to mix the fluid under test and to break down particle bonds that give the fluid thixotropic properties. After the mixing period, the outer cylinder rotation is stopped and the elapsed time counter interval to microprocessor 10 is initiated to generate the elapsed time. The microprocessor 10 internal elapse time counter is incremented once every second by f7, and upon reaching 10 seconds, the outer cylinder 36 is rotated at 3 RPM. Immediately as the outer cylinder 36 starts to rotate at 3 RPM, readings of the angular displacement of the inner cylinder 37 are taken in rapid succession for a period of 20 seconds corresponding to one complete revolution of the outer cylinder 36. During this 20 second time period, the largest value is retained, and after the 20 second period, this maximum value is stored in an operator specified addressable memory location for later recall. This stored reading corresponds to the inital GEL strength of the fluid under test. The fluid is then mixed as before and then the same sequence of measurements occur after a second time period of 10 minutes. The elapse timer can be interrupted manually by depressing the ENTER button and with this manual override, any time GEL, up to 600 seconds can be taken. When all measurements are completed, the microprocessor 10 exits the GEL routine and leaves the outer cylinder rotating at 3 RPM with the display showing the speed and corresponding shear stress reading.
Referring now to FIGS. 5-16, software flow diagrams for various functions performed by the present invention are shown. These flow diagrams illustrate the functions performed by microprocessor 10 in response to the various modes of operation keyed from keyboard 12. The following is an assembler language listing of the microprocessor 10 program that implements the flow diagrams of FIGS. 5-16. It will be appreciated by those skilled in the art that other routines other than those illustrated and described herein could be programmed into microprocessor 10 and achieve the same results.
Although the presently preferred embodiment of the present invention has been shown and discussed herein, it will be understood that many variations and alternate embodiments of the invention will be apparent to those skilled in the art. For example, other types of optical encoders other than the Gray code encoder may be used to indicate the angular position of the BOB. Furthermore, although the viscometer has been described as being used in connection with drilling fluids in the petroleum industry, it will be understood by those skilled in the art that the invention is applicable as well in measuring rheometric properties of any type of fluid.