Next Article in Journal
A Comparative Study Based on the Least Square Parameter Identification Method for State of Charge Estimation of a LiFePO4 Battery Pack Using Three Model-Based Algorithms for Electric Vehicles
Next Article in Special Issue
Predictive Modeling of a Paradigm Mechanical Cooling Tower Model: II. Optimal Best-Estimate Results with Reduced Predicted Uncertainties
Previous Article in Journal
Short-Term Price Forecasting Models Based on Artificial Neural Networks for Intraday Sessions in the Iberian Electricity Market
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Predictive Modeling of a Paradigm Mechanical Cooling Tower: I. Adjoint Sensitivity Model

Center for Nuclear Science and Energy, Department of Mechanical Engineering, University of South Carolina, Columbia, SC 29208, USA
*
Author to whom correspondence should be addressed.
Energies 2016, 9(9), 718; https://doi.org/10.3390/en9090718
Submission received: 23 June 2016 / Revised: 23 August 2016 / Accepted: 30 August 2016 / Published: 8 September 2016
(This article belongs to the Special Issue Advances in Predictive Modeling of Nuclear Energy Systems)

Abstract

:
Cooling towers discharge waste heat from an industrial process into the atmosphere, and are essential for the functioning of large energy-producing plants, including nuclear reactors. Using a numerical simulation model of the cooling tower together with measurements of outlet air relative humidity, outlet air and water temperatures enables the quantification of the rate of thermal energy dissipation removed from the respective process. The computed quantities depend on many model parameters including correlations, boundary conditions, material properties, etc. Changes in these model parameters will induce changes in the computed quantities of interest (called “model responses”). These changes are quantified by the functional derivatives (called “sensitivities”) of the model responses with respect to the model parameters. These sensitivities are computed in this work by applying the general Adjoint Sensitivity Analysis Methodology (ASAM) for nonlinear systems. These sensitivities are needed for: (i) ranking the parameters in their importance to contributing to response uncertainties; (ii) propagating the uncertainties (covariances) in these model parameters to quantify the uncertainties (covariances) in the model responses; (iii) performing predictive modeling, including assimilation of experimental measurements and calibration of model parameters to produce optimal predicted quantities (both model parameters and responses) with reduced predicted uncertainties.

1. Introduction

A mechanical draft cooling tower (MDCT) discharges waste heat from an industrial process into the atmosphere. Cooling towers are essential for the functioning of large energy-producing plants, including nuclear reactors. Using a numerical simulation model of the cooling tower together with measurements of outlet air relative humidity, outlet air and water temperatures enables the quantification of the rate of thermal energy dissipation removed from the respective process. In addition to computing the temperature drop of the cooling water as it passes through the tower, a cooling tower model that derives heat dissipation rates from thermal imagery needs to convert the remotely measured cooling tower throat or area-weighted temperature to a cooling water inlet temperature. Therefore, a cooling tower model comprises two main components, namely: (i) an inner model which computes the amount of cooling undergone by the water as it passes through the tower as a function of inlet cooling water temperature and ambient weather conditions (air temperature and humidity); and (ii) an outer model which uses a remotely measured throat or area-weighted temperature and iterates on the inlet water temperature to match the target temperature of interest. The cooling tower model produces an estimate of the rate at which energy is being discharged to the atmosphere by evaporation and sensible heat transfer. The sensible heat transfer is estimated using the computed change in air or water enthalpy as it passes through the MDCT. If the MDCT fans are on, a prescribed mass flow rate of air and water is used. If the MDCT fans are off, an additional mechanical energy equation is iteratively solved to determine the mass flow rate of air.
The flow regime in the fill section of a cooling tower, which can be cross-flow or counter-flow, determines the type of the respective cooling tower. A model for computing the steady-state thermal performance has been recently presented [1]; this model simulates both cross-flow and counter-flow wet mechanical draft cooling towers. Using as inputs the temperature and mass flow rate of the incoming water together with the temperature and humidity ratio of the incoming ambient air, this model computes the temperature and mass flow rate of the effluent water, as well as the temperature and water vapor content of the exhaust air. The air mass flow rate is specified when the cooling tower operates in the mechanical draft mode. When the fan is turned-off, the cooling tower operates in the natural draft/wind-aided mode, in which case the air mass flow rate is calculated using the numerical model.
In the present work, the counter-flow cooling tower presented in [1] is further developed by applying a considerably more accurate and efficient numerical method for computing the steady state distributions of the following quantities: (i) the water mass flow rates at the exit of each control volume along the height of the fill section of the cooling tower; (ii) the water temperatures at the exit of each control volume along the height of the fill section of the cooling tower; (iii) the air temperatures at the exit of each control volume along the height of the fill section of the cooling tower; (iv) the humidity ratios at the exit of each control volume along the height of the fill section of the cooling tower; and (v) the air relative humidity at the exit of each control volume. In contrast to many cases of non-convergence experienced by the original method [1], the numerical method applied in this work is highly efficient and yields accurate results everywhere, as shown in Section 2.1, below.
More importantly, however, this work presents the development of the adjoint cooling tower sensitivity model for computing efficiently and exactly the sensitivities (i.e., functional derivatives) of the model responses (i.e., quantities of interest) to all 52 model parameters. The adjoint sensitivity model is developed by applying the general Adjoint Sensitivity Analysis Methodology (ASAM) for nonlinear systems, which was originally presented in [2,3,4]. Even though the forward cooling tower model is nonlinear in the state functions, the adjoint sensitivity model is linear in the adjoint state functions, which correspond one-to-one to the forward state functions mentioned in the foregoing. Using the adjoint state functions, the sensitivities of each model response to all of the 52 model parameters can be computed exactly using a single adjoint model computation, as opposed to 52 computations, as would be required if the sensitivities would have been computed—approximately as opposed to exactly—using the forward model in conjunction with finite-differences. The sensitivities are needed for (i) ranking the parameters in the order of their importance for contributing to response uncertainties; (ii) propagating the uncertainties (variances and covariances) in the model parameters to quantify the uncertainties (variances and covariances) in the model responses; (iii) performing predictive modeling, which includes assimilation of experimental measurements and calibration of model parameters to produce optimally predicted nominal values for both model parameters and responses, with reduced predicted uncertainties. The development of the adjoint sensitivity model for the counter-flow cooling tower is presented in Section 2 of this work, together with results for the respective adjoint state functions. A discussion of the significance of the results obtained in this work is presented in Section 3. The predictive modeling of the counter-flow cooling tower will be performed by applying the “predictive modeling for coupled multi-physics systems” (PM_CMPS) methodology recently developed in [5]; the results of this predictive modeling will presented in the sequel to this paper [6].

2. Results

During the period from April, 2004 through August, 2004, a total 8079 measured benchmark data sets for F-area cooling towers (fan-on case) were recorded every fifteen minutes at SRNL for F-Area Cooling Towers [7]. Each of these data sets contained measurements of the following (four) quantities: (i) outlet air temperature measured with the sensor called “Tidbit”, which will be denoted as Ta,out(Tidbit); (ii) outlet air temperature measured with the sensor called “Hobo”, which will be denoted as Ta,out(Hobo); (iii) outlet water temperature, which will be denoted as T w , o u t m e a s ; (iv) outlet air relative humidity, which will be denoted as RHmeas. Histogram plots of these 7668 measurement sets (each set containing measurements of Ta,out(Tidbit), Ta,out(Hobo), T w , o u t m e a s and RHmeas), together with statistical analyses of these measurements, are presented in Appendix A. These measured quantities provide the basis for the choosing the state functions underlying the mathematical modeling of the cooling tower, which is presented in Section 2.1. An accurate and efficient numerical method for solving the equations underlying the counter-flow cooling tower is also presented in this section. Section 2.2 presents the development of the cooling tower adjoint sensitivity model, along with the solution method for computing the adjoint state functions. The numerical accuracy of solving the equations underlying the adjoint sensitivity model will also be verified.

2.1. Mathematical Model of the Counter-Flow Cooling Tower

