You are currently viewing a new version of our website. To view the old version click .
Sensors
  • Article
  • Open Access

14 October 2024

Low-Cost Device for Measuring Wastewater Flow Rate in Open Channels

and
Faculty of Electrical Engineering, Automatic Control and Informatics, Opole University of Technology, 45-758 Opole, Poland
*
Author to whom correspondence should be addressed.
This article belongs to the Section Industrial Sensors

Abstract

This research paper describes the development of a low-cost device for measuring wastewater flow rates in open channels, a significant advancement enabled by the evolution of microcomputers and processing techniques. A laboratory setup was constructed to validate the device’s accuracy against a standard flow measurement method, optimizing key parameters to achieve a linear relationship between detected and set flow rates, while considering hardware limitations and energy efficiency. The central focus of the research was developing a method to measure the velocity of contaminated fluid using ultrasonic signals, employing the cross-correlation method for signal delay analysis in a stochastic environment. This was complemented by a procedure to measure fluid levels, also based on ultrasonic signals. The device’s reliability was assessed through repeatability and uncertainty measurements, confirming its accuracy with an extended uncertainty not exceeding an average of 3.47% for flows above 40 L/min. The device has potential to provide valuable data on the operational dynamics of sanitary networks, crucial for developing and calibrating simulation models.

1. Introduction

The development of cities and villages, driven by the steady increase in population, results in an increased volume of wastewater flowing into the central sanitary sewer infrastructure. While the construction of new residential areas is associated with the simultaneous construction of sanitary sewers of appropriately adjusted capacity, in some urban areas, there is no physical or economic possibility to expand the existing, often open, channels that currently frequently operate at the limit of their capacity.
Improving the monitoring system of sanitary networks is currently a significant branch of the industry, enabling the assessment of their hydraulic efficiency. The main problem faced by water and sewerage companies concerns the systematic collection of data, including the volume and velocity of wastewater flow in open channels and the thickness of the sewer sediment in man-entry collectors. A lack of supervision over the proper functioning of the sewage discharge system can lead to system overflows or leaks, posing a potential threat to the life and health of the region’s residents and causing environmental contamination. Access to current operational parameters of the system allows for the estimation of the load in specific areas and the detection of undesirable phenomena, such as surges and backups in the channel or exceeding maximum fill levels.
One area of current scientific research involves constructing simulation models of sanitary systems, which can be used to predict network behavior under various working conditions. The values of the operational parameters of the sewage system, which are recorded in real time, constitute a significant and necessary element in the process of calibration and validation of mathematical models. The phenomenon of fluid flow in sewer channels has been described to some extent in the literature. Equations and mathematical models characterizing flow through channels of different shapes, such as trapezoid, rectangle, or cylinder, have been identified [1,2,3,4,5]. However, sewage systems, especially in large agglomerations, are diverse, composed of channels of various sizes and shapes with numerous intersection points.
Currently, many water and sewerage companies still do not have metering systems for sewage or stormwater infrastructure. Measuring the linear velocity of flow in successive sections of the network remains a technological challenge and a significant aspect of the development of existing sewer infrastructure. The issue arises from the necessity of installing measurement devices, usually in highly contaminated channels, in a possibly non-invasive manner that does not disrupt the proper flow of sewage. Moreover, measuring the actual amount of wastewater discharged can result in significant savings for plants that use water in their technological processes. Presently, in manufacturing plants, sewage is accounted for based on the amount of water drawn or on a flat-rate basis. In reality, for industrial installations, the amount of wastewater discharged into the sewerage may differ, e.g., due to water losses in production processes or due to losses in the exploited installation. This is an important reason why it is worthwhile to expand existing systems with additional monitoring devices. Although there are currently several solutions on the market that allow for the measurement of flow velocity in open channels, these options tend to be relatively expensive, and their measurement accuracy, along with the need for calibration, indicates a continued need for the development of new methods and devices with minimized construction and operational costs.
The innovative use of ultrasonic signals to measure fluid velocity represents a significant leap forward in the accuracy and reliability of flow measurement in contaminated environments. By employing the cross-correlation method for signal delay analysis, this research not only enhances the precision of flow rate determinations but also provides a viable solution for environments that present unique challenges, such as high levels of turbulence and contamination. Our work not only contributes to the field of environmental monitoring but also supports broader goals of sustainability and public health by enabling more effective wastewater management strategies.
Later in the article, in Section 2, we provide a comprehensive literature review of current advancements in ultrasonography for flow measurement across various industrial sectors, highlighting its diverse applications and emerging trends. In Section 3, we focus on the cross-correlation method, which is crucial in flow rate measurements, and we present the detailed process of designing and constructing a specialized low-cost device aimed at measuring wastewater flow rate in open channels, highlighting the challenges and innovative solutions involved in its development. Section 4 describes example measurement results of data from the velocity and level sensors and validation of the device’s performance under laboratory conditions. Section 5 presents a discussion of the results achieved, while Section 6 concludes the paper.

3. Materials and Methods

3.1. Cross-Correlation Method

