1461114510-b0f39f41-dc56-4825-84b7-e621c62d1f63

1. A downhole tool comprising:
a housing enclosing at least a part of a sensor;
one or more coolant supply lines extending to the housing;
one or more coolant return lines extending to the housing;
one or more first channels, formed in the housing and connected to one of one or more coolant supply lines or one or more coolant return lines, for bypassing coolant past the at least a part of the sensor; and
one or more second channels, formed in the housing and connected between the one or more first channels and the other of the one or more coolant supply lines and the one or more coolant return lines in the housing, for conveying the coolant to pass over the at least a part of the sensor;
in which the one or more coolant supply lines and the one or more coolant return lines are positioned within coiled tubing.
2. A downhole tool, comprising:
a housing having a coiled tubing connector and defining a chamber terminating in an uphole direction by a ported plate;
a sensor having components within the chamber, the sensor being for monitoring a characteristic of a well; and
one or more coolant supply lines connected to the chamber.
3. The downhole tool of claim 2 in which the one or more coolant supply lines are connected to the ported plate.
4. The downhole tool of claim 2 further comprising one or more coolant return lines connected to the ported plate.
5-9. (canceled)
10. A downhole tool comprising:
a housing having a chamber defined by a downhole ported plate and an uphole ported plate in the housing;
a sensor having components within the chamber; and
one or more coolant supply lines extending between a coolant supply, located above ground in use, and one of the downhole ported plate or the uphole ported plate.
11. The downhole tool of claim 10 further comprising one or more coolant return lines extending between a coolant return located above ground in use and the other of the downhole ported plate or the uphole ported plate.
12-29. (canceled)
30. A position sensor comprising:
a housing;
a sensor having components within the housing, the sensor being for monitoring in use the location of a second well during drilling of the second well while the housing is in a first well;
one or more coolant supply lines extending to the components; and
one or more coolant return lines extending to the components.
31. The position sensor of claim 30 in which the components are within a chamber defined by the housing and connected to receive coolant from the one or more coolant supply lines through one or more ports in a downhole portion of the chamber.
32. The position sensor of claim 31 in which the downhole portion and an uphole portion of the chamber are each defined by a respective ported plate mounted within the housing.
33. The position sensor of claim 32 in which the components are mounted to one or both of the ported plate that defines the downhole portion of the chamber and the ported plate that defines the uphole portion of the chamber.
34. The position sensor of claim 30 in which the components are located within coiled tubing in one of a pair of horizontal wells used for heat assisted gravity drainage.
35. The position sensor of claim 34 in which the coiled tubing is coil in coil tubing.
36. The position sensor of claim 30 in which the components comprise a magnetometer.
37. The position sensor of claim 30 in which monitoring the location of the second well comprises monitoring the location of a drill string.
38-75. (canceled)
76. A downhole tool, comprising:
a production pump;
one or more coolant supply lines extending to the production pump; and
one or more coolant return lines extending from the production pump.
77. The downhole tool of claim 1 further comprising a temperature sensor connected to control fluid flow through the one or more coolant supply lines based on a temperature sensed by the temperature sensor.
78. The downhole tool of claim 77 in which the temperature sensor comprises a thermostat valve.
79. (canceled)

The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.