The counter-flow cooling tower considered in this work has been originally developed in [1] and is schematically presented in Figure 1.
As this figure indicates, forced air flow enters the tower through the “rain section” above the water basin, flows upward through the fill section and the drift eliminator, and exits at the tower’s top through an exhaust that encloses a fan. Hot water enters above the fill section and is sprayed onto the top of the fill section to create a uniform, downward falling, film flow through the fill’s numerous meandering vertical passages. Film fills are designed to maximize the water free surface area and the residence time inside of the fill section. Heat and mass transfer occurs at the falling film’s free surface between the water film and the upward air flow. The drift eliminator above the spray zone removes entrained water droplets from the upward flowing air. Below the fill section, the water droplets fall into a collection basin, placed at the bottom of the cooling tower. The heat and mass transfer processes occur overwhelmingly in the fill section. Modeling the heat and mass transfer processes between falling water film and rising air in the cooling tower’s fill section is accomplished by solving the following balance equations: (A) liquid continuity; (B) liquid energy balance; (C) water vapor continuity; (D) air/water vapor energy balance. The assumptions used in deriving these equations are as follows:
  • the air and/or water temperatures are uniform throughout each stream at any cross section;
  • the cooling tower has uniform cross-sectional area;
  • the heat and mass transfer occur solely in the direction normal to flows;
  • the heat and mass transfer through tower walls to the environment is negligible;
  • the heat transfer from the cooling tower fan and motor assembly to the air is negligible;
  • the air and water vapor mix as ideal gasses;
  • the flow between flat plates is unsaturated through the fill section.
This work considers moderately sized towers for which the heat and mass transfer processes in the rain section is negligible. The fill section is modeled by discretizing it in vertically stacked control volumes as depicted in Figure 2. The heat and mass transfer between the falling water film and the rising air in a typical control volume of the cooling tower’s fill section is presented in Figure 3.
In the mechanical draft mode, the mass flow rate of dry air is specified. With the fan off and hot water flowing through the cooling tower, air will continue to flow through the tower due to buoyancy. Wind pressure at the air inlet to the cooling tower will also enhance air flow through the tower. The air flow rate is determined from the overall mechanical energy equation for the dry air flow. The state functions underlying the cooling tower model (cf., Figure 1, Figure 2 and Figure 3) are as follows:
  • the water mass flow rates, denoted as m w ( i )   ( i = 2 , , 50 ) , at the exit of each control volume, i, along the height of the fill section of the cooling tower;
  • the water temperatures, denoted as T w ( i )   ( i = 2 , , 50 ) , at the exit of each control volume, i, along the height of the fill section of the cooling tower;
  • the air temperatures, denoted as T a ( i )   ( i = 1 , , 49 ) , at the exit of each control volume, i, along the height of the fill section of the cooling tower; and
  • the humidity ratios, denoted as . ω ( i )   ( i = 1 , , 49 ) , at the exit of each control volume, i, along the height of the fill section of the cooling tower.
It is convenient to consider the above state functions to be components of the following (column) vectors:
m w [ m w ( 2 ) , , m w ( I + 1 ) ] ,   T w [ T w ( 2 ) , , T w ( I + 1 ) ] ,   T a [ T a ( 1 ) , , T a ( I ) ] ,   ω [ ω ( 1 ) , , ω ( I ) ]
In this work, the dagger ( + ) will be used to denote “transposition”, and all vectors will be considered to be column vectors. The governing conservation equations within the total of I = 49 control volumes represented in Figure 2 are as follows [1]:
  • Liquid continuity equations:
    (i) 
    Control Volume i = 1:
    N 1 ( 1 ) ( m w , T w , T a , ω ; α ) m w ( 2 ) m w , i n + M ( m a , α ) R ¯ [ P v s ( 2 ) ( T w ( 2 ) , α ) T w ( 2 ) ω ( 1 ) P a t m T a ( 1 ) ( 0.622 + ω ( 1 ) ) ] = 0 ;
    (ii) 
    Control Volumes i = 2,..., I−1:
    N 1 ( i ) ( m w , T w , T a , ω ; α ) m w ( i + 1 ) m w ( i ) + M ( m a , α ) R ¯ [ P v s ( i + 1 ) ( T w ( i + 1 ) , α ) T w ( i + 1 ) ω ( i ) P a t m T a ( i ) ( 0.622 + ω ( i ) ) ] = 0 ;
    (iii) 
    Control Volume i = I:
    N 1 ( I ) ( m w , T w , T a , ω ; α ) m w ( I + 1 ) m w ( I ) + M ( m a , α ) R ¯ [ P v s ( I + 1 ) ( T w ( I + 1 ) , α ) T w ( I + 1 ) ω ( I ) P a t m T a ( I ) ( 0.622 + ω ( I ) ) ] = 0 ;
  • Liquid energy balance equations:
    (i) 
    Control Volume i = 1:
    N 2 ( 1 ) ( m w , T w , T a , ω ; α ) m w , i n h f ( T w , i n , α ) ( T w ( 2 ) T a ( 1 ) ) H ( m a , α ) m w ( 2 ) h f ( 2 ) ( T w ( 2 ) , α ) ( m w , i n m w ( 2 ) ) h g , w ( 2 ) ( T w ( 2 ) , α ) = 0 ;
    (ii) 
    Control Volumes i = 2,…, I−1:
    N 2 ( i ) ( m w , T w , T a , ω ; α ) m w ( i ) h f ( i ) ( T w ( i ) , α ) ( T w ( i + 1 ) T a ( i ) ) H ( m a , α )     m w ( i + 1 ) h f ( i + 1 ) ( T w ( i + 1 ) , α ) ( m w ( i ) m w ( i + 1 ) ) h g , w ( i + 1 ) ( T w ( i + 1 ) , α ) = 0 ;
    (iii) 
    Control Volume i = I:
    N 2 ( I ) ( m w , T w , T a , ω ; α ) m w ( I ) h f ( I ) ( T w ( I ) , α ) ( T w ( I + 1 ) T a ( I ) ) H ( m a , α )     m w ( I + 1 ) h f ( I + 1 ) ( T w ( I + 1 ) , α ) ( m w ( I ) m w ( I + 1 ) ) h g , w ( I + 1 ) ( T w ( I + 1 ) , α )   = 0 ;
  • Water vapor continuity equations:
    (i) 
    Control Volume i = 1:
    N 3 ( 1 ) ( m w , T w , T a , ω ; α ) ω ( 2 ) ω ( 1 ) + m w . i n m w ( 2 ) | m a | = 0 ;
    (ii) 
    Control Volumes i = 2,..., I−1:
    N 3 ( i ) ( m w , T w , T a , ω ; α ) ω ( i + 1 ) ω ( i ) + m w ( i ) m w ( i + 1 ) | m a | = 0   ;
    (iii) 
    Control Volume i = I:
    N 3 ( I ) ( m w , T w , T a , ω ; α ) ω i n ω ( I ) + m w ( I ) m w ( I + 1 ) | m a | = 0   ;
  • The air/water vapor energy balance equations:
    (i) 
    Control Volume i = 1:
    N 4 ( 1 ) ( m w , T w , T a , ω ; α ) ( T a ( 2 ) T a ( 1 ) ) C p ( 1 ) ( T a ( 1 ) + 273.15 2 , α ) ω ( 1 ) h g , a ( 1 ) ( T a ( 1 ) , α ) + ( T w ( 2 ) T a ( 1 ) ) H ( m a , α ) | m a | + ( m w , i n m w ( 2 ) ) h g , w ( 2 ) ( T w ( 2 ) , α ) | m a | + ω ( 2 ) h g , a ( 2 ) ( T a ( 2 ) , α ) = 0   ;
    (ii) 
    Control Volumes i = 2,..., I−1:
    N 4 ( i ) ( m w , T w , T a , ω ; α ) ( T a ( i + 1 ) T a ( i ) ) C p ( i ) ( T a ( i ) + 273.15 2 , α ) ω ( i ) h g , a ( i ) ( T a ( i ) , α )    + ( T w ( i + 1 ) T a ( i ) ) H ( m a , α ) | m a | + ( m w ( i ) m w ( i + 1 ) ) h g , w ( i + 1 ) ( T w ( i + 1 ) , α ) | m a | + ω ( i + 1 ) h g , a ( i + 1 ) ( T a ( i + 1 ) , α ) = 0   ;
    (iii) 
    Control Volume i = I:
    N 4 ( I ) ( m w , T w , T a , ω ; α ) ( T a , i n T a ( I ) ) C p ( I ) ( T a ( I ) + 273.15 2 , α ) ω ( I ) h g , a ( I ) ( T a ( I ) , α )    + ( T w ( I + 1 ) T a ( I ) ) H ( m a , α ) | m a | + ( m w ( I ) m w ( I + 1 ) ) h g , w ( I + 1 ) ( T w ( I + 1 ) , α ) | m a | + ω i n h g , a ( T a , i n , α ) = 0   .
