2.3.4. Boundary Conditions for the Cage Zone
When the cage assemblies are represented as impermeable solid blocks in steady-state CFD simulations, airflow cannot penetrate the cage zone, and the predicted temperature, relative humidity, and air-velocity fields are limited to the surrounding air domain. In the actual laying hen house, however, air flows through both the cages and the spaces occupied by the hens. Therefore, the cage assemblies and laying hens were represented as a porous-medium region in the present model. This treatment enabled the airflow and the associated temperature and relative humidity distributions within the cage zone to be resolved, thereby providing a more realistic representation of the microenvironment experienced by the hens.
An appropriate simplified geometry of an individual hen was first selected to determine the solid volume occupied within the porous-medium region. Cheng et al. [
31] evaluated three geometric representations of a hen, namely a simplified hen model, a body-shaped model, and an ellipsoidal model, and selected the simplified hen model based on comparative CFD simulations. Zhang [
32] subsequently compared the simplified hen model with a cuboid hen model and reported that the cuboid representation produced better mesh quality and required less computational effort. Accordingly, the cuboid hen model was adopted in this study. An actual cage measuring 0.70 m × 0.50 m × 0.60 m and housing eight hens was used to define the porous-medium volume. Each hen was represented by two cuboids: a neck measuring 0.04 m × 0.04 m × 0.08 m and a body measuring 0.15 m × 0.20 m × 0.25 m. The legs were neglected during geometric simplification. The geometric porosity of the representative cage-and-hen region was calculated from the ratio of the void volume to the total cage volume. The total volume of the representative cage was 0.210 m
3, whereas the simplified solid volume occupied by the eight hens was 0.0610 m
3. Accordingly, the geometric porosity was calculated as ε = 1 −
Vs/
Vp = 0.709 nd was set to 0.71 in the porous-medium model. The volume of the cage wires was not included in this geometric calculation; their overall aerodynamic effect, together with that of the hens, was represented by the direction-dependent viscous and inertial resistance coefficients obtained from the velocity–pressure-drop fitting procedure described below. The resulting geometric representation is shown in
Figure 6.
The pressure drop across a porous medium is governed by the superficial velocity through the medium. Therefore, determination of the viscous and inertial resistance coefficients in each principal direction requires establishing the relationship between the pressure drop and the corresponding superficial velocity. This relationship is described by Equation (1):
where ∆P/∆n represents the pressure drop per meter (Pa/m); D
1 is the viscous resistance coefficient (m
−2); v is the airflow velocity (m/s); C
2 is the inertial resistance coefficient (m
−1); μ is the dynamic viscosity of air (N·s/m
2) (1.7894 × 10
−5 N·s/m
2); and ρ is the air density (kg/m
3) 1.225 kg/m
3 [
23]).
For the X-, Y-, and Z-directions, a series of incrementally varied inlet velocities was prescribed separately, and the corresponding pressure drops between the upstream and downstream faces of the porous-medium model were recorded. The data were then fitted using Equation (1) to establish the velocity–pressure-drop relationship in each direction, as shown in
Figure 7.
The relationship between velocity and pressure drop in each direction was derived through curve fitting and is given by Equation (2) as follows:
By combining Equation (2) with Equation (1), the viscous and inertial resistance coefficients in each direction were determined. In the calculations, μ and ρ were set to 1.7894 × 10
−5 N·s/m
2 and 1.225 kg/m
3, respectively. The resulting coefficients for the porous-medium model in the X, Y, and Z directions are listed in
Table 4.
The porous-medium zone was also defined as a volumetric heat source. Because the heat production of an individual hen varies with ambient temperature, total heat production was calculated as the sum of sensible and latent heat production using the equations recommended by the International Commission of Agricultural and Biosystems Engineering (CIGR), as given in Equations (3)–(5) [
30]. The volumetric heat generation rate and volumetric moisture production rate of the porous-medium zone were subsequently calculated using Equations (6) and (7), respectively.
where
Φtot is the total heat production by a laying hen, W;
Φs is the sensible heat produced by a laying hen, W;
Φl is the latent heat produced by a laying hen, W;
T is the air temperature, °C;
m is the average weight of a laying hen, kg;
Y2 is the egg production, kg/day;
QS is the sensible heat production rate per unit volume, W/m
3;
Ml is the moisture production rate per unit volume, kg/m
3·s;
V is the cage volume, m
3;
r is the latent heat of vaporization of water, kJ/kg;
n is the number of laying hens in a cage.
The specification of source terms in the porous-medium zone is a critical component of the numerical simulation of the thermal and moisture environment within the laying hen house. In this study, all source-term parameters were determined from field measurements. The measured inputs included eight hens per cage, a mean indoor air temperature of 30.36 °C, a mean body mass of 1.992 kg per hen, a mean daily egg mass of 0.5845 kg d−1, and a total of 1920 hens represented by each porous-medium computational domain. Based on these measured parameters, the heat and moisture production of the hens was quantified using the corresponding empirical equations. The calculated volumetric heat generation rate and volumetric moisture production rate of the porous-medium zone were 193.61 W m−3 and 5.9332 × 10−5 kg m−3 s−1, respectively.
2.3.5. Validation of the Laying Hen House Model
The CFD model was validated to assess the reliability and accuracy of the simulation results. Model performance was quantified using the mean relative error (MRE) and normalized mean square error (NMSE). Environmental data measured at monitoring locations corresponding to the first and second cage tiers were compared with the simulated values. An NMSE below 0.25 was considered to indicate acceptable predictive accuracy [
33,
34]. The calculation procedures are given in Equations (8)–(10).
MRE denotes the mean relative error between the simulated and measured values; Cs represents the simulated value; Cm denotes the measured value; Csv signifies the mean simulated value; Cmv indicates the mean measured value; and n denotes the number of monitoring points.
Upon convergence, the steady-state solution files generated in ANSYS Fluent 2023 R1 were imported into CFD-Post 2023 R1 for post-processing. Virtual sampling points were defined at coordinates corresponding exactly to the field monitoring locations. The simulated air temperature, relative humidity, and air velocity at each sampling point and measurement period were extracted and compared with the corresponding field measurements to assess the predictive accuracy and reliability of the CFD model. Comparisons between the simulated and measured values are presented in
Figure 8,
Figure 9 and
Figure 10.
The calculated MRE and NMSE values are summarized in
Table 5. The MRE for air temperature and relative humidity were below 3%, whereas the maximum MRE for air velocity was 12.4%. The comparatively higher air-velocity MRE was mainly attributable to the low magnitude of the measured velocities, for which small absolute deviations resulted in relatively large percentage errors. Nevertheless, over the measured air-velocity range of 0.8–2.4 m/s, the maximum absolute deviation between the simulated and measured values was only 0.10 m/s. Moreover, the NMSE values for air temperature, relative humidity, and air velocity were all below the acceptance threshold of 0.25. These results indicate that the CFD model adequately reproduced the measured thermal, moisture, and airflow conditions and was therefore considered suitable for the subsequent analysis and optimization of the ventilation system.