This time-stepping mechanism improves the conditioning of the augmented Jacobian matrix, as the diagonal terms become more dominant, thereby enhancing stability and ensuring convergence even with poor initial estimates. For this reason, careful selection (and adaptive control) of the time-step size is crucial to minimize the number of iterations required until convergence.
3.1.2. Analysis of Permeances, Collocation Points, and Initial Estimates
This analysis compares four solver configurations: steady state (SS; Newton–Raphson, NR) and pseudotransient (PT; Runge–Kutta of order 4/5, RK45), each combined with either a constant or linear initial estimate. Results are assessed using accuracy metrics, mass-conservation checks, and computational performance.
A
base case was generated for the sensitivity analysis with seven components in a co-current arrangement (
Table 2 and
Table 3). The sensitivity study considered simultaneous variations of permeances across 11 cases. In addition, we evaluated the impact of the total number of collocation points along the non-dimensional domain
, adopting
and 21. It is important to emphasize that this benchmark does not aim to establish absolute accuracy against an external high-fidelity reference (e.g., a very fine BVP/FDM solution). Instead, the objective is to identify a practical trade-off among numerical robustness, computational performance, and solution accuracy for real-time and in-line applicability. Within this scope, the
SS-Linear model with
is used only as a high-resolution numerical reference for the component-wise comparison metric, whereas global and local mass-conservation metrics are evaluated independently from the governing conservation relations. As an example,
Figure 2 shows the water flow rate profile inside the fiber for the reference configuration.
Given the large number of generated flow rate surfaces—combinations of 2 methods [SS(NR) and PT(RK45)], 2 initial estimates (constant and linear), 10 values of n, 2 streams (shell and tube), and 7 components, totaling surfaces—Gauss–Legendre quadrature-based metrics were implemented. Mass balances were also applied directly at the collocation nodes, and computational performance was evaluated. These metrics prioritize mass conservation and computational efficiency. The main parameters and dimensions considered were as follows:
: permeance cases ();
: component/variable index ();
n: total number of collocation points ().
The metrics were defined as described in the following paragraphs.
- (i)
Global Mass Balance:
At steady state without sweep,
; over the physical domain
,
On the normalized domain
, the integral can be approximated in the form:
where
are the collocation nodes (roots of the Legendre polynomial),
is the number of internal collocation nodes, and
are the Gauss–Legendre quadrature weights, exact for any polynomial up to degree
. These weights satisfy
on
, ensuring that the integral of a constant reproduces
exactly.
Thus, for each collocation size
n, permeance case
c, and variable
v (7 components), the mean relative global mass-balance error is:
- (ii)
Computational performance (speedup):
Performance gain is defined with respect to a common time reference
adopting as reference the slowest case,
PT + Constant with
(300.057 s), which represents the wall time to run all permeance cases for a given
n.
- (iii)
Pointwise conservation (local residual):
For each
n,
c, and
v, pointwise mass closure at each collocation node is:
The worst-case residual is:
- (iv)
Component-wise analysis:
Each component/stream integral is compared against a high-accuracy reference (
SS + Linear,
). The choice of this high-resolution setting is restricted to this specific metric and is supported by mesh-refinement trends, which indicate progressive convergence as
n increases, together with smooth profiles and no visible numerical artifacts at
. Therefore, this configuration is adopted only as a numerical reference for comparison, and not as a recommended operational setting for real-time applications. For each permeance case
c and variable
v (7 components × 2 streams), one can define:
The aggregated mean error:
Here, is the reference area and denotes the local flow rate for case c and variable v (7 components in R and P) at node .
This metric provides a granular view of convergence, enabling separate assessment of each component and stream. It allows one to pinpoint species with problematic convergence, validate uniform accuracy across components, and detect localized numerical instabilities that global metrics may conceal. In total, 154 individual items are evaluated (11 permeance cases × 14 variables across components and streams), offering the most detailed assessment of numerical accuracy among the tested configurations.
The comparative assessment is consolidated by four key plots that fully characterize the numerical behavior of the configurations.
Figure 3 quantifies global mass-balance accuracy, revealing physical errors on the order of
% for
SS + Linear and identifying for the base-case sensitivity dataset the critical threshold
at which all configurations achieve satisfactory convergence under the metrics defined in this subsection.
Figure 4 establishes computational efficiency benchmarks, showing that
SS + Linear attains speedups up to 692×, turning minute-long simulations into fractions of a second.
Figure 5 validates pointwise mass conservation at each collocation node, with
SS + Linear maintaining local residuals at machine precision (∼10
−13 kmol/h) and revealing significant instabilities in pseudotransient configurations.
Finally,
Figure 6 provides the most detailed assessment via the granular comparison of 154 individual items against the
SS + Linear reference, detecting component-specific deviations that could be masked by global metrics and confirming that within the base-case sensitivity study
ensures uniform convergence across the molecular spectrum. Together, these plots establish
SS + Linear with
as the optimal configuration for this base-case scope, combining machine-precision accuracy, complete physical consistency, and superior computational efficiency.
Figure 7 illustrates the best and worst cases (
SS + Constant,
PT + Constant,
SS + Linear, and
PT + Linear), exemplified by the water flow rate inside the fiber—the critical variable where most gross flow rate errors (e.g., negative values) occur.
When using a constant initial estimate, the PT + Constant approach produced more stable solutions and was closer to the reference than SS + Constant, outperforming it in 6 of the 10 collocation-size cases according to the global mass-balance metric and in 100% of the cases in the nodewise residual analysis.
The best results for both constant and linear initial estimates occurred with four collocation points, whereas the worst performance was observed with three points, likely due to the symmetry of the interpolating polynomial, which fails to represent the inherently asymmetric flow rate profile. Thus, represents the optimal trade-off between accuracy and computational cost for the base-case sensitivity analysis and for the metrics considered in this subsection.
A linear initial estimate strongly favored the SS(NR) method, which reached machine precision with near-immediate convergence. In contrast, the same estimate hindered the PT(RK45) model, whose robustness is more evident when the initial profile is constant.
Therefore, when the solution profile is known,
SS + Linear is the most efficient and accurate option; when it is unknown,
PT + Constant offers greater robustness. Overall, within the base-case sensitivity analysis, the optimal configuration is
SS +
Linear +
n = 4, balancing accuracy, stability, and computational performance; however, the dedicated mesh-convergence validation required finer meshes, with convergence at 12 collocation points for Case 1 and 10 collocation points for Case 2 (
Section 3.2.1).
Table 4 summarizes the key metrics for the four configurations. Among them,
SS + Linear stands out as the only configuration that is physically consistent in all cases, achieving guaranteed convergence, zero physical error, and speedups up to 692× relative to the baseline.
The algorithm also detected physical inconsistencies—notably negative flow rates—causing mass-balance masking effects in 75% of the configurations. In particular, PT + Linear exhibited up to ten negative values per case, whereas SS + Constant showed masking effects of up to 2.4%. Only SS + Linear maintained 100% physical consistency and perfect mass balance for the tested base-case configurations.
From a performance standpoint, within the base-case sensitivity scenarios, SS + Linear with to 4 achieved speedups of 700–500×, immediate convergence, and zero physical error, making it a strong candidate for industrial applications. For cross-validation and more sensitive cases, PT + Constant () is recommended due to its higher robustness, albeit at roughly 20× the computational cost; in addition, mesh-refinement studies may require 10–12 collocation points depending on the case. For online monitoring applications, however, configuration selection is preferably weighted toward computational performance once convergence and physical consistency are met, since small internal-fiber profile deviations can be compensated by real-time permeance estimation and are typically negligible compared with measurement uncertainty in real-process data. The combinations SS + Constant and PT + Linear showed inconsistent behavior and are not recommended.
In practical terms, for the investigated benchmark space, efficiency gains were substantial: simulations that previously required minutes now complete in fractions of a second, with 100% physical consistency, 0% global mass-balance error, and no observed convergence failures. This improvement enables extensive parametric studies, permeance optimization, and feasibility analyses with high numerical reliability.
Therefore, for the base-case sensitivity scenario, the SS + Linear () configuration is the optimal solution for hollow-fiber membrane simulations via orthogonal collocation, combining:
Mathematical precision: physical error ;
Complete physical consistency: 100% positive flow rates;
Computational efficiency: up to 500× faster;
Numerical robustness: robust convergence for the tested cases.