The components of the vector α , which appears in Equations (2)–(13), comprise the model parameters which are generically denoted as α i , i.e.:
α ( α 1 , , α N α ) ,
where N α denotes the total number of model parameters. These model parameters are experimentally derived quantities, and their complete distributions parameters are not known; however, we have determined the first four moments (means, variance/covariance, skewness, and kurtosis) of each of these parameter distributions, as detailed in Appendix B.
In the original work [1], the above equations were solved using a two stage-iterative method comprising an “inner-iteration” using Newton’s method within each control volume, followed by an outer iteration aimed at achieving overall convergence. This procedure, though, did not converge at all of the points of interest. Therefore, after testing several alternatives provided in [8] and [9], we have replaced the original solution method in [1] by Newton’s method together with the GMRES linear iterative solver for sparse matrices [10] provided in the NSPCG package [9], which turned out to be the most efficient among those we have tested. This GMRES method [10] approximates the exact solution-vector of a linear system by using the Arnoldi iteration to find the approximate solution-vector by minimizing the norm of the residual vector over a Krylov subspace. The specific computational steps are as follows:
(a)
Write Equations (1)–(13) in vector form as:
N ( u ) = 0 ,
where the following definitions were used:
N ( N 1 ( 1 ) , .. , N 1 ( I ) , , N 4 ( 1 ) , , N 4 ( I ) ) , u ( m w ,   T w ,   T a , ω )
(b)
Set the initial guess, u 0 , to be the inlet boundary conditions;
(c)
Steps d through g, below, constitute the outer iteration loop; for n = 0 , 1 , 2 , , iterate over the following steps until convergence:
(d)
Inner iteration loop: for m = 1 , 2 , , use the iterative GMRES linear solver with the Modified Incomplete Cholesky (MIC) preconditioner, with restarts, to solve, until convergence, the following system to compute the vector δ u :
J ( u n ) δ u = N ( u n ) ,
where n is the current outer loop iteration number, and the Jacobian matrix of derivatives of Equations (2)–(13) with respect to the state functions is the block-matrix:
J ( u n ) ( A 1 B 1 C 1 D 1 A 2 B 2 C 2 D 2 A 3 B 3 C 3 D 3 A 4 B 4 C 4 D 4 ) ,
with matrix-components defined in Appendix C. As shown in this Appendix, the Jacobian represented by Equation (18) is a non-symmetric sparse matrix of order 196 by 196, with 14 nonzero diagonals. The non-symmetric diagonal storage format is used to store the respective 14 nonzero diagonals, so that the “condensed” Jacobian matrix has dimensions 196 by 14. Since the Jacobian is highly non-symmetric, the cost of the iterations of the GMRES solver grows as O(m2), where m is the iteration number within the GMRES solver. To reduce this computational cost, the GMRES solver is configured to run with the restart feature. The optimized value for the restart frequency is 10 for this specific application. The MIC preconditioner can speed up the convergence of the GMRES solver using the parameters OMEGA and LVFILL [9] in the modified incomplete factorization methods for the MIC preconditioner; for this application the following values were found to be optimal: OMEGA = 0.000000001 and LVFILL = 1. The Jacobian is not updated inside the sparse GMRES solver. The default convergence of GMRES is tested with the following criterion [9]:
[ z ˜ ( m ) , z ˜ ( m ) δ u ( m ) , δ u ( m ) ] 1 2 < ζ
where z ˜ ( m ) denotes the pseudo-residual at mth-iteration of the GMRES solver, δ u ( m ) is the solution of Equation (17) at mth-iteration, and ζ denotes the stopping test value for the GMRES solver.
(e)
Set
u n + 1 = u n + δ u ,
where n is the current outer loop iteration number, and update the Jacobian.
(f)
Test for convergence of the outer loop until the error in the solution is less than a specified maximum value. For solving Equations (2)–(13), the following error criterion has been used:
e r r o r = max ( | δ m w ( i ) | m w ( i ) , | δ T w ( i ) | T w ( i ) , | δ T a ( i ) | T a ( i ) , | δ ω ( i ) | ω ( i ) ) < 10 6
(g)
Set n = n + 1 and go to step d.
The above solution strategy for solving Equations (2)–(13) converged successfully for all the 8079 benchmark data sets. As described previously, each of these data sets contained measurements of the following quantities: (i) outlet air temperature measured with the sensor called “Tidbit”; (ii) outlet air temperature measured with the sensor called “Hobo”; (iii) outlet water temperature; (iv) outlet air relative humidity. For each of these benchmark data sets, the outer loop iterations described above (i.e., steps c through g) converge in 4 iterations; for each outer loop iteration, the GMRES solver used for solving Equation (17) converges in 12 iterations. The “zero-to-zero” verification of the solution’s accuracy using Equations (2) through (13) gives an error of the order of 10 7 .
In view of the above-mentioned measurements, the responses of interest for this work are as follows:
(a)
the vector m w [ m w ( 2 ) , , m w ( I + 1 ) ] of water mass flow rates at the exit of each control volume i, ( i = 1 , , 49 ) ;
(b)
the vector T w [ T w ( 2 ) , , T w ( I + 1 ) ] of water temperatures at the exit of each control volume i, ( i = 1 , , 49 ) ;
(c)
the vector T a [ T a ( 1 ) , , T a ( I ) ] of air temperatures at the exit of each control volume i, ( i = 1 , , 49 ) ;
(d)
the vector R H [ R H ( 1 ) , , R H ( I ) ] , having components of the air relative humidity at the exit of each control volume i, ( i = 1 , , 49 ) .
While the water mass flow rates m w ( i ) , the water temperatures T w ( i ) , and the air temperatures T a ( i ) are obtained directly as the solutions of Equations (2)–(13), the air relative humidity, R H ( i ) , is computed for each control volume using the expression:
R H ( i )   =   P v ( ω ( i ) , α ) P v s ( T a ( i ) , α ) × 100 = ( ω ( i ) P a t m ω ( i ) + 0.622 ) ( e a 0 + a 1 T a ( i ) ) × 100 .
The bar plots, showing the respective values of the water mass flow rates m w ( i ) , the water temperatures T w ( i ) , the air temperatures T a ( i ) , and the air relative humidity, R H ( i ) , at the exit of each control volume, are presented in Figure 4, Figure 5, Figure 6 and Figure 7, below.

2.2. Development of the Cooling Tower Adjoint Sensitivity Model, with Solution Verification