In the research presented in this paper, a flow measurement method based on the work of O. Binnefous and P. Pesque [53] was applied. This method uses cross-correlation analysis, which relies on the time shift between correlated successive echo signals rather than the frequency shift characteristic of traditional Doppler techniques. This method originates from the field of medicine and was used to measure blood velocity in living organisms by Teufel [54].
In measurement devices using the Doppler pulse method, a high degree of correlation between successive ultrasonic emissions is assumed. Algorithms developed to extract information about the velocity of fluids in channels are based on this correlation [55]. Correlation, a mathematical method of assessment, has found its place in flow measurement technology assessment, thanks to the development of fast and efficient microprocessors. In various flow measurement methods, it is particularly used as a non-invasive technique in multiphase flows. Combined with ultrasonic technology, it can be used in fully or partially filled large-diameter pipes, as well as in open channels. The prerequisite for using correlation is the presence in the propagation medium of particles that reflect the wave, floating solid particles or gas bubbles. For this reason, the method is also applicable in sewage systems for wastewater transport [54].
The theoretical level of measurement precision in this method depends on the sensor’s inclination angle φ, the signal’s bandwidth, and the width of the segmentation window, along with the associated windowing errors. The function determining the cross-correlation recognizes only the assigned correlation area. In cases where a small number of particles is present in the fluid, measurement accuracy may decrease. In relation to the method using the cross-correlation function, the equation for particle velocity   V x   takes the form of Equation (1).
V x = c τ ( x ) 2 T P R s i n ( φ )
where: V x —particle velocity, τ ( x ) —delay corresponding to the global maximum of the cross-correlation function at position x, φ—sensor inclination angle relative to the fluid motion, equal to 45°, TPR—time between emissions of two pulse sequences, and c—sound speed in the propagation medium [19].
A major advantage of this method is its capability for profiling fluids in both open and closed channels. However, in channels that are small relative to the device size, fluid turbulence can significantly affect the accuracy of the measurements. Significant errors also occur in the case of pure water. Another issue is when large objects in the fluid get stuck above the level of the measuring device (e.g., wedging near it), obstructing the transducer and leading to erroneous measurements. In practice, frequent checks of its status are required.

3.2. Construction of a Device for Measuring Wastewater Flow in an Open Channel

Figure 1 presents an electrical schematic of the developed and constructed device for measuring flow in an open channel. The device utilizes the specialized Texas Instruments TDC1000 circuit, an ultrasonic front-end (AFE) that allows for hardware generation and analysis of ultrasonic signals with automatic gain profile adjustment, pulse count regulation from 1 to 13, an operating temperature range from −40 to 125 °C, and AEC-Q100 certification. The TDC1000 transducer works in conjunction with a 32-bit ARM Cortex M4 processor with RISC architecture (STM32), which is used for signal analysis, correlation determination, and communication protocol management.
Figure 1. The electrical schematic of the measuring device. Source: own development based on [56].
Moreover, the system integrates a converter for 5 V power conversion, a 5/3.3 V voltage regulator, and a fast RS485 circuit, enabling communication according to the industrial RS485 standard between the device and the management system, along with two ultrasonic transducers. The first is mounted at a 45° angle for liquid flow measurement, and the second is perpendicular to the surface for measuring liquid height. An accelerometer, gyroscope, and magnetometer are also built into the device, allowing for precise determination of the sensor’s spatial orientation in the fluid. Proper positioning of the device is necessary for accurate measurements. Figure 2 displays images of the constructed measuring device: the electronic circuit, the digital printout, the ultrasonic transducer, and the mounting on the clamp.
Figure 2. Photos of the electronic circuit (a top), digital printout of the device’s casing (a bottom), ultrasonic transducer (b), and device mounted on the clamp (c). Source: own.
Figure 3 presents a schematic of a laboratory measurement setup consisting of the measuring device placed in a ϕ = 0.15 m diameter half-pipe, supplied with tap water containing particles of crushed pellets, simulating sewage. A submersible pump controlled by a three-phase powered inverter system is used for supply. An Optiflux 1000f electromagnetic flow meter from Krohne is installed in the half-pipe [57]. The experimental setup allowed for the control of the flow rate Qset ranging from 0 to 210 L/min.
Figure 3. A schematic of the setup for measuring the flow rate in an experimental open channel. Source: own development based on [56].
The principle of measuring speed and liquid level in the channel, showing the propagation of ultrasonic waves and subsequent measurement layers, is as follows: The measuring device is mounted at the bottom of the channel. The device has two sensors: a CH level (depth) sensor and a CV (velocity) sensor. The CV sensor is inclined at a 45° angle to the channel bed. The CH sensor is positioned perpendicular to the channel bed.
The CV and CH sensors are initialized with optimal parameters determined during the research. These parameters include:
  • Noffset—the number of initial samples discarded, containing signals reflected from the walls of the CV and CH sensors;
  • δ—the number of signal samples used to determine the Noffset parameter;
  • TPR—the time between transmission and reception of successive pulse series emitted by the CV sensor;
  • LW—the width of successive layers, considered within a data frame composed of 2000 signal samples;
  • N—the number of signal samples considered in the correlation analysis;
  • TH—threshold value for determining the liquid level by the sensor CH.
The data frame corresponding to the signal recorded by the CV sensor consists of 2000 signal samples. The number of initial samples discarded, marked as Noffset, is ignored in the analysis. The subsequent 2000 Noffset signal samples are subjected to correlation analysis, with the frame divided into layers of width LW, and only N samples from each layer are included in the correlation analysis. Next, the CH sensor emits an ultrasonic signal, and the liquid level H is calculated. Using these values, the cross-sectional area A of the channel for the successive layers is determined according to the profile calculated in computer simulations, assuming a profile for turbulent flow [58] using Equation (2).
A = 1 2 r 2 2 cos 1 r h r sin 2 cos 1 r h r
where: A—the area of a circle with radius r (measured independently) and height h (determined by the device).
Although water is continuous, the velocity of flow in open channels is not uniform across the entire cross-section. This non-uniform velocity distribution necessitates dividing the flow into spatial measurement layers aligned with the theoretical velocity profile. The number of layers, each of the same length, was determined experimentally during our research to ensure accurate representation of the flow characteristics.
In the next step, two ultrasonic sequences are transmitted from the CV sensor, and the liquid velocity v is calculated. The liquid volume flow Qdet is calculated as the product of velocity v and area A. Figure 4 shows the general block diagram of the algorithm implemented in the measuring device. The computational studies conducted under test conditions were carried out in the MATLAB R2021b environment, which provided a robust platform for developing and testing the algorithm. In this environment, various scenarios were simulated to evaluate the algorithm’s performance and accuracy under different flow conditions. Following the successful validation of the algorithm in MATLAB, it was then converted into C language to ensure compatibility with the device’s microcontroller. This conversion involved careful consideration of the algorithm’s structure and functionality to optimize its performance for real-time applications. The implemented algorithm in the microcontroller enables efficient processing and reliable operation of the device in practical settings.
Figure 4. The block diagram of the software implemented in the measuring device. Source: own development.
Experimental measurements were performed in several series, with different sensor parameter values (initialization with various values). The subsequent results will refer to these measurement series.

