Literature DB >> 30586913

Implementation of Virtual Sensors for Monitoring Temperature in Greenhouses Using CFD and Control.

Cesar H Guzmán1, José L Carrera2, Héctor A Durán3, Javier Berumen4, Arturo A Ortiz5, Omar A Guirette6, Angélica Arroyo7, Jorge A Brizuela8, Fabio Gómez9, Andrés Blanco10, Héctor R Azcaray11, Marlen Hernández12.   

Abstract

Virtual sensing is crucial in order to provide feasible and economical alternatives when physical measuring instruments are not available. Developing model-based virtual sensors to calculate real-time information at each targeted location is a complex endeavor in terms of sensing technology. This paper proposes a new approach for model-based virtual sensor development using computational fluid dynamics (CFD) and control. Its main objective is to develop a three-dimensional (3D) real-time simulator using virtual sensors to monitor the temperature in a greenhouse. To conduct this study, a small-scale greenhouse was designed, modeled, and fabricated. The controller was based on the convection heat transfer equation under specific assumptions and conditions. To determine the temperature distribution in the greenhouse, a CFD analysis was conducted. Only one well-calibrated and controlled physical sensor (temperature reference) was enough for the CFD analysis. After processing the result that was obtained from the real sensor output, each virtual sensor had learned the associative transfer function that estimated the output from given input data, resulting in a 3D real-time simulator. This study has demonstrated, for the first time, that CFD analysis and a control strategy can be combined to obtain system models for monitoring the temperature in greenhouses. These findings suggest that, generally, virtual sensing can be applied in large greenhouses for monitoring the temperature using a 3D real-time simulator.

Entities:  

Keywords:  CFD; greenhouse; monitoring; temperature control; virtual sensor

Year:  2018        PMID: 30586913      PMCID: PMC6339024          DOI: 10.3390/s19010060

Source DB:  PubMed          Journal:  Sensors (Basel)        ISSN: 1424-8220            Impact factor:   3.576


1. Introduction