All of the responses of interest in this work, e.g., the experimentally measured and/or computed responses discussed in the previous Sections, can be generally represented in the functional form R ( m w , T w , T a , ω ; α ) , where R is a known functional of the model’s state functions and parameters. As generally shown in [2], the sensitivity of such as this response to arbitrary variations in the model’s parameters δ α ( δ α 1 , , δ α N α ) and state functions δ m w , δ T w , δ T a , δ ω is provided by the response’s Gateaux (G-) differential D R ( m w 0 , T w 0 , T a 0 , ω 0 ; α 0 ; δ m w , δ T w , δ T a , δ ω ; δ α ) , which is defined as follows:
D R ( m w 0 , T w 0 , T a 0 , ω 0 ; α 0 ; δ m w , δ T w , δ T a , δ ω ; δ α ) d d ε [ R ( m w 0 + ε δ m w , T w 0 + ε δ T w , T a 0 + ε δ T a , ω 0 + ε δ ω ; α 0 + ε δ α ) ] ε = 0 =   D R d i r e c t + D R i n d i r e c t   ,
where the so-called “direct effect” term, D R d i r e c t , and the so-called “indirect effect” term, D R i n d i r e c t , are defined, respectively, as follows:
D R d i r e c t i = 1 N α ( R α i δ α i )   ,
D R i n d i r e c t i = 1 I ( R m w ( i + 1 ) δ m w ( i + 1 ) + R T w ( i + 1 ) δ T w ( i + 1 ) + R T a ( i ) δ T a ( i ) + R ω ( i ) δ ω ( i ) ) = R 1 δ m w   + R 2 δ T w + R 3 δ T a + R 4 δ ω ,
where the components of the vectors R ( r ( 1 ) , , r ( I ) ) ,   = 1 , 2 , 3 , 4 are defined as follows:
r 1 ( i )   R m w ( i + 1 ) ;   r 2 ( i )   R T w ( i + 1 )   ;   r 3 ( i ) R T a ( i ) ;   r 4 ( i ) R ω ( i ) ;   i = 1 , , I .  
Since the model parameters are related to the model’s state functions through Equations (2)–(13), it follows that variations in the model parameter will induce variations in the state variables. More precisely, it has been shown in [2,3,4] that to first-order in the parameter variations, the respective variations in the state variables can be computed by solving the G-differentiated model equations, namely:
d d ε [ N ( u 0 + ε δ u ; α 0 + ε δ α ) ] ε = 0 = 0 ,
Performing the above differentiation on Equations (2) through (13) yields the following forward sensitivity system:
( A 1 B 1 C 1 D 1 A 2 B 2 C 2 D 2 A 3 B 3 C 3 D 3 A 4 B 4 C 4 D 4 ) ( δ m w δ T w δ T a δ ω ) = ( Q 1 Q 2 Q 3 Q 4 ) ,
where the components of the vectors Q ( q ( 1 ) , , q ( I ) ) ,   = 1 , 2 , 3 , 4 are defined as follows:
q ( i )   j = 1 N α ( N ( i ) α j δ α j )   ;   i = 1 , , I ;   = 1 , 2 , 3 , 4 .
The system represented by Equation (26) is called the forward sensitivity system, which can be solved, in principle, to compute the variations in the state functions for every variation in the model parameters. In turn, the solution of Equation (26) can be used in Equation (24) to compute the “indirect effect” term, D R i n d i r e c t . However, since there are many parameter variations to consider, solving Equation (26) repeatedly to compute D R i n d i r e c t becomes computationally impracticable. The need for solving Equation (26) repeatedly to compute D R i n d i r e c t can be circumvented by applying the Adjoint Sensitivity Analysis Procedure (ASAM) formulated in [2,3,4]. The ASAM proceeds by forming the inner-product of Equation (26) with a yet unspecified vector of the form [ μ w ,   τ w ,   τ a ,   o ] , having the same structure as the vector u ( m w ,   T w ,   T a , ω ) , transposing the resulting scalar equation and using Equation (24). Furthermore, by requiring that the vector [ μ w ,   τ w ,   τ a ,   o ] satisfy the following adjoint sensitivity system:
( A 1 A 2 A 3 A 4 B 1 B 2 B 3 B 4 C 1 C 2 C 3 C 4 D 1 D 2 D 3 D 4 ) ( μ w τ w τ a o ) = ( R 1 R 2 R 3 R 4 ) ,
it ultimately results that the “indirect effect” term can be expressed in the form
D R i n d i r e c t   μ w Q 1   + τ w Q 2 + τ a Q 3 + o Q 4
The system represented by Equation (28) is called the adjoint sensitivity system, which –notably– is independent of parameter variations. Therefore, the adjoint sensitivity system needs to be solved only once, to compute the adjoint functions [ μ w ,   τ w ,   τ a ,   o ] . In turn, the adjoint functions are used to compute D R i n d i r e c t , efficiently and exactly, using Equation (29). As an illustrative example of computing response sensitivities using the adjoint sensitivity system, consider that the model response of interest is the air relative humidity, R H ( i ) , in a generic control volume i, as given by Equation (21). For this model response, the “direct effect” term, denoted as D [ R H ( i ) ] d i r e c t , is readily obtained in the form:
D [ R H ( i ) ] d i r e c t = ( R H ( i ) ) P a t m ( δ P a t m ) + ( R H ( i ) ) a 0 ( δ a 0 ) + ( R H ( i ) ) a 1 ( δ a 1 ) , i = 1 , , I ;
where:
( R H ( i ) ) P a t m = P a t m [   P v ( ω ( i ) , α ) P v s ( T a ( i ) , α ) × 100 ] = 0.622 ( 0.622 + ω ( i ) ) e a 0 + a 1 T a ( i ) × 100 ; i = 1 , , I ;
( R H ( i ) ) a 0 = a 0 [   P v ( ω ( i ) , α ) P v s ( T a ( i ) , α ) × 100 ] = 0.622 P a t m ( 0.622 + ω ( i ) ) e a 0 + a 1 T a ( i ) × 100 ; i = 1 , , I ;
( R H ( i ) ) a 1 = a 1 [   P v ( ω ( i ) , α ) P v s ( T a ( i ) , α ) × 100 ] = 0.622 P a t m ( 0.622 + ω ( i ) ) e a 0 + a 1 T a ( i ) 1 T a ( i ) × 100 ; i = 1 , , I .
On the other hand, the “indirect effect” term, denoted as D [ R H ( i ) ] i n d i r e c t , is readily obtained in the form:
D [ R H ( i ) ] i n d i r e c t = ( R H ( i ) ) ω ( i ) ( δ ω ( i ) ) + ( R H ( i ) ) T a ( i ) ( δ T a ( i ) ) ; i = 1 , , I ;
where:
( R H ( i ) ) ω ( i ) = ω ( i ) [   P v ( ω ( i ) , α ) P v s ( T a ( i ) , α ) × 100 ] = 100 P v s ( T a ( i ) , α ) P v ( ω ( i ) , α ) ω ( i ) = 0.622 P a t m ( 0.622 + ω ( i ) ) 2 e a 0 + a 1 T a ( i ) × 100 ; i = 1 , , I ;
( R H ( i ) ) T a ( i ) = T a ( i ) [ P v ( ω ( i ) , α ) P v s ( T a ( i ) , α )   × 100 ] = 100 × P v ( ω ( i ) , α ) T a ( i ) [ 1 P v s ( T a ( i ) , α ) ] = 0.622 P a t m ( 0.622 + ω ( i ) ) e a 0 + a 1 T a ( i ) a 1 [ T a ( i ) ] 2 × 100 ; i = 1 , , I .
The units of the adjoint functions can be determined from Equation (29) through dimensional analysis. Specifically, the units for the adjoint functions satisfy the following relation:
[ μ w ( i ) ] = [ R ] [ N 1 ] ;   [ τ w ( i ) ] = [ R ] [ N 2 ] ;   [ τ a ( i ) ] = [ R ] [ N 3 ] ;   [ o ( i ) ] = [ R ] [ N 4 ]   ,
where ”[R]” denotes the unit of the response R, while the units for the respective equations are as follows:
[ N 1 ] = k g s ;   [ N 2 ] = J s ;   [ N 3 ] = [ ] ;   [ N 4 ] = J k g   .
Table 1 below lists the units of the adjoint functions for four responses: R T a ( 1 ) , R T w ( 50 ) , R R H ( 1 ) and R m w ( 50 ) , respectively, in which, T a ( 1 ) denotes exit air temperature; T w ( 50 ) denotes exit water temperature; R H ( 1 ) denotes exit air relative humidity; and m w ( 50 ) denotes exit water mass flow rate.
Note that the adjoint sensitivity system represented by Equation (28) is linear in the adjoint state functions, so it can be solved by using numerical methods appropriate for large-scale sparse linear systems. In particular, we solved it by using NSPCG, a “Package for Solving Large Sparse Linear Systems by Various Iterative Methods” [9]; 12 to 18 iterations sufficed for solving the adjoint system within convergence criterion of ζ = 10 12 . The bar plots of the adjoint functions corresponding to the four measured responses of interest, namely: (i) the exit air temperature R T a ( 1 ) ; (ii) the outlet (exit) water temperature R T w ( 50 ) ; (iii) the exit air humidity ratio R R H ( 1 ) ; and (iv) the outlet (exit) water mass flow rate R m w ( 50 ) , are presented in Figure 8, Figure 9, Figure 10 and Figure 11.
The numerical accuracy of the computed adjoint functions can be independently verified by first noting that Equations (22), (23) and (29) imply that:
D R ( m w 0 , T w 0 , T a 0 , ω 0 ; α 0 ; δ m w , δ T w , δ T a , δ ω ; δ α ) =   j = 1 N α S j   δ α j ,
where N α denotes the total number of model parameters, and S j denotes the “absolute sensitivity” of the response R with respect to the parameter α j , and is defined as:
S j R α j i = 1 I ( μ w ( i ) N 1 ( i ) α j + τ w ( i ) N 2 ( i ) α j + τ a ( i ) N 3 ( i ) α j + o ( i ) N 4 ( i ) α j ) .
All of the derivatives with respect to the model parameter α j on the right side of Equation (40) are known quantities. On the other hand, the absolute response sensitivity S j can be computed independently, as follows:
  • consider a small perturbation δ α j in the model parameter α j ;
  • re-compute the perturbed response R ( α j 0 + δ α j ) , where α j 0 denotes the unperturbed parameter value;
  • use the finite difference formula:
    S j F D R ( α j 0 + δ α j ) R ( α j 0 ) δ α j + O ( δ α j ) 2
  • use the approximate equality between Equations (41) and (40) to obtain independently the respective values of the adjoint function(s) being verified.
The verification procedure described in steps (1)–(4) above, will be illustrated in the remainder of this section, for verifying the adjoint functions depicted in Figure 8, Figure 9, Figure 10 and Figure 11.

2.2.1. Verification of the Adjoint Functions for the Outlet Air Temperature Response T a ( 1 )

