1 Introduction

Investigations of industrial flow systems such as piping networks, heat exchangers, or reactor vessels often rely upon non-invasive flow sensing methods for measuring velocity fields. Non-invasive flow sensing methods are comprised of modern diagnostic tools such as particle image velocimetry (PIV), laser Doppler velocimetry (LDV), optical tomography, or imaging with high-speed digital-video camera equipment. Curved surfaces, such as transparent pipe walls, cause significant distortions that degrade imaging capabilities. Figure 1 illustrates the degree of refraction caused by an acrylic pipe wall, where ray-tracing techniques (Klein 1970) have been used to compute light ray paths traveling through air into a transparent acrylic pipe filled with water. If non-invasive imaging techniques are to be used, modifications need to be made to correct for the optical distortions caused by curved surfaces. When conducting pipe-flow experiments, minimizing and preventing optical distortion caused by the acrylic pipe wall will involve one or a combination of the following correction methods reviewed by Steenbergen (1996):

  1. 1.

    Inverse manipulation of Snell’s Law to augment refraction effects

    • Boadway and Karahan (1981) and Bicen (1982) derive equations to find the actual location of a LDV probe volume and its angular orientation for different situations. Lowe and Kutt (1992) and Lowe et al. (1993) outline a correction procedure for three-dimensional image reconstruction of particle trajectories in flows through cylindrical tubes. The disadvantages of this method are that the enlargement of the LDV probe volume is not accounted for, and the receiving optics will require major realignments for each change of measurement location. Furthermore, total internal reflection of light may impede measurements in certain regions.

  2. 2.

    Placement of pipe within a transparent box

    • Considerable enhancements are made by placing a pipe within a transparent box, filled with a fluid of the same index of refraction as the fluid within the pipe. Studies performed by Chan et al. (2004),Westerweel et al. (1996), and Zhang (2004) use this correction method. Refraction effects are shown to be significantly improved, as shown by the computed beam paths in Fig. 1.

  3. 3.

    Refractive-index matching

    • By matching the index of refraction of the fluid within a pipe to the index of refraction of the pipe-wall material, refraction effects are eliminated. This approach was used in investigations performed by Dybbs and Edwards (1987), Pereira and Sousa (1999), Uzol et al. (2002), and Agrawal et al. (1978). The latter investigation focused on the problem of flow development in curved pipes, where glycerin and water were mixed to closely match the refractive index of Plexiglas. Once more, a ray trace shown in Fig. 1 reveals the optical distortion for this situation. Some disadvantages of this solution include the need to control the temperature of the fluids in order to maintain the desired optical quality, the high viscosity of these fluids relative to water, and the need to machine a pipe section out of a cuboid portion of acrylic.

  4. 4.

    Thin versus thick pipe walls

    • Reduction in pipe wall thickness leads to a smaller amount of refraction. Researchers at Physikalisch-Technische Bundesanstalt crafted a pipe test section with thin outer glass windows 100 μm thick. Laser Doppler velocimetry was then used to investigate pipe flows and installation effects (Wendt et al. 1996). This technique is modified in similar studies that have been performed substituting prefabricated flexible transparent films in place of manufactured pipe sections (Maanen and Fortuin 1983; Mizushina and Usui 1977; Steenbergen 1996). This method requires that flows be studied at low pressures due to the thin membrane, a limitation that obviously has drawbacks for certain applications.

  5. 5.

    Corrective lens

    • A lens is introduced to compensate for the optical effects caused by a curved surface, such as a pipe wall. Applications of this method for LDV experiments are discussed in detail by Durrett et al. (1985) and Els and Rouve (1985).

An unconventional correction method involves custom machining an acrylic contour to remedy the optical distortions that occur in pipe-flow investigations. Laskowski et al. (2005) used this method for PIV experiments on a turbomachinery cascade where wall curvature effects were present, but not as severe as for pipe-flow experiments. This method of correction is referred to as “optical contouring,” and it differs from the effect of a conventional lens. A lens is a device that causes light to either converge or to diverge (Giancola 1984). The optical contour designed in this work corrects for refraction caused by a clear pipe wall and the fluid within, and the goal is to produce an optical wavefront that emerges from the pipe wall planar. Optical contouring is an alternative correction method to the methods described earlier, with the potential for application in non-invasive flow sensing experiments involving collimated laser light such as optical wavefront sensing (McMackin et al. 1995) and optical tomography (McMackin et al. 1999). This paper also evaluates the performance of the optical contour while imaging objects within the pipe under ambient light conditions.

Fig. 1
figure 1

Transparent pipe correction methods. a Optical distortions caused by acrylic pipe walls. b Fluid-in-box correction. c Index-matching correction