3.3. Determination of the Velocity

One of the specific objectives of the research was to perform multivariate analyses of the recorded signals and to select parameter values for accurate velocity measurement based on the results. Therefore, several measurement series were carried out, each time using the same device built as described in the previous section. This section describes the algorithm for calculating flow velocity within a channel and the results of assessing the impact of selected device parameters on the results obtained.
Signals recorded by the CV velocity sensor were processed according to the algorithm, the block diagram of which is shown in Figure 5. Firstly, after initializing the sensor parameters, two successive ultrasonic signal sequences S1 and S2 are emitted and then recorded by the CV sensor. It was assumed that the S1 and S2 sequences, consisting of a series of pulses with a base frequency of f0 = 1 MHz, are emitted by the transmitting device at an interval equal to TPR. The S1 wave, after reflecting off a particle flowing in the liquid, is recorded by the receiving transducer with a delay TX1. It is assumed that the echo of the S2 wave, reaching the transducer with a delay TX2, is reflected off the same particle after it has traveled a distance d at a constant velocity Vx. To calculate the fluid velocity v, the recorded signals were pre-processed using a band-pass filter. All signal components other than the carrier frequency of the transmitted signal, which was 1 MHz, were filtered out. In the filtration process, a first-order digital elliptical band-pass filter was used, with normalized edge frequency defined within the range of 0.27–0.28. The resulting filter has a passband attenuation value Rp = 1 dB and a stopband attenuation value Rs = 40 dB. In the studies, the cross-covariance function was used. The velocity is determined based on the known TPR value and the delay corresponding to the global maximum of the cross-correlation function τ , calculated for the two ultrasonic signal sequences S1 and S2.
Figure 5. The block diagram of the algorithm for calculating fluid velocity in an open channel. Source: own development.

3.4. Determination of the Liquid Level

According to the flow calculation procedure described in Figure 4, in addition to the velocity v measurement in the designed device, the liquid level H was also determined. This section presents the principle of the measurement method and the algorithm for processing signals recorded by the level sensor CH. Figure 6 illustrates the block diagram of the algorithm for processing signals to calculate the liquid level H in the channel. Firstly, the sensor emits a beam of pulses at the base frequency f0 = 1 MHz. In this task, it was assumed that the beam, which is emitted perpendicular to the channel bed surface, reflects off the liquid surface and returns to the receiver after some time. Next, the emitted and recorded signal from the CH level sensor is subjected to filtration using a band-pass filter (Filtration F1). The purpose of this process is to filter out all frequency components irrelevant from the perspective of the carrier wave frequency F = 1 MHz. In this task, a first-order digital elliptical band-pass filter was used, with normalized frequency defined within the range: [0.27–0.28]. The resulting filter has a passband attenuation value of 1 dB and a stopband attenuation down from the passband value of 40 dB. The idea of the developed algorithm is based on the fact that the signal segment reflected from the surface of the liquid filling the open channel is characterized by a higher amplitude compared to signal segments reflected from particles carried by the liquid. Therefore, it was proposed to sum a series of consecutive modules (absolute values) of signals, assuming that locally large amplitudes of signal segments reflected from particles, will be located in varied locations, whereas the liquid level will be at the same height. A set of 200 recorded signals, obtained in a given measurement session, was divided into four data packets. Then each was separately processed according to the algorithm, the individual stages of which are visualized in Figure 7. Subsequently, the processed signals were subjected to the F2 filtration, in accordance with the developed algorithm. In this task, a first-order digital elliptical band-pass filter with normalized edge frequency set within the range of [0.02–0.06] was applied. The resulting filter has a band-pass attenuation of 0.5 dB and a stop-band attenuation of 20 dB. The purpose of the F2 filtration is to remove rapidly varying frequency components from the signal. Next, the location (sample number) of a sudden amplitude jump, which is assumed to be directly correlated with the signal reflected from the liquid surface is determined for a value of TH, set as a multiple of the standard deviation and considered as a threshold. The median value, determined from successive packets of signals, is considered as the time of arrival of the signal reflected from the surface. After calculation, taking into account the transmission speed, the height H [mm] is determined. This process was conducted under laboratory conditions with a known liquid height for a controlled flow rate Qset in the range of 0–200 L/min.
Figure 6. Block diagram of the CH sensor data processing algorithm. Source: own work.
Figure 7. Example raw data gathered from sensor Cv (a top) and raw data after filtration (a bottom). Example calculation results of velocity v [m/s] depending on Qset [L/min] for 32 signal layers, with TPR = 1 ms, LW = 32, Noffset = 350, and N = 8 (b). Source: own work.

4. Results

4.1. Assessment of the Impact of CV Sensor Parameters on the Results Obtained