When R = T a ( 1 ) , the quantities r ( i ) defined in Equation (25) all vanish except for a single component, namely: r 3 ( 1 ) R / T a ( 1 )   = 1 . Thus, the adjoint functions corresponding to the outlet air temperature response T a ( 1 ) are computed by solving the adjoint sensitivity system given in Equation (28) using r 3 ( 1 ) R / T a ( 1 )   = 1 as the only non-zero source term; for this case, the solution of Equation (28) has been depicted in Figure 8.
(a) Verification of the adjoint function o ( 49 )
Note that the value of the adjoint function o ( 49 ) obtained by solving the adjoint sensitivity system given in Equation (28) is o ( 49 ) = 4 . 687 × 10 4   [ K / ( J / k g ) ] , as indicated in Figure 8. Now select a variation δ T a , i n in the inlet air temperature T a , i n , and note that Equation (40) yields the following expression for the sensitivity of the response R = T a ( 1 ) to T a , i n :
S 46 T a ( 1 ) T a , i n i = 1 49 ( μ w ( i ) N 1 ( i ) T a , i n + τ w ( i ) N 2 ( i ) T a , i n + τ a ( i ) N 3 ( i ) T a , i n + o ( i ) N 4 ( i ) T a , i n ) = 0 o ( 49 ) N 4 ( 49 ) T a , i n = ( o ( 49 ) ) [ C p ( T a ( 49 ) + t K 2 , α ) + ω i n α 1 g ] .
Re-writing Equation (42) in the form:
o ( 49 ) = S 46 N 4 ( 49 ) / T a , i n = S 46 [ C p ( T a ( 49 ) + t K 2 , α ) + ω i n α 1 g ] 1 ,
indicates that the value of the adjoint function o ( 49 ) could be computed independently if the sensitivity S 46 were available, since the quantity N 4 ( 49 ) / T a , i n = 1.0309 × 10 3 [ J / ( k g K ) ] is known. To first-order in the parameter perturbation, the finite-difference formula given in Equation (41) can be used to compute the approximate sensitivity S 46 F D ; subsequently, this value can be used in conjunction with Equation (43) to compute a “finite-difference sensitivity” value, denoted as [ o ( 49 ) ] S F D , for the respective adjoint, which would be accurate up to second-order in the respective parameter perturbation:
[ o ( 49 ) ] S F D = S 46 F D N 4 ( 49 ) / T a , i n = [ T a , p e r t ( 1 ) T a , n o m ( 1 ) δ T a , i n ] [ N 4 ( 49 ) T a , i n ] 1 ,
Numerically, the inlet air temperature T a , i n ( = T d b ) has the nominal (“base-case”) value of T a , i n 0 = 299 . 11   [ K ] . The corresponding nominal value T a , n o m ( 1 ) of the response T a ( 1 ) is T a , n o m ( 1 ) = 297.4637 [ K ] . Consider next a perturbation δ T a , i n = ( 0.001 ) T a , i n 0 , for which the perturbed value of the inlet air temperature becomes T a , i n p e r t = T a , i n 0 +   δ T a , i n = 299.40911 [ K ] . Re-computing the perturbed response by solving Equations (2)–(13) with the value of T a , i n p e r t yields the “perturbed response” value T a , p e r t ( 1 ) = 297.6073 [ K ] . Using now the nominal and perturbed response values together with the parameter perturbation in the finite-difference expression given in Equation (41) yields the corresponding “finite-difference-computed sensitivity” S 46 F D T a , p e r t ( 1 ) T a , n o m ( 1 ) δ T a , i n = 0.4802 . Using this value together with the nominal values of the other quantities appearing in the expression on the right side of Equation (44) yields [ o ( 49 ) ] S F D = 4.658 × 10 4 [ K / ( J / k g ) ] . This result compares well with the value o ( 49 ) = 4 . 687 × 10 4 [ K / ( J / k g ) ] obtained by solving the adjoint sensitivity system given in Equation (28), cf., Figure 8. When solving this adjoint sensitivity system, the computation of o ( 49 ) depends on the previously computed adjoint functions o ( i ) , i = 1 , , I 1 ; hence, the forgoing verification of the computational accuracy of o ( 49 ) also provides an indirect verification that the functions o ( i ) , i = 1 , , I 1 , were also computed accurately.
(b) Verification of the adjoint function τ a ( 49 )
Note that the value of the adjoint function τ a ( 49 ) obtained by solving the adjoint sensitivity system given in Equation (28) is τ a ( 49 ) = 978.20   [ K ] , as indicated in Figure 8. Now select a variation δ ω i n in the inlet air humidity ratio ω i n , and note that Equation (40) yields the following expression for the sensitivity of the response R = T a ( 1 ) to ω i n :
S 48 T a ( 1 ) ω i n i = 1 49 ( μ w ( i ) N 1 ( i ) ω i n + τ w ( i ) N 2 ( i ) ω i n + τ a ( i ) N 3 ( i ) ω i n + o ( i ) N 4 ( i ) ω i n ) = 0 ( τ a ( 49 ) N 3 ( 49 ) ω i n + o ( 49 ) N 4 ( 49 ) ω i n ) = [ τ a ( 49 ) + o ( 49 ) h g , a ( 50 ) ( T a , i n , α ) ] .
Re-writing Equation (45) in the form:
τ a ( 49 ) = S 48 o ( 49 ) h g , a ( 50 ) ( T a , i n , α ) ,
indicates that the value of the adjoint function τ a ( 49 ) could be computed independently if the sensitivity S 48 were available, since the o ( 49 ) has been verified in (the previous) Section 2.2.1 (a) and the quantity h g , a ( 50 ) ( T a , i n , α ) is known. To first-order in the parameter perturbation, the finite-difference formula given in Equation (41) can be used to compute the approximate sensitivity S 48 F D ; subsequently, this value can be used in conjunction with Equation (46) to compute a “finite-difference sensitivity” value, denoted as [ τ a ( 49 ) ] S F D , for the respective adjoint, which would be accurate up to second-order in the respective parameter perturbation:
[ τ a ( 49 ) ] S F D = S 48 F D o ( 49 ) h g , a ( 50 ) ( T a , i n , α ) ,
Numerically, the inlet air humidity ratio ω i n has the nominal (“base-case”) value of ω i n 0 = 0.0137746 . The corresponding nominal value T a , n o m ( 1 ) of the response T a ( 1 ) is T a , n o m ( 1 ) = 297.4637   [ K ] . Consider next a perturbation δ ω i n = ( 0.0063 ) ω i n 0 , for which the perturbed value of the inlet air humidity ratio becomes ω i n p e r t = ω i n 0 +   δ ω i n = 0.0138612 . Re-computing the perturbed response by solving Equations (2)–(13) with the value of ω i n p e r t yields the “perturbed response” value T a , p e r t ( 1 ) = 297 . 4824   [ K ] . Using now the nominal and perturbed response values together with the parameter perturbation in the finite-difference expression given in Equation (41) yields the corresponding “finite-difference-computed sensitivity” S 48 F D T a , p e r t ( 1 ) T a , n o m ( 1 ) δ ω i n = 216 . 32   [ K ] . Using this value together with the nominal values of the other quantities appearing in the expression on the right side of Equation (47) yields [ τ a ( 49 ) ] S F D = 978 . 25   [ K ] . This result compares well with the value τ a ( 49 ) = 978 . 20   [ K ] obtained by solving the adjoint sensitivity system given in Equation (28), cf. Figure 8. When solving this adjoint sensitivity system, the computation of τ a ( 49 ) depends on the previously computed adjoint functions τ a ( i ) ,   i = 1 , , I 1 ; hence, the forgoing verification of the computational accuracy of τ a ( 49 ) also provides an indirect verification that the functions τ a ( i ) ,   i = 1 , , I 1 were also computed accurately.
(c) Verification of the adjoint functions τ w ( 1 ) and μ w ( 1 )
Note that the values of the adjoint functions τ w ( 1 ) and μ w ( 1 ) obtained by solving the adjoint sensitivity system given in Equation (28) are as follows: τ w ( 1 ) = 1.49067 . × 10 6   [ K / ( J / s )   ] and μ w ( 1 ) =   3 . 5735   [ K / ( k g / s ) ] , respectively, as indicated in Figure 8. Now select a variation δ T w , i n in the inlet water temperature T w , i n , and note that Equation (40) yields the following expression for the sensitivity of the response R = T a ( 1 ) to T w , i n :
S 3 T a ( 1 ) T w , i n i = 1 49 ( μ w ( i ) N 1 ( i ) T w , i n + τ w ( i ) N 2 ( i ) T w , i n + τ a ( i ) N 3 ( i ) T w , i n + o ( i ) N 4 ( i ) T w , i n ) = 0 ( μ w ( 1 ) N 1 ( 1 ) T w , i n + τ w ( 1 ) N 2 ( 1 ) T w , i n + τ a ( 1 ) N 3 ( 1 ) T w , i n + o ( 1 ) N 4 ( 1 ) T w , i n ) .
Since the adjoint functions τ a ( 49 ) and o ( 49 ) have been already verified as described in Section 2.2.1 (a) and (b), it follows that the computed values of adjoint functions τ a ( 1 ) = 2410.83   [ K ] o ( 1 ) = 9.5142 × 10 4   [ K / ( J / k g ) ] can also be considered as being accurate, since they constitute the starting point for solving the adjoint sensitivity system in Equation (28). Hence, the unknowns in Equation (48) are the adjoint functions μ w ( 1 ) and τ w ( 1 ) . A second equation involving solely these adjoint functions can be derived by selecting a perturbation, δ m w , i n , in the inlet water mass flow rate, m w , i n , for which Equation (40) yields the following expression for the sensitivity of the response R = T a ( 1 ) to m w , i n :
S 45 T a ( 1 ) m w , i n i = 1 49 ( μ w ( i ) N 1 ( i ) m w , i n + τ w ( i ) N 2 ( i ) m w , i n + τ a ( i ) N 3 ( i ) m w , i n + o ( i ) N 4 ( i ) m w , i n ) = 0 ( μ w ( 1 ) N 1 ( 1 ) m w , i n + τ w ( 1 ) N 2 ( 1 ) m w , i n + τ a ( 1 ) N 3 ( 1 ) m w , i n + o ( 1 ) N 4 ( 1 ) m w , i n ) .
Numerically, the inlet water temperature, T w , i n , has the nominal (“base-case”) value of T w , i n 0 = 298 . 79   [ K ] , while the nominal (“base-case”) value of the inlet water mass flow rate is m w , i n 0 = 44.021229   [ k g / s ] . As before, the corresponding nominal value T a , n o m ( 1 ) of the response T a ( 1 ) is T a , n o m ( 1 ) = 297 . 4637   [ K ] . Consider now a perturbation δ T w , i n = ( 0.00033 ) T w , i n 0 , for which the perturbed value of the inlet air temperature becomes T w , i n p e r t = T w , i n 0 +   δ T w , i n = 298 . 89 [ K ] . Re-computing the perturbed response by solving Equations (2)–(13) with the value of T w , i n p e r t yields the “perturbed response” value T a , p e r t ( 1 ) = 297 . 4911   [ K ] . Using now the nominal and perturbed response values together with the parameter perturbation in the finite-difference expression given in Equation (41) yields the corresponding “finite-difference-computed sensitivity” S 3 F D T a , p e r t ( 1 ) T a , n o m ( 1 ) δ T w , i n = 0.27428 .
Next, consider a perturbation δ m w , i n = ( 0.001 ) m w , i n 0 , for which the perturbed value of the inlet air temperature becomes m w , i n p e r t = m w , i n 0 +   δ m w , i n = 44.065252   [ k g / s ] . Re-computing the perturbed response by solving Equations (2)–(13) with the value of m w , i n p e r t yields the “perturbed response” value T a , p e r t ( 1 ) = 297 . 4646   [ K ] . Using now the nominal and perturbed response values together with the parameter perturbation in the finite-difference expression given in Equation (41) yields the corresponding “finite-difference-computed sensitivity” S 45 F D T a , p e r t ( 1 ) T a , n o m ( 1 ) δ m w , i n = 0.02133   [ K / ( k g / s ) ] . Inserting now all of the numerical values of the known quantities in Equations (48) and (49) yields the following system of coupled equations for obtaining μ w ( 1 ) and τ w ( 1 ) :
0.27428 = [ ( 0 . 0161 ) μ w ( 1 ) + ( 223597 ) τ w ( 1 ) + ( 2410.83 ) ( 1.039 × 10 4 ) + ( 9.5142 × 10 4 ) ( 264.65 ) ]
0.02133 = [ μ w ( 1 ) + ( 2.44038 × 10 6 ) τ w ( 1 ) + ( 2410.83 ) ( 0.0064 ) + ( 9.5142 × 10 4 ) ( 16430.26 ) ]
Solving Equations (50) and (51) yields μ w ( 1 ) = 3.5726   [ K / ( k g / s ) ] and τ w ( 1 ) = 1.49017 × 10 6   [ K / ( J / s ) ] . These values compare well with the values μ w ( 1 ) =   3 . 5735   [ K / ( k g / s ) ] and τ w ( 1 ) = 1 . 49067 × 10 6   [ K / ( J / s ) ] , respectively, which are obtained by solving the adjoint sensitivity system given in Equation (28), cf. Figure 8.

2.2.2. Verification of the Adjoint Functions for the Outlet Water Temperature Response T w ( 50 )

When R = T w ( 50 ) , the quantities r ( i ) defined in Equation (25) all vanish except for a single component, namely: r 2 ( 49 ) R / T w ( 50 )   = 1 . Thus, the adjoint functions corresponding to the outlet water temperature response T w ( 50 ) are computed by solving the adjoint sensitivity system given in Equation (28) using r 2 ( 49 ) R / T w ( 50 )   = 1. . as the only non-zero source term; for this case, the solution of Equation (28) has been depicted in Figure 9.
(a) Verification of the adjoint function o ( 49 )
Note that the value of the adjoint function o ( 49 ) obtained by solving the adjoint sensitivity system given in Equation (28) is o ( 49 ) = 2.214 × 10 4 [ K / ( J / k g ) ] , as indicated in Figure 9. Now select a variation δ T a , i n in the inlet air temperature T a , i n , and note that Equation (40) yields the following expression for the sensitivity of the response R = T w ( 50 ) to T a , i n :
S 46 T w ( 50 ) T a , i n i = 1 49 ( μ w ( i ) N 1 ( i ) T a , i n + τ w ( i ) N 2 ( i ) T a , i n + τ a ( i ) N 3 ( i ) T a , i n + o ( i ) N 4 ( i ) T a , i n ) = 0 o ( 49 ) N 4 ( 49 ) T a , i n = ( o ( 49 ) ) [ C p ( T a ( 49 ) + t K 2 , α ) + ω i n α 1 g ] .
Re-writing Equation (52) in the form:
o ( 49 ) = S 46 N 4 ( 49 ) / T a , i n = S 46 [ C p ( T a ( 49 ) + t K 2 , ) + ω i n α 1 g ] 1
indicates that the value of the adjoint function o ( 49 ) could be computed independently if the sensitivity S 46 were available, since the quantity N 4 ( 49 ) / T a , i n = 1.0309 × 10 3 [ J / ( k g K ) ] is known. To first-order in the parameter perturbation, the finite-difference formula given in Equation (41) can be used to compute the approximate sensitivity S 46 F D ; subsequently, this value can be used in conjunction with Equation (53) to compute a “finite-difference sensitivity” value, denoted as [ o ( 49 ) ] S F D , for the respective adjoint, which would be accurate up to second-order in the respective parameter perturbation:
[ o ( 49 ) ] S F D = S 46 F D N 4 ( 49 ) / T a , i n = [ T w , p e r t ( 50 ) T w , n o m ( 50 ) δ T a , i n ] [ N 4 ( 49 ) T a , i n ] 1 .
Numerically, the inlet air temperature T a , i n ( = T d b ) has the nominal (“base-case”) value of T a , i n 0 = 299 . 11   [ K ] . The corresponding nominal value T w , n o m ( 50 ) of the response T w ( 50 ) is T w , n o m ( 50 ) = 294.579   [ K ] . Consider next a perturbation δ T a , i n = ( 0.001 ) T a , i n 0 , for which the perturbed value of the inlet air temperature becomes T a , i n p e r t = T a , i n 0 +   δ T a , i n = 299.40911 [ K ] . Re-computing the perturbed response by solving Equations (2)–(13) with the value of T a , i n p e r t yields the “perturbed response” value T w , p e r t ( 50 ) = 294 . 645   [ K ] . Using now the nominal and perturbed response values together with the parameter perturbation in the finite-difference expression given in Equation (41) yields the corresponding “finite-difference-computed sensitivity” S 46 F D T w , p e r t ( 50 ) T w , n o m ( 50 ) δ T a , i n = 0.2207 . Using this value together with the nominal values of the other quantities appearing in the expression on the right side of Equation (54) yields [ o ( 49 ) ] S F D = 2.141 × 10 4 [ K / ( J / k g ) ] . This result compares well with the value o ( 49 ) = 2.214 × 10 4   [ K / ( J / k g ) ] obtained by solving the adjoint sensitivity system given in Equation (28), cf., Figure 9. When solving this adjoint sensitivity system, the computation of o ( 49 ) depends on the previously computed adjoint functions o ( i ) ,   i = 1 , , I 1 ; hence, the forgoing verification of the computational accuracy of o ( 49 ) also provides an indirect verification that the functions o ( i ) ,   i = 1 , , I 1 , were also computed accurately.
(b) Verification of the adjoint function τ a ( 49 )
Note that the value of the adjoint function τ a ( 49 ) obtained by solving the adjoint sensitivity system given in Equation (28) is τ a ( 49 ) = 76.12   [ K ] , as indicated in Figure 9. Now select a variation δ ω i n in the inlet air humidity ratio ω i n , and note that Equation (40) yields the following expression for the sensitivity of the response R = T w ( 50 ) to ω i n :
S 48 T w ( 50 ) ω i n i = 1 49 ( μ w ( i ) N 1 ( i ) ω i n + τ w ( i ) N 2 ( i ) ω i n + τ a ( i ) N 3 ( i ) ω i n + o ( i ) N 4 ( i ) ω i n ) = 0 ( τ a ( 49 ) N 3 ( 49 ) ω i n + o ( 49 ) N 4 ( 49 ) ω i n ) = [ τ a ( 49 ) + o ( 49 ) h g , a ( 50 ) ( T a , i n , α ) ] .
Re-writing Equation (55) in the form
τ a ( 49 ) = S 48 o ( 49 ) h g , a ( 50 ) ( T a , i n , α )
indicates that the value of the adjoint function τ a ( 49 ) could be computed independently if the sensitivity S 48 were available, since the o ( 49 ) has been verified in (the previous) Section 2.2.2 (a) and the quantity h g , a ( 50 ) ( T a , i n , α ) is known. To first-order in the parameter perturbation, the finite-difference formula given in Equation (41) can be used to compute the approximate sensitivity S 48 F D ; subsequently, this value can be used in conjunction with Equation (56) to compute a “finite-difference sensitivity” value, denoted as [ τ a ( 49 ) ] S F D , for the respective adjoint, which would be accurate up to second-order in the respective parameter perturbation:
[ τ a ( 49 ) ] S F D = S 48 F D o ( 49 ) h g , a ( 50 ) ( T a , i n , α )
Numerically, the inlet air humidity ratio ω i n has the nominal (“base-case”) value of ω i n 0 = 0.0137746 . The corresponding nominal value T w , n o m ( 50 ) of the response T w ( 50 ) is T w , n o m ( 50 ) = 294 . 579029   [ K ] . Consider next a perturbation δ ω i n = ( 0.0063 ) ω i n 0 , for which the perturbed value of the inlet air humidity ratio becomes ω i n p e r t = ω i n 0 +   δ ω i n = 0.0138612 . Re-computing the perturbed response by solving Equations (2)–(13) with the value of ω i n p e r t yields the “perturbed response” value T w , p e r t ( 50 ) = 294 . 634438   [ K ] . Using now the nominal and perturbed response values together with the parameter perturbation in the finite-difference expression given in Equation (41) yields the corresponding “finite-difference-computed sensitivity” S 48 F D T w , p e r t ( 50 ) T w , n o m ( 50 ) δ ω i n = 639.98   [ K ] . Using this value together with the nominal values of the other quantities appearing in the expression on the right side of Equation (57) yields [ τ a ( 49 ) ] S F D = 75.64   [ K ] . This result compares well with the value τ a ( 49 ) = 76.12   [ K ] obtained by solving the adjoint sensitivity system given in Equation (28), cf. Figure 9. When solving this adjoint sensitivity system, the computation of τ a ( 49 ) depends on the previously computed adjoint functions τ a ( i ) ,   i = 1 , , I 1 ; hence, the forgoing verification of the computational accuracy of τ a ( 49 ) also provides an indirect verification that the functions τ a ( i ) ,   i = 1 , , I 1 were also computed accurately.
(c) Verification of the adjoint functions τ w ( 1 ) and μ w ( 1 )
Note that the values of the adjoint functions τ w ( 1 ) and μ w ( 1 ) obtained by solving the adjoint sensitivity system given in Equation (28) are as follows: τ w ( 1 ) = 5.730 × 10 7   [ K / ( J / s )   ] and μ w ( 1 ) =   1.3996   [ K / ( k g / s )   ] , respectively, as indicated in Figure 9. Now select a variation δ T w , i n in the inlet water temperature T w , i n , and note that Equation (40) yields the following expression for the sensitivity of the response R = T w ( 50 ) to T w , i n :
S 3 T w ( 50 ) T w , i n i = 1 49 ( μ w ( i ) N 1 ( i ) T w , i n + τ w ( i ) N 2 ( i ) T w , i n + τ a ( i ) N 3 ( i ) T w , i n + o ( i ) N 4 ( i ) T w , i n ) = 0 ( μ w ( 1 ) N 1 ( 1 ) T w , i n + τ w ( 1 ) N 2 ( 1 ) T w , i n + τ a ( 1 ) N 3 ( 1 ) T w , i n + o ( 1 ) N 4 ( 1 ) T w , i n ) .
Since the adjoint functions τ a ( 49 ) and o ( 49 ) have been already verified as described in Section 2.2.2 (a) and (b), it follows that the computed values of adjoint functions τ a ( 1 ) = 0.88745   [ K ] o ( 1 ) = 1.38335 × 10 6   [ K / ( J / k g ) ] can also be considered as being accurate, since they constitute the starting point for solving the adjoint sensitivity system in Equation (28). Hence, the unknowns in Equation (58) are the adjoint functions μ w ( 1 ) and τ w ( 1 ) . A second equation involving solely these adjoint functions can be derived by selecting a perturbation, δ m w , i n , in the inlet water mass flow rate, m w , i n , for which Equation (40) yields the following expression for the sensitivity of the response R = T w ( 50 ) to m w , i n :
S 45 T w ( 50 ) m w , i n i = 1 49 ( μ w ( i ) N 1 ( i ) m w , i n + τ w ( i ) N 2 ( i ) m w , i n + τ a ( i ) N 3 ( i ) m w , i n + o ( i ) N 4 ( i ) m w , i n ) = 0 ( μ w ( 1 ) N 1 ( 1 ) m w , i n + τ w ( 1 ) N 2 ( 1 ) m w , i n + τ a ( 1 ) N 3 ( 1 ) m w , i n + o ( 1 ) N 4 ( 1 ) m w , i n ) .
Numerically, the inlet water temperature, T w , i n , has the nominal (“base-case”) value of T w , i n 0 = 298 . 79   [ K ] , while the nominal (“base-case”) value of the inlet water mass flow rate is m w , i n 0 = 44.021229   [ k g / s ] . As before, the corresponding nominal value T w , n o m ( 50 ) of the response T w ( 50 ) is T w , n o m ( 50 ) = 294 . 579   [ K ] . Consider now a perturbation δ T w , i n = ( 0.00033 ) T w , i n 0 , for which the perturbed value of the inlet air temperature becomes T w , i n p e r t = T w , i n 0 +   δ T w , i n = 298 . 89 [ K ] . Re-computing the perturbed response by solving Equations (2)–(13) with the value of T w , i n p e r t yields the “perturbed response” value T w , p e r t ( 50 ) = 294 . 5895   [ K ] . Using now the nominal and perturbed response values together with the parameter perturbation in the finite-difference expression given in Equation (41) yields the corresponding “finite-difference-computed sensitivity” S 3 F D T w , p e r t ( 50 ) T w , n o m ( 50 ) δ T w , i n = 0.1049 .
Next, consider a perturbation δ m w , i n = ( 0.001 ) m w , i n 0 , for which the perturbed value of the inlet air temperature becomes m w , i n p e r t = m w , i n 0 +   δ m w , i n = 44.065252 [ k g / s ] . Re-computing the perturbed response by solving Equations (2)–(13) with the value of m w , i n p e r t yields the “perturbed response” value T w , p e r t ( 50 ) = 294.5804   [ K ] . Using now the nominal and perturbed response values together with the parameter perturbation in the finite-difference expression given in Equation (41) yields the corresponding “finite-difference-computed sensitivity” S 45 F D T w , p e r t ( 50 ) T w , n o m ( 50 ) δ m w , i n = 0.02986 . Inserting now all of the numerical values of the known quantities in Equations (58) and (59) yields the following system of coupled equations for obtaining μ w ( 1 ) and τ w ( 1 ) :
0.1049 = [ ( 0 . 0161 ) μ w ( 1 ) + ( 223597 ) τ w ( 1 ) + ( 0.88745 ) ( 1.039 × 10 4 ) + ( 1.38335 × 10 6 ) ( 264.65 ) ]
0.02986 = [ μ w ( 1 ) + ( 2.44038 × 10 6 ) τ w ( 1 ) + ( 0.88745 ) ( 0.0064 ) + ( 1.38335 × 10 6 ) ( 16430.26 ) ]
Solving Equations (60) and (61) yields μ w ( 1 ) = 1.3969   [ K / ( k g / s ) ] and τ w ( 1 ) = 5.718 × 10 7   [ K / ( J / s ) ] . These values compare well with the values μ w ( 1 ) =   1.3996   [ K / ( k g / s ) ] and τ w ( 1 ) = 5.730 × 10 7   [ K / ( J / s ) ] , respectively, which are obtained by solving the adjoint sensitivity system given in Equation (28), cf. Figure 9.

