APPARATUS FOR MONITORING A FLUID
20210396698 · 2021-12-23
Inventors
Cpc classification
International classification
Abstract
A processing apparatus (700) is configured to receive a sense signal from a capacitive fluid sensor (610) comprising a first electrode (611) and a second electrode (612) with a sensing region (613) between the electrodes. The processing apparatus (700) is configured to receive an alternating drive signal applied to the capacitive fluid sensor (610). The processing apparatus (700) is configured to determine a complex impedance of the fluid sensor (610) based on the sense signal and the drive signal, the complex impedance comprising an in-phase component indicative of a conductivity quantity of a fluid in the sensing region and a quadrature component indicative of a capacitance quantity of the fluid sensor. The processing apparatus (700) is configured to determine a temperature of the fluid in dependence on at least the determined capacitance quantity of the fluid sensor (610).
Claims
1-22. (canceled)
23. An apparatus for monitoring a fluid under test, the apparatus comprising: a processing apparatus comprising a processor and a memory configured to store data indicative of at least one reference fluid, wherein the stored data for the, or each, reference fluid comprises data indicative of a capacitance quantity and a conductivity quantity over a range of temperatures, the processing apparatus configured to: receive a sense signal from a capacitive fluid sensor; receive an alternating drive/reference signal; determine a measured value indicative of a conductivity quantity of the fluid under test based on the sense signal and the drive/reference signal; determine a measured value indicative of a capacitance quantity of the fluid sensor based on the sense signal and the drive/reference signal; determine a measured temperature of the fluid under test; determine if the fluid under test is similar to the reference fluid, or one of the plurality of reference fluids, based on: (i) the measured value indicative of the conductivity quantity, the measured value indicative of the capacitance quantity; and (ii) the stored data indicative of the conductivity quantity for the reference fluid(s) at the measured temperature and the stored data indicative of the capacitance quantity for the reference fluid(s) at the measured temperature.
24. The apparatus according to claim 23 wherein the processing apparatus is configured to, for the reference fluid, or for each of the plurality of reference fluids: determine an expected value of the conductivity quantity for the reference fluid at the measured temperature from the stored data; determine an expected value of the capacitance quantity for the reference fluid at the measured temperature from the stored data; determine if the fluid under test is similar to the reference fluid, or one of the plurality of reference fluids, based on: (i) the measured value indicative of the conductivity quantity and the measured value of the capacitance quantity; (ii) the expected value indicative of the conductivity quantity and the expected value indicative of the capacitance quantity for the reference fluid at the measured temperature.
25. The apparatus according to claim 24 wherein the processing apparatus is configured to determine if the fluid under test is similar to the reference fluid by determining a difference in a two-dimensional space having the capacitance quantity and the conductivity quantity as dimensions between: (i) a first point representing the measured value indicative of the conductivity quantity and the measured value indicative of the capacitance quantity; (ii) at least one second point representing the expected value indicative of the conductivity quantity and the expected value indicative of the capacitance quantity for the reference fluid, or the plurality of reference fluids, at the measured temperature.
26. The apparatus according to claim 25 wherein the processing apparatus is configured to determine a Euclidean distance between the first point and the at least one second point.
27. The apparatus according to claim 24 wherein the stored data comprises a mathematical function which approximates the expected value indicative of the conductivity quantity as a function of temperature and the processing apparatus is configured to determine an expected value indicative of the conductivity quantity for the reference fluid at the measured temperature by using the measured value of the temperature in the mathematical function.
28. The apparatus according to claim 24 wherein the stored data comprises a mathematical function which approximates the expected value indicative of the capacitance quantity as a function of temperature and the processing apparatus is configured to determine an expected value indicative of the capacitance quantity for the reference fluid at the measured temperature by using the measured value of the temperature in the mathematical function.
29. The apparatus according to claim 24 wherein the stored data comprises a set of data values indicative of the capacitance quantity and indicative of the conductivity quantity at different temperatures and the processing apparatus is configured to determine an expected value indicative of the conductivity quantity and to determine an expected value indicative of the capacitance quantity by look up operation in, or by interpolating between, the set of data values indicative of the capacitance quantity and indicative of the conductivity quantity at the measured temperature.
30. The apparatus according to claim 23 wherein the processing apparatus is configured to determine a complex impedance of the fluid sensor based on the sense signal and the drive/reference signal, the complex impedance comprising a real (in-phase) component indicative of the conductivity quantity of the fluid under test and an imaginary (quadrature) component indicative of the capacitance quantity of the fluid under test.
31. The apparatus according to claim 23 further comprising a capacitive fluid sensor having a first electrode and a second electrode with a sensing region between the electrodes.
32. (canceled)
33. An apparatus for monitoring a fluid under test, the apparatus comprising: a processing apparatus comprising a processor and a memory, the processing apparatus configured to: (i) receive a sense signal from a capacitive fluid sensor; (ii) receive an alternating drive/reference signal; (iii) determine a measured value indicative of a conductivity quantity of the reference fluid based on the sense signal and the drive/reference signal; (iv) determine a measured value indicative of a capacitance quantity of the fluid sensor based on the sense signal and the drive signal; repeat (i)-(iv) over a range of temperatures; store data indicative of a relationship between the measured values indicative of the capacitance quantity and the measured values indicative of conductivity quantity for the reference fluid over a range of temperatures.
34-37. (canceled)
38. The apparatus according to claim 23 wherein the reference fluids are at least one of: a plurality of beverages with differing alcohol content; a plurality of beverages having different ingredients or compositions.
39. An apparatus for measuring at least one property of a fluid under test, the apparatus comprising: a processing apparatus comprising a processor and a memory configured to store data indicative of a relationship between an expected value indicative of a capacitance quantity and an expected value indicative of a conductivity quantity for a reference fluid over a range of temperatures, the processing apparatus configured to: receive a sense signal from a capacitive fluid sensor; receive an alternating drive/reference signal; determine a measured value indicative of a conductivity quantity of the fluid based on the sense signal and the drive/reference signal; determine a measured value indicative of a capacitance quantity of the fluid sensor based on the sense signal and the drive/reference signal; and determine an expected value indicative of the capacitance or conductivity quantity of the fluid under test by using the measured value indicative of the conductivity or capacitance quantity, respectively, and the stored data; and determine a difference between the expected and measured values indicative of the capacitance or conductivity quantity respectively.
40. The apparatus according to claim 39, wherein the data indicative of a relationship between an expected value indicative of a capacitance quantity and an expected value indicative of a conductivity quantity comprises a mathematical function which approximates the expected value indicative of the capacitance quantity as a function of the conductivity quantity and wherein the processing apparatus is configured to determine an expected value of the capacitance quantity of the fluid under test by using the actual value indicative of the conductivity quantity in the mathematical function.
41. The apparatus according to claim 39, wherein the data indicative of a relationship between the expected value indicative of the capacitance quantity and the expected value indicative of the conductivity quantity for a reference fluid over a range of temperatures comprises a set of data values relating the expected value indicative of the capacitance quantity to the expected value indicative of the conductivity quantity at different temperatures and the processing apparatus is configured to determine an expected value indicative of the capacitance quantity of the fluid under test by performing a look up operation in, or by interpolating between, the set of data values using the actual value indicative of the conductivity quantity.
42. The apparatus according to claim 39, wherein the data indicative of a relationship between an expected value indicative of a capacitance quantity and an expected value indicative of a conductivity quantity comprises a mathematical function which approximates the expected value indicative of the conductivity quantity as a function of the capacitance quantity and wherein the processing apparatus is configured to determine an expected value of the conductivity quantity of the fluid under test by using the actual value indicative of the capacitance quantity in the mathematical function.
43. The apparatus according to claim 39, wherein the data indicative of a relationship between the expected value indicative of the capacitance quantity and the expected value indicative of the conductivity quantity for a reference fluid over a range of temperatures comprises a set of data values relating the expected value indicative of the conductivity quantity to the expected value indicative of the capacitance quantity at different temperatures and the processing apparatus is configured to determine an expected value indicative of the conductivity quantity of the fluid under test by performing a look up operation in, or by interpolating between, the set of data values using the actual value indicative of the capacitance quantity.
44. The apparatus according to claim 39 wherein the processing apparatus is configured to determine a complex impedance of the fluid sensor based on the sense signal and the drive/reference signal, the complex impedance comprising a real (in-phase) component indicative of the conductivity quantity of the fluid under test and an imaginary (quadrature) component indicative of the capacitance quantity of the fluid sensor.
45. The apparatus according to claim 39 wherein the processing apparatus is configured to compare the difference with a threshold difference value and to perform an action when the difference exceeds the threshold difference value.
46. The apparatus according to claim 39 wherein the action comprises at least one of: sending a notification; issuing an alarm.
47. The apparatus according to claim 39 further comprising a capacitive fluid sensor having a first electrode and a second electrode with a sensing region between the electrodes.
48. (canceled)
49. An apparatus for measuring at least one property of a reference fluid, the apparatus comprising: a processing apparatus comprising a processor and a memory, the processing apparatus configured to: (i) receive a sense signal from a capacitive fluid sensor; (ii) receive an alternating drive/reference signal; (iii) determine a measured value indicative of a conductivity quantity of the fluid under test based on the sense signal and the drive/reference signal; (iv) determine a measured value indicative of a capacitance quantity of the fluid sensor based on the sense signal and the drive/reference signal; repeat (i)-(iv) over a range of temperatures; store data indicative of a relationship between the measured value indicative of the capacitance quantity and the measured value indicative of the conductivity quantity for the reference fluid over a range of temperatures.
50-55. (canceled)
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0245] One or more embodiments of the invention will now be described, by way of example only, with reference to the accompanying figures in which:
[0246]
[0247]
[0248]
[0249]
[0250]
[0251]
[0252]
[0253]
[0254]
[0255]
[0256]
[0257]
[0258]
[0259]
[0260]
[0261]
[0262]
[0263]
[0264]
[0265]
[0266]
[0267]
[0268]
[0269]
[0270]
[0271]
[0272]
[0273]
[0274]
[0275]
[0276]
[0277]
[0278]
[0279]
[0280]
[0281]
[0282]
DETAILED DESCRIPTION
[0283]
[0284] The capacitive sensor 110 has two main properties: (i) capacitance; (ii) conductance. These properties will vary according to the type of fluid between the electrodes 111, 112. Capacitance of the sensor is the ability of the sensor to store electric charge. Capacitance varies according to the permittivity of the dielectric material between the electrodes 111, 112 of the capacitor. A dielectric material with a high dielectric constant (i.e. a good insulator) will increase the capacitance. Conductance is the flow of charge between the electrodes, through the dielectric material between the electrodes 111, 112. Conductance also depends on the properties of the dielectric material between the electrodes 111, 112 of the capacitor. A high impedance fluid will cause a small conductance between the electrodes 111, 112. A low impedance fluid will give a higher conductance between the electrodes 111, 112. For each of these properties, the dielectric material is the fluid between the electrodes 111, 112.
[0285] A drive signal generator 120 generates a drive signal. The drive signal is an alternating current electrical signal at a suitable frequency. The drive signal is applied to the fluid sensor cell 110. The drive signal may be applied to the inner electrode 112, with the outer electrode 111 connected to a reference ground. In an example of the present application the alternating current electrical signal has a frequency which is in the low radio frequency (RF) range, of less than 10 MHz, such as 5.05 MHz. The drive signal generator 120 can be implemented by a Direct Digital Synthesis integrated circuit feeding a wideband operational amplifier. Direct Digital Synthesis is a technique which generates a sinusoidal analogue signal using a sequence of digital values representing amplitude of the signal at points in time. The digital values are converted into an analogue signal by a digital-to-analogue converter. The digital values required to generate the signal may be stored, and retrieved from memory, or calculated on-the-fly using an algorithm.
[0286] A signal processing stage 130 is implemented, for example, by a microcontroller 200. The signal processing stage 130 receives an alternating electrical signal SENSE from the fluid sensor cell 110. The drive signal applied to the fluid sensor cell 110 will be modified by properties of the fluid in the fluid sensor cell 110. SENSE is indicative of the fluid. The signal processing stage 130 also receives the drive signal as a signal DRIVE or REF. It is possible to supply the drive signal by directly connecting an output of the drive signal generator 120 to the processing stage 130. Alternatively, the drive signal may be tapped from a different point, REF, in the system as described below.
[0287]
[0288] The impedance of the sensor cell 110 equivalent circuit (R and C in parallel) can be expressed as:
[0289] where ω is 2π×the drive signal frequency.
[0290] R.sub.s and Z form a potential divider and the voltage across Z is the main sensor feedback signal SENSE. Z is a complex impedance. L.sub.s is lead inductance from the connections to the sensor cell 110. L.sub.s also contributes (significantly) to phase and amplitude of SENSE. L.sub.s is a parasitic element of the apparatus.
[0291]
[0292]
[0293] The output of stage 164 represents the measured impedance at the ADC 150, subject to a transformation caused by parasitic properties of the system. The output consists of two numbers corresponding to the real (in-phase, I) and imaginary (quadrature, Q) outputs of the Fourier analysis. There are several sources of parasitic properties of the system. Lead inductance L.sub.s (
[0294]
x0=(previous x0)*0.999+0.001*x
[0295] In this simple example, the filter coefficient values are 0.999 and 0.001, with the two coefficients summing to 1. It will be understood that the digital filter can perform a different algorithm with different coefficient values and/or a higher number of computation stages. The low-pass filters 173, 174 can make it possible to determine a value of the I or Q component with a high degree of accuracy, by computing a value over a significant number of computations. For example, the output value of the filter may be computed over several thousand cycles of the drive signal SENSE. Stage 161 allows the circuit to tune in to the input signal within a very narrow frequency band and produces two output results representing the size of the in-phase (real) and quadrature (imaginary) components of the input signal. Reducing the bandwidth gives very accurate sub-quantisation level resolution.
[0296] Referring back to the example system of
[0297] It is to be understood that the ADC 150 may be provided on one or more chips that are separate from the microcontroller 200 and which communicate digitally with the microcontroller 200. Alternatively, the ADC 150 may be provided in the same integrated circuit package as the microcontroller 200.
[0298]
[0299] Multiplying both real and imaginary parts of the digital oscillator signal with the incoming drive signal REF and integrating over a number of samples yields the real and imaginary Fourier coefficients of the drive signal at that frequency. If the drive signal is in-phase and of equal frequency (i.e. a lock condition) then the real Fourier coefficient should be 0.5 and the imaginary coefficient should be 0. In practice, there is usually a difference between the signals, such as the drive signal leading or lagging the digital oscillator. It is possible to determine whether the drive/reference signal REF is leading or lagging the digital oscillator by looking at the value of the imaginary part. An appropriate correction is applied to the digital oscillator 181 (i.e. advancing or retarding the digital oscillator 181) until a lock condition is achieved. So, the digital oscillator 181 tracks the incoming drive/reference signal REF and automatically makes adjustments due to clock drift. Once locked, the same control loop maintains a locked condition. Outputs 191, 192 of the digital oscillator 181 are used as the DO (I) and DO (Q) inputs to the processing stage 161. An output of the low-pass filter 184 provides an in-phase component of drive/reference signal REF relative to the digital oscillator 181, called Cr (I). An output of the low-pass filter 185 provides a quadrature component of drive/reference signal REF relative to the digital oscillator 181, called Cr (Q).
[0300]
[0301] Three alternative ways of digital-domain processing will now be described. In a first method, a mathematical model of the apparatus is used to directly calculate values of capacitance (dielectric constant) and resistance (conductivity) from the measured in-phase and quadrature values of the difference signal. In a second method, the measured in-phase and quadrature values of the difference signal are applied to a look-up table to obtain output values of capacitance (dielectric constant) and resistance (conductivity). In a third method, measured in-phase and quadrature values are mapped to a stored set of curves representing capacitance (dielectric constant) and resistance (conductivity). A best fit between the measured I, Q values and one of the curves represents the capacitance (dielectric constant) and resistance (conductivity).
[0302] Each of the methods can use the same initial stages of signal processing. The signal processing stages 161, 162 output values representing two complex numbers: [0303] c.sub.s representing the phase and magnitude of the sense signal, SENSE. c.sub.s comprises an in-phase (real) component c.sub.s (I) and a quadrature (imaginary) component c.sub.s (Q). [0304] c.sub.r representing the phase and magnitude of the reference signal (i.e. the drive signal, DRIVE/REF). c.sub.r comprises an in-phase (real) component c.sub.r (I) and a quadrature (imaginary) component c.sub.r (Q).
[0305] Dividing the two complex measurements [c.sub.s/c.sub.r] gives a quantity which is independent of supply voltage or ADC reference voltage variation. Performing this operation also has an effect that if the digital oscillator 181 lags or leads the drive signal by even a small amount, resulting phase shifts are eliminated. This is because the error would apply equally to both drive and sense signals, i.e. a common mode error.
[0306] Processing stage 164 determines the difference signal. Performing the division [c.sub.s/c.sub.r] gives: [0307] (i) the phase difference between the sense signal and the drive/reference signal; [0308] (ii) a magnitude equal to a ratio of the magnitudes of the sense signal and the drive/reference signal.
[0309] It should also be noted that the apparatus shown in
c.sub.p=e.sup.iωT
where: [0310] the angular frequency of the drive signal ω=2π*5,050,000 Hz; [0311] the sampling frequency=2 MHz and the time between sampling channels T=0.5 μs.
[0312] The ‘output’ of the sensor is now a complex quantity A calculated thus:
[0313] A is the value that is used in all further analysis.
[0314] The following section provides detail of the mathematical model of the apparatus.
[0315] Model-Based Method
[0316] Input Impedance and Parasitic Properties of the ADC
[0317] The input impedance of the ADC 150 will modify the input signal both in amplitude and phase and so its effects need to be calibrated out. The input impedance of the ADC channels is treated as unknown, but it is possible to assume that they are approximately equal since the same ADC is used for measuring both channels, and the inputs are multiplexed.
[0318] The input impedance of the ADC 150 can be deduced from a process called ‘bare-board’ calibration. The PCB alone (i.e. the sensor cell is not connected) is powered up and the open-circuit signal measured can be analysed.
[0322] Without the cell connected, D.fwdarw.∞ for the sense channel c.sub.s, and D=R.sub.c2 for the reference channel c.sub.r. As an example, D=220 resistor for a cell filled with cutting fluid. This makes the drive/ref signal and sensor cell have roughly the same impedance when presented to the ADC. It will be understood that D can be set to a value appropriate to the application.
[0323] It can be assumed that Z is the same for both channels, and raw sensor output value A can deduce the value of Z.
[0324] Network analysis of the above gives:
[0325] which simplifies to:
[0326] Now turn this general form into an expression for c.sub.s and c.sub.r:
[0327] since D.fwdarw.∞ and
[0328] After rearranging and simplification, c.sub.s/c.sub.r can be written as:
[0329] and solved for Z.
[0330] The value of Z is calculated from the bare-board measurement for each sensor and stored in non-volatile memory for use with all further calculations. This complex quantity represents both the resistive and capacitive loads at the operating frequency.
[0331] Deducing the Cell Impedance
[0332] Now that the ADC impedance is fully characterised, it is then possible to deduce the impedance of the connected sensor load from further network analysis. The cell impedance is denoted by L. During operation, with the sensor cell connected, the sensor channel output can be written (analogously to our expression for c.sub.r) as:
[0333] Using the previously derived expression for c.sub.r we can state that:
[0334] This can be solved for L to give:
[0335] This expression combines all of the known resistor values and the calibration value for ADC impedance to give the impedance of the cell and parasitic properties associated with connections to it.
[0336] It is assumed now that L represents the impedance of the network shown in
[0337] Where R is the resistance of the cell and C is its capacitance. R and C can both be deduced from this equation when the value of L.sub.s is known. This is most easily achieved by calculating the cell admittance:
[0338] Calculating Conductivity and Relative Permittivity
[0339] The resistance of the cell is determined theoretically by the cell geometry and the resistivity of the fluid as follows:
[0340] where: [0341] ρ is the resistivity of the fluid; [0342] b is the internal diameter of the outer pipe of the cell (e.g. 26.9×10.sup.−3 m); [0343] a is the external diameter of the co-axial rod (e.g. 7×10.sup.−3 m); [0344] L is the length of the rod exposed to the fluid (e.g. 75×10.sup.−3 m).
[0345] The cell factor is the ratio of resistance to resistivity. This is calculated to be around 2.85, and measured to be around 2.76 from lab testing with saline fluids of known concentrations.
Conductivity=1/ρ.
Therefore:
Conductivity=2.76/R (Equation 1)
[0346] The capacitance of the cell is calculated to be:
[0347] where ε.sub.0 is the dielectric permittivity of free space and ε.sub.r is the relative permittivity (dielectric constant) of the fluid.
[0348] All of the other dimensions are the same. Hence the experimentally determined cell factor of 2.76 can also be used to develop the relationship between ε.sub.r and capacitance in a similar way such that:
ε.sub.r=2.76 C/ε.sub.0 (Equation 2)
[0349] From the above description, it will be understood that the measured values c.sub.s, c.sub.r (converted to the complex difference signal quantity A) are input to a mathematical model of the apparatus which includes at least one parasitic component, to provide an output value of conductivity (Equation 1) and dielectric constant (Equation 2). Another possible property is complex permittivity.
[0350] Determination of Lead Inductance and Other Parasitic Elements
[0351] The lead inductance can be determined empirically. If the expression for L is rewritten using discrete real and imaginary parts, it can be seen that the contribution of L.sub.s to the final measurement is small when cell resistance is high, and plays a significant part when the cell resistance is low. By passing de-ionised water through the cell, it is possible to measure a value for the cell capacitance by assuming lead-inductance to be zero in the above analysis.
[0352] Passing saline solutions of varying concentrations through the sensor at a constant temperature should give a constant value for capacitance and varying values of conductivity. A value of lead inductance was chosen to give the flattest possible response for capacitance over this range.
[0353] However, the response is not perfect, as it is likely that there are additional parasitic components yet to be identified and the network analysis needs further refinement.
[0354]
[0355] Look-Up Table Method
[0356] The look-up table method uses the difference signal determined by stage 164. As described above, the quantity A can be used:
[0357] where: [0358] c.sub.s represents the phase and magnitude of the sense signal, SENSE. c.sub.s comprises an in-phase (real) component c.sub.s (I) and a quadrature (imaginary) component c.sub.s (Q). [0359] c.sub.r represents the phase and magnitude of the reference signal (i.e. the drive signal, DRIVE/REF). c.sub.r comprises an in-phase (real) component c.sub.r (I) and a quadrature (imaginary) component c.sub.r (Q). [0360] c.sub.p is a correction factor to compensate for the different times at which c.sub.s and c.sub.r are sampled.
[0361] Processing stage 165 then uses the in-phase and quadrature components of the complex difference signal quantity A to look up corresponding values of C (dielectric constant) and R (conductivity) in a stored set of data, i.e. a look-up table.
[0362] Data Mapping Method
[0363] The data mapping method uses the difference signal determined by stage 164. As described above, the quantity A can be used:
[0364] where: [0365] c.sub.s represents the phase and magnitude of the sense signal, SENSE. c.sub.s comprises an in-phase (real) component c.sub.s (I) and a quadrature (imaginary) component c.sub.s (Q). [0366] c.sub.r represents the phase and magnitude of the reference signal (i.e. the drive signal, DRIVE/REF). c.sub.r comprises an in-phase (real) component c.sub.r (I) and a quadrature (imaginary) component c.sub.r (Q). [0367] c.sub.p is a correction factor to compensate for the different times at which c.sub.s and c.sub.r are sampled.
[0368] Processing stage 165 then maps the in-phase and quadrature components of the complex difference signal quantity A to (or compares it to) a stored set of data. The stored data may be in the form of a set of curves.
[0369]
[0370] The convergence of the data on the left hand side is due to the mathematical effect of increasing conductivity causing a reduction of the sensitivity of the system to the effects being measured.
[0371] Accurate Conductivity Measurements
[0372] Using a drive signal of 1.05 MHz or lower, the reactive (capacitive and parasitic components) of the signal are significantly reduced. Under these conditions the real part of the signal can be used to deduce conductivity without making assumptions about the parasitic effects of the circuit. For a system where it is not expected that temperature or fluid composition changes quickly, this measurement can be made near simultaneously to the high frequency measurement.
[0373] Reference Signal (REF)
[0374] A refinement of the design is the use of a reference signal REF. This design uses Rc1 and Rc2 to represent a ‘virtual’ purely resistive cell. It will have an amplitude in phase with the drive signal. REF can provide a better reference signal than DRIVE, as it is designed to have a similar output impedance to SENSE. The thinking behind this is that if the phase shift caused by the ADC input capacitance was identical for each channel, its effect would cancel out. This ideal situation is unlikely to be achieved, but this approach will help to reduce the effect of the input capacitance.
[0375] Example Fluids
[0376] An example application of the apparatus is to control the mixture and composition of emulsion cutting fluids. The proportion of oil to water is to be controlled. The ratio of oil to water can be determined by measuring the dielectric constant of the fluid. Water has a dielectric constant of around 80 at 20 degrees Celsius, and the oil component has a dielectric constant <10. Evaporation of water from the fluid causes the oil to water ratio to increase, and so it is necessary to add water to keep the emulsion concentration within the required limits.
[0377] Dielectric constant of the fluid is approximately equal to the average by volume of the two components, so for a 10% mix we would expect to see a dielectric constant of around 72. The surfactant used to keep the oil droplets in suspension is conductive as it has ionic components. Conductivity alone cannot be used to determine the emulsion concentration, as conductivity is affected by other factors such as water hardness and other ionic contamination.
[0378] The dielectric constant of water varies with temperature. Therefore, it is also desirable to measure temperature and make an appropriate compensation.
[0379] Other possible applications are monitoring the proportion of water in any chemical mixture (flowing or static), such as: beer/whiskey manufacturing (e.g. to determine alcohol content); bio-fuel manufacture (e.g. to monitor for water contamination); gearbox oil and lubricant monitoring.
[0380] Another possible application is measuring humidity of a gas.
[0381] Other Alternatives
[0382] The apparatus may use a single ADC and a multiplexer to time multiplex input signals to the single ADC, as shown in
[0383] The frequency of the drive signal may be selected based on the type of fluid under test. In other examples, the drive signal generator may generate a plurality of drive signals at different frequencies, or there may be a plurality of drive signal generators.
[0384]
[0385]
[0386] Contaminant Concentration Determination
[0387] As described above, the system 100 may be employed to make high resolution complex impedance measurements of fluids from which both the dielectric constant of the fluid may be determined (using the I & Q values of the difference signal as described above in respect of stage 165) and conductivity of the fluid (using the I & Q values of the difference signal as also described above in respect of stage 165).
[0388] The conductivity of some fluids may be affected at least in part by the presence of one or more ionic contaminants. Accordingly, measurements of conductivity of liquids containing ions such as aqueous ionic solutions may be employed to determine the level or concentration of ions in the liquid. For low concentrations of ionic contaminants in an otherwise substantially non-conducting fluid, the conductivity may be considered to be the sum of ‘conductivities’ due to each ionic species.
[0389] The system 100 of
[0390] For example, in some embodiments a measured value of conductivity at a given temperature may be converted to an ‘effective’ value at a reference temperature such as 22 C and conductivity determined by reference to an equation (or a look up table or other method) linking conductivity at 22 C with ionic concentration.
[0391] In some applications, rather than obtaining an absolute measurement of ionic concentration, it is sufficient to know when the concentration difference between a liquid under inspection (the ‘inspection liquid’) and a reference liquid (such as local town water) is less than a critical value, such as a critical value below which the water is considered potable. In some examples of use of the present apparatus, conductivity measurements made using the system 100 in respect of a given inspection liquid may be compared (by the system 100 in some embodiments) with equivalent conductivity values obtained by measurement of a sample of local town water. The difference in conductivity values may then be considered to be an indication of the difference in ionic concentration between the liquids. In order to allow account to be taken of variations in conductivity with temperature, the temperature of the inspection liquid may be measured and the measured conductivity of the inspection liquid compared with a value of conductivity of the reference liquid at the same temperature. The conductivity of the reference liquid at a given temperature may be determined by the system 100 from a look up table or from an equation linking temperature and conductivity of the reference liquid. The equation may be obtained for example by fitting a line or curve such as a polynomial expression to data in respect of conductivity of the reference liquid as a function of temperature obtained previously using the system 100 in a calibration operation.
[0392] By way of example of an application of the system 100, we consider the case of cleaning of debris and residue from internal surfaces in industrial processing plants which process liquids, such as plants processing chemicals, foodstuffs, beverages and other fluids. Such cleaning processes may be referred to as ‘clean in place’ (CIP) processes. Sodium hydroxide solution is often employed in CIP processes, an aqueous solution of sodium hydroxide being pumped through pipework of the plant to clean the internal surfaces. However, it is important to thoroughly cleanse the internal surfaces of sodium hydroxide (or other cleaning substance) following treatment with sodium hydroxide so as to avoid contamination of liquids subsequently passed through the plant with sodium hydroxide. Removal of sodium hydroxide may be performed by flushing of the internal surfaces of the plant with local town water. Flushing with town water is typically performed until the concentration of sodium hydroxide in the town water that has been flushed through the plant is at a sufficiently low value to permit the plant to resume operations.
[0393] It is to be understood that the system 100 of
[0394] It is to be understood that in some embodiments the conductivity of the town water prior to flushing through the system may be measured using another sensor cell 110 located upstream (with respect to the direction of flow of town water) of surfaces of the plant to be cleaned, prior to being flushed through the system, and compared with a value of conductivity measured using a sensor cell 110 located downstream of the surfaces of the plant to be cleaned. If the temperature of the local town water is assumed to be the same at each location, compensation for the temperature of the water does not need to be performed, and the system 100 may determine that the water that has been flushed through the plant is sufficiently clean if the difference in conductivity measured by the respective upstream and downstream values is sufficiently low, e.g. below a critical difference value.
[0395] However, in order to take into account the possibility of differences in temperature of the water upstream and downstream of the plant, in some embodiments the temperature of liquid passing through the respective sensor cells 110 may be measured.
[0396] In one embodiment a calibration operation is performed in which the conductivity of a given sample of local town water is determined as a function of temperature in advance of the cleaning operation. The measured values are stored for later comparison with measurements of conductivity of water that has been flushed through the plant. These measurements may be stored, for example in a look up table. Alternatively, a line or curve (such as a polynomial expression) may be fitted to the measured data and an equation determined by means of which the conductivity of local town water at a given temperature may be obtained. Other arrangements may be useful in some embodiments.
[0397] In some embodiments, the system 100 may be employed to measure both the temperature and conductivity of liquid flowing through the sensor cell 110 based on measurements of capacitance of the sensor cell 110 and conductivity of the liquid in the cell 110. In such embodiments the temperature sensor 105 is not required for the determination of the temperature of the liquid.
[0398]
[0399] The increase in capacitance of the cell with increasing sodium hydroxide concentration is understood to be due to electrode polarisation and effects associated with parasitic inductance and capacitance within the system 100. Electrode polarisation occurs when ions in the solution concentrate near the surface of the electrodes giving rise to the equivalent circuit illustrated in
[0400] For the data plotted in
[0401]
[0402] Trace B of
[0403] In the case of CIP systems, when flushing cleaning fluid from a system that has been cleaned with cleaning fluid (such as hot sodium hydroxide solution), we consider the fluid medium to be primarily water with additional components that typically constitute less than 0.1% of the total weight, at least in the latter stages of the flushing process.
[0404] The value of capacitance measured by the system 100 can be considered to be:
C.sub.meas=(F×ε.sub.r)+(α×σ)
[0405] where: P F is the cell factor (a constant that is determined by the geometry of the electrodes)
[0406] ε.sub.r is the dielectric constant of water
[0407] α is the gradient of the plot of cell capacitance (pF) as a function of conductivity (mS/ms) shown in
[0408] σ is the measured conductivity.
[0409] Hence an estimate of ε.sub.r can be derived:
[0410] By obtaining data in respect of cell capacitance of town water (i.e. measured capacitance of the sensor cell 610 when filled with town water) as a function of temperature (temperature being measured for example using a temperature sensor such as a thermometer of infra-red (IR) temperature sensor device) and knowing the value of dielectric constant (relative dielectric permittivity of water, ε.sub.r) as a function of temperature (e.g. from the literature), it is possible subsequently to deduce the temperature of liquid in the sensor cell based solely on a measurement of the cell capacitance. This is because the measured value of cell capacitance can be used to calculate the dielectric constant ε.sub.r of the liquid, from which temperature can be deduced by linear interpolation of (say) literature values of data in respect of dielectric constant ε.sub.r as a function of water.
[0411] By way of example,
TABLE-US-00001 TABLE 1 Relative Dielectric Measured cell Cell factor Temperature Permittivity (ε.sub.r) capacitance (pF) = (° C.) (Malmberg and Maryott) (pF) Cell cap/ε.sub.r 20 80.103 243.0 3.034 35 74.828 226.8 3.030
[0412] The following equation may be employed to determine temperature of the liquid based on measurements of ε.sub.r:
T=a.Math.ε.sub.r+b (2)
[0413] Where a is the gradient of a plot of ε.sub.r as a function of temperature and b is the intercept of a best fit line to a plot of ε.sub.r as a function of temperature. It is to be understood that this equation is valid for water with less than around 0.1% dissolved solids, at least, since account has been taken of the effects of electrode polarisation as described above with respect to
[0414] In this particular case, based on the data in Table 1:
[0415] The variation of ε.sub.r as a function of temperature is approximated to be linear over the range from 20 to 35 C and can be seen to vary approximately at a rate of −0.3516 K.sup.−1. This corresponds to a change in capacitance of −1.0668 pF.Math.K.sup.−1. The cell factor is determined by the geometry of the cell 110 as noted above, but can be calculated here as the ratio of cell capacitance to the literature value of dielectric permittivity of distilled water. The value of cell factor should be substantially constant as a function of temperature. The resolution of the instrument is approximately 0.1 pF, hence in this particular case a temperature resolution of around 0.1K may be obtained. It will be appreciated that this is a very high resolution, high speed measurement of fluid temperature rivalling some of the most expensive alternative technologies such as resistance temperature detectors (RTDs). It is to be understood that alternative technologies typically measure the temperature of surfaces in contact with fluid whereas embodiments of the present invention enable direct measurements to be made on the fluid itself.
[0416] Thus, it is to be understood that the system 100 may be employed to measure the temperature of a fluid directly, based on measurements of conductivity and dielectric constant of the fluid. This feature is advantageous in that a separate temperature sensor may not be required to be provided (such as sensor 105 in the embodiment of
[0417] It is to be understood that, in some embodiments, a separate temperature sensor such as sensor 105 may be provided in order to facilitate calibration of the system 100, 600. Thus the temperature sensor 105 may be used to obtain data in respect of cell capacitance of town water (i.e. measured capacitance of the sensor cell 110, 610 when filled with town water) as a function of temperature instead of a separate temperature sensor such as an IR temperature sensor device. It is to be understood that, whilst such temperature sensors may have lower resolution in terms of temperature measurements than can be obtained by means of the system 100, 600 when measuring temperature based on measurements of cell capacitance, the output of the sensor 105 may be averaged over a period of time and the averaged value used to determine the temperature of liquid in the cell 110, 610.
[0418] Once the temperature of the liquid is known, the concentration of sodium hydroxide ions in the water may be deduced based on measurements of the conductivity of the liquid. For example, the measured value of conductivity (and temperature) may be compared with stored data relating temperature and conductivity to ion concentration. Linear interpolation may be employed to determine the ion concentration at temperatures and conductivity values for which direct measurements are not available. The system may for example store an algorithm relating temperature and conductivity to ion concentration. For example, it might be found that the addition of (say) 1 ppm (part per million) of NaOH to town water increases the conductivity of the water by (say) 0.2 mS/m at room temperature. The increase in conductivity of water as a function of temperature might be assumed to be 2 mS/m per K based on the data shown in
[0419] In some embodiments, the measured value of conductivity may be converted to an effective value at a reference temperature, being a temperature for which values of conductivity as a function of sodium hydroxide concentration are available, and the concentration of sodium hydroxide determined from this data.
[0420] It is to be understood that a determination of the concentration of ions in an aqueous solution has been described in which measurements of conductivity are employed to determine ion concentration. A method of taking into account the effects of temperature on conductivity has also been described, since conductivity of an aqueous solution typically increases with increasing temperature (for a given ion concentration) as well as with increasing ion concentration (at a given temperature). Temperature may be measured by means of the sensor cell, or by means of a separate temperature sensor.
[0421] However, it is to be understood that it is possible to calculate a temperature-corrected value of concentration of ions in an aqueous solution without actually calculating the temperature of the liquid. This may be achieved by:
[0422] (a). Correcting a measurement of capacitance for electrode polarisation to obtain a ‘corrected’ value of capacitance related to the bulk dielectric constant as previously; and
[0423] (b). Comparing the measured value of conductivity of the aqueous solution with a plot of conductivity versus the corrected value of capacitance obtained from (a).
[0424] For any given reported corrected capacitance (as opposed to a value of temperature deduced from the measurements in the manner described above), the difference between measured and stored conductivity values provides an indication of the concentration of sodium hydroxide in the aqueous solution.
[0425]
[0426] The system 600 includes the fluid sensor cell 610 of
[0427] The processing apparatus 700 is configured to determine a complex impedance of the fluid sensor 610 based on the sense signal and the drive/REF signal. This can be performed as described in detail above, such as by using a ratio Cs/Cr and an algorithmic model of the apparatus to determine the complex impedance. The complex impedance comprises an in-phase component indicative of a conductivity quantity of a fluid in the sensing region 613 and a quadrature component indicative of a capacitance quantity of the fluid sensor. The processing apparatus 700 is configured to determine a temperature of the fluid in dependence on at least the determined capacitance quantity of the fluid sensor 610.
[0428] The processing apparatus 700 uses data 642 stored in a memory 640. The system 600 is configured to be calibrated by inputting to a memory 640 of the microcontroller 700 two parameters, being the values of gradient (g) and intercept (h) of a best-fit line to a plot of conductivity of a sample of local town water as a function of temperature over the temperature range from 5 C to 35 C:
σ.sub.town=g.Math.T.sub.meas+h (3)
[0429] where:
[0430] σ.sub.town is the conductivity of local town water as received at the plant before flushing through the plant; and
[0431] T.sub.meas is the temperature of local town water that has been flushed through the plant as measured by the sensor cell 610 at the point at which conductivity (and capacitance) is measured.
[0432] The values of gradient (g) and intercept (h) are sufficient to enable subsequent calculation of the conductivity of the local town water for a given temperature value. The range 5 to 35 C was selected in respect of the present embodiment in order to cover substantially the entire range of temperatures of local town water in the particular region in which the system 600 is operated. Best fit lines to other temperature ranges may be employed instead if desired, for example depending on the expected range of variation of local water temperature.
[0433] It is to be understood that, in some alternative embodiments, best-fit lines other than linear best-fit lines may be employed, including polynomial expressions such as second order polynomial expressions.
[0434] In addition to the values of gradient and intercept described above, the calibration operation also involves storing values of parameters F (cell factor) and a (gradient of the plot of cell capacitance (pF) as a function of conductivity (mS/ms) shown in
[0435] Furthermore, the calibration operation involves obtaining the gradient a and intercept b of equation (2) above describing the rate of change of ε.sub.r with temperature over the range from 5 C to 35 C (gradient a being in units of K.sup.−1 whilst intercept b is dimensionless). Values of a and b for best fit lines to plots of ε.sub.r as a function of temperature over other temperature ranges such as 100 to 30 C, 100 to 25 C or any other suitable temperature range covering the expected temperature ranges of liquids encountered by the sensor cell 610 may be employed in some other embodiments. As described above, appropriate values of ε.sub.r of water as a function of temperature may be obtained from the literature, and taken as an approximation to the value of ε.sub.r of local town water as a function of temperature.
[0436] The value of ε.sub.r of a given sample of liquid in the sensor cell 610 may be determined by means of equation (1) above. The linear equation relating ε.sub.r and temperature (equation 3 above) may then be employed to calculate the temperature of the liquid in the sensor cell 610 based on measurements of ε.sub.r (made using the apparatus). As noted above, equation (3) is presented by way of example of such an empirically determined equation. In some alternative embodiments, ε.sub.r of liquid at a given temperature may be obtained based on stored measurements of ε.sub.r as a function of temperature, ε.sub.r at a given temperature then being determined directly from the data or by interpolation between data points.
[0437]
[0438] At step S201 the system 600 determines values of conductivity σ.sub.meas and capacitance C.sub.meas of a liquid flowing through the sensor cell 610.
[0439] At step S203, equation (1) above is employed to determine the value of ε.sub.r of the liquid flowing through the sensor cell 610 based on the measured values of conductivity σ.sub.meas and capacitance C.sub.meas.
[0440] At step S205, equation (2) (with empirically determined values of a and b) is employed to calculate the temperature T.sub.curr of the liquid currently flowing through the sensor cell 610.
[0441] At step S207 the value of T.sub.curr is employed to determine the conductivity σ.sub.town of local town water prior to flushing through the plant using equation (3).
[0442] At step S209 the system 600 calculates the difference am between measured conductivities σ.sub.meas and σ.sub.town, σ.sub.meas−σ.sub.town=σ.sub.diff.
[0443] At step S211 the system 600 determines whether the difference σ.sub.diff is greater than a threshold difference value, σ.sub.thresh. If the difference σ.sub.diff is greater than threshold difference value σ.sub.thresh, the system displays a message ‘cleaning in progress’ to a user. The system 600 then continues at step S201. If the difference σ.sub.diff is not greater than threshold difference value σ.sub.thresh, then the system continues at step S213.
[0444] At step S213, the system 600 displays a message ‘cleaning complete’. Alternatively, or in addition, the system 600 may generate an audible output to indicate that cleaning is complete, such as an alarm or other alert sound.
[0445] It is to be understood that other methods of operation may be employed. For example, in some embodiments, at step S209 the system 600 may calculate the modulus of the difference between measured conductivities, |σ.sub.diff|.
[0446] In some embodiments, at step S213 the system may, in addition or instead, perform one or more other actions such as notifying an operator by means of the transmission of a message by a wired or wireless communications link, close or open one or more valves controlling fluid flow, or one or more alternative actions. The actions may be part of the operation of an automated plant control system.
[0447]
[0448] It is to be understood that during normal beverage dispense operations the first end 680a of the dispense line 680 would be connected to a beverage source 690.
[0449] During the flushing operation, the system 600 monitors the conductivity of the liquid flowing through the sensor cell 610 and follows the process shown in the flow diagram of
[0450] The operator may then reconnect the first end 680a of the beverage dispense line 680 to the beverage source 690 and commence dispensing of beverage from the source 690. It is to be understood that the operator may first clear the dispense line 680 of tap water by opening the dispense tap 695 to cause beverage to flow from the source 690 until beverage flows out from the dispense tap 695. The operator may then proceed to serve beverage to customers. It is to be understood that in some embodiments the beverage may be diluted by the presence of town water in the dispense line 680 when beverage first flows through the line 680 following the flushing operation. The system 600 may be employed, if desired, to determine when the level of dilution of beverage by town water is sufficiently low to permit dispensing of beverage to customers. In other words, the system 600 may be employed to determine when the concentration of beverage in liquid flowing through the sensor cell 610 is sufficiently high to permit dispensing of beverage to customers. It is to be understood that this may be done, again, by comparing the conductivity of liquid as measured by the sensor cell, σ.sub.meas, with a stored reference value of the conductivity of the beverage in substantially undilute form, σ.sub.bev, determining a difference between the values, σ.sub.diff, and determining that the beverage is sufficiently undilute when the difference value σ.sub.diff is sufficiently small. Other arrangements may be useful. It is to be understood that the system 600 may take into account variations in σ.sub.bev, as a function of temperature by measuring the temperature of the beverage, either by means of measurement of a property of the liquid such as relative dielectric constant ε.sub.r, or by means of a separate temperature sensor such as sensor 105 which may be installed in the sensor cell 610.
[0451]
[0452] Thus, in some examples it may be required to flush a liquid of a first type such as a particular type or brand of fruit juice from pipework in a bottling plant using a liquid of a second type such as another fruit juice in order to allow bottling of the second type of liquid instead of the first type. This may be accomplished by flushing the first type of liquid from the pipework 780 by pumping liquid of the second type through the pipework (e.g. from tap 793) until traces of residue of the first type of liquid in the pipework 780 have been substantially removed. The apparatus 600 may be employed to compare data indicative of at least one property of the flushing liquid (e.g. liquid of the second type) such as a conductivity of the flushing liquid as it passes through the sensor cell 610 with corresponding data in respect of a sample of the flushing liquid before flushing through the plant (in the present example, liquid of the first type) and to determine that the flushing operation is complete when a difference between the data (conductivity values in the present example) is less than a threshold amount. The threshold amount may be determined empirically, being an amount corresponding (in the present example) to a sufficiently dilute (trace) amount of liquid of the first type in liquid of the second type passing through the sensor cell 610. In some embodiments the acceptable level may be set to a level where substantially no liquid of the first type is detectable in liquid of the second type (e.g. any amount is below the limit of detectability). It is to be understood that the data indicative of at least one property of the first and second liquids may be referred to as a ‘fingerprint’, or ‘product fingerprint’. Data corresponding to a ‘fingerprint’ of a given product may be obtained empirically using systems according to embodiments of the present invention or by other means and used in methods and apparatus according to embodiments of the present invention. Data in respect of a variation of data indicative of the at least one property as a function of a parameter such as temperature may be obtained and employed to compensate for changes in temperature of liquid inspected by means of systems according to embodiments of the invention.
[0453] End Point Prediction
[0454] In some embodiments, the system 600 may use the calculated values of σ.sub.diff or |σ.sub.diff| to predict when the difference σ.sub.diff between measured conductivities meas and a town will no longer be greater than threshold difference value σ.sub.thresh. The system 600 may do this, for example, by periodically storing values of σ.sub.diff or |σ.sub.diff| and extrapolating the measured values to determine the time at which σ.sub.diff or |σ.sub.diff| will no longer be greater than σ.sub.thresh. Extrapolation may be performed by fitting a mathematical expression to the measured data values, such as an exponential decay function, a polynomial expression such as a second or third (or higher) order expression, or any other suitable mathematical function.
[0455] It is to be understood that predictive functionality in terms of the time at which the plant is expected to be clean (‘end point prediction’) may be helpful in applications where industrial processes may be stopped or paused in order to facilitate cleaning of (say) product outlet lines for the product(s) of one or more processes. Knowing the time remaining before cleaning will be complete can be helpful in enabling processes to be restarted before cleaning is complete so that product is ready to flow through the outlet lines when or soon after cleaning is complete. Other scenarios may benefit from advance knowledge of the time remaining before cleaning is complete. It is to be understood that, in some embodiments, the system 600 may provide a display indicating the local time at which cleaning is expected to be complete, e.g. “Cleaning expected complete at 11:30 am” or in terms of time remaining before cleaning is complete, with a timer countdown feature, e.g. “Time remaining before cleaning is complete: 0 h:23 mins”. Other arrangements may be useful. In some environments such as automated environments, no visual or audible output may be provided in some embodiments.
[0456] In an embodiment implementing end point prediction, the system 600 may measure and store values corresponding to the conductivity of the liquid passing through the sensor cell 610 as a function of time. The system 600 may use the stored data to predict when the conductivity will be at or below the safe threshold value. The system 600 may then provide an output indicative of the time at which the conductivity will be at or below the safe threshold value. For example, as noted above, in some embodiments the system 600 may provide an indication of the time remaining before the conductivity will be at or below the safe threshold value (e.g. in hours, minutes and/or seconds), or the time (e.g. local time) at which the conductivity will be at or below the safe threshold value. Other arrangements may be useful in some embodiments.
[0457] The system 600 may be configured to predict when the conductivity will be at or below the safe threshold value by fitting a curve to the stored data and extrapolating the data forward in time. The system 600 may be configured to fit the stored data to a predetermined curve type such as an exponential curve, polynomial equation such as a second order, third order or any other suitable order of polynomial equation, or any other suitable predetermined curve type including in some embodiments a substantially straight line.
[0458]
[0459] At step S301 the system 600 measures the conductivity meas and capacitance C.sub.meas of flushing fluid flowing through cell 610. It is to be understood that in the present embodiment the system 600 measures the conductivity meas and capacitance C.sub.meas repeatedly at a frequency of around two readings per second. However other frequencies may be useful including higher or lower frequencies depending on the rate of flow of liquid through the sensor cell 610 and rate of change of liquid composition/conductivity as a function of time. In the case that an average value of multiple readings over a period of time is calculated, the choice of rate at which readings are taken may also be influenced by the number of readings that are to be used to obtain an average value.
[0460] At step S303 the system 600 determines the value of ε.sub.r of the flushing fluid using equation (1) and the measured values of conductivity σ.sub.meas and capacitance C.sub.meas.
[0461] At step S305 the system 600 determines the current temperature T.sub.curr of fluid in cell 610 by inserting the value of ε.sub.r calculated at step S303 into equation (2).
[0462] At step S307 the system 600 determines the conductivity σ.sub.flush of flushing fluid at T.sub.curr by means of a stored equation (equation (3) above) linking conductivity and temperature of flushing fluid as introduced to the plant. This equation is determined empirically before use of the system 600 in a calibration operation as described above in respect of the flow chart of
[0463] At step S309 the system 600 calculates the magnitude of a difference |σ.sub.diff| between measured conductivities σ.sub.meas and σ.sub.flush, |σ.sub.meas−σ.sub.flush=|σ.sub.diff|.
[0464] At step S311 the system 600 stores the value of |σ.sub.diff| in a memory of the system 600 together with an indication of the time at which the measurement was made (e.g. local time or time elapsed since the flushing operation began). In some embodiments the system 600 may simply store values such that a chronological order in which the values were obtained by means of the sensor cell 610 is known. The system 600 then checks how many stored values of |σ.sub.diff| in respect of the current flushing operation are in the memory. If the number exceeds 10 the system moves to step S313 else the system moves to step S301. It is to be understood that in the present embodiment 10 readings corresponds to an elapsed time of approximately 5 s from the first to the last readings. Other numbers of readings may be used to determine when to first move to step S313 at the start of a flushing operation in alternative embodiments such as 5, 20, 50, 100 or any other suitable number.
[0465] At step S313 the system 600 compares the value of |σ.sub.diff| with a threshold difference value σ.sub.delta. If |σ.sub.diff| is greater than threshold difference σ.sub.delta then the system 600 moves to step S315 else the system moves to step S317. It is to be understood that, in some embodiments, the system 600 may calculate an average value of |σ.sub.diff|, |σ.sub.diff|.sub.av over a prescribed number of measurements of |σ.sub.diff| such as 10 measurements or more, and compare the value of |σ.sub.diff|.sub.av with a threshold difference value σ.sub.delta in order to determine which step to execute next. This is so as to reduce the risk that an incorrect determination that the cleaning process has ended occurs due to an anomalous measurement. Such a measurement may be obtained due, for example, to noise or a local unexpected variation in composition of fluid being inspected.
[0466] At step S315 the system 600 displays a message ‘cleaning in progress’. The system 600 also calculates a best-fit polynomial expression to the stored data points in respect of |σ.sub.diff| (or |σ.sub.diff|.sub.av) as a function of time. The system 600 employs the polynomial to obtain an estimate of the amount of time remaining before the value of |σ.sub.diff| (or |σ.sub.diff|.sub.av) is expected to be substantially equal to or less than σ.sub.delta. The system then displays the message, “Time remaining before cleaning is complete: Xh:Ymins”, where the calculated expected time to completion is X hours and Y minutes. The system then continues at step S301. Other ways of displaying the time remaining may be useful, such as the number of seconds.
[0467] At step S317 the system 600 displays the message ‘cleaning complete’ and generates an audible alert to inform an operator that cleaning is now complete.
[0468] It is to be understood that systems according to embodiments of the present invention may be used in applications where a fluid of one conductivity value is to be purged or flushed or otherwise replaced by a fluid of a second conductivity, and it is desirable to know when the residual amount of any of the first fluid in the second fluid (as measured with respect to conductivity of a given sample of second fluid that may contain the first fluid) is below a threshold amount. Example applications include those where the first and second fluids are respective different beverages or foodstuffs or any other suitable products such as paints, pharmaceuticals, waste waters or any other suitable fluid. Optionally, as discussed herein, the first fluid may be a cleaning fluid for cleaning internal surfaces of the fluid handling plant and the second fluid may be a flushing fluid such as water or any other suitable flushing fluid. Other arrangements may be envisaged.
[0469] Some embodiments of the invention may be employed to determine the concentration of one or more contaminants in a given fluid. Some embodiments may be employed, in addition or instead, to compare one or more parameters (such as the conductivity) of a fluid passing through the system with one or more corresponding parameters of a reference fluid and to perform an action in dependence on the result of the comparison. For example if the difference in conductivities is below a threshold value, the system may provide an indication that such is the case, for example by providing an indication that a flushing, cleaning or purging operation is complete.
[0470] Other applications of the system and apparatus may be envisaged.
[0471] One embodiment of the present invention provides processing apparatus configured to receive a sense signal from a capacitive fluid sensor comprising a first electrode and a second electrode with a sensing region between the electrodes. The processing apparatus is configured to receive an alternating drive signal applied to the capacitive fluid sensor. The processing apparatus is configured to determine a complex impedance of the fluid sensor based on the sense signal and the drive signal, the complex impedance comprising an in-phase component indicative of a conductivity quantity of a fluid in the sensing region and a quadrature component indicative of a capacitance quantity of the fluid sensor. The processing apparatus is configured to determine a temperature of the fluid in dependence on at least the determined capacitance quantity of the fluid sensor.
[0472] Identifying a Fluid
[0473] There are various applications where it is desirable to identify if a fluid composition is the same as, or similar to, an expected fluid composition.
[0474] An overview of the technology will be given before describing how to acquire data about reference fluid(s) and how to compare a fluid against stored data for the reference fluid(s).
[0475] Optionally, the data set shown in graph A can be approximated by a mathematical function in the form of a function of which expresses conductivity as a function of temperature. This is shown in graph C. An example quartic function (i.e. a polynomial of degree four) has the generalised form:
Conductivity=a(T.sup.4)+b(T.sup.3)+c(T.sup.2)+dT+e
[0476] where: T is temperature; and a, b, c, d, e are coefficients.
[0477] The data set for each fluid is represented by a separate mathematical function.
[0478] Similarly, the data set shown in graph B can be approximated by a mathematical function in the form of a function of which expresses capacitance as a function of temperature. This is shown in graph D. An example quartic function (i.e. a polynomial of degree four) has the generalised form:
Capacitance=f(T.sup.4)+g(T.sup.3)+h(T.sup.2)+iT+j
[0479] where: T is temperature; and f, g, h, i, j are coefficients.
[0480] The data set for each fluid is represented by a separate mathematical function. The mathematical function may be a polynomial function of any desired power. The mathematical function can be derived in various ways. One suitable method is polynomial regression. Another suitable method is curve fitting. The aim is to find a function which best approximates, or fits, the data set.
[0481] An alternative to finding functions which approximate the data is to store the actual set of data values which relate conductivity and temperature and to store the actual set of data values which relate capacitance and temperature.
[0482]
[0483]
[0484]
[0485] Functional block 822 is configured to process the measured data. Block 822 may perform polynomial regression, or some other process, to obtain a function expressing capacitance as a function of temperature and a function expressing conductivity as a function of temperature. Data 823 about the fluid is stored in a data store 824. The stored data 823 may be: a function expressing capacitance as a function of temperature and a function expressing conductivity as a function of temperature; or a data set for capacitance versus temperature and a data set for conductivity versus temperature. The apparatus shown in
[0486] The processing apparatus 820 may be a single processing apparatus, or multiple processing apparatuses. For example, a first processing apparatus may determine the measured values and a second processing apparatus 825 may process the measured data to obtain the reference fluid data. For example, the first processing apparatus may be co-located with the fluid sensor and the second processing apparatus may be located separately or remotely from the fluid sensor, such a server or cloud-based processing apparatus. This can simplify processing apparatus required at, or near, the fluid sensor.
[0487]
[0488]
[0489] The processing apparatus may be connected to an interface and/or a display 926 to provide an indication of which reference fluid matches the fluid under test. The processing apparatus may provide an output signal 927 to control an external apparatus, or to communicate with an external apparatus (e.g. a control system of a processing plant).
[0490] The processing apparatus 920 may be a single processing apparatus, or multiple processing apparatuses. For example, a first processing apparatus may determine the measured values and a second processing apparatus 925 may compare the fluid under test to one or more of the reference fluid(s). For example, the first processing apparatus may be co-located with the fluid sensor and the second processing apparatus may be located separately or remotely from the fluid sensor, such as a server or cloud-based processing apparatus. This can allow easier updating of the reference fluid data and simplify processing apparatus required at the fluid sensor.
[0491]
[0492] There are various possible actions after determining a closest match to the fluid. One possible next step is shown at block 938. An indication of which reference fluid matches the fluid under test can be reported to a user via a digital interface or a display, or sent via a communications link or network to a remote device. Additionally, or alternatively, a control signal may be output to an external apparatus. For example, a valve may be opened if a match is found with an expected fluid (block 939).
[0493] It is possible that the fluid under test is not a good match to any of the reference fluids. Block 935 may use a threshold value (such as a threshold value of Euclidean distance) to determine when a fluid under test is a match. If the difference (or differences) determined at block 936 exceed the threshold value, then block 935 may determine that the fluid under test is not a good match to any of the reference fluids. This can be reported to a user (block 938) and a suitable control signal can be sent, such as a control signal to close a valve.
[0494] Measuring a Fluid Property Independently of Temperature
[0495] As explained above, a value of a measured quantity can vary with temperature. One way of addressing this issue is to measure temperature and then adjust a measured property of the fluid based on the measured temperature. However, it is more desirable to measure a property of a fluid without a need to measure temperature.
[0496] An overview of the technology will be given before describing how to acquire the reference fluid data and how to test a fluid against the reference fluid data.
[0497] Optionally, the data set shown in graph C can be approximated by a mathematical function in the form of a function of which expresses capacitance as a function of conductivity. This is shown in D. An example quartic function (i.e. a polynomial of degree four) has the generalised form:
Capacitance=a(s.sup.4)+b(s.sup.3)+c(s.sup.2)+ds+e
[0498] where: s is conductivity; and a, b, c, d, e are coefficients.
[0499] The mathematical function may be a polynomial function of any desired power. The mathematical function can be derived in various ways. One suitable method is polynomial regression. Another suitable method is curve fitting. The aim is to find a function which best approximates, or fits, the data set. An advantage of approximating the relationship between capacitance and conductivity as a mathematical function is reduced data storage requirements. To obtain an expected value of capacitance, it is only necessary to store the mathematical function. The expected value of capacitance is obtained by computing the function with the quantity “s” equal to a measured value of conductivity.
[0500] An alternative method is to store the actual set of data which relates capacitance and conductivity. An expected value of capacitance is obtained by performing a look up operation (using a measured value of conductivity) in the set of data. Typically, a required value will not equal one of the stored values of conductivity. Therefore, it is possible to interpolate between stored values of conductivity to find a required value of capacitance. Similarly, an expected value of conductivity is obtained by performing a look up operation (using a measured value of capacitance) in the set of data, or by interpolating between stored values of conductivity.
[0501] The mathematical function described above expresses capacitance as a function of conductivity. As an alternative, it is possible to derive a mathematical function which expresses conductivity as a function of capacitance. An example quartic function (i.e. a polynomial of degree four) has the generalised form:
Conductivity=f(z.sup.4)+g(z.sup.3)+h(z.sup.2)+iz+j
[0502] where: z is capacitance; and f, g, h, i, j are coefficients.
[0503] The mathematical function may be a polynomial function of any desired power. The mathematical function can be derived in various ways. To obtain an expected value of conductivity, it is only necessary to store the mathematical function. The expected value of conductivity is obtained by computing the function with a measured value of capacitance.
[0504] The data relating capacitance to conductivity can subsequently be used when measuring a fluid under test. One of the measured values (i.e. the measured value indicative of the capacitance quantity or the measured value indicative of the conductance quantity) is used to find the expected value of the corresponding quantity. If the measured value is indicative of the conductance quantity, then this is used to find the expected value of the capacitance quantity. Any difference between the expected value and the measured value of the capacitance quantity indicates a deviation from the expected value of the capacitance quantity of the reference fluid. Similarly, if the measured value is indicative of the capacitance quantity, then this is used to find the expected value of the conductance quantity. Any difference between the expected value and the measured value of the conductance quantity indicates a deviation from the expected value of the conductance quantity of the reference fluid.
[0505]
[0506] The processing apparatus 1820 may be a single processing apparatus, or multiple processing apparatuses. For example, a first processing apparatus may determine the measured values and a second processing apparatus 1825 may process the measured data to obtain the reference fluid data. For example, the first processing apparatus may be co-located with the fluid sensor and the second processing apparatus may be located separately or remotely from the fluid sensor, such as a server or cloud-based processing apparatus. This can simplify processing apparatus required at, or near, the fluid sensor.
[0507]
[0508] It will be understood that temperature is measured when acquiring the reference data. During subsequent measurements of a fluid under test, temperature does not have to be measured.
[0509]
[0510] The processing apparatus 1920 may be a single processing apparatus, or multiple processing apparatuses. For example, a first processing apparatus may determine the measured values and a second processing apparatus 1925 may compare the fluid under test to the reference fluid data. For example, the first processing apparatus may be co-located with the fluid sensor and the second processing apparatus may be located separately or remotely from the fluid sensor, such as a server or cloud-based processing apparatus. This can allow easier updating of the reference fluid data and simplify processing apparatus required at the fluid sensor.
[0511]
[0512] There are various possibilities for how to use the output of block 1936. In some applications, there may be a requirement to record values output by block 1936. Outputs values may be recorded continuously or periodically (e.g. at fixed time intervals) regardless of their value. Alternatively, output values may be recorded only when they exceed a threshold value. Block 1937 compares the difference (as determined by block 1936) with a threshold value. In some applications, there may be a requirement to know when a threshold value is exceeded. Block 1938 takes action when a threshold value of difference is exceeded. An example of a possible action is sending a notification (e.g. sending a message to a predetermined destination via a communications link). Another example of a possible action is issuing an alarm, such as a visual alarm and/or an audible alarm. The notification can be reported to a user via a digital interface or a display, or sent via a communications link or network to a remote device. Additionally, or alternatively, a control signal may be output to an external apparatus. For example, a valve may be closed if the difference is greater than the threshold value.
[0513]
[0514] Throughout the description and claims of this specification, the words “comprise” and “contain” and variations of the words, for example “comprising” and “comprises”, means “including but not limited to”, and is not intended to (and does not) exclude other moieties, additives, components, integers or steps.
[0515] Throughout the description and claims of this specification, the singular encompasses the plural unless the context otherwise requires. In particular, where the indefinite article is used, the specification is to be understood as contemplating plurality as well as singularity, unless the context requires otherwise.
[0516] Features, integers, characteristics, compounds, chemical moieties or groups described in conjunction with a particular aspect, embodiment or example of the invention are to be understood to be applicable to any other aspect, embodiment or example described herein unless incompatible therewith.