1 Introduction

As an efficient, nondestructive detection technology for porous media, fluid, and gas, online nuclear magnetic resonance (NMR) has been widely applied in a variety of disciplines, such as physics, chemistry, biology, medicine, agriculture, and geology, all of which have real-time demand. In contrast to traditional low-field NMR under static measurement mode, online detection techniques are faced with many challenges. Instruments that are used for static detection cannot be directly exploited for online measurement.

There are two modes of online NMR detection. One is stationary sample with probe motion, which can be used to detect large objects, such as well logging [1], online scanning of building material [2] and soil moisture [3]. The other is stationary probe with the motion of sample, which can be applied to the detection of the fluid flow in real time [4, 5], such as the flowing blood measurements [6], online detection of transport pipeline of gas or liquid, monitoring of chemical reaction processes, etc. In the first detection mode, the measurement responses are mainly affected by velocity, while the second one is influenced by both measurement velocity and the flow characteristic of the fluid sample. For the first mode, to eliminate the velocity effects on polarization and echo acquisition process of NMR measurement, our previous work has presented a set of motion correction method, and in performance work we have proposed motion correction method [7]. This paper is a supplement to the previous work and mainly focuses on the second detection mode.

In this research on the effects of flow state on NMR measurement, a multi-functional low-field and online NMR fluid analysis system is developed, which can realize measurements of NMR relaxation times of a continuous fluid flow.

2 Flowing Effects on Online NMR Measurements

Remarkable distinctions exist between online NMR measurement of fluid static and flow measurement of fluid. The fluid molecules in the detection region of the NMR probe experience Brownian motion under stationary measurement state, in which the sample has sufficient polarization time. In addition, the fluid does not change much in the process of collecting echo signals and transmitting pulse sequences within the detection area. However, flowing fluid sample may not have sufficient time to experience complete polarization in the motion state NMR measurement because of the flow rate, as shown in Fig. 1. In the process of transmitting pulse sequences and collecting echoes, the fluid in the area of detection is constantly changing, which inevitably leads to signal loss during acquisition.

Fig. 1
figure 1

Molecular motion state diagram of a fluid under flowing state

For performance evaluation, we have analyzed the motion effects of well logging in an oil industry and proposed motion correction method [7]. Notably, wireline NMR logging is achieved by acquiring NMR signal with the continuous motion of probe and static detected sample. As such, the sample and probe are in translational motion, which is different from online measurement of flowing fluid (Fig. 1). The rheological property of laminar flow fluid indicates the existence of an army of flow mode, such as Bingham model [8], Ostwald-de Waele power law model, Casson model [9], Herschel–Bulkley (H-B) model [10], and Robertson–Stiff (R-S) model [11], under the same differential pressure. The fluid of the same flow mode has different status, including plug flow, laminar flow, and turbulent flow.

In plug flow mode, the flow velocity effects on NMR measurement are the same as that on a probe motion and a static sample; the expressions are as follows:

$$\begin{aligned} M_{i} = S_{i} H_{{{\text{I}},i}} \left\{ {1 - \exp \left[ { - {\text{TW}}\left( {\frac{1}{{T_{1,i} }} + X_{v} } \right)} \right]} \right\} \hfill \\ {\text{ECHO}} = \left\{ \begin{aligned} \sum\limits_{i = 1}^{n} {M_{i} \exp \left[ { - t\left( {\frac{1}{{T_{2,i} }} + Y_{v} } \right)} \right],{\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} t < \frac{{L_{\text{A}} }}{v}} \hfill \\ 0{\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} ,{\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} t \ge \frac{{L_{\text{A}} }}{v} \hfill \\ \end{aligned} \right\}, \hfill \\ \end{aligned}$$
(1)