This paper will outline in several sections the design methodology, evaluation, and application of an optical contour to pipe-flow experiments. Section 2 introduces relevant background including Huygens’ principle and quantifying wavefront distortions. Section 3 details the development of software tools that utilize ray-tracing techniques (Klein 1970) to determine the shape of an acrylic optical contour that corrects refraction due to the curvature of the acrylic pipe wall. Section 4 explains how the optical contour was manufactured. Section 5 discusses the verification of the optical contour design. Section 6 provides recommendations for future work and conclusions.

2 Theory and background

There are four models that may be considered when analyzing the propagation of an optical signal through an optical system: quantum optics; electromagnetic wave theory; scalar wave theory; and geometric optics (Welford 1991). Scalar wave theory considers the optical signal as an electromagnetic wave, whereas the geometric optics model regards light as bundles of rays that travel in straight lines. These two models may be linked through Huygens’ principle, and both are useful in the present investigation.

2.1 Huygens’ principle

A wavefront is defined as the locus of all points at which the phase of vibration of a physical quantity is the same. Huygens’ principle states that every point on a wavefront can be considered as a source of tiny wavelets that spread out in the forward direction at the speed of the wave itself; the new wavefront is the envelope of all the wavelets (Giancola 1984). This is illustrated in Fig. 2, showing a wavefront traveling away from a source S. The wavefront at a later time is shown to be comprised of a series of secondary wavelets defining the new position of the wavefront. The notion of light rays follows from this concept, as being directed perpendicular to the surface occupied by the wavefront at a given time (Klein 1970). In other words, Huygens’ principle maintains that light rays are always perpendicular to the optical wavefront.

Fig. 2
figure 2

Huygens’ principle (Giancola 1984) used to determine shape of optical wavefront

Through a geometry exercise, the deflection angle of a light ray is equal to the local spatial derivative of the optical wavefront, as shown in Fig. 3. Hence, if a light ray is sent through an optical system, the deflection of the beam would provide knowledge of the slope of the wavefront at that spatial location where the light ray exits the aberrated media. This is useful for the current investigation because knowing the off-axis angle of a beam transmitted through an optical system, it is possible to quantify the distortion of the emerging optical wavefront (Jumper and Fitzgerald 2001).

Fig. 3
figure 3

Linking wavefront distortion with geometric and scalar optics models (ρ = density of the material)

2.2 Quantifying wavefront distortion

The spatial distortion of an optical wavefront may be described in two ways after it has transmitted through an optical system: optical path length (OPL) and optical path difference (OPD). For a known n(x), the OPL can be calculated using:

$$ {\rm OPL}(y) = \int\limits_{x_1}^{x_2} n(x) {\rm d}x $$
(1)

where n(x) is the index-of-refraction field along the path that the light travels. The index-of-refraction field can be found by knowing the thickness and index of the material that the light is propagating through. With this field known, the OPL can be evaluated at a number of points in the viewing aperture of the optical system. The OPD can be calculated by removing the spatial average of the OPL across the entire viewing aperture from the OPL itself. This is given as:

$$ {\rm OPD}(y) = {\rm OPL}(y)-{\rm OPL}_{\rm ave} $$
(2)

where OPLave denotes the spatial average of the OPL performed over the entire viewing aperture. Although OPD is used to quantify the spatial distortion of an optical wavefront, the OPD is not equal to the optical wavefront. Rather, the OPD is the conjugate of the optical wavefront. In order to minimize abberations the OPD must be zero across the viewing aperture. In effect, the emerging optical wavefront is then planar. The shape of the optical contour may be solved for knowing that the OPD of the emerging wavefront must be zero.

3 Design methodology of optical contour

The outer wall shape required to correct for optical aberrations due to the curved surface of a pipe and an enclosed liquid may be computed from Snell’s law of refraction and ensuring that the OPD is zero for the emerging wavefront. This section details two software tools that were developed to predict and verify the shape of the optical contour. They include: (1) the optical contour calculator (OCC) described in Sect. 3.1; and, (2) ray-tracker described in Sect. 3.2. The algorithms are developed in reference to a water-filled acrylic pipe.

3.1 Optical contour calculator

The first stage in this study concerns the development of software to calculate the shape of the optical contour. A functional breakdown of this algorithm is outlined in Fig. 4. The OCC algorithm may be broken into three sections:

  1. 1.

    Ray-trace through a pipe filled with water

    • Compute the direction and OPL of light rays propagating through an acrylic pipe filled with water.

  2. 2.

    “Zeroing” angular deflection

    • Compute the angle of a correction material such that the angle of the light rays are “zeroed” when emerging from the acrylic pipe and optical contour assembly.

  3. 3.

    “Zeroing” emerging wavefront

    • Compute the thickness of the correction material such that the OPD of the emerging wavefront is zero. This ensures the emerging optical wavefront is planar.