2.2.3. Verification of the Adjoint Functions for the Outlet Air Relative Humidity Response R H ( 1 )

When R = R H ( 1 ) , the quantities r ( i ) defined in Equation (25) all vanish except for two components, namely:
r 3 ( 1 )   ( R H ( 1 ) ) T a ( 1 )   = T a ( 1 ) [ P v ( ω ( 1 ) , α ) P v s ( T a ( 1 ) , α )   × 100 ] = 0.622 P a t m ( 0.622 + ω ( 1 ) ) e a 0 + a 1 T a ( 1 ) a 1 [ T a ( 1 ) ] 2 × 100 ;
r 4 ( 1 )   ( R H ( 1 ) ) ω ( 1 )   = ω ( 1 ) [   P v ( ω ( 1 ) , α ) P v s ( T a ( 1 ) , α ) × 100 ] = 0.622 P a t m ( 0.622 + ω ( 1 ) ) 2 e a 0 + a 1 T a ( 1 ) × 100 .
Thus, the adjoint functions corresponding to the outlet air relative humidity response R H ( 1 ) are computed by solving the adjoint sensitivity system given in Equation (28) using r 3 ( 1 ) and r 4 ( 1 ) as the only two non-zero source terms; for this case, the solution of Equation (28) has been depicted in Figure 10.
(a) Verification of the adjoint function o ( 49 )
Note that the value of the adjoint function o ( 49 ) obtained by solving the adjoint sensitivity system given in Equation (28) is o ( 49 ) = 1.860 × 10 5   [ ( J / k g ) 1 ] , as indicated in Figure 10. Now select a variation δ T a , i n in the inlet air temperature T a , i n , and note that Equation (40) yields the following expression for the sensitivity of the response R = R H ( 1 ) to T a , i n :
S 46 R H ( 1 ) T a , i n i = 1 49 ( μ w ( i ) N 1 ( i ) T a , i n + τ w ( i ) N 2 ( i ) T a , i n + τ a ( i ) N 3 ( i ) T a , i n + o ( i ) N 4 ( i ) T a , i n ) = 0 o ( 49 ) N 4 ( 49 ) T a , i n = ( o ( 49 ) ) [ C p ( T a ( 49 ) + t K 2 , α ) + ω i n α 1 g ] .
Re-writing Equation (64) in the form:
o ( 49 ) = S 46 N 4 ( 49 ) / T a , i n = S 46 [ C p ( T a ( 49 ) + t K 2 , α ) + ω i n α 1 g ] 1
indicates that the value of the adjoint function o ( 49 ) could be computed independently if the sensitivity S 46 were available, since the quantity N 4 ( 49 ) / T a , i n = 1.0309 × 10 3 [ J / ( k g K ) ] is known. To first-order in the parameter perturbation, the finite-difference formula given in Equation (41) can be used to compute the approximate sensitivity S 46 F D ; subsequently, this value can be used in conjunction with Equation (65) to compute a “finite-difference sensitivity” value, denoted as [ o ( 49 ) ] S F D , for the respective adjoint, which would be accurate up to second-order in the parameter perturbation:
[ o ( 49 ) ] S F D = S 46 F D N 4 ( 49 ) / T a , i n = [ R H p e r t ( 1 ) R H n o m ( 1 ) δ T a , i n ] [ N 4 ( 49 ) T a , i n ] 1
Numerically, the inlet air temperature T a , i n ( = T d b ) has the nominal (“base-case”) value of T a , i n 0 = 299 . 11   [ K ] . The corresponding nominal value R H n o m ( 1 ) of the response R H ( 1 ) is R H n o m ( 1 ) = 86.11678 % . Consider next a perturbation δ T a , i n = ( 0.001 ) T a , i n 0 , for which the perturbed value of the inlet air temperature becomes T a , i n p e r t = T a , i n 0 +   δ T a , i n = 299 . 40911 [ K ] . Re-computing the perturbed response by solving Equations (2)–(13) with the value of T a , i n p e r t yields the “perturbed response” value R H p e r t ( 1 ) = 85.55717 % . Using now the nominal and perturbed response values together with the parameter perturbation in the finite-difference expression given in Equation (41) yields the corresponding “finite-difference-computed sensitivity” S 46 F D R H p e r t ( 1 ) R H n o m ( 1 ) δ T a , i n = 0.018709 [ 1 K ] . Using this value together with the nominal values of the other quantities appearing in the expression on the right side of Equation (66) yields [ o ( 49 ) ] S F D = 1.815 × 10 5 [ ( J / k g ) 1 ] . This result compares well with the value o ( 49 ) = 1.860 × 10 5   [ ( J / k g ) 1 ] obtained by solving the adjoint sensitivity system given in Equation (28), cf., Figure 10. When solving this adjoint sensitivity system, the computation of o ( 49 ) depends on the previously computed adjoint functions o ( i ) ,   i = 1 , , I 1 ; hence, the forgoing verification of the computational accuracy of o ( 49 ) also provides an indirect verification that the functions o ( i ) ,   i = 1 , , I 1 , were also computed accurately.
(b) Verification of the adjoint function τ a ( 49 )
Note that the value of the adjoint function τ a ( 49 ) obtained by solving the adjoint sensitivity system given in Equation (28) is τ a ( 49 ) = 67.047 , as indicated in Figure 10. Now select a variation δ ω i n in the inlet air humidity ratio ω i n , and note that Equation (40) yields the following expression for the sensitivity of the response R = R H ( 1 ) to ω i n :
S 48 R H ( 1 ) ω i n i = 1 49 ( μ w ( i ) N 1 ( i ) ω i n + τ w ( i ) N 2 ( i ) ω i n + τ a ( i ) N 3 ( i ) ω i n + o ( i ) N 4 ( i ) ω i n ) = 0 ( τ a ( 49 ) N 3 ( 49 ) ω i n + o ( 49 ) N 4 ( 49 ) ω i n ) = [ τ a ( 49 ) + o ( 49 ) h g , a ( 50 ) ( T a , i n , α ) ] .
Re-writing Equation (67) in the form
τ a ( 49 ) = S 48 o ( 49 ) h g , a ( 50 ) ( T a , i n , α )
indicates that the value of the adjoint function τ a ( 49 ) could be computed independently if the sensitivity S 48 were available, since the o ( 49 ) has been verified in (the previous) Section 2.2.3 (a) and the quantity h g , a ( 50 ) ( T a , i n , α ) is known. To first-order in the parameter perturbation, the finite-difference formula given in Equation (41) can be used to compute the approximate sensitivity S 48 F D ; subsequently, this value can be used in conjunction with Equation (68) to compute a “finite-difference sensitivity” value, denoted as [ τ a ( 49 ) ] S F D , for the respective adjoint, which would be accurate up to second-order in the parameter perturbation:
[ τ a ( 49 ) ] S F D = S 48 F D o ( 49 ) h g , a ( 50 ) ( T a , i n , α )
Numerically, the inlet air humidity ratio ω i n has the nominal (“base-case”) value of ω i n 0 = 0.0137746 . The corresponding nominal value R H n o m ( 1 ) of the response R H ( 1 ) is R H n o m ( 1 ) = 86.11678 % . Consider next a perturbation δ ω i n = ( 0.0063 ) ω i n 0 , for which the perturbed value of the inlet air humidity ratio becomes ω i n p e r t = ω i n 0 +   δ ω i n = 0.0138612 . Re-computing the perturbed response by solving Equations (2)–(13) with the value of ω i n p e r t yields the “perturbed response” value R<