where M i is the signal intensity of different fluids after polarization, ECHO is the collected echo signal with the Carr–Purcell–Meiboom–Gill (CPMG) pulse sequence at time t, S i and H I,i express the saturation and hydrogen index of the fluid, T 1,i and T 2,i denote the longitudinal and transverse relaxation times of different components, respectively, TW is the polarization time, L A is the length of antenna, v is flow velocity, X v and Y v represent flow effects of the polarization and echo acquisition processes, respectively; the expressions are shown in [7]. In other flow mode, the situation is different.

This paper studies the steady flow fluid (accelerated speed = 0) and incompressible fluid in cylindrical coordinates using the force balance analysis method. As shown in Fig. 1a, for the radius as R and length as L A cylindrical, due to the steady flow of fluid in a circular tube, acting on a fluid element must maintain the balance of force. The external forces acting on it are: the pressure on the fluid element left side section S1 is (P + △P)πr 2, same with the flow direction; the pressure on the fluid element right side section of S2 is Pπr 2, opposite with the flow direction; the total force is △Pπr 2, the same with the flow direction. Due to the fluid element which moves faster than the outer side of the fluid, Therefore, in vitro side of element receives a shear stress on the role of τ with an opposite the flow direction, so the fluid outside the side face of resistance is 2πr 2 L A. The fluid force balance can be obtained:

$$\Delta P\pi r^{2} = 2\pi rL_{\text{A}} \tau ,$$
(2)

where △P is the fluid pressure difference at both sides of the pipe in the detection range and r is in range of 0–R, R is the diameter of fluid tube; the shear stress τ is:

$$\tau = \frac{\Delta Pr}{{2L_{\text{A}} }} = - \eta \frac{{{\text{d}}u}}{{{\text{d}}r}},$$
(3)

where η is the plastic viscosity and u is the average flow velocity. By combining Eqs. 2 and 3, we obtain:

$${\text{d}}u = - \frac{\Delta P}{{2\eta L_{\text{A}} }}r{\text{d}}r.$$
(4)

Then, the velocity distribution on the transverse section is determined as:

$$v(r) = \frac{Q(r)}{{\pi R^{2} }} = \frac{\Delta P}{{4\mu L_{\text{A}} }}(R^{2} - r^{2} ),$$
(5)

where Q is the rate of flow and R is the diameter of sample tube. The velocity distributions under other flow modes are shown in Sect. 6. The general expressions of X v and Y v are as follows:

$$\begin{aligned} X_{v,1} = \int\limits_{0}^{R} {X_{v,1} } (r){\text{d}}r = \int\limits_{0}^{R} {\left( {\frac{{L_{\text{M}} }}{{v(r){\text{TW}}}} - \frac{1}{{T_{1,i} }}} \right){\text{d}}r} \hfill \\ X_{v,2} = \int\limits_{0}^{R} {X_{v,2} } (r){\text{d}}r = \int\limits_{0}^{R} {\left\{ \begin{aligned} - \frac{1}{\text{TW}}\ln \left( {1 - \frac{{v(r){\text{TW}}}}{{L_{\text{A}} }}} \right) \approx \frac{v(r)}{{L_{\text{A}} }},{\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} v(r){\text{TW}} < L_{\text{A}} \hfill \\ + \infty {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} ,{\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} v(r){\text{TW}} \ge L_{\text{A}} \hfill \\ \end{aligned} \right\}} {\text{d}}r \hfill \\ Y_{v} = \int\limits_{0}^{R} {Y_{v} } (r){\text{d}}r = - \int\limits_{0}^{R} {\frac{1}{t}\ln \left( {1 - \frac{v(r)t}{{L_{\text{A}} }}} \right)} {\text{d}}r \approx \int\limits_{0}^{R} {\frac{v(r)}{{L_{\text{A}} }}} {\text{d}}r, \hfill \\ \end{aligned}$$
(6)

where L M is the length of pre-polarization magnet, X v,1 and X v,2 represent flow velocity caused by ‘less-polarization’ and ‘over-polarization’ phenomena, respectively.

Figure 2 illustrates the simulation of the influence of flow state of different fluid mode on NMR measurements, with the same average flow velocity u and homogenous B 0 and B 1.

Fig. 2
figure 2