Fig. 4
figure 4

Functional decomposition of optical contour calculator (OCC)

3.1.1 Ray-trace through a pipe filled with water

In the following derivation, a set of collimated beams are assumed to emerge from the center of the pipe. Due to the symmetry of the problem, computations will be performed in the first quadrant only. The symbol convention for these calculations is given in Fig. 5, where a section of a pipe in the first quadrant is shown. In the calculation, a beam is propagating parallel to the positive x-axis from a source that is located on the y-axis (x 0,y 0). Note that in the coordinate system defined in Fig. 5, the origin is defined at the center of the acrylic pipe.

Fig. 5
figure 5

Symbol conventions for ray-trace through a pipe filled with water

The following two equations describe all points that lay on either the inner or outer pipe wall:

$$ x_{1}^{2} + y_{1}^{2} = R_{\rm i}^{2} $$
(3)
$$ x_{2}^{2} + y_{2}^{2} = R_{o}^{2} $$
(4)

where the subscripts i and o denote “inner” and “outer.” The beam reaches the inner pipe wall at point (x 1, y 1), thus the angle θ1 can be calculated:

$$ \theta_{1}=\tan^{-1}\left(\frac{y_{1}}{x_{1}}\right) $$
(5)

By Snell’s Law, θ2 can also be solved for:

$$ \theta_{2}=\sin^{-1}\left(\frac{n_{1}}{n_{2}}\sin{\theta_{1}}\right) $$
(6)

where n 1 is the refractive-index of water, and n 2 is the refractive-index of acrylic. The direction of a refracted light ray, shown as Ray 2 in Fig. 5 propagating through the acrylic section of pipe, is θ2. The direction of this refracted light ray can also be described with respect to the x-axis, α1, shown in Fig. 5:

$$ \alpha_{1}=\theta_{1}-\theta_{2} $$
(7)

The intersection of Ray 2 with the outer pipe wall can be computed by solving the following system of equations:

$$ y_{2}-y_{1}=\tan(\alpha_{1})\cdot(x_{2}-x_{1}) $$
(8)
$$ x_{2}^{2} + y_{2}^{2} = R_{o}^{2} $$
(9)

where (x 1,y 1), α1, R o are known; (x 2,y 2) are unknown. Considering only the positive root when solving this system of equations, expressions for x 2 and y 2 are given as:

$$ x_{2} = \frac{-2y_{1}\tan(\alpha_{1})+2x_{1}\tan(\alpha_{1})^2+2\zeta} {2\left(\tan(\alpha_{1})^2+1\right)} $$
(10)
$$ \zeta=\sqrt{R_{o}^2\tan(\alpha_{1})^2+2x_{1}y_{1}\tan(\alpha_{1})- y_{1}^2-x_{1}^2\tan(\alpha_{1})^2+R_{o}^2} $$
(11)
$$ y_{2} = \sqrt{R_{o}^{2}-x_{2}^{2}} $$
(12)

Thus, Ray 2 intersects the outer pipe wall at (x 2,y 2). The angle β1 is solved for by taking the arctangent of the ratio of these coordinates:

$$ \beta_{1}=\tan^{-1}\left(\frac{y_{2}}{x_{2}}\right) $$
(13)

β1 is used to compute the incident angle, θ3, that Ray 2 makes with the normal at (x 2, y 2):

$$ \theta_{3}=\beta_{1}-\alpha_{1} $$
(14)

Once again, using Snell’s law, θ4 can then be solved for:

$$ \theta_{4}=\sin^{-1}\left(\frac{n_{2}}{n_{3}}\sin{\theta_{3}}\right) $$
(15)

The angle, α2, describing the direction of Ray 3, is shown to be:

$$ \alpha_{2}=\beta_{1}-\theta_{4} $$
(16)

In order to complete the ray-trace, the ray must intersect with a plane that is perpendicular to the original ray direction and parallel to the pipe axis. This calculation can be performed for any plane in the x-direction, provided that it is greater than the outer radius of the pipe (x 3 > R o ). The point of intersection (x 3, y 3) can be computed by solving the following system of equations:

$$ y_{3}-y_{2}=\tan(\alpha_{2})(x_{3}-x_{2}) $$
(17)
$$ x_{3}= x_{f} $$
(18)

