For algorithm validation, three cases including two examples in chemical engineering were used, which involve uncertainties that follow different types of non-standard distribution. While specific examples are used in this work, our approach is transformative to other engineering problems. Note that uncertain parameters in each example are assumed to be independent and not correlated because our objective is to validate the algorithm to deal with many parametric uncertainties.
3.1. Example 1: Algebraic Function
A model response as in (24) was first used for algorithm verification and comparison:
where
is the model response, and
,
,
and
are model input variables, which are set to 1. In addition,
are model parameters, and each parameter is defined as a parametric uncertainty. A 10% variation around the mean value of each parameter was introduced, and our objective is to quantify the joint effect of
on
. Details about
are summarized in
Table 2.
For comparison, three different case scenarios were considered. For the first two case studies, the modified GS algorithm with the reorthogonalization step was used to build the polynomial basis functions for uncertainties that are not considered in the Askey scheme, e.g., the Gumbel, lognormal and Weibull distributions in
Table 2. In the first case study, each uncertainty was approximated with a PCE expression, which will be referred to as the GSPCE. Since there are 10 parametric uncertainties, the random space is ten-dimensional for the GSPCE. In the second case study, reconstruction of the multidimensional polynomial basis was performed to reduce the total number of uncertainties, which is referred to as the reconstructed GSPCE (rGSPCE). For rGSPCE, several parametric uncertainties in (24) were combined into a single uncertainty, following the description in
Section 2.3. For example, the product between
and
was treated as one uncertainty and the ratio of
to
was defined as the second source of uncertainty. Similar operations were applied to the other two terms in (24). In this way, the random space of rGSPCE is four-dimensional. In the third case study, polynomial basis functions of standard distributions (i.e., normal) in the Askey framework were used to approximate each uncertainty, which is hereafter referred to as the ASPCE. The random space for the ASPCE is 10-dimensional.
Once the PCE expressions of parametric uncertainties are constructed with either the GS orthogonalization or the orthogonal polynomial basis functions in the Askey scheme, the PCE coefficients of can be calculated and used to quantify the impact of uncertainties on model output. To solve the PCE coefficients of in (24), the gDRM was used in all three case studies to convert high-dimensional integrals in the spectral projection as in (14) into low-dimensional ones that can be quickly solved with quadrature rules.
For algorithm illustration, the BiDRM in
Section 2.4 was used in this work. As such,
was set to 2 in (16), which means each high-dimensional integral in the spectral projection (e.g., the ten-dimensional integrals for the ASPCE- and the GSPCE-based UQ methods and the four-dimensional integrals for the rGSPCE algorithm) was approximated with a few one- and two-dimensional ones to calculate the PCE coefficients of
. These lower-dimensional integrals were calculated with Gauss quadrature rules and details about the calculation can be found in
Section 2.4 and
Appendix A.
To compare the UQ accuracy in these case studies, simulations were conducted when the polynomial order (
of each parametric uncertainty was set to 0, 1, and 2, respectively. The simulation results are shown in
Figure 2. For comparison, the results of MC are also given in
Figure 2, for which the number of samples was set to 10
6 for each parametric uncertainty to ensure the UQ accuracy.
Note that when the polynomial order (
) of each uncertainty was set to 0, the uncertainty in
cannot be quantified, since only one PCE coefficient was used to generate surrogate models of
, which only consider its mean value. Thus, the PDFs of
in different case studies, when
was set to 0, were not included in
Figure 2. As seen in
Figure 2, it was found that as the polynomial order
increases, the PCE-based methods converge to the results of MC. This implies that the UQ accuracy is related to the total number of polynomial terms to approximate uncertainty. To quantitatively compare UQ accuracy with respect to different polynomial orders, the relative error
of the variance of
was calculated in each case study using (23). The results are shown in
Figure 3a. Note that once the PCE coefficients of
in (24) are available, the variance can be analytically determined following steps discussed in [
24].
Each line in
Figure 3a represents a specific case study, and three circle markers on each line show the relative errors with respect to different polynomial orders (i.e.,
was set to 0, 1, and 2, respectively). As seen in
Figure 3a, the total number of PCE terms for
in each case study is different since it is a function of the polynomial order
and the total number of uncertainties
. In addition, as the polynomial order
increases, the relative error
of the variance of
decreases. Further, the GS-based PCE (i.e., GSPCE and rGSPCE) provide smaller relative errors, as compared to the ASPCE. This is because polynomial basis functions in the ASPCE are designed for standard distributions (e.g., normal) in the Askey framework, but arbitrary uncertainties (e.g., Gumbel in
Table 2) are considered in this example. This clearly shows the UQ efficiency of the GS-based PCE. Moreover, as compared to the GSPCE-based method, it was found that the relative error
of the rGSPCE-based method is one magnitude smaller, when
was 1 (see
Figure 3a). In contrast, the difference in
between the GSPCE-based and the rGSPCE-based methods is insignificant, when
was 2. However, it is important to note that the number of PCE terms required to approximate uncertainty in
is much smaller for the rGSPCE-based method (<20). Since fewer PCE coefficients are required, it can greatly reduce the computational cost, which will be discussed below.
To further validate the efficiency of the algorithm in this work that integrates the GS and gDRM with the PCE, simulations were conducted to compare the algorithm with the full tensor product grid-based non-intrusive discrete projection (NIDP). Similar to the three case studies mentioned above, three additional case studies were investigated using the NIDP method. In the first case study, the modified GS method was used to construct the polynomial basis functions for each uncertainty, but the PCE coefficients of
were solved with the NIDP. This is referred to as the GSPCE-NIDP in
Figure 3b. In the second case study, reconstruction of the multidimensional polynomial basis was performed to reduce the total number of uncertainties and NIDP was used to solve the PCE coefficients of
, which is referred to as the rGSPCE-NIDP. In the third case study, polynomial basis functions of standard distributions were used to estimate each parametric uncertainty, which is referred to as the ASPCE-NIDP.
The results of NIDP-based UQ are shown in
Figure 3b. Details about the implementation of the NIDP approach in each case study to solve the PCE coefficients for
can be found in [
24]. As compared to the results in
Figure 3a, it was found the relative error
of the BiDRM-based approach is identical to the NIDP-based method in
Figure 3b. For example, when
was set to 2, the relative error of the rGSPCE-BiDRM is ~0.000607, which is identical to the rGSPCE-NIDP. As compared to the non-intrusive methods, this validates the UQ accuracy of the algorithm in this work, which uses the gDRM to approximate high-dimensional integrals in the spectral projection.
To show the performance of the algorithm in this work, we also compared the computational efficiency for each case study. Specifically, the total number of PCE coefficients of
and the number of evaluations
to approximate each PCE coefficient are summarized in
Table 3. For the algorithm in this work, it is worth mentioning that
is measured by counting the number of quadrature points to approximate each integral as defined in (22), for which the number of quadrature points in each dimension was set to 5. For example, the number of evaluations to calculate a PCE coefficient for the GSPCE- and ASPCE-BiDRM is
, since there are 10 one- and 45 two-dimensional integrals resulting from the BiDRM step, i.e.,
. In contrast, the number of evaluations to calculate a PCE coefficient is 171 for the rGSPCE-BiDRM, since the BiDRM only generates 4 one- and 6 two-dimensional integrals, i.e.,
. Further, when the non-intrusive full tensor product grid-based NIDP is used, the number of evaluations to approximate a PCE coefficient of
is
and
for the ten- and four-dimensional random space, respectively.
As seen in
Table 3, the number of evaluations for the non-intrusive methods is significantly higher than the BiDRM-based methods. As discussed above, our algorithm that integrates the GSPCE (or rGSPCE) with BiDRM provides as accurate results as the nonintrusive approaches. However, it can greatly reduce the computational cost to calculate the PCE coefficients. For example, ~1.2969 s were required to solve the total PCE coefficients with the rGSPCE-NIDP, when
was set to 2. In contrast, ~0.9688 s were required to estimate the PCE coefficients when the rGSPCE-BiDRM was used. Compared to the non-intrusive method, this is ~25% lower. Because the computational time for the NIDP-based methods is larger than the BiDRM-based methods, we will hereafter focus on discussing the computational efficiency of the BiDRM-based methods. The computational time in each case study is summarized in
Table 4 for the BiDRM-based methods and the ASPCE-NIDP method that is considered the original PCE method.
As can be seen in
Table 4, the computational time increases as
increases. It was also found that the rGSPCE-BiDRM-based method that has four-dimensional random space requires less computational time, as compared to the other two case studies. For example, when
was set to 2, the time for the rGSPCE to calculate all PCE coefficients was ~0.9688 s, which is significantly lower than the ASPCE- and GSPCE-BiDRM methods. Besides, it was found that the computational time of the ASPCE-NIDP is large for each polynomial order
, compared to the BiDRM-based methods, and is increased significantly as
increases. This shows the advantage of our algorithm at combining the GS and BiDRM with PCE. To further validate our algorithm, two examples in chemical engineering will be followed.
3.2. Example 2: Membrane Reactor
An inert membrane reactor with catalyst on the feed side (IMRCF) is shown in
Figure 4, where the following reaction occurs [
41,
42]:
In this example, the reactor is operated at the given temperature (
) and pressure (
), and the membrane is only permeable to product B, which diffuses through the membrane with the molar flux
. Following this, the mole balances of
,
, and
can be described as in [
41,
42]:
where
,
, and
are the molar flow rate of
,
, and
, respectively, and
is the reactor volume. The reaction rate law of
and the molar flux of
through the membrane, i.e.,
, are given as [
41,
42]:
In this example, model parameters in (29)–(31) are summarized in
Table 5 and details can be found in [
41,
42].
For algorithm validation, all parameters except the gas constant
R were assumed to follow a lognormal distribution with a 10% variation around the mean of each parameter in
Table 5. Since there are five uncertainties, the resulting random space is five-dimensional (
). As in Example 1, three case scenarios were investigated by combining the GSPCE, ASPCE, and rGSPCE with the BiDRM, respectively. For the GSPCE- and rGSPCE-based case studies, the PCE expression of each parametric uncertainty was formulated with the modified GS. For the ASPCE-based case study, the PCE expressions for uncertain parameters were approximated with the orthogonal polynomial basis functions in the Askey scheme. Further, for the rGSPCE-based case study, the ratio between pressure and temperature in (31) were combined into one uncertainty, and the reciprocal of
in (29) was treated as another source of uncertainty. These will reduce the number of uncertainties by 1, resulting in a four-dimensional random space. To calculate the PCE coefficients of model outputs in (26)–(28), the BiDRM was used in three case studies to transform high-dimensional integrals in the spectral projection into a few low-dimensional ones, which can be numerically solved with quadrature rules.
The quantification of uncertainty in the molar flow rate
was chosen to compare the UQ accuracy in different case studies. In each case study, the polynomial order (
) of uncertainty was set to 0, 1, 2, and 3, respectively. In addition, 10
6 samples were used for MC to obtain the reference to calculate the relative errors
as in (23). The simulation results are given in
Figure 5.
As seen in
Figure 5, when the polynomial order
was set to 0, all case studies cannot estimate the uncertainty in model output (
), since there is only one term in the PCE expression of
that only considers its mean value. Thus, the effect of parametric uncertainties on model outputs cannot be quantified. Similar to Example 1, it was found that the accuracy of UQ increases as the polynomial order (
) increases. As seen in
Figure 5c,d, all case studies have almost identical results for the mean and variance of
, when
was set to 2 and 3, respectively.
To compare the UQ accuracy with respect to different polynomial orders, the relative errors
of the variance of
were calculated at each simulation point in
Figure 5. Note that the variance of
can be analytically calculated with its PCE coefficients. Among these simulation points, 15 points were selected by dividing the total simulation range, i.e., from 0 to 120
in
Figure 5, into 16 equal intervals. Following this, the average relative error of these 15 points was calculated for each case study and shown in
Figure 6a. In addition, as in Example 1, the full tensor product grid-based NIDP was also conducted to demonstrate the performance of the proposed algorithm in terms of the UQ accuracy and computational efficiency. The simulation results with the NIDP-based approaches are given in
Figure 6b.
As can be seen in
Figure 6a,b, the average relative errors decrease as the polynomial order
increases in all case studies. It was also found that the convergence rate of the GSPCE-based algorithm is slightly faster than the ASPCE-based method. Notably, the rGSPCE-based method outperforms other case studies when
was set to 3. In addition, it was found that the relative errors of the GSPCE- and ASPCE-BiDRM case studies in
Figure 6a are slightly larger, compared to the GSPCE- and AGSPCE-NIDP in
Figure 6b. This is because the BiDRM-based approach requires a smaller number of evaluations (
), as compared to the NIDP-based approach (see
Table 6). However, when
was 3, we found that the relative error of the rGSPCE-BiDRM is lower than the rGSPCE-NIDP. This shows the advantage of combining the GS and gDRM with PCE, which reduces both the dimensionality of random space and the number of evaluations.
We also studied the computational cost for each case study.
Table 6 summarizes the number of PCE coefficients of model response and the number of evaluations
required to calculate a coefficient with different algorithms. As seen in
Table 6, for the GSPCE and ASPCE-based case studies, the number of PCE coefficients of
is 6, 21, and 56, when
was set to 1, 2, and 3, respectively. In contrast, the rGSPCE-based algorithm requires fewer PCE terms. Of note: the BiDRM approximates a five-dimensional integral in the spectral projection with 5 one- and 10 two-dimensional ones for the GSPCE- and ASPCE-based case studies. In contrast, a four-dimensional integral is converted into 4 one- and 6 two-dimensional ones in the rGSPCE-based case study. The lower-dimensional integrals were calculated with Gauss quadrature rules, and the number of quadrature points for each dimension was 5. Thus, the number of evaluations
for the GSPCE- and ASPCE-BiDRM case studies is
, according to the definition in (22). For the rGSPCE-BiDRM method, the number of evaluations
is calculated as
. For the NIDP-based case studies, the number of evaluations
to solve a PCE coefficient is
for both the GSPCE- and ASPCE-NIDP and
in the rGSPCE-NIDP, when the full tensor product grid was used. As in the previous example, the computational time for four different case scenarios (i.e., three BiDRM-based methods and the ASPCE-NIDP method) is summarized in
Table 7.
As seen in
Table 7, the computational time for the simulation in
Figure 5 in each case study increases as
increases. In addition, as compared to the ASPCE-based case studies, it was found the GSPCE-based case study requires more time to save and reload the numerical expressions of polynomial basis functions, since each parametric uncertainty has its own basis functions. However, it is important to note that the computational time for the rGSPCE-based case study is significantly smaller than the other three case studies, including the ASPCE-NIDP. This shows the superior performance of the rGSPCE-BiDRM based method, compared to the other methods (e.g., ASPCE-BiDRM and ASPCE-NIDP) in terms of computational efficiency.
3.3. Example 3: Continuously Stirred Tank Reactor (CSTR) with a Series Reaction
A continuously stirred tank reactor (CSTR) as in
Figure 7 was chosen to show the efficiency of the UQ algorithm in this work, where irreversible reactions
occur [
43]. The pure material
enters the reactor through the inlet stream and the concentrations of species
and
are initially set to zero. Since it is desired to reach the maximum conversion of
, we focus on quantifying the effect of uncertainty on the concentration of
.
The models to describe the dynamics of the CSTR are given as [
43]:
where
,
, and
are the concentrations of
,
, and
, respectively, and the temperature
is the manipulated variable that is set to 400 K. Model parameters in (33)–(35) are listed in
Table 8.
As in
Table 8, three parameters,
,
, and
, are assumed to follow a Weibull distribution. The rest of the parameters are described by standard distributions (e.g., uniform or normal). Since there are 7 parametric uncertainties, a seven-dimensional random space (
) is considered. In this example, a 1% variation around each mean value of the uncertain parameters
and
was introduced, and the rest of the parameters are assumed to have a 10% variation around each mean value. As in Examples 1 and 2, three case studies were conducted by combining the GSPCE, ASPCE, and rGSPCE with the BiDRM, respectively. For the GSPCE-based case study, PCE expressions of
,
, and
were constructed using the modified GS, whereas the PCE expressions of
,
, and
were approximated with the orthogonal polynomial basis functions in the Askey scheme for the ASPCE-based case study. For the rGSPCE-based case study, two uncertainties
and
(i.e.,
) were treated as one uncertainty (i.e., the similarity parameter described in
Section 2.3), which results in a six-dimensional random space (
). As done in Examples 1 and 2, MC was implemented for comparison purposes, where 10
6 samples for each parametric uncertainty were used. Uncertainty in concentration
was studied for each case study with respect to different polynomial orders of each uncertainty (i.e.,
was set to 0, 1, and
), and the simulation results are shown in
Figure 8.
As seen in
Figure 8, as the polynomial order of each uncertainty
increases, the UQ accuracy of different methods can be improved. To quantify the UQ accuracy, the relative error
of the variance of
was calculated at each time instant in
Figure 8. However, for clarity, the average of relative errors at 15 selected time instants are shown in
Figure 9a for different case scenarios (i.e., GSPCE-, ASPCE-, and rGSPCE-BiDRM). As done in Examples 1 and 2, we also investigated the non-intrusive methods (NIDP) for comparison purposes. The results of NIDP-based approaches are shown in
Figure 9b. The number of PCE terms and the number of evaluations
for each polynomial order with respect to different approaches are summarized in
Table 9.
The number of evaluations
in
Table 9 was determined by counting the total number of quadrature points to approximate each integral. For example, the number of evaluations to calculate each PCE coefficient is 561 for the GSPCE- and ASPCE-BiDRM, since there are 7 one- and 21 two-dimensional integrals resulting from the BiDRM, i.e.,
. In contrast, the number of evaluations
to calculate a PCE coefficient is 406 for the rGSPCE-BiDRM since there are 6 one- and 15 two-dimensional integrals, i.e.,
. In addition, for the NIDP-based approaches, the number of evaluations
to approximate each coefficient is calculated as
in both the GSPCE- and ASPCE-NIDP and
in the rGSPCE-NIDP. As compared to Example 2, a larger number of evaluations was used here for the NIDP-based approaches, since there are more uncertainties.
As seen in
Figure 9, the average relative error decreases, as the polynomial order
increases. In addition, the GSPCE- and rGSPCE-based algorithms exhibit smaller errors, as compared to the ASPCE-based algorithm. Note that the requisite number of PCE coefficients are the same in GSPCE- and ASPCE-based algorithms, while the rGSPCE-based algorithm needs a smaller number of PCE terms as in
Table 9. In addition, the simulation results in
Figure 9 shows that the BiDRM-based approaches provide as accurate results as the NIDP-based approaches, even with a smaller number of evaluations
. Specifically, the rGSPCE-BiDRM has an average relative error of ~0.00154, and the error with the rGSPCE-NIDP is ~0.00153. As seen, the difference in the average relative error between the two approaches is insignificant. However, the algorithm in the work that combines GSPCE- (or rGSPCE-) and BiDRM can outperform the NIDP-based methods in terms of computational cost, since a smaller number of evaluations is required as in
Table 9. We also studied the computational time to calculate PCE coefficients with respect to three BiDRM-based methods (i.e., GSPCE-, ASPCE-, and rGSPCE-BiDRM) and the ASPCE-NIDP in terms of CPU time, which is given in
Table 10.
As can be seen in
Table 10, the rGSPCE-BiDRM requires the least computational time. For example, when
was 2, the computational time of the rGSPCE-BiDRM was ~40% and ~30% lower than the GSPCE-BiDRM and ASPCE-BiDRM-based methods, respectively. In addition, it was found that the ASPCE-NIDP exhibits inferior computational time for each polynomial order
to the rest of the case studies. This shows the performance of the proposed algorithm in this work in terms of computational efficiency, which combines the PCE with the modified GS algorithm and the BiDRM.