Food production is increasingly being recognized as a serious worldwide concern [1,2]. One solution is the use of greenhouses to protect plants against disease and unexpected climatic events [3,4]. One of the main advantages of greenhouses is the ability to control the optimal temperature for crop cultivation [5,6]. Recently, researchers have shown an increased interest in monitoring greenhouse temperature using different sensor configurations [7], hardware architectures [8,9], and control techniques [10,11]. Currently, monitoring greenhouse temperature is complex in terms of sensing technology [12,13]. Questions have been raised regarding physical sensors’ temperature monitoring efficiency located inside greenhouses. For instance, the implementation of wireless sensor networks (WSN) has demonstrated benefits for crop monitoring [14,15,16,17]. However, the installation of temperature sensors inside the greenhouse increases the cost of engineering and management. There are four important issues to take into consideration before installing a WSN: (a) time-consuming maintenance, (b) need for calibration, (c) natural deterioration, and (d) unexpected failure. Additionally, the direct exposure of constant sunlight and humidity to the sensors may lead to malfunction or damage, which may result in significant economic losses to farmers. Virtual sensing, also known as soft sensing, has been successfully applied to various processes to provide feasible and economical alternatives when physical measuring instruments are not available [18]. Virtual sensors are software algorithms that use hardware sensors to calculate real-time information at each location of interest [19]. Virtual sensors can be classified into two categories: model-based and data-driven [20]. Model-based virtual sensors use the available measurements and parameters for calculations and they are often implemented through data validation and system models [21]. On the other hand, data-driven virtual sensors base calculations on available historical measurement data obtained either from sensor systems installed temporarily or from detailed estimations. The estimations are typically based on function approximation and regression techniques, such as least squares [22] or neural networks [23], which can be implemented using statistical or machine learning modeling methods. In many fields of engineering, virtual sensors have been used for various purposes, including noise control [24], distillation columns [25], automotive applications [26], vehicle control [27], gas sensing systems [28], aircraft engines [29], fault detection of nonlinear systems [30], and mobile robots [31]. However, the number of studies that investigate the use of virtual sensors in greenhouses is limited. Davis proposed a technique of adaptive temperature control in a greenhouse using ventilator adjustments [32]. A sensor with variable parameters was fitted to successive samples of aperture and internal temperature data to predict the ventilator adjustments that maintained the required temperature. Piñón et al. presented a scheme for the temperature control of a greenhouse based on data-driven virtual sensors [33]. This study combined feedback linearization and standard linear model predictive control. Speetjens et al. proposed an extended Kalman filter for automatic online estimation and the adaptation of parameters in a physics-based greenhouse model, describing the air temperature and moisture content [34]. Hammed explored the ability of the extended Kalman filter to improve the efficiency of the greenhouse climate controller using the online estimated air temperature and humidity ratio as the controlled variables, instead of the observed noisy states [35]. Recently, computational fluid dynamics (CFD) has been used as an alternative to monitor temperature in greenhouses [36,37,38]. Kittas et al. developed a simple model to estimate the air temperature in a fan-ventilated greenhouse [39]. To create the model, measurements of the ventilation rate and climate variables inside and outside the greenhouse (air temperature and solar radiation) were taken in a multi-span fan-ventilated greenhouse. Molina-Aiz et al. investigated the efficiency of both, finite-element and finite-volume, discretization methods for the simulation of two-dimensional incompressible turbulent flow in naturally ventilated greenhouses [40]. The simulation was optimized using different parameters to analyze the effectiveness of the experimental data in three different types of greenhouses. Tong et al. numerically predicted the time-dependent temperature distribution inside a greenhouse while using CFD [41]. Deltour proposed the Gembloux greenhouse dynamic model of heat and mass transfer to describe its inner climatic variations [42]. This classical one-dimensional thermodynamic model calculated the balance of dynamic energy of air, vegetation, and soil. Trigui et al. introduced an algorithm that is based on heat balances to predict the CO2 level, temperature, and relative humidity for maintaining the ideal climate conditions in greenhouses [43]. Longo and Gasparella studied thermal balance, focusing on the energy performance of the greenhouse air conditioning system [44]. To date, research has focused on physical sensors and CFD for monitoring the temperature in greenhouses, but virtual sensing has not been investigated in detail. Sánchez-Molina et al. proposed virtual sensors for designing irrigation controllers in greenhouses [45]. The authors used estimators to provide continuous transpiration measurements. For tomato crops, the availability of estimators allowed for the design of automatic irrigation and fertilization schemes in greenhouses, which minimize the dispensed water while fulfilling crop needs. Roldán et al. described the design, construction, and validation of a mobile sensory platform for greenhouse monitoring [46]. This system consisted of a virtual sensor system inside a quadrotor, which measured the temperature, humidity, luminosity, and CO2 concentration while plotting maps of these variables. Pawlowski et al. presented the monitoring and controlling of the greenhouse environment [47]. They described how the greenhouse climate control was represented as an event-based system combined with WSN and virtual sensors, where low-frequency dynamics variables were controlled, and the control actions were mainly calculated with reference to events produced by external disturbances. This paper proposes a new approach for model-based virtual sensor development based on CFD and control. The main objective of this research is to develop a three-dimensional (3D) real-time simulator based on virtual sensors for monitoring temperature in a greenhouse. The purpose of this study is to provide a starting point for further investigations, using a small-scale greenhouse, featuring practical development in large-scale greenhouses. Thus, the main contribution of this study is to present a new alternative for monitoring temperature in greenhouses by combining CFD and control. It will contribute to the field of virtual sensing by exploring new ways to calculate measurements and parameters using CFD-based system models. To the best of our knowledge, this has not been done before in this field. This approach represents an innovative, feasible, and economical alternative for monitoring the temperature in greenhouses. Due to practical constraints, this paper will not provide experimental results from a real greenhouse. Nevertheless, the methodology that is described here can be extrapolated effectively. The presentation of this paper is structured, as follows. Section 2 contains a description of the materials and methods used in this study, and Section 3 discusses its results. Finally, Section 4 concludes the paper and suggests the scope for future works.

2. Materials and Methods

A model-based virtual sensor needs a real sensor output and a system model—or transfer function—to create a new sensor; see Figure 1. The aim of this study was divided into two objectives: temperature control and virtual sensor processing. To achieve the first objective, a greenhouse was designed, modeled, and fabricated; the control strategy was proposed to establish real sensor output. To achieve the second objective, the real sensor output was used as an input signal in the virtual sensor processing stage, resulting in a 3D real-time simulator that was based on virtual sensors for temperature monitoring. To establish the greenhouse system model, both the real sensor output and the CFD analysis were used.
Figure 1

System concept.

2.1. Greenhouse Design

To conduct this study, a greenhouse was designed. For experimental purposes, the greenhouse´s overall dimensions were selected as 1510 mm (length) × 900 mm (width) × 730 mm (height). Figure 2 shows the greenhouse design that included all necessary elements—inlets, outlets, heaters, and fans—for supporting temperature control. The electric resistance heaters were located behind the fans. These fans introduced air into the greenhouse.
Figure 2