1. Method for distinguishing between a contacting of foam (2) or of liquid (1) in a liquid container (5) of a device (100) by means of a capacitively operating measuring device (M) having a sensor (3) which can be moved up and down in the liquid container (5), wherein at least one output signal (sout(t)) is processed by the measuring device (M), the method comprising the following steps:
a. executing an up or down movement (B) of the sensor (3) in the liquid container (5);
b. applying an input signal (sin(t)) having a first frequency (f1) to the sensor (3);
c. applying the input signal (sin(t)) having a second frequency (f2) to the sensor (3), where the second frequency (f2) and the first frequency (f1) are different;
d. within the framework of a first process (P1)\u2014evaluating the output signal (sout(t)) in order to detect a first jump (\u0394X1) of the output signal (sout(t));
e. within the framework of a second process (P2)\u2014evaluating the output signal (sout(t)) in order to detect a second jump (\u0394X2) of the output signal (sout(t)),
f. comparing the first jump (\u0394X1) with the second jump (\u0394X2);
g. if the comparison exceeds a specification, outputting an identifier (Ks), which signals a contacting of the sensor (3) with foam (2) in the liquid container (5).
2. The method according to claim 1, characterized in that in step f. in the comparison, a quotient (Q) of the first jump (\u0394X1) and the second jump (\u0394X2) is determined and that in step g. a factor (F) serves as a specification, wherein the identifier (Ks) is output if the quotient (Q) exceeds the factor (F).
3. The method according to claim 1, characterized in that the step e. or f. or g. is only carried out if the first jump (\u0394X1) has been detected.
4. The method according to claim 2, characterized by the step: if the quotient (Q) does not exceed the factor (F), outputting an identifier (Kf) which signals a contacting of the sensor (3) with liquid (1).
5. The method according to claim 1, characterized in that a jumpy change in the output signal (sout(t)), which reaches at least a jump factor (SF) is identified as jump (\u0394X1, \u0394X2).
6. The method according to claim 1, characterized in that:
a first sinusoidal signal (S1) having the first frequency (f1) is applied within the framework of the first process (P1) as input signal (sin(t)); and
a second signal (S2) having the second frequency (f2) is applied within the framework of the second process (P2) as input signal (sin(t)).
7. The method according to claim 6, characterized in that:
the first sinusoidal signal (S1) and the second sinusoidal signal (S2) are applied in a superposed manner simultaneously as input signal (sin(t)); and
the output signal (sout(t)) is divided into a first output signal component (sout1(t))\u2014corresponding to the first frequency (f1)\u2014and a second output signal component (sout2(t))\u2014corresponding to the second frequency (f2);
the first output signal component (sout1(t)) is evaluated within the framework of the first process (P1) and the second output signal component (sout2(t)) is evaluated within the framework of the second process (P2)\u2014preferably simultaneously.
8. The method according to claim 6, characterized in that:
the first sinusoidal signal (S1) and the second sinusoidal signal (S2) are applied alternately as input signal (sin(t)); and
the output signal (sout(t)) corresponding to the first frequency (f1) or the second frequency (f2) is evaluated alternately within the framework of the first process (P1) or the second process (P2).
9. The method according to claim 1, characterized in that the evaluation of the output signal (sout(t)) comprises the determination of a phase shift (\u0394\u03c6) of a complex permittivity which signals a contacting of the sensor (3) with a liquid (1) below foam (2) in the liquid container (5).
10. The method according to claim 1, characterized in that after output of the identifier (Ks) which signals a contacting of the sensor (3) with foam (2), the following steps are carried out:
a. executing a further movement (B) of the sensor (3) in the previously executed direction of movement;
b. within the framework of a fourth process (P4)\u2014applying an input signal (sin(t)) to the sensor (3) and evaluating the output signal (sout(t)), in order to detect a foam-liquid phase boundary and optionally output an identifier (Kf) which signals a transition of the sensor (3) from foam (2) into liquid (1).
11. The method according to claim 10, characterized in that: the evaluation of the output signal (sout(t)) within the framework of the fourth process (P4) comprises the evaluation or processing of a complex permittivity.
12. The method according to claim 10, characterized in that when evaluating within the framework of the fourth process (P4) a difference between two phase angles (PH1, PH2) in terms of magnitude or a phase shift (\u0394\u03c6) is determined in order to then output an identifier (Kf) which signals a transition of the sensor (3) from foam (2) into liquid (1).
13. Apparatus which is equipped with a capacitively operating measuring device (M) for determining a phase boundary in a liquid container (5), wherein the apparatus comprises a movable sensor (3), an input signal generator (E) and an evaluation circuit (A), wherein the input signal generator (E) is connectable in terms of circuitry to the sensor (3) or to the liquid container (5) and wherein the evaluation circuit (A) is connectable in terms of circuitry to the sensor (3) or to the liquid container (5) so that the output signal (sout(t)) is processable by the evaluation circuit (A), characterized in that the evaluation circuit (A)
is configured to evaluate the output signal (sout(t)) in order to detect a first jump (\u0394X1) of the output signal (sout(t)) and a second jump (\u0394X2) of the output signal (sout(t));
is configured to compare the first jump (\u0394X1) with the second jump (\u0394X2);
is configured to output an identifier (Ks) which signals a contacting of the sensor (3) with foam (2) in the liquid container (5), wherein this identifier (Ks) can be output if the comparison exceeds a specification.
14. The apparatus according to claim 13, characterized in that it is configured to form a quotient (Q) of the first jump (\u0394X1) and the second jump (\u0394X2) when comparing and to output the identifier (Ks) if the quotient (Q) exceeds a factor (F) as specification.
15. The apparatus according to claim 13, characterized in that the input signal generator (E) is configured to provide two signals (S1, S2) which can be combined to produce a combined alternating voltage, wherein preferably a voltage adder (SA) is used to produce a combined alternating voltage which serves as input signal (sin(t)).
16. The apparatus according to claim 13, characterized in that the evaluation circuit (A) comprises a diplexer (TP, HP) which is configured to divide the output signal (sout(t)) into a first output signal (sout1(t)) and a second output signal (sout2(t)), wherein the first output signal (sout1(t)) and the second output signal (sout2(t)) are evaluable by the evaluation circuit (A).
17. The apparatus according to claim 16, characterized in that the input signal generator (E) is configured to be able to determine the capacitance of the sensor (3) at several frequencies (f1, f2).
18. The apparatus according to claim 16, characterized in that the evaluation circuit (A) is configured to determine a phase shift (\u0394\u03c6) of a complex permittivity which signals a contacting of the sensor (3) with a liquid (1) below or above foam (2) in the liquid container (5).