Figure 7a presents example waveforms of the raw and filtered data gathered from sensor Cv. To determine the basic operating parameters of the CV sensor, considering a series of technical limitations, the first step was to determine the values of the Noffset and TPR parameters. For this purpose, measurement series were carried out for three different TPR values: {1, 2, 10} ms. Then, using different numbers of signal samples δ in the range [50–200] and different Noffset values in the range [300–900], τmax was determined and based on it, the velocity v. The experimental setup allowed for controlling the flow Qset in the range from 0 to 210 L/min. Based on the analysis of the obtained dependencies, it was found that for TPR = 2 ms at flows exceeding 150 L/min, the calculated velocities v fell below zero, which was caused by the mismatch of the TPR parameter to the actual velocity of particles present in the liquid. Meanwhile, for TPR = 10 ms, the calculated v values oscillated around 0. For all measurement series conducted, it was evident that regardless of the δ and Noffset values, correct results, i.e., those for which a linear, monotonically increasing form of the v(Qset) curve was obtained, were achieved only for the TPR = 1 ms parameter. The procedure for calculating covariance for the entire signal sequence increases the processor load built into the designed measuring device, particularly extending the calculation time. Therefore, subsequent studies aimed to select the optimal values for the N and LW parameters, with TPR = 1 and Noffset = 350. A preliminary assessment of the impact of N and LW parameters on the results was made based on the analysis of the v(Qset, LayerNo) dependencies. Example calculation results for TPR = 1 ms, LW = 32, Noffset = 350, N = 8 are shown in Figure 7b. The presented velocity distribution varies across different layers, which is consistent with the theoretical values calculated using the numerical model presented in [56].
Based on the gathered results, we stated that for N < 8, the calculated velocities oscillated around 0 m/s, and for N > 8, the obtained dependencies were similar. Based on the preliminary assessment of the obtained dependencies, it was concluded that both parameters, N and LW, are essential for the correct estimation of particle velocities in individual layers of an open channel, and their selection should be automated. Therefore, to select the optimal parameter values, an optimization process was conducted using a genetic algorithm, which was automated in the form of a computer script. In this process, the objective function was the minimization of the norm of residuals calculated for the estimated flows Qdet and the set flows Qset, where the ideal values are characterized by a linear relationship Qdet (Qset). As a result of the optimization process, the following parameters were obtained: LWopt = 12, Nopt = 8.

4.2. Example Results of the Liquid Level

Figure 8a presents example waveforms of the raw and filtered data gathered from sensor CH. Figure 8b shows the values of H calculated for different set flow rates (Qset) in three example measurement series. Based on the H(Qset) relationships obtained, a monotonic curve character was achieved, reaching around 100 mm for maximum flows. In some series, the calculations for the highest flow value indicated an incorrect (too low) H value. For zero flow, the liquid level was 45 mm, directly resulting from the limitations of the developed laboratory measurement system. Furthermore, it was observed that the liquid level rises exponentially with the initial increase in the set flow rate, changing to a linear increase relative to Qset after crossing about 30 L/min.
Figure 8. Example raw data gathered from sensor CH (a top) and raw data after filtration (a bottom); the calculated dependency H(Qset) for example measurement series (b).
The TH value, defined as a multiple of the standard deviation of the first few dozen samples of the filtered signal, is crucial for accurate level measurement and, consequently, for determining the flow rate of liquid in an open channel. Optimal TH values were determined empirically by comparing the actual liquid level in the channel with the values calculated by the developed device.

4.3. Validation under Laboratory Conditions

An important part of verifying whether the developed device correctly performs flow measurement is its validation. The validation studies included an analysis of the linearity of the functional relationship Qdet = f(Qset) and an analysis of the repeatability and uncertainty of measurement. The research was conducted using four instances of the device built according to the procedure described. The velocity and level sensors were initialized with parameter values determined within the analyses.

4.3.1. Repeatability Analysis

Initially, an analysis of the repeatability of measurements was performed in four series labeled S1–S4, with 250 recordings of the output variable Qdet for given flow rates Qset ranging from 0 to 210 L/min, using a single device instance, installed under the same conditions in the same laboratory setup. For this purpose, a one-way ANOVA was used for each of the tested Qset flows. The null hypothesis assumed that the mean values of Qdet recorded in the four series of 250 measurements each are the same. The alternative hypothesis, defined as the opposite, states that at least one series significantly differs from the others. One-way ANOVA requires the assumption that the samples taken for analysis are independent, drawn as simple random samples, and belong to a set with a normal distribution with equal variances. Having met the first three conditions, for each of the four measurement series S1–S4, a test for belonging to a population with a normal distribution was conducted using the parametric Z-test, assuming a known mean and standard deviation calculated for each of the four series. The study assumed that the null hypothesis confirms the tested measurement series belonging to a set with a normal distribution with the given mean, and the alternative hypothesis defines that the tested measurement series does not belong to a normal distribution with the given mean. For all four measurement series S1–S4, for each Qset flow, the null hypothesis was confirmed at a 5% significance level. In the ANOVA analysis, the Fisher–Snedecor F-test value is calculated, which is then tested for belonging to the critical area C A = F : F F α , determined from the distribution for (r − 1, nr) degrees of freedom. In this study, the critical value F α = 2.614 , where r = 4, n = 1000. F-test statistics values, calculated for all flows, are compiled with p-values in Figure 9. All calculated statistics do not belong to the critical area, indicating no basis for rejecting the null hypothesis and concluding that the tested means are homogeneous.
Figure 9. F-test statistic values with probability p for successive set flow sizes Qset.

4.3.2. Uncertainty Analysis