Greenhouse design.

2.2. Modeling

Controllers are always related to mathematical models [48,49]. For this study, the controller was proposed based on the convection heat transfer equation. Certain assumptions and conditions were assumed, such as heat loss being considered as negligible, there was no heat storage in the insulation, and the air flow in the greenhouse was evenly distributed. Figure 3 shows the schematic model of the greenhouse air heating system, which is explained below.
Figure 3

Schematic model of the greenhouse air heating system.

The convection heat transfer equation is given by where is the heat flow rate, is the convection coefficient, is the normal area of the heat flow, and is the temperature difference. For this equation, the air flow temperature is kept constant and the heat input can suddenly change from to . The inlet and outlet air temperature, then, changes from to and from to , respectively. For this case, , , and are defined, as follows: The equation that describes the thermodynamic behavior of the greenhouse is given by the following equation: which may be rewritten, as follows: where is the specific heat of air, is the thermal resistance, is the steady-state heat input, is the heat input change, is the steady-state inlet air temperature, is the inlet air temperature change, is the steady-state outlet air temperature, is the outlet air temperature change, is the mass of air, is the mass flow rate of air, and is the thermal capacitance of air. The controller design has been explained below. If the temperature of the inlet air fluctuates and acts as a disturbance, to achieve temperature control, a controller is necessary to adjust the output of the heaters to compensate for these fluctuations and disturbances. The thermodynamic equation can be rewritten as state variables to determine the greenhouse behavior. This state-space description may be rewritten, as follows: It is important to mention that the greenhouse’s behavior is completely controllable and it involves two control variables: and . To control the temperature in the greenhouse, a proportional controller was used due to its simplicity. Introducing the controller as a new control input, the thermodynamic equation can be rewritten, as follows: where is the proportional controller and is the controller gain. Defining the tracking error as e, the controller gain can be obtained using the Laplace transformation, as follows:

2.3. Governing Equations

To find the temperature distribution in the greenhouse, a CFD analysis must be conducted. Heat and mass transfer are accomplished by solving the governing equations of fluid dynamics—continuity, momentum, and energy. In this study, the fluid was assumed to be incompressible. The governing equations are expressed below: Continuity Momentum Energy where is the velocity vector, is the density, is the pressure, is the gravitational acceleration, is the viscosity, is the enthalpy, is the thermal conductivity, is the specific heat, is a source term, is the temperature, is the identity matrix, and is the stress tensor.

2.4. Greenhouse Fabrication

There were 27 sensors distributed in the greenhouse—one real and 26 virtual. The distribution of these sensors is shown in Table 1. The purpose of developing a small-scale greenhouse was to conduct controlled experiments without unexpected disturbances. Since several physical sensors over the greenhouse do not represent a substantial contribution to the state of the art, the experimental design included only one physical sensor and 26 virtual sensors. This study is practical, because only one physical sensor has been used to reduce the time-consuming maintenance to farmers.
Table 1

Greenhouse sensor distribution.

No.Type of SensorCoordinates X, Y, Z (mm)No.Type of SensorCoordinates X, Y, Z (mm)No.Type of SensorCoordinates X, Y, Z (mm)
1 virtual400, 172, 22510virtual755, 172, 22519virtual1110, 172, 225
2virtual400, 172, 45011virtual755, 172, 45020virtual1110, 172, 450
3virtual400, 172, 67512virtual755, 172, 67521virtual1110, 172, 675
4virtual400, 365, 22513virtual755, 365, 22522virtual1110, 365, 225
5virtual400, 365, 45014virtual755, 365, 45023virtual1110, 365, 450
6virtual400, 365, 67515virtual755, 365, 67524virtual1110, 365, 675
7virtual400, 547, 22516real755, 547, 22525virtual1110, 547, 225
8virtual400, 547, 45017virtual755, 547, 45026virtual1110, 547, 450
9virtual400, 547, 67518virtual755, 547, 67527virtual1110, 547, 675
The proposed design was then fabricated for experimental tests, as shown in Figure 4. The main structure of the greenhouse was made of steel and protected with a thin layer of white paint (a). The greenhouse walls were made of 3 mm thick polycarbonate (b). Three air inlets were installed in the front of the greenhouse (c). Three air outlets were installed in the back of the greenhouse (d). Two glass sliding doors were installed in the front of the greenhouse (e). One acquisition card (NI USB 6009) was selected to support the analog and digital data conversion (f). The sampling time of this card was set to 100 ms. Two drivers were manufactured to control the current to the fans and the electric resistance heaters (g). Three electric resistance heaters were installed to heat the inlet air (h). Three fans were installed to bring air into the greenhouse (i). One real temperature sensor was installed (j) and the resolution was 14-bit with an accuracy of ±0.3 °C.
Figure 4