where x 2, y 2, α2, and x f are known and y 3 is solved for. In this calculation, Ray 3 was chosen to intersect with the vertical plane at x f = 50.8 mm. These calculations were repeated for several rays of light at different y-axis positions within the pipe. This method is known as a “ray-trace.” Figure 6 illustrates a ray-trace for an acrylic pipe filled with water. Knowing the coordinates that describe Ray 1, Ray 2, and Ray 3, the OPL and the OPD can then be computed. This is an important boundary condition when calculating the thickness of the optical contour, and will be outlined in the next section.

Fig. 6
figure 6

Ray-trace for an acrylic pipe filled with water (R i = 28.575 mm, R o = 41.275 mm,12.7 mm wall thickness)

3.1.2 “Zeroing” angular deflection

When light passes through the acrylic-air interface, illustrated in Fig. 7 as Ray 2, some correction material must turn the light ray such that it becomes parallel to the x-axis. The following calculations “zero” a light ray with the x-axis, with no consideration being given to the thickness of the correction material. The thickness of the correction material will eventually be determined by the boundary condition OPD = 0 for the emerging wavefront. This calculation is performed in Sect. 3.1.3.

Fig. 7
figure 7

Symbol convention used when “zeroing” vertical deflection

Rays of light, shown in Fig. 7 as Ray 2, will intersect with some additional material, referred to as the “optical contour.” The refractive-index of this material is matched to acrylic n = 1.49. The following equations can be derived from the geometry shown in Fig. 7:

$$ \theta_{3} = \frac{\pi}{2} - \alpha_{1} - \alpha_{3} $$
(19)
$$ \alpha_{2} = \frac{\pi}{2} - \alpha_{3} - \theta_{4} $$
(20)
$$ n_{2}\sin\left(\theta_{3}\right) = n_{3}\sin\left(\theta_{4}\right) $$
(21)

where α2 must be zero for the light ray to emerge parallel to the x-axis. While elegant methods of finding a solution are available, a simple way of finding the solution is to guess a series of values of α3. The correct value of α3 is that which yields α2 = 0. The angle α3 defines the slope of the optical contour at (x 2,y 2), determined independently from neighboring points. A program written in Microsoft Visual Basic was used to iterate a solution for a group of light rays. The next section will describe the method of calculating the thickness of the correction material.

3.1.3 “Zeroing” emerging wavefront

The emerging wavefront from the pipe was desired to be planar for experiments that involved applying optical wavefront sensing to pipe flow (Bertola 2004). In order for the wavefront to be planar, the OPD of the emerging wavefront must be zero. From Eq. 2, it is required that OPL(y) be equal across the entire viewing aperture for the OPD to be zero. This boundary condition will allow the thickness of the correction material to be determined. Figure 8 illustrates part of the symbol convention for this problem.

Fig. 8
figure 8

Symbol convention used when “zeroing” emerging wavefronts

The OPL of a light ray traveling through the center of the pipe, y =  0, is:

$$ {\rm OPL}_{y=0} = \int\limits_{s_1}^{s_2} n(s) {\rm d}s = L_{1}(y_{0})n_{\rm water}+L_{2}(y_{0})n_{\rm acrylic} $$
(22)

This is the largest OPL of any beam traversing the pipe. Knowing the value for the OPL, the coordinates (x 2,y 2) of the optical contour may be solved for numerically. The following equations were derived using the geometry presented in Fig. 8:

$$ {\rm OPL}(y) = L_{1}(y)n_{1}+ L_{2}(y)n_{2}+ L_{3}(y)n_{3} $$
(23)
$$ L_{1}(y) = \sqrt{(x_{1}-x_{0})^{2}+(y_{1}-y_{0})^{2}} $$
(24)
$$ L_{2}(y) = \sqrt{(x_{2}-x_{1})^{2}+(y_{2}-y_{1})^{2}} $$
(25)
$$ L_{3}(y) = \sqrt{(x_{3}-x_{2})^{2}+(y_{3}-y_{2})^{2}} $$
(26)
$$ y_{3}-y_{2} = \tan(\alpha_{2})(x_{3}-x_{2})=0 $$
(27)
$$ x_{3} = x_{f} $$
(28)
$$ y_{2}-y_{1} = \tan(\alpha_{1})(x_{2}-x_{1}) $$
(29)

where OPL(y) = 56.93 mm. OPL(y) was calculated using Eq. 22, assuming a pipe wall thickness of 12.7 mm. The variable x f was determined from the inner diameter of the acrylic pipe, and the pipe wall thickness. As mentioned previously, an acrylic pipe with an inner radius of 28.575 mm and wall thickness of 12.7 mm was used in this study, therefore x f  = 41.275 mm. The coordinates of the contour shape, (x 2,y 2), were solved numerically by iterating a solution that converged when OPL = 56.93 mm. This was performed by guessing a series of values for (x 2,y 2), and the correct values were those that yielded OPL(y 2) = 56.93 mm. The angle α3 does not appear explicitly in Eqs. 2229, but is referred to implicity in Eqs. 1921 in Sect. 3.1.2.