To determine the reliability of flow measurements recorded by the developed device, an uncertainty analysis was performed. The calculations used 250 values of the variables V and H recorded by a single device instance in four measurement series S1–S4 and the size of the variable R, which was determined in an independent measurement with a caliper at R = (0.070 ± 0.001) m and was constant. The output quantity Q is calculated based on the values of the level of channel filling H, velocity of the sewage V in a circular channel of radius R, using the functional relationship   Q = f V , R , H . In the task at hand, the developed device was used to record three input variables: radius R, height H, and velocity V, based on which the output variable, the flow quantity Q, was calculated. Therefore, standard uncertainties of type A for the input variables u h ,   u v were estimated. The standard uncertainty u ( r ) was estimated using Type A method at the level of 1 mm. Additionally, the examination of the correlation coefficient between the output variables H and V, calculated using Pearson, Kendall, and Spearman methods, showed no such relationship. For all tested flows, this coefficient was at most 0.04. Due to the lack of correlation, it was assumed that the combined standard uncertainty u c q could be calculated as the positive square root of the combined variance (3).
u c 2 q = q h 2 u c 2 h + q v 2 u c 2 v + q r 2 u c 2 r ,
where: q h , q r   i   q v are partial derivatives, known as sensitivity coefficients.
Figure 10 summarizes the calculated values of combined standard uncertainties uc(qS1)–uc(qS4) for the four measurement series S1–S4 for each set flow rate Qset as their arithmetic mean u c q ¯   and the arithmetic mean of the extended standard uncertainties U for different components of the combined uncertainty at two confidence levels: 95% (k = 1.96) and 99% (k = 2.576). The curve for the 99% confidence level is higher, reflecting greater uncertainty at the higher confidence level. Figure 10 also shows the corresponding percentage values relative to the set flow rate, marked in red on the graph. The horizontal axis represents the measured flow rate Qdet in L/min; the left vertical axis indicates the average combined standard uncertainty and the average extended uncertainty, both expressed in L/min, while the right vertical axis shows the uncertainties as percentages (%).
Figure 10. Left axis: values of u c q ¯ calculated as arithmetic averages for the four measurement series S1–S4, with error bars representing the standard error, and average extended uncertainties U ¯ in L/min, calculated with 95 and 99, also with error bars for the standard error. Right axis: percentage values.
The average combined standard uncertainty in L/min increases linearly with the flow rate, rising from approximately 0 to 2.5 L/min. Similarly, the extended standard uncertainty increases, though it starts at around 1 L/min and exceeds 6 L/min at very high flow rates. The extended uncertainty in percentage follows a similar trend to the combined uncertainty. For low flow rates, the percentage uncertainties decrease sharply—from over 6% to around 3% for the extended uncertainty at 99% (U99), and from over 1.5% to about 0.5% for the combined standard uncertainty. After a slight rise, these values remain stable for higher flow rates.
Although the uncertainty values expressed in L/min (blue lines) increase noticeably with the flow rate, the corresponding percentage uncertainties (red lines) remain relatively low. This suggests that for high flow rates, even though the absolute uncertainty in L/min increases, its relative impact in percentage terms becomes less significant and can be considered acceptable in the context of the measurements.
The plots also display the standard error magnitude for each curve using black whiskers. All errors are negligible and nearly invisible on the charts, indicating that the uncertainties across different measurement series are very similar. Additionally, a Wilcoxon signed-rank test was conducted, which showed with the highest probability that the uncertainties for the respective flow rates originate from the same distribution (as evidenced by the consistent p = 1 value). The obtained measurement uncertainties were deemed satisfactory.

4.3.3. Analysis of the Relationship between the Set and the Determined Flow Rate

Subsequently, a study of the linearity of the relationship between the determined flow and the set flow was conducted. For this purpose, four measurement series were performed, one series for each device instance, for set flow rates Qset ranging from 0 to 210 dm³/min. For each set flow rate Qset, within one series, 250 measurements of the flow Qdet were made, calculated according to the procedures defined during the research. The values of the norm of residuals were calculated for each device instance. On average, this error amounted to 31.85 L/min. The values of the coefficients of determination were also calculated for fitting the Qdet(Qset) curves to an ideally linear relationship. On average, this coefficient was 0.983. The discussed results are visualized in Figure 11. It was further determined that for flows in the range of 40–190 dm³/min, the developed device performs the measurement of the liquid volume flow with an average inaccuracy of 5.49%. In the range of low and very high speeds, adjustment of the device parameters is necessary, related to the number of pulses emitted within the sequences S1 and S2, and the TPR time.
Figure 11. Average Qdet values as a function of Qset along with the linear dependency curve for four device specimens.

5. Discussion

Our research led to the optimization of parameters to achieve a linear relationship Qdet(Qset) = Qset, considering hardware limitations, energy consumption, and calculation time. Measurement data were proven to be repeatable using ANOVA, with uncertainties remaining within a satisfactory range. The combined standard uncertainty increases linearly with the increase in flow rate. However, it does not exceed 1.22% of Qset, with the median value being 1.18% of Qset. The extended standard uncertainty does not exceed 4.83% of Qset, with the average value being 3.51% of Qset and not exceeding an average of 3.47% of Qset for flows above 40 L/min. Therefore, the device’s operation was validated under steady, unchanging flow conditions.
Furthermore, an average inaccuracy of 5.49% was observed, with room for further improvement at extreme low and high flow rates. These improvements could be achieved by adjusting device parameters, such as the number of pulses emitted in the S1 and S2 sequences and the TPR time. Following the design and testing phases, a series of measurement devices were constructed and deployed in accordance with predefined standards. These devices were strategically placed at the base of eight sewer manholes for two weeks to conduct a detailed measurement campaign. The data obtained from this initiative showed a strong correlation with the sewage discharge volumes reported by the water utility. Similar measurement exercises are ongoing in other sanitary systems operating under comparable conditions. The devices developed through this project are proving invaluable for measurement campaigns aimed at collecting comprehensive data on the operational dynamics of sanitary networks. This data is crucial for the development and calibration of simulation models that accurately represent these systems.