Greenhouse for experimental tests.

3. Results

3.1. Temperature Control

To assess the performance of the controller, the set point was established at 25 °C and the experiment time was set as five minutes. The temperature was monitored and recorded with a sampling time of one second. Figure 5 shows the result that was obtained from the real sensor output. The implemented controller reached the set point in less than 45 seconds and maintained the desired temperature. It demonstrated an accuracy of ±0.3 °C. The controller output was limited to 75 W to avoid overheating the system’s hardware; see Figure 6. The controller output used 75 W to reach the set point and 30 W to maintain steady state. These experimental results indicated that the proposed controller was adequate for the next step—virtual sensor processing.
Figure 5

Result obtained from the real sensor output.

Figure 6

Controller output.

3.2. CFD Simulation

To predict the temperature distribution based on the greenhouse structure, the governing equations were solved numerically using a CFD software package and a desktop PC (Intel® Core ™ i7 CPU at 2.67 GHz with 8 GB of RAM).

3.2.1. Boundary Conditions

For this CFD analysis, the boundary conditions were defined as follows: Walls: A no-slip shear condition was selected; the wall temperature was set to 10.00 °C Inlet: The inlet air velocity was set to 0.5 m/s Outlet: The atmospheric pressure was set to 101 kPa and the outlet temperature was set to 10.00 °C Chamber: The dimensions were 1510 mm × 900 mm × 730 mm Inlets: The dimensions were 80 mm × 80 mm Outlets: The dimensions were 445 mm × 40 mm

3.2.2. Grid Convergence Study

Establishing grid convergence is crucial in any numerical study [50]. The results must be guaranteed using a grid convergence study, which is essential to verify that the governing equations are being solved correctly and that the solution is not sensitive to the grid resolution. Thus, a mesh sensitivity analysis was conducted to find the size and number of cells that were suitable for this study. Four simulations using different mesh sizes were conducted. Figure 7 demonstrates the results of the mesh sensitivity analysis. The relationship between the size and number of cells is shown in Table 2. Figure 8 shows the temperature distribution of the greenhouse using different mesh sizes. It is observed that the temperature distribution was more uniform using 17,242 and 19,258 cells, and the highest temperature zone was located at the center of the greenhouse. Using more than 17,242 cells did not exhibit a significant difference. Thus, this mesh was used for virtual sensor processing.
Figure 7

Mesh sensitivity analysis. (a) 5070, (b) 7760, (c) 17,242, (d) 19,258.

Table 2

Relation of size and number of cells.

(a)(b)(c)(d)
Number of cells in X11162432
Number of cells in Y681216
Number of cells in Z461012
Total Cells5070776017,24219,258
Solid Cells21543344827010,582
Fluid Cells2916441689728676
Figure 8

Temperature distribution of the greenhouse using different mesh sizes. (a) 5070, (b) 7760, (c) 17,242, (d) 19,258.

3.2.3. Inlet Air Velocity

Three different inlet air speeds were proposed. Figure 9a shows the temperature contours using the same inlet air speeds (0.5 m/s). Figure 9b shows the temperature contours using different inlet air speeds (0.75, 0.5, and 0.75 m/s). A comparison of both results indicated a difference in the temperature distribution. In this study, the inlet air speeds were considered to be constant.
Figure 9

Temperature analysis considering different inlet air velocities. (a) using the same inlet air speeds, (b) using different inlet air speeds.

3.2.4. Temperature Distribution

According to the result obtained from the mesh analysis, the CFD analysis was conducted with reference to the temperature control. The inlet temperature was set to 25.01 °C. Three vertical and horizontal section views were the output from the CFD simulation. Figure 10a shows the temperature distribution in the greenhouse. Figure 10b shows the flow trajectories of temperature. These results revealed a lot of new information. First, the temperatures vary from 25.01 °C to 19.38 °C. Second, the majority of the temperatures in the greenhouse were concentrated in the yellow zones. Third, the green zones show heat loss due to convective heat transfer to the lateral walls.
Figure 10

Temperature distribution in the greenhouse. (a) section views, (b) flow trajectories.

3.3. Temperature Monitoring

Previous studies have conducted temperature analysis of greenhouses using CFD in detail. The validation of CFD models has been done before in the state of the art using physical sensors as reference points inside a greenhouse. The physical sensors were located at different positions in order to compare the experimental and simulation results. These studies demonstrated significant similarities. Therefore, this study combined CFD and control theory. Thus, the contribution of this study is not its experimental validation, but it is its new approach of using virtual sensors. The 3D temperature distribution of the greenhouse was calculated in detail without having to install new indoor sensors; see Table 3.
Table 3