Flowing effect on NMR measurement

The simulation result shows that the effects of plug flow and laminar flow with the same velocity on T 2 spectrum are almost the same, with similar migration from the static spectrum. Therefore, to analyze the effects of flow velocity on the measurement of NMR relaxation times, all of the flow modes can be considered as plug flow with the same average velocity, thus, velocity correction method is applied. The application of flow velocity correction method requires an acquisition signal loss degree of <10 % [12]. To achieve this requirement, on the one hand, sufficient polarization time is needed for a fluid to flow through the pre-polarized magnet area, thus, a longer pre-polarized magnet is necessary; on the other hand, longer antenna and large detection zone are needed to reduce the signal loss caused by the flow velocity during the signal acquisition time. This paper focuses on the design of an online NMR fluid analysis probe to increase the polarization efficiency and reduce signal loss.

3 Device

To realize the online NMR fluid measurement, we developed a set of multi-functional low-field and online NMR fluid analysis system (Fig. 3) [13, 14]. This system consists of three parts: a spectrometer and a programmable logic controller (PLC), a sampling control system, and a probe. The spectrometer system comprises analog and digital circuits, which were developed by our group [15]. The Siemens S7-200 PLC is used to control the pump, and thus the flow rate. The sampling control system is composed of an adjustable flow rate pump to maintain a continuous flow of fluid through the probe. The probe consists of a magnet and an antenna, as shown in Fig. 3.

Fig. 3
figure 3

Schematic diagram of a low-field online NMR fluid analysis system

3.1 Magnet

It is very inefficient to directly use objective magnetization vector of pre-polarized magnet for fluid samples during the polarization process which requires longer pre-polarized magnet while the faster the flow rate is the longer the pre-polarized magnet requires. There are two schemes that can remove the effects on NMR measurement which caused by incomplete polarization. One scheme is to do motion corrections for obtained echo sequences; another scheme is to eliminate motion effects by designing the magnet structure of the probe.

This paper describes a multi -stage magnetic structure (shown as Fig. 4a) so that it can effectively solve the problem of polarization time which is not sufficient. The structure is a combination of two magnet structures with different field strength, respectively, and an air section which has certain thickness, meanwhile, the magnet of section A and the air of section B make up polarization area of the probe, magnet of section C is a detection area. All magnets adopt the circular structure, the polarization direction is along the Z-axis as shown in Fig. 4a. The parameters of size and field strength of the three-stage structure is shown in Table 1. In practical measurements, the fluid flows into the first magnet section A for polarization, the magnet field strength of the center of section A is higher than the central detection region (as shown in Fig. 4b) of section C, the purpose of which is to rapidly polarize the samples and make the magnetization vector after samples go through the magnet of section A that is higher than objective magnetization vector of detection area; the purpose of B is to use air to rapidly ‘drop down’ the magnetization vector after ‘hyperpolarized’ by magnet of section A to make them close to the objective magnetization vector when they enter into detection area of section C. The length of section A and B is a critical fact to decide whether the fluids will reach to objective magnetization vector after entering into detection zone or not, it is necessary to analysis the magnetization vector about the fluids after going through section A and B to study whether it could reach to magnetization vector detection range (less than 5 %) or not. Equation 7 gives a variation of magnetization vector M(t) as the fluids flow into the pre-polarization region of the probe at time t:

$$M(t) = M_{\text{A}} (1 - e^{{ - t_{1} /T_{1} }} )e^{{ - (t - t_{1} )/T_{1} }} ,$$
(7)