6. Conclusions

The growing demand for efficient wastewater management and the need for cost-effective monitoring solutions highlight the importance of accurate flow measurement devices. This research provides a significant advancement in the field, offering a reliable and affordable option for measuring wastewater flow rates, which is crucial for optimizing management practices and ensuring compliance with environmental standards. Traditional methods often involve significant expenses and limitations, making it challenging for many facilities to maintain compliance and optimize operations. The growing demand for efficient wastewater management and the need for cost-effective monitoring solutions highlight the importance of accurate flow measurement devices. This paper presents the results of research aimed at developing a low-cost device for measuring wastewater flow in open channels, designed to minimize interference with the natural flow, particularly for open channels used in sewage systems with diameters of approximately 50 cm. In a laboratory setup, consisting of a cylindrical half-pipe, flows of contaminated water at varying rates—up to 210 L/min—were tested, with the measuring device installed at the bottom of the half-pipe.
A key benefit of this method is its ability to profile fluids in both open and closed channels. However, in channels that are relatively small compared to the size of the device, fluid turbulence can greatly impact measurement accuracy. Additionally, substantial errors can arise when measuring pure water. Another concern is the potential for large objects in the fluid to become lodged above the level of the measuring device (for instance, by wedging near it), which can obstruct the transducer and result in inaccurate readings. Consequently, regular checks of the device’s status are necessary in practical applications. The developed method demonstrates higher percentage measurement uncertainties for very low flow rates, exceeding 4%; however, uncertainties significantly decrease for larger flow rates. Nevertheless, the linearity of the relationship between the calculated flow and the set flow yields unsatisfactory results for flow rates above 200 l/min; thus, we do not recommend its application in such cases

Author Contributions