Virtual sensor outputs.

No.Temperature (°C)No.Temperature (°C)No.Temperature (°C)
119.381019.381919.38
219.381121.262019.38
321.261223.142121.26
421.261321.262221.26
521.261421.262321.26
621.261523.142421.26
725.011625.012525.01
823.141723.142623.14
923.141823.142723.14
The task at this stage was to find a relationship model between the real sensor output and the CFD analysis. At the end of the virtual sensor processing, each virtual sensor had learned the associative transfer function that links its input readings to estimate an output. Following this, all sensors—real and virtual—were included in a 3D real-time simulator, as shown in Figure 11. As demonstrated, only one well-calibrated and controlled physical sensor (temperature reference) was enough for the CFD analysis and the real-time 3D simulator. In fact, the size of the greenhouse was not a limitation in demonstrating the implementation of the virtual sensors.
Figure 11

Three-dimensional (3D) real-time simulator.

4. Conclusions and Future Work

This paper presented a new approach for model-based virtual sensor development based on CFD and control. The present study was designed to create virtual sensors though temperature control and virtual sensor processing. A synergistic combination of sensors, mechanics, electronics, modelling, control, thermal science, systems, instrumentation, CFD, and mechatronics was conducted to provide an alternative in the field of greenhouse design and management. Simulation results were presented to show the temperature distribution of the greenhouse. These findings suggest that, generally, virtual sensing can be applied in large greenhouses for monitoring temperature using a 3D real-time simulator. Possible applications of virtual sensors in commercial greenhouses will be noticed and real-time CFD will appear to develop a promising approach for the very effective and efficient control of the indoor environment. On the other hand, this study found that virtual sensing enabled monitoring temperatures in the greenhouse while using only one sensor. However, there was no uniform distribution of temperature in the greenhouse. This finding was unexpected and it suggests that the temperature distribution must be improved using different greenhouse architectures—this is an important issue for future research. Therefore, the results greatly depend on where the real sensor is located. Nevertheless, these results were very promising. Virtual sensors may represent a promising solution for temperature monitoring in large-scale greenhouses. In real-world applications, CFD analysis can include more parameters. For the estimation of the temperature in a specific area of an industrial greenhouse, the CFD analysis may combine solar radiation, external temperature, wind speed, and other factors. Further studies will need to take these variables into account. We believe that virtual sensors will be the next step in instrumentation and monitoring, not only in greenhouses but also in aquaponics. The next study will analyze temperature control using virtual sensors instead of real sensors. Furthermore, it will be very interesting to include humidity virtual sensors as well as a virtual hygrometer.
  5 in total

1.  Simulation of Virtual Redundant Sensor Models for Safety-Related Applications.

Authors:  Peter Peniak; Karol Rástočný; Alžbeta Kanáliková; Emília Bubeníková
Journal:  Sensors (Basel)       Date:  2022-01-20       Impact factor: 3.576

2.  A microenvironment prediction model for Chinese solar greenhouses based on the bond graph approach.

Authors:  Lei Zhang; Xingan Liu; Tianlai Li; Jianwei Ji; Lei Zhao
Journal:  PLoS One       Date:  2022-05-03       Impact factor: 3.240

3.  Grid Search for Lowest Root Mean Squared Error in Predicting Optimal Sensor Location in Protected Cultivation Systems.

Authors:  Daniel Dooyum Uyeh; Olayinka Iyiola; Rammohan Mallipeddi; Senorpe Asem-Hiablie; Maryleen Amaizu; Yushin Ha; Tusan Park
Journal:  Front Plant Sci       Date:  2022-07-07       Impact factor: 6.627

4.  Handheld Device-Based Indoor Localization with Zero Infrastructure (HDIZI).

Authors:  Abdullah M AlSahly; Mohammad Mehedi Hassan; Kashif Saleem; Amerah Alabrah; Joel J P C Rodrigues
Journal:  Sensors (Basel)       Date:  2022-08-29       Impact factor: 3.847

5.  Crop Management in Controlled Environment Agriculture (CEA) Systems Using Predictive Mathematical Models.

Authors:  Chiara Amitrano; Giovanni Battista Chirico; Stefania De Pascale; Youssef Rouphael; Veronica De Micco
Journal:  Sensors (Basel)       Date:  2020-05-31       Impact factor: 3.576

  5 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.