where, t 1 = L A/v and L A is the length of section A magnet, v is the velocity of flow, M A is field strength of section A magnet. The options of field strength of section A magnet and length of section A and B need to observe the following two principles: (1) ensuring that the magnetization vector will be close to the area magnetization vector after the fluids which have more larger T 1 range flowing through the pre-polarized magnet at more faster flow rate. (2) pre-polarized magnet need to be as short as possible to reduce the overall length and weight of the probe. As shown in Fig. 5. Under premise that the length of section B air zone and flow rate of fluids is fixed at 30 mm and 30 mm/s, respectively, the variance is the deviation between objective magnetization vector and magnetization vector which is obtained when fluids that contain different T 1 components under the condition of different length of section A magnet are enter into detection area at 30 mm/s flow rate (the allowed maximum flow rate of designed system). It will be decided through the numerical simulation that when A = 109 mm, B = 30 mm, even though the variation of T 1 range is larger, it still can ensure that fluids enter the detection area reaching objective magnetization vector.

Fig. 4
figure 4

The two magnetic structure probe. a Magnetic structure diagram; b the intensity of static magnetic field on the central axis of the probe

Table 1 Relative size parameters of two magnetic structure probe
Fig. 5
figure 5

Numerical simulation of the magnetic vector of fluid flow in the detection area of section C. a Numerical simulation of magnetic vector of fluid that has different T 1 components with different magnet lengths of section A (the velocity of the fluid is 3 cm/s); b magnetization of different T 1 components of the fluid after flowing through the pre-polarization magnets at different speeds

3.2 Separated Antenna

As the same effect as insufficient polarization caused by NMR measurements, the insufficiency of signal acquisition can be suppressed using two schemes, one is still the movement velocity correction; another is the design of separate antenna structure aimed at NMR online measurement, as shown in Fig. 6. Separate antenna is placed at the end of detection area of C section magnet, it has changed the traditional NMR instrument that contains “single-input single” antenna structure. Its structure contains longer antennas which used to transmit pulse sequence, and a reception antenna which is parallel to transmitting antennas to receive echo signal, the purpose of this design is to offset effects of certain part of flow velocity. Using CPMG pulse sequence for example, CPMG pulse sequence comprises a series of 90° and 180° pulse. If using the separate antenna structure to do measurements with CPMG pulse sequence, fluids within the transmitting antenna A 1 region will be excited by 90° pulse at first, only the echo signal can be received in the antenna A 2 section in the subsequent process of collecting echo signals, therefore, during a CPMG pulse sequence, as long as fluid flows through the length of the distance S ≦ A 1 − A 2, then the flow rate cannot theoretically affect the NMR signal acquisition.

Fig. 6
figure 6

Schematic of separate antenna structure and RF field direction. a The lengths of transmitting antenna (A 1) and the receiving antenna (A 2) are 300 and 30 mm, respectively. b Direction of RF magnetic field of the separate antennas, the green arrow shows the numerical simulation of the two-antenna RF field direction, the directions of the RF field of these antennas are orthogonal to avoid interference coupling

In this paper, transmitting antenna of online NMR fluid analysis system A 1 = 300 mm, receiving antenna A 2 = 30 mm, the inner diameter of sample tube is 10 mm, allowed maximum detectable velocity is 30 mm/s.

4 Experiments

Flow measurement experiment was conducted in a laboratory environment using a multi-functional low-field and online NMR fluid analysis system. The sample is distilled water. Using inversion recovery (IR) and CPMG pulse sequences to measure the NMR relaxation times of distilled water under different flow velocities, and then the T 1T 2 distributions were obtained by Laplace transform inversion. Experimental parameters are as follows, echo interval time T E = 2 ms, the TW values are selected in the range of 0.5–9 × 103 ms logarithmically. Other experimental parameters are show in the figure legend.

Figure 7 shows the FID signal and inversion results of distilled water obtained by IR pulse sequence under different flow velocities; the experimental parameters as shown in the figure note. The results show that the multi-segment magnetic structure can increase the polarization efficiency. At 0–50 mm/s velocity, the distilled water samples were completely polarized before flowing into the detection region (the value of magnetization vector tipped by 180° pulse of IR pulse sequence is −M(0)); the double-antenna structure provides plenty of recovery times (of 0–30 mm/s) for the magnetization of flow sample under the velocity range. Thus, this magnetic structure can eliminate the flow effects on T 1 measurement.

Fig. 7
figure 7