D.W.: conceptualization, methodology, software, visualization, validation, writing—original draft preparation; D.Z.: resources, project administration, formal analysis writing—review and editing, supervision. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The raw measurement data can be made available upon request by contacting the authors directly.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Chow, V.T. Open Channel Hydraulics; McGraw-Hill Book Companny: New York, NY, USA, 1988. [Google Scholar]
  2. Jobson, H.E.; Froehlich, D.C. Basic Hydraulic Principles of Open-Channel Flow; Elsevier: Amsterdam, The Netherlands, 1988. [Google Scholar]
  3. Sturm, T. Open Hydraulics Channel; McGraw-Hill Book Companny: New York, NY, USA, 2001. [Google Scholar]
  4. Basu, S. Chapter V—Velocity and Force Type Flow Meter. In Plant Flow Measurement and Control Handbook; Basu, S., Ed.; Elsevier: Amsterdam, The Netherlands, 2019; pp. 395–539. [Google Scholar]
  5. Basu, S. Open Channel Flow Measurement. In Plant Flow Measurement and Control Handbook. Fluid, Solid, Slurry and Multiphase Flow; Elsevier: Amsterdam, The Netherlands, 2019; Chapter III; pp. 257–331. [Google Scholar]
  6. Licznerski, T.J.; Jaroński, J.; Kosz, D. Ultrasonic system for accurate distance measurement in the air. Ultrasonics 2011, 51, 960–965. [Google Scholar] [CrossRef] [PubMed]
  7. Drinkwater, B.W.; Wilcox, P.D. Ultrasonic arrays for non-destructive evaluation: A review. NDT E Int. 2006, 39, 525–541. [Google Scholar] [CrossRef]
  8. Willatzen, M. Ultrasonic flowmeters: Temperature gradients and transducer geometry effects. Ultrasonics 2003, 41, 105–114. [Google Scholar] [CrossRef] [PubMed]
  9. Fang, Z.; Su, R.; Hu, L.; Fu, X. A simple and easy-implemented time-of-flight determination method for liquid ultrasonic flow meters based on ultrasonic signal onset detection and multiple-zero-crossing technique. Meas. J. Int. Meas. Confed. 2021, 168, 108398. [Google Scholar] [CrossRef]
  10. Wendoloski, J.C. On the theory of acoustic flow measurement. J. Acoust. Soc. Am. 2001, 110, 724–737. [Google Scholar] [CrossRef]
  11. Balmforth, N.J.; Craster, R.V. Geophysical Aspects of Non-Newtonian Fluid Mechanics. In Geomorphological Fluid Mechanics; Lecture Notes in Physics; Springer: Berlin/Heidelberg, Germany, 2001; pp. 34–51. [Google Scholar] [CrossRef]
  12. Methods of Measuring the Flow of Water in Open Channels. Available online: https://www.openchannelflow.com/blog/methods-of-measuring-flows-in-open-channels (accessed on 27 November 2020).
  13. Clemmens, A.J.; Wahl, T.L.; Bos, M.G.; Replogle, J.A. Water Measurement with Flumes and Weirs; Water Resources Pubns: Littleton, CO, USA, 2001. [Google Scholar]
  14. Coldani, G.; Ghidetti, P.; Lombardi, R.; Corazza, I.; Zannoli, R. An instrument to measure velocity profile by means of ultrasound techniques. J. Mech. Med. Biol. 2003, 3, 21–30. [Google Scholar] [CrossRef]
  15. Takeda, Y. Velocity profile measurement by ultrasound Doppler shift method. Int. J. Heat. Fluid. Flow. 1986, 7, 313–318. [Google Scholar] [CrossRef]
  16. Teufel, M. Cross Correlation—The Better Ultra Sonic Doppler—Technique. In Proceedings of the 6th International Symposium on Ultrasonic Doppler Methods for Fluid Mechanics and Fluid Engineering, Prague, Czech Republic, 9–11 September 2008; pp. 167–170. [Google Scholar]
  17. Ruonan, B.; Liekai, C.; Xingkui, W.; Danxun, L. Comparison of ADV and PIV Measurements in Open Channel Flows. Procedia Eng. 2016, 154, 995–1001. [Google Scholar] [CrossRef]
  18. Rastello, M.; Klema, M.R.; Carpenter, A.B.; Garanaik, A.; Venayagamoorthy, S.K.; Gates, T.K.; Marié, J.L. Velocity measurements in developing narrow open-channel flows with high free-stream turbulence: Acoustic Doppler Velocimetry (ADV) vs Laser Doppler Anemometry (LDA). Flow. Meas. Instrum. 2022, 87, 102206. [Google Scholar] [CrossRef]
  19. Wongsaroj, W.; Hamdani, A.; Thong-un, N.; Takahashi, H.; Kikura, H. Ultrasonic Measurement of Velocity Profile on Bubbly Flow Using a Single Resonant Frequency. Proceedings 2018, 2, 549. [Google Scholar] [CrossRef]
  20. Takeda, Y. Measurement of Velocity Profile of Mercury Flow By Ultrasound Doppler Shift Method. Nucl. Technol. 1987, 79, 120–124. [Google Scholar] [CrossRef]
  21. Takeda, Y. Ultrasonic Doppler method for velocity profile measurement in fluid dynamics and fluid engineering. Exp. Fluids 1999, 26, 177–178. [Google Scholar] [CrossRef]
  22. Takeda, Y. Velocity Profile Measurement by Ultrasonic Doppler Method. Exp. Therm. Fluid. Sci. 1995, 10, 444–453. [Google Scholar] [CrossRef]
  23. Tezuka, K.; Mori, M.; Suzuki, T.; Kanamine, T. Ultrasonic pulse-Doppler flow meter application for hydraulic power plants. Flow. Meas. Instrum. 2008, 19, 155–162. [Google Scholar] [CrossRef]
  24. Abda, F.; Azbaid, A.; Ensminger, D.; Fischer, S.; François, P.; Schmitt, P.; Pallarès, A. Ultrasonic device for real-time sewage velocity and suspended particles concentration measurements. Water Sci. Technol. 2009, 60, 117–125. [Google Scholar] [CrossRef]
  25. Yanagisawa, T.; Yamagishi, Y.; Hamano, Y.; Tasaka, Y.; Yano, K.; Takahashi, J.; Takeda, Y. Detailed investigation of thermal convection in a liquid metal under a horizontal magnetic field: Suppression of oscillatory flow observed by velocity profiles. Phys. Rev. E Stat. Nonlinear Soft Matter Phys. 2010, 82, 056306. [Google Scholar] [CrossRef]
  26. Wiklund, J.; Stading, M. Application of in-line ultrasound Doppler-based UVP-PD rheometry method to concentrated model and industrial suspensions. Flow. Meas. Instrum. 2008, 19, 171–179. [Google Scholar] [CrossRef]
  27. Kotzé, R.; Wiklund, J.; Haldenwang, R.; Fester, V. Measurement and analysis of flow behaviour in complex geometries using the Ultrasonic Velocity Profiling (UVP) technique. Flow. Meas. Instrum. 2011, 22, 110–119. [Google Scholar] [CrossRef]
  28. Nakamura, H.; Kondo, M.; Kukita, Y. Simultaneous measurement of liquid velocity and interface profiles of horizontal duct wavy flow by ultrasonic velocity profile meter. Nucl. Eng. Des. 1998, 184, 339–348. [Google Scholar] [CrossRef]
  29. Queirós, R.; Corrêa Alegria, F.; Silva Girão, P.; Cruz Serra, A. Cross-correlation and sine-fitting techniques for high-resolution ultrasonic ranging. IEEE Trans. Instrum. Meas. 2010, 59, 3227–3236. [Google Scholar] [CrossRef]
  30. Zhu, W.J.; Xu, K.J.; Fang, M.; Shen, Z.W.; Tian, L. Variable ratio threshold and zero-crossing detection based signal processing method for ultrasonic gas flow meter. Meas. J. Int. Meas. Confed. 2017, 103, 343–352. [Google Scholar] [CrossRef]
  31. Parrilla, M.; Anaya, J.J.; Fritsch, C. Digital Signal Processing Techniques for High Accuracy Ultrasonic Range Measurements. IEEE Trans. Instrum. Meas. 1991, 40, 759–763. [Google Scholar] [CrossRef]
  32. Folkestad, T.; Mylvaganam, K.S. Chirp Excitation of Ultrasonic Probes and Algorithm for Filtering Transit Times in High-Rangeability Gas Flow Metering. IEEE Trans. Ultrason. Ferroelectr. Freq. Control 1993, 40, 193–215. [Google Scholar] [CrossRef]
  33. Ma, L.; Liu, J.; Wang, J. Study of the Accuracy of Ultrasonic Flowmeters for Liquid. AASRI Procedia 2012, 3, 14–20. [Google Scholar] [CrossRef]
  34. Furuichi, N. Fundamental uncertainty analysis of flowrate measurement using the ultrasonic Doppler velocity profile method. Flow. Meas. Instrum. 2013, 33, 202–211. [Google Scholar] [CrossRef]
  35. Alvarenga, A.V.; Silva, C.E.R.; Costa-Félix, R.P.B. Monte Carlo uncertainty assessment of ultrasonic beam parameters from immersion transducers used to non-destructive testing. Ultrasonics 2016, 69, 144–151. [Google Scholar] [CrossRef]
  36. Agu, C.E.; Hjulstad, Å.; Elseth, G.; Lie, B. Algorithm with improved accuracy for real-time measurement of flow rate in open channel systems. Flow. Meas. Instrum. 2017, 57, 20–27. [Google Scholar] [CrossRef]
  37. DIN EN 12668-2:2010-06; Non-Destructive Testing—Characterization and Verification of Ultrasonic Examination Equipment—Part 2: Probes. Available online: https://www.dinmedia.de/de/norm/din-en-12668-2/121084898 (accessed on 6 September 2024).
  38. Christensen-Jeffries, K.; Couture, O.; Dayton, P.A.; Eldar, Y.C.; Hynynen, K.; Kiessling, F.; O’Reilly, M.; Pinton, G.F.; Schmitz, G.; Tang, M.X.; et al. Super-resolution Ultrasound Imaging. Ultrasound Med. Biol. 2020, 46, 865–891. [Google Scholar] [CrossRef]
  39. Birkhofer, B.; Meile, T.; De Cesare, G.; Jeelani, S.A.K.; Windhab, E.J. Use of gas bubbles for ultrasound Doppler flow velocity profile measurement. Flow. Meas. Instrum. 2016, 52, 233–239. [Google Scholar] [CrossRef]
  40. Fischer, S.; Schmitt, P.; Ensminger, D.; Abda, F.; Pallares, A. A new velocity estimation method using spectral identification of noise. Flow. Meas. Instrum. 2008, 19, 197–203. [Google Scholar] [CrossRef]
  41. Khosronejad, A.; Herb, W.; Sotiropoulos, F.; Kang, S.; Yang, X. Assessment of Parshall flumes for discharge measurement of open-channel flows: A comparative numerical and field case study. Measurement 2021, 167, 108292. [Google Scholar] [CrossRef]
  42. Ho, H.C.; Chiu, Y.W.; Chen, T.Y.; Lin, Y.C. Flow measurement in open channels using imaging techniques in conjunction with a convolutional neural network. J. Hydrol. 2023, 618, 129183. [Google Scholar] [CrossRef]
  43. Lynnworth, L.C.; Liu, Y. Ultrasonic flowmeters: Half-century progress report, 1955-2005. Ultrasonics 2006, 44, e1371–e1378. [Google Scholar] [CrossRef]
  44. Kutin, J.; Bobovnik, G.; Hemp, J.; Bajsić, I. Velocity profile effects in Coriolis mass flowmeters: Recent findings and open questions. Flow. Meas. Instrum. 2006, 17, 349–358. [Google Scholar] [CrossRef]
  45. Wilson, K.C. Flume design for homogeneous slurry flow. Part. Sci. Technol. 1991, 9, 149–159. [Google Scholar] [CrossRef]
  46. Berg, C.; Malagalage, A.; Agu, C.E.; Kaasa, G.O.; Vaagsaether, K.; Lie, B. Model-based drilling fluid flow rate estimation using venturi flume. IFAC-Pap. 2015, 48, 171–176. [Google Scholar] [CrossRef]
  47. Bankston, J.D.; Baker, F.E. Open Channel Flow in Aquaculture; SRAC: Penrith, NSW, Australia, 1995. [Google Scholar]
  48. Ihara, T.; Kikura, H.; Takeda, Y. Ultrasonic velocity profiler for very low velocity field. Flow. Meas. Instrum. 2013, 34, 127–133. [Google Scholar] [CrossRef]
  49. Xing, L.; Geng, Y.; Hua, C.; Zhu, H.; Rieder, A.; Drahm, W.; Bezdek, M. A combination method for metering gas-liquid two-phase flows of low liquid loading applying ultrasonic and Coriolis flowmeters. Flow. Meas. Instrum. 2014, 37, 135–143. [Google Scholar] [CrossRef]
  50. Beaulieu, A.; Foucault, E.; Braud, P.; Micheau, P.; Szeger, P. A flowmeter for unsteady liquid flow measurements. Flow. Meas. Instrum. 2011, 22, 131–137. [Google Scholar] [CrossRef]
  51. Shaaban, S. Design and optimization of a novel flowmeter for liquid hydrogen. Int. J. Hydrogen Energy 2017, 42, 14621–14632. [Google Scholar] [CrossRef]
  52. Guilbert, A.R.; Law, M.; Sanderson, M.L. A novel ultrasonic/thermal clamp-on flowmeter for low liquid flowrates in small diameter pipes. Ultrasonics 1996, 34, 435–439. [Google Scholar] [CrossRef]
  53. Bonnefous, O.; Pesque, P. Time domain formulation of pulse-Doppler ultrasound and blood velocity estimation by cross correlation. Ultrason. Imaging 1986, 8, 73–85. [Google Scholar] [CrossRef]
  54. Teufel, M. Ultra Sonic Flow Rate Measurements in Large Pipes and Open Channels. In Proceedings of the International Group for Hydraulic Efficiency Measurements, Lucerne, Switzerland, 14–16 July 2004; pp. 1–11. [Google Scholar]
  55. Working Principle of Ultrasonic Doppler Velocimetry (UDV) and Velocity Profiles Measurements. Available online: https://www.signal-processing.com/background.php (accessed on 7 November 2020).
  56. Wotzka, D. Koncepcja, Wykonanie i Badania Urządzenia Do Pomiaru Strumienia Objętości Ścieków w Kanale Otwartym; OW Politechnika Opolska: Opole, Poland, 2022. (In Polish) [Google Scholar]
  57. Krohne Optiflux 1000. Datasheet; Krohne: Duisburg, Germany, 2019. [Google Scholar]
  58. Wotzka, D. Application of the Finite Element Method to Determine the Velocity Profile in an Open Channel. In Proceedings of the European Council for Modelling and Simulation, ECMS, Ålesund, Norway, 30 May–3 June 2022; pp. 196–202. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.