The numerical solution was performed by establishing a value of zero for α2, as described in Sect. 3.1.2, and OPL = 56.93 mm, with a spatial step size of Δs = 0.0254 mm in the numerical approximation to Eq. 22. Figure 9 shows the number of iterations for different values of spatial step size, Δs. The maximum number of iterations (3 × 106 took approximately 5 s when evaluated using a 701 MHz AMD Athlon 64 processor). Figure 9 indicates that the number of iterations is dependent on step size, and that a step size of 0.0254 mm or less results in an accepTable number of iterations given the computational resources that were available at the time of the investigation.

Fig. 9
figure 9

Number of iterations for different spatial step sizes for the calculation of α2

Thus, the shape of the optical contour was calculated, and is shown in Fig. 10. The coordinates of the outer wall, (x 2,y 2) accurately describe the profile of the optical contour that corrects for refraction for imaging of an interior set of collimated beams on a perpendicular plane outside the pipe.

Fig. 10
figure 10

Optical contour shape

3.2 Ray-tracing tool

Numerical tests were performed on this OCC-computed contour shape by developing a ray-tracing tool (ray-tracker). The ray-tracing tool is a program written to perform a ray trace analysis through an optical system calculated by the OCC. This program is based on ray-tracing techniques (Klein 1970). The program observes how light refracts as it comes into contact with different materials.

3.2.1 Index of refraction

A He–Ne laser with wavelength λ = 632.8 nm is used to generate the optical signal. The values for the index of refraction at this wavelength for standard atmospheric conditions (1 atm and 25°C) were obtained (Weber 2002) for air (n air = 1.00027), water (n water = 1.33) and acrylic (n acrylic = 1.49).

3.2.2 Ray-tracing equations

Ray-tracing techniques are used to determine the path that a ray of light takes as it travels through media with index-of-refraction variations. The ray-trace equation (Klein 1970) is given by:

$$ {\overrightarrow{\tau_{2}}} = \frac{n(\overrightarrow{r_{1}})} {n(\overrightarrow{r_{2}})}{\overrightarrow{\tau_{1}}}+\frac{\triangle s}{n(\overrightarrow{r_{2}})}\nabla n $$
(30)

where the gradient operator is defined as:

$$ \nabla n= \frac{\partial n}{\partial x}{\hat{i}}+\frac{\partial n} {\partial y}{\hat{j}}+\frac{\partial n}{\partial z}{\hat{k}} $$
(31)

The terms used in Eqs. 30 and 31 are graphically illustrated in Fig. 11. A nonzero gradient of the refractive index causes the ray direction \({\overrightarrow{\tau_{2}}}\) to be nonparallel to \({\overrightarrow{\tau_{1}}}.\) Knowing the ray direction at \({\overrightarrow{r_{2}}}\) allows one to approximate \({\overrightarrow{r_{3}}} = {\overrightarrow{r_{2}}} + {\overrightarrow{\tau_{2}}}\triangle s,\) and so on.

Fig. 11
figure 11

Symbol conventions for the ray-tracing equations

3.2.3 Ray-tracing algorithm

Having formulated an optical system on paper, one can mathematically project beams of light through the system to evaluate its performance. Testing was done for different optical systems including prisms, rectangles, circles, pipe geometry, and finally for a pipe fitted with the optical contour (calculated from the OCC). The ray-tracing tool successfully predicts the path that a beam of light will take when traveling through an optical assembly. The effectiveness of the optical contour shape computed in Sect. 3.1.3 was verified using the ray-tracing program. Figure 12a illustrates the test case where a planar optical wavefront originates from the center of the acrylic pipe and propagates through half of the optical system. Figure 12b illustrates the test case where a planar optical wavefront propagates through the entire optical system. In both test cases, the rays of light travel parallel to each other upon exiting the optical system. The slight deviations of the emerging light rays shown in Fig. 12b are due to numerical approximations from the ray-tracing program. Thus, it was verified that the optical wavefront emerged planar from the optical contour section.

Fig. 12
figure 12

Ray-trace through an optical contour

3.2.4 Fresnel equations

The Fresnel equations, derived by Augustin-Jean Fresnel (Welford 1991), describe the amount of light reflected and transmitted at an interface between media of differing refractive indices. When light transmits from a medium of a given refractive index n 1 into a second medium with refractive index n 2, both reflection and refraction of the light may occur, as shown in Fig. 13. For s-polarized light (the electric field vector perpendicular to the plane of incidence), the expression for the complex amplitude reflectance is given by:

$$ r_{\rm s}=\frac{n_{1}\cos(\theta_{i})-n_{2}\cos(\theta_{t})} {n_{1}\cos(\theta_{i})+n_{2}\cos(\theta_{t})} $$
(32)

where θ t can be derived from θ i by Snell’s law. In addition to these field amplitude ratios, one can define the reflected power coefficients (intensity reflectance for s-polarized light) as follows:

$$ R_{\rm s}= \left|r_{\rm s}\right|^{2} $$
(33)

If the incident light is polarized in the plane of incidence, p-polarized, the expressions are given by:

$$ r_{\rm p}=\frac{n_{2}\cos(\theta_{i})-n_{1}\cos(\theta_{t})} {n_{1}\cos(\theta_{t})+n_{2}\cos(\theta_{i})} $$
(34)
$$ R_{\rm p}= \left|r_{\rm p}\right|^{2} $$
(35)
Fig. 13
figure 13

Light traveling through different media

The transmitted power coefficients in each case are given by T s = 1 − R s and T p = 1− R p. Power transmission coefficients were calculated for four different scenarios:

  1. 1.

    Rays of light propagating through an air–acrylic interface

  2. 2.

    Rays of light propagating through an acrylic–air interface

  3. 3.

    Rays of light propagating through a water–acrylic interface

  4. 4.

    Rays of light propagating through an acrylic–water interface.

Since we are considering behavior in the first quadrant, transmission coefficients as a function of y-axis position in the pipe are plotted for water–acrylic, acrylic–air using the pipe only and acrylic–air using the optical contour, illustrated in Figs. 14, 15, 16. Note, at one particular angle for a given n 1 and n 2, the value of T p goes to 100% and a p-polarized incident ray is purely refracted. This is known as the Brewster angle, represented as θB. When moving from a more to a less dense medium (i.e. n 1 > n 2), above an incidence angle known as the critical angle, all light is reflected and T sT p = 0. This phenomenon is known as total internal reflection.

Fig. 14
figure 14

Transmission coefficients through a water–acrylic interface

Fig. 15
figure 15

Transmission coefficients through an acrylic–air interface considering only the pipe as the interface

Fig. 16
figure 16

Transmission coefficients through an acrylic–air interface considering the optical contour as the interface

From these calculations it is shown that transmission is not an issue unless measurements need to be taken close to the pipe wall. Figure 17 shows the area where optical viewing begins to degrade. Dotted lines indicate the range where the transmission coefficients, T s and T p, remain above 85%. As can be seen, it is challenging for side-view non-invasive fluid-flow imaging experiments to collect data near the walls of the pipe due to the poor transmission characteristics in these regions.

Fig. 17
figure 17

Range of optical viewing

4 Manufacturing

The optical contour is machined as an independent piece that can be placed onto the pipe. The functional specifications of the optical contour must provide high transmissitivy/clarity ratings and show little hazing. Table 1 shows the optical properties of some transparent materials. Standard acrylic was deemed the most appropriate choice of material for the optical contour considering its optical properties, strength, and performance properties such as chemical and heat resistance, and ease of fabrication.

Table 1 Optical properties of various materials (Weast 1971)

Coordinates of the optical contour shape, generated from the OCC, were imported into Mastercam G-code for simulation and machining on a 5-axis computer numerically controlled (CNC) machine. G-code is a common name for the programming language that drives CNC machine tools. Manufacturing took place under a 0.79 mm \(\left(\frac{1} {32}{\rm in.}\right)\) ball nose end mill, with A-9 lubrication oil. The manufactured face then was polished by hand to remove surface imperfections and opaqueness. Using diamond paste solution, the polishing stages were reduced incrementally from 15 to 1 μm. This significantly improved the quality of the finish, while minimizing alterations made to the contoured surface.

5 Evaluation of optical contour design

The effectiveness of the optical contour was determined by analyzing the distortion of the emerging optical wavefront. As discussed previously, after transmitting through an optically active medium a light ray will emerge with an off-axis angle θ. This off-axis angle will be equal to the local slope of the emerging wavefront. Experimental quantification of this angle was performed using a small-diameter laser beam and a lateral-effect detector to measure the beam’s off-axis angle upon emerging from an acrylic half-pipe, shown in Figs. 18 and 19. The objective was to determine the accuracy of the software in predicting the shape of the optical contour and to quantify the wavefront distortion for three test cases:

  1. 1.

    Acrylic half-pipe with no enclosed liquid, no optical contour

  2. 2.

    Acrylic half-pipe filled with water, no optical contour

  3. 3.

    Acrylic half-pipe/optical contour assembly filled with water.

Fig. 18
figure 18

Experimental apparatus for verification of optical contour design

Fig. 19
figure 19

Wavefront distortion calculation for an acrylic half-pipe where θ is an angle that takes into account the complete deviation of the beam from the inside of the pipe to the LED (deviation due to the pipe plus the deviation due to the air)

5.1 Testing apparatus

A schematic of the optical bench layout is given in Fig. 18. Measurements of the off-axis angle were made with optical components mounted onto an optical bench. The acrylic half-pipe (63.5 mm OD, 57.15 mm ID) was placed on a translation stage that was capable of controlling one-dimensional movements of the half-pipe into and out of the plane of the page, as shown in Fig. 18.

5.1.1 Lateral effect detector

The lateral effect detector (LED) used in the experiment was a Graseby Optronics Model 1233 (SC-10D) that has a 10 mm × 10 mm active sensing area. A LED is a large-area photodiode that can measure the centroidal location of an incident laser beam. Since the LED is a photodiode, it will induce a current when photons come into contact with its surface. The resulting current will be proportional to the intensity of the incident light, and will also indicate the centroidal location of the incident laser beam. A transimpedance amplifier converts the current into a voltage. The position of the laser beam can then be quantified and recorded.

The method of calibration for the LED consisted of placing the lateral-effect detector onto a yz translational stage (0.0254 mm resolution) and traversing the detector in both the vertical and horizontal direction with the beam position fixed spatially. When performing a y-axis translation, the voltage corresponding to the z-axis position was kept fixed, and vice versa. The calibration was seen to become non-linear near the largest displacements, and thus the data was fit to a cubic function.

5.1.2 Light source

The light source used was a 1 mW Helium–Neon laser with λ = 632.8 nm. It was not possible to experimentally reproduce bona fide light rays, however the diameter of the laser beam used in this experiment (≈1 mm) is a close estimate, and was used to characterize light rays. In connection with the experimental procedure, the exact center position of the half-pipe was located by translating the half-pipe so that the laser beam transmitted through the central region of the half-pipe. Due to reflection of the laser beam off of the LED, it was possible to align the position of the half-pipe such that the retro-reflection exactly coincided with the incident beam. This ensured that the laser beam was passing precisely through the center of the pipe. Once the pipe was centered, the position of the emerging laser beam was recorded on a PC using a LabVIEW-based data acquisition system. From this reference, the pipe was translated at 0.127 mm increments while recording the position of the emerging laser beam on the LED. Since the LED was placed a known distance L away from the outer edge of the pipe, the off-axis angle of the beam was calculated knowing the off-axis displacement, δ, of the beam:

$$ \theta(y)=\tan\left(\frac{\delta}{L+\varepsilon}\right) $$
(36)

The geometry of the problem is defined in Fig. 19. The deviation of the beam due to the pipe wall was neglected; ɛ was calculated from the inside of the pipe to the centerline of the pipe. The beam was considered to follow a straight trajectory from the inside of the pipe and θ was calculated from the point where the beam intersects the inside of the pipe. As mentioned earlier, θ was calculated for three test cases: (1) an acrylic half-pipe with no enclosed liquid; (2) an acrylic half-pipe filled with water; and, (3) an acrylic half-pipe/optical contour assembly filled with water.

5.2 Wavefront distortion

From Huygens’ principle it is known that the off-axis angle of the beam, shown in Fig. 19, is equal to the local spatial derivative of the optical wavefront. It can be shown that for θ(y) ≪ 1, the OPL is given as (Jumper and Fitzgerald 2001):

$$ \frac{\rm dOPL(y)}{\rm dy}=-\theta(y) $$
(37)

The negative sign appears in front of θ(y) because the OPD and optical wavefront are conjugates. Integrating this equation with respect to y yields:

$$ {\rm OPL}(y)=-\int\limits_{y_1}^{y_2} \theta(y) {\rm d}y $$
(38)

This is an equation for the OPL at the location of the laser beam. The integral may be approximated numerically with great accuracy, seeing that θ(y) was interrogated every 0.127 mm (u δ = ±0.0002 mm, u θ = ±2.459 × 10−6). Using Eq. 2, the OPD can be calculated from the OPL, and hence, the emerging optical wavefront can be estimated with uncertainty u OPD = ±0.01753 µm. Figure 20 shows the shape of the emerging optical wavefronts across the entire ID of the half-pipe for test case (2) and (3), mentioned previously in Sect. 5.

Fig. 20
figure 20

Emerging wavefront distortion

The trend for an acrylic half-pipe filled with water, shown as a dotted line in Fig. 20, suggests the wavefront is converging upon exiting the pipe. The trend for an acrylic half-pipe/optical contour assembly filled with water, shown as a solid line, shows the wavefront is relatively planar when emerging from the optical system. This is in good agreement with the ray-trace results shown in Sect. 3.2.3. This demonstrates that the contoured acrylic surface is altering the character of the emerging optical wavefront such that it is planar.

The peak-to-peak value of the optical wavefront in the data set shown for an acrylic half-pipe filled with water was 1.31 × 105 nm. When this value is compared to the wavelength of the He–Ne laser beam used in the experiment, 632.8 nm, the optical wavefront is shown to be equivalent to 207λHe–Ne. However, the peak-to-peak value of the optical wavefront in the data set shown for an acrylic half-pipe/optical contour assembly is 6.52 × 103 nm. When compared to the wavelength of the He–Ne laser beam, the optical wavefront is shown to be corrected to 10λHe–Ne, a significant improvement.

5.3 Grid test

The effect of wavefront distortion was studied further by fixing a uniform square grid (2.5 mm × 2.5 mm) on the flat wall within the acrylic half-pipe described in Sect. 5.1. By filling the acrylic half-pipe with water to a certain level, and covering only a certain portion of the pipe wall with the optical contour, an image of the grid distortion when imaged through various media may be examined. When attaching the optical contour to the pipe wall, proper alignment is important and can be achieved by using common optical alignment techniques (alignment of retroreflective beam with incident beam, for instance). Figure 21 shows an image of the grid distortion for four interface scenarios: (1) air; (2) air and the acrylic half-pipe; (3) water and the acrylic half-pipe; and, (4) water, the acrylic-half pipe, and the optical contour. From the image shown in Fig. 20, interface scenario (3) is clearly more aberrated than interface scenario (4), and this is credited to the optical contour providing correction.

Fig. 21
figure 21

Image distortion of a uniform square grid through an acrylic half-pipe

The photograph shown in Fig. 21 was imported into Adobe Photoshop 7.0. The number of pixels defining height and width of each grid were counted for each of the four interface scenarios. The number of pixels defining grid height and width for interface scenario (1) was found to be undistorted. However, the number of pixels defining the width of each grid for the other three interface scenarios were found to vary across the entire viewing aperture of the half-pipe (the number of pixels defining height of each grid were found to be constant). The grid distortion for interface scenario (3) and (4) were compared by examining the variation of the number of pixels in each grid, as shown below in Eq. 39:

$$ \% {\rm Error} = \frac{\hbox{Pixels}_{\rm distorted} - \hbox{Pixels}_{\rm undistorted}} {\hbox{Pixels}_{\rm undistorted}} \times 100 $$
(39)

where Pixelsdistorted are the number of pixels counted for each grid, and Pixelsundistorted are the number of pixels in a grid in the undistorted interface scenario (1). This quantification of grid distortion is plotted as a function of the centroidal location of each grid with respect to the central axis of the half-pipe, illustrated in Fig. 22. Interface scenario (3) is shown to be altered approximately 40% across the entire viewing aperture of the half-pipe. However, the optical contoured section is distorted less than 10% in the central region and close to 20% near the pipe edges, a considerable improvement.

Fig. 22
figure 22

Quantification of the image distortion of (1) an acrylic half-pipe filled with water and (2) an acrylic half-pipe filled with water and covered with the optical contour. The distortion of each grid is plotted as a function of the centroidal position of each grid with respect to the center of the viewing aperture

6 Conclusions

The focus of this work was to custom machine an acrylic surface that corrects for optical aberrations. Experiments were performed to measure the emerging optical wavefront for three test cases. The data collected shows that for an optical assembly consisting of an acrylic half-pipe filled with water and an optical contour, that the emerging optical wavefront is planar. When compared to the emerging wavefront of a pipe filled with water, major improvements were shown. The peak-to-peak value of the optical wavefront through an acrylic half-pipe filled with water was 207λHe–Ne, whereas for an acrylic half-pipe/optical contour assembly, the peak-to-peak value of the emerging optical wavefront was 10λHe–Ne. This demonstrates that optical contouring promises to be an effective method in reducing optical distortions due to a curved surface. This paper has successfully shown the design methodology behind the computation, manufacturing, and testing of an optically contoured acrylic surface for use in pipe-flow investigations.

There are two areas for future direction in this work. The first direction involves experimenting with more efficient and less expensive means of manufacturing the optical contour. This would involve custom machining a mold of the optical contour, and using liquid acrylic in conjunction with a “hardening” agent to produce optically contoured surfaces. A second and more immediate direction involves the final evaluation of the optical contouring method for application in other pipe-flow imaging experiments that include optical tomography, particle image velocimetry, and imaging with high speed digital-video cameras.