Analysis of distilled water samples using IR pulse sequence. The experimental parameters are as follows: the polarization time TW values are selected in the range of 0.5–9 × 103 ms logarithmically, to collect FID signal; the experiments were repeated in static, 3 and 5 cm/s. a First amplitude of FID signal; b T 1 maps

Figure 8 shows the T 2 experiment results obtained by CPMG pulse sequence. The results show that the use of separate antenna structure can reduce the flow effect on T 2 map, but such effect cannot be completely eliminated. In addition, as shown in Fig. 8a, faster velocity results in larger influence, because the physical properties of the fluid flow may change. Flow can conceal the effect of Brownian motion of a fluid, which results in the enlargement of diffusion coefficient. This phenomenon directly affects the measurement result of T 2. For these effects, on the one hand, the homogeneity of static magnetic field of the detection region can be improved (the sample tube diameter decreases or the magnet structure optimization) or the flow rate can be decreased. On the other hand, the DEFSR and DEFIR pulse sequences for rapid measurement of 2D relaxation times are proposed in our performance work [16, 17]. Given that these two pulse sequences are mainly applicable to T 1 measurement, which is insensitive to molecular diffusion, the accurate measurement of fluid relaxation times at the flowing state is implemented to apply the two pulse sequences on the multi-functional low-field and online NMR fluid analysis system. As shown in Fig. 9, for flow measurements of light oil sample (η is 210.4 mPa s at 20 °C), the 2D T 1T 2 distributions measured by DEFIR pulse sequence are in good agreement with that measured by T 1-ecoding pulse sequence [18].

Fig. 8
figure 8

Analysis of distilled water samples using CPMG pulse sequence. The experimental parameters are as follows: TW = 0 (polarization was completed after the fluid flows through the pre-polarized magnet), echo interval time T E = 2 ms, number of echoes N = 2000; the experiments were repeated in static, 10, 20 and 30 mm/s, and a single antenna (using the transmit antenna of separate antenna as a transmit and receive antenna) was used to collect echo train under 3 cm/s, separately. a Echo signal collected by CPMG pulse sequence; b T 2 maps

Fig. 9
figure 9

2D distribution of the relaxation times of a light oil sample obtained by DEFIR pulse sequence measurements. The red equipotential line represents the T 1T 2 distribution obtained by T 1 echo pulse sequence, the solid line represents the T 1T 2 distribution obtained by DEFIR sequence measurement. The experimental parameters are as follows: TWFIR values were selected in the range of 0.5–300 ms logarithmically, the one sample measuring time by DEFIR pulse sequence with these parameters is about 40 ms; The traditional pulse sequence measured parameters: echo spacing T E = 0.2 ms, number of echos N = 2000, polarization time TW values were selected in the range of 0.5–1500 ms logarithmically

5 Conclusion

The on-site and real-time NMR measurement method is an efficient detection mode for flowing fluid. However, the flow state affects the NMR measurement in two aspects:

  1. 1.

    Flow velocity effects. Theoretical analysis and experimental verification show that the influence of flow velocity can be eliminated using the following two methods: (a) motion correction, in which the collected signals measured by IR and CPMG pulse sequence are corrected, but a longer polarization magnet and an antenna are needed to make up for the insufficient polarization and acquisition signal loss; (b) use of multi-magnetic and separate antenna structure, this probe optimization method can make up for the limitation of the first method by decreasing polarization time without motion correction.

  2. 2.

    For the inhomogeneity of B 0 and B 1 fields, the apparent diffusion coefficient increases under flow state; the experimental results show that using multi-magnetic and separate antenna structure, the rated flow velocity almost has no effect on the T 1 measurement, and the effect on T 2 measurement is reduced. By combining the DEFIR pulse sequence, the measurement of T 2, which is quite sensitive to molecular diffusion, is replaced by that of T 1, which is insensitive to molecular diffusion. By adopting this pulse sequence on the multi-functional low-field and online NMR fluid analysis system can be used for flowing fluid measurement.