Fast Jacobi Spectral Methods and Closure Approximations for the Homogeneous FENE Model of Complex Fluids Runkai Feng, Jie Shen, Haijun Yu Abstract The Finitely Extensible Nonlinear Elastic (FENE) dumbbell model is a widely used mathematical model for complex fluids. Direct simulation of the FENE Fokker–Planck equation is computationally challenging due to high dimensionality and singularity of its potential. In this paper, we develop two fast Jacobi-Spherical Harmonic spectral methods for the spatially homogeneous FENE Fokker–Planck equation. These methods effectively resolve the singularity near the boundary by combining properly designed Jacobi polynomials with a weighted variational formulation. A semi-implicit backward differentiation formula of second-order (BDF2) is employed for time marching, and its energy stability is rigorously proved. The resulting linear algebraic system possesses a sparse structure and can be efficiently solved. Numerical results verify the spectral convergence and efficiency of the direct spectral solvers, establishing them as a reliable tool for generating reference solutions for challenging benchmark problems. Furthermore, to achieve an optimal trade-off between accuracy and efficiency, we compare several closure approximation models, including the industry workhorse Peterlin approximation (FENE-P), the quasi-equilibrium approximation (FENE-QE), and a novel neural network implementation for FENE-QE proposed in this paper (FENE-QE-NN). Numerical experiments in extensional and shear flows demonstrate the superior accuracy and efficiency of the proposed methods compared to traditional approaches. 1 Introduction Complex fluids, composed of polymers or other macromolecules, exhibit rich and intricate dynamical behavior that cannot be captured by classical Newtonian fluid models. The macroscopic behaviors of such non-Newtonian fluids are intimately linked to the microscopic configuration of polymer molecules. The Finitely Extensible Nonlinear Elastic (FENE) dumbbell model (cf., for instance, [ 29 , 12 , 1 ] and the references therein) is one of the most widely adopted nonlinear kinetic models. Coupled with the Navier–Stokes equations, this model is essential for investigating complex rheological phenomena, such as viscoelastic turbulence and drag modification mechanisms. For instance, recent numerical simulations have utilized viscoelastic models to reveal the existence of a maximum drag enhancement asymptote in turbulent Taylor–Couette flows [ 21 ] , highlighting the critical interplay between polymer dynamics and vortical structures. However, accurate simulation of such multiscale systems relies heavily on the efficient solution of the underlying Fokker–Planck equation. Let the positions of the two ends of the dumbbell be \bm{r}_{1} and \bm{r}_{2} . The center of mass is denoted by \bm{x}=(\bm{r}_{1}+\bm{r}_{2})/2 , and the orientation vector of the molecule is \bm{q}=\bm{r}_{1}-\bm{r}_{2} . In kinetic theory, the configuration distribution function, denoted as f(t,\bm{x},\bm{q}) , describes the probability density of molecules with orientation \bm{q} at position \bm{x} and time t . The microscopic system of complex fluids is governed by the Fokker–Planck equation: \frac{\partial f}{\partial t}+\bm{u}\cdot\nabla_{\bm{x}}f+\nabla_{\bm{q}}\cdot(\bm{K}\cdot\bm{q}f)=\frac{1}{\text{De}}\Delta_{\bm{q}}f+\frac{1}{\text{De}}\nabla_{\bm{q}}\cdot\left(f\nabla_{\bm{q}}U\right), (1) where \bm{K}=(\nabla_{\bm{x}}\bm{u})^{\top} , and U is the FENE elastic potential energy given by: U=-\frac{b}{2}\ln(1-|\bm{q}|^{2}). (2) The system involves dimensionless parameters b and the Deborah number ( De ), defined as: b=\frac{Hq_{0}^{2}}{k_{B}T},\quad\text{De}=\frac{\zeta q_{0}^{2}}{2t_{0}k_{B}T}. (3) Here, q_{0} is the maximum extensibility of the dumbbell, k_{B} is the Boltzmann constant, T is the temperature, H is the FENE spring constant, \zeta is the friction coefficient of the polymer molecule, and t_{0} is the characteristic time of the background flow. While the Fokker–Planck equation ( 1 ) is linear with respect to f for a given \bm{K} , the unbounded nature of the FENE potential U introduces a logarithmic singularity as |\bm{q}|\to 1 . This singularity poses significant challenges for both rigorous mathematical analysis and stable numerical approximations. Early theoretical works focused on local well-posedness. But, substantial progress has been made recently regarding the global existence, regularity, and rigorous proof of convergence to equilibrium states by exploiting the system’s entropy dissipation structure [ 3 , 20 , 24 ] . From a numerical perspective, kinetic theory is typically approached via two distinct paradigms. The stochastic approach, such as CONNFFESSIT and the Brownian configuration fields (BCF) method (see, e.g., [ 14 , 19 ] ), relies on Monte Carlo sampling. While the computational cost grows mildly with degrees of freedom, its accuracy is inherently limited by statistical noise ( O(1/\sqrt{N}) ). Conversely, the deterministic approach involves solving the governing equations directly. Recent advancements in finite difference methods have achieved high fidelity in simulating viscoelastic turbulence by incorporating distinct criteria to ensure the positive definiteness of the conformation tensor [ 22 ] . However, for the microscopic Fokker–Planck equation, spectral methods remain the favored choice due to their exponential convergence rates, which are crucial for resolving the steep gradients of the distribution function near the boundaries [ 9 , 23 , 27 ] . Previous work [ 27 ] has proven the well-posedness of the weak formulation and designed a fast spectral method for the homogeneous two-dimensional (0+2) case. Additionally, the convection term in ( 1 ) can be treated by a classical finite difference scheme or a spectral element method; see, e.g., [ 1 , 7 ] . Due to the high dimensionality, directly solving the Fokker–Planck equation is computationally expensive, especially in 0+3 dimensions. To address this, researchers often resort to closure approximations [ 8 ] , with the FENE-P model [ 2 ] being the most common. Of particular interest is the FENE-QE (Quasi-Equilibrium) model [ 15 ] , which offers significantly higher accuracy. However, despite dimension reduction, models like FENE-QE remain computationally intensive due to the need to evaluate complex integrals at every time step. To mitigate this, techniques such as piecewise linear approximation (PLA) [ 28 ] have been proposed to improve efficiency. Recently, data-driven approaches, particularly neural networks, have shown great potential in approximating complex constitutive laws. In the context of non-Newtonian fluid mechanics, the closure problem, mapping the microstructural state to the macroscopic stress, represents a high-dimensional function approximation task well-suited for deep learning. Classical analytical closures, such as the Peterlin approximation, often sacrifice accuracy for computational efficiency. In contrast, neural networks, leveraging their universal approximation capability, can learn high-fidelity constitutive manifolds from data generated by direct kinetic solvers. Several studies have successfully applied NNs to learn stress-strain relationships or to construct closure terms for Reynolds stress in turbulence modeling [ 4 , 10 , 25 ] . In this paper, we develop two fast Jacobi-Spherical Harmonic spectral-Galerkin methods for the 0+3 dimensional Fokker–Planck equation. We strictly prove the stability of the semi-implicit backward differentiation formula of second-order (BDF2) time discretization scheme and verify its convergence through rigorous numerical benchmarks. Furthermore, we propose a neural network approach (FENE-QE-NN) to approximate the FENE-QE model, leveraging the high-fidelity data generated by our spectral solver. Numerical experiments in extensional and shear flows demonstrate the accuracy and efficiency of these methods, followed by appendices containing some calculations on the matrix of the spectral-Galerkin method. 2 The FENE Fokker–Planck equation and its weighted weak form Consider a homogeneous system characterized by a three-dimensional configuration space defined on the unit ball \Omega=\{\bm{q}\in\mathbb{R}^{3}:|\bm{q}|\leq 1\} . The configuration distribution function is denoted by f(\bm{q},t) . The macroscopic velocity gradient tensor \bm{K}=(\nabla_{\bm{x}}\bm{u})^{\top} is given by \bm{K}=\begin{pmatrix}k_{11}&k_{12}&k_{13}\\ k_{21}&k_{22}&k_{23}\\ k_{31}&k_{32}&k_{33}\end{pmatrix},\quad\text{with }\mathrm{tr}(\bm{K})=k_{11}+k_{22}+k_{33}=0, which implies that the flow is incompressible. We decompose \bm{K} into its symmetric and antisymmetric parts: the rate-of-strain tensor \bm{D}=(\bm{K}+\bm{K}^{\top})/2 and the vorticity tensor \bm{W}=(\bm{K}-\bm{K}^{\top})/2 . The Fokker–Planck equation governing the evolution of f for the FENE model is given by \frac{\partial f}{\partial t}+\nabla_{\bm{q}}\cdot(\bm{K}\cdot\bm{q}f)=\frac{1}{\mathrm{De}}\Delta_{\bm{q}}f+\frac{b}{\mathrm{De}}\nabla_{\bm{q}}\cdot\left(f\frac{\bm{q}}{1-|\bm{q}|^{2}}\right), (4) where \mathrm{De} denotes the Deborah number. The associated free energy functional is defined as A[f]=\int_{\Omega}(f\ln f-f)\,\mathrm{d}\bm{q}+\int_{\Omega}\left\{U(\bm{q})f-f\frac{\mathrm{De}}{2}\bm{D}:\bm{q}\bm{q}\right\}\,\mathrm{d}\bm{q}, (5) where U(\bm{q}) represents the FENE spring potential. It is well-known that for irrotational flows ( \bm{W}=\bm{0} ), the solution to ( 4 ) converges to a steady state that minimizes the free energy [ 29 ] : f_{eq}^{\bm{D}}(\bm{q})=\frac{1}{Z_{\bm{D}}}(1-|\bm{q}|^{2})^{b/2}\exp\left(\frac{\mathrm{De}}{2}\bm{D}:\bm{q}\bm{q}\right), (6) where Z_{\bm{D}} is the normalization constant. In the absence of flow ( \bm{K}=\bm{0} ), this reduces to the equilibrium distribution: f_{eq}(\bm{q})=C_{eq}(1-|\bm{q}|^{2})^{b/2},\quad C_{eq}=\frac{\Gamma(b/2+5/2)}{2\pi^{3/2}\Gamma(b/2+1)}. (7) Multiplying ( 4 ) by a test function g\in C_{0}^{\infty}(\Omega) and applying integration by parts, we obtain the standard weak formulation: \left(\frac{\partial f}{\partial t},g\right)+\frac{1}{\mathrm{De}}\left(\nabla f,\nabla g\right)+\frac{b}{\mathrm{De}}\left(f,\frac{\bm{q}\cdot\nabla g}{1-|\bm{q}|^{2}}\right)=(f,(\bm{K}\cdot\bm{q})\cdot\nabla g). (8) To handle the singularity at the boundary |\bm{q}|=1 , we introduce the transformation f(\bm{q},t)=(1-|\bm{q}|^{2})^{s}h(\bm{q},t),\quad 10 be the time step size, and let h^{n} denote the numerical approximation at time t_{n}=n\Delta t . To decouple the system and maintain efficiency, we apply a second-order explicit linear extrapolation to the convection term (h,(\bm{K}\cdot\bm{q})\cdot\nabla g)_{s} . The semi-discrete variational scheme reads as follows: for any test function g\in H_{s}^{1}(\Omega) , find h^{n+1}\in H_{s}^{1}(\Omega) such that \displaystyle\frac{1}{2\Delta t}\left(3h^{n+1}-4h^{n}+h^{n-1},g\right)_{s}+\frac{1}{\text{De}}\left(\nabla h^{n+1},\nabla g\right)_{s} (15) \displaystyle+\frac{b-2s}{\text{De}}\left(h^{n+1},\frac{\bm{q}\cdot\nabla g}{1-|\bm{q}|^{2}}\right)_{s}=(2h^{n}-h^{n-1},(\bm{K}\cdot\bm{q})\cdot\nabla g)_{s}. We first address the solvability of the semi-discrete scheme ( 15 ). At each time step t_{n+1} , given h^{n} and h^{n-1} , the problem reduces to a linear elliptic problem. Let a(\cdot,\cdot):H_{s}^{1}(\Omega)\times H_{s}^{1}(\Omega)\to\mathbb{R} be the bilinear form defined by the left-hand side of ( 15 ): a(u,v)=\frac{3}{2\Delta t}(u,v)_{s}+\frac{1}{\text{De}}(\nabla u,\nabla v)_{s}+\frac{b-2s}{\text{De}}\left(u,\frac{\bm{q}\cdot\nabla v}{1-|\bm{q}|^{2}}\right)_{s}. (16) The linear functional on the right-hand side is denoted by L(v) . To prove the coercivity of a(\cdot,\cdot) , we recall a crucial identity derived in [ 27 ] . Lemma 3.1 . For any h\in H_{s}^{1}(\Omega) and s>1 , the following identity holds: \left(h,\frac{\bm{q}\cdot\nabla h}{1-|\bm{q}|^{2}}\right)_{s}=(s-1)\|\bm{q}h\|_{s-2}^{2}-\frac{3}{2}\|h\|_{s-1}^{2}. (17) Furthermore, by analyzing the quadratic form associated with the weighted norms, there exists a threshold \gamma(s) such that for any \gamma>\gamma(s) , the following inequality holds: \gamma\|h\|_{s}^{2}+\left(h,\frac{\bm{q}\cdot\nabla h}{1-|\bm{q}|^{2}}\right)_{s}\geq\beta(\gamma)\|h\|_{s-2}^{2}, (18) where \gamma(s)=\frac{3}{4}\left(1+\frac{s-1}{3}+\frac{3}{4(s-1)}\right),\quad\beta(\gamma)=(s-1)\left(1-\frac{\gamma(s)}{\gamma}\right). (19) Theorem 3.1 (Existence and Uniqueness) . Assume 1\frac{b-2s}{\mathrm{De}}\gamma(s) . Then, for any given h^{n},h^{n-1}\in L^{2}_{s}(\Omega) , the variational problem ( 15 ) admits a unique solution h^{n+1}\in H_{s}^{1}(\Omega) . Proof. The continuity of the bilinear form a(u,v) is straightforward. For coercivity, we consider a(u,u) . If s=b/2 , the third term in a(u,u) vanishes, and coercivity follows immediately from the positivity of the time-derivative and diffusion terms. If s0 and \gamma>\gamma(s) , we obtain: a(u,u)=\lambda\|u\|_{s}^{2}+\frac{1}{\text{De}}\|\nabla u\|_{s}^{2}+\frac{b-2s}{\text{De}}\left[\gamma\|u\|_{s}^{2}+\left(u,\frac{\bm{q}\cdot\nabla u}{1-|\bm{q}|^{2}}\right)_{s}\right]. (20) Using ( 18 ), the term in the brackets is non-negative. Thus, a(u,u)\geq C\|\nabla u\|_{s}^{2} , which implies coercivity in H_{s}^{1}(\Omega) . The existence and uniqueness follow from the Lax-Milgram theorem. ∎ We now establish the energy stability of the proposed BDF2 scheme. Theorem 3.2 (Stability) . Let h^{0}\in L^{2}_{s}(\Omega) be the initial data. Assume 1\gamma(s) . By Lemma 3.1 , we have: \frac{b-2s}{\text{De}}\gamma\|h^{n+1}\|_{s}^{2}+\frac{b-2s}{\text{De}}\left(h^{n+1},\frac{\bm{q}\cdot\nabla h^{n+1}}{1-|\bm{q}|^{2}}\right)_{s}\geq\frac{b-2s}{\text{De}}\beta(\gamma)\|h^{n+1}\|_{s-2}^{2}. (24) Combining these estimates, we arrive at: \displaystyle\frac{1}{4\Delta t} \displaystyle(\mathcal{E}^{n+1}-\mathcal{E}^{n})+\frac{1}{4\Delta t}\|h^{n+1}-2h^{n}+h^{n-1}\|_{s}^{2} (25) \displaystyle+\frac{1}{2\text{De}}\|\nabla h^{n+1}\|_{s}^{2}+\frac{b-2s}{\text{De}}\beta(\gamma)\|h^{n+1}\|_{s-2}^{2} \displaystyle\leq\frac{\text{De}|\bm{K}|_{\infty}^{2}}{2}\|2h^{n}-h^{n-1}\|_{s}^{2}. Multiplying by 4\Delta t , summing from n=1 to N-1 , and noting that \|2h^{n}-h^{n-1}\|_{s}^{2}\leq\mathcal{E}^{n} , we can apply the discrete Gronwall inequality. Since the term \beta(\gamma)\|h^{n+1}\|_{s-2}^{2} is non-negative, it is retained on the left-hand side to improve the stability bound. This completes the proof. ∎ Remark 3.1 (Asymptotic behavior and stability at low \mathrm{De} number) . The conditional stability criterion established in Theorem 3.2 requires the time step to satisfy \Delta t\lesssim\frac{\mathrm{De}}{b-2s} . In the small Deborah number limit ( \mathrm{De}\to 0 ), a fixed weight index s0,\\ \frac{1}{\sqrt{\pi}}\sin(m\varphi),&v=1,m>0.\end{cases} (28) The FENE dumbbell model assumes that the two ends of the polymer molecule are indistinguishable, implying that the probability distribution function must satisfy the head-tail symmetry condition: h(p,\theta,\varphi)=h(p,\pi-\theta,\pi+\varphi). (29) Recalling the parity property of spherical harmonics, Y_{lm}^{v}(\pi-\theta,\pi+\varphi)=(-1)^{l}Y_{lm}^{v}(\theta,\varphi) , the difference between the function and its centrally symmetric counterpart is h(p,\theta,\varphi)-h(p,\pi-\theta,\pi+\varphi)=\sum_{l,v,m}\psi_{lm}^{v}(p)\left[1-(-1)^{l}\right]Y_{lm}^{v}(\theta,\varphi). For this difference to vanish, the coefficients must satisfy \psi_{lm}^{v}(p)=0 for all odd l . Consequently, the summation in ( 26 ) is restricted to even degrees l . Regarding the radial direction, regularity at the pole (corresponding to r=0 or p=-1 ) imposes constraints on the behavior of \psi_{lm}^{v}(p) . To ensure C^{1} continuity of the distribution function in \bm{q} , the coefficient functions must behave as \psi_{lm}^{v}(p)=O((1+p)^{l/2}) as p\to-1 . For the mapped coordinate p , we consider two different basis choices to address this regularity. 4.2 Fast Jacobi Galerkin method with C^{1} continuity (JG1) In the first approach, denoted as JG1, we select the basis functions in the p -direction to satisfy the essential pole conditions. The radial basis functions are defined as \phi_{ln}(p)=\begin{cases}J_{n}^{s-2,\frac{1}{2}}(p),&l=0,\\ (1+p)J_{n}^{s-2,\frac{3}{2}}(p),&l>0,\end{cases} (30) where J_{n}^{\alpha,\beta}(p) represents the Jacobi polynomial of degree n with indices \alpha,\beta . The full approximation space is spanned by h_{N}(p,\theta,\varphi)=\sum_{l=0,\text{even}}^{L}\sum_{v=0,1}\sum_{m=v}^{l}\sum_{n=0}^{N}b_{vlmn}\phi_{ln}(p)Y_{lm}^{v}(\theta,\varphi). (31) Substituting this expansion into the weak formulation ( 13 ) and choosing the test function g=\phi_{l^{\prime}n^{\prime}}(p)Y_{l^{\prime}m^{\prime}}^{v^{\prime}}(\theta,\varphi) , we obtain the following linear algebraic system: \mathcal{A}\frac{\mathrm{d}\mathbf{b}}{\mathrm{d}t}+\frac{1}{\mathrm{De}}\mathcal{B}\mathbf{b}+\frac{b-2s}{\mathrm{De}}\mathcal{C}\mathbf{b}=k_{ij}\mathcal{D}_{ij}\mathbf{b}. (32) Element-wise, the equation reads A_{vlmn}^{v^{\prime}l^{\prime}m^{\prime}n^{\prime}}\dot{b}_{vlmn}+\frac{1}{\mathrm{De}}B_{vlmn}^{v^{\prime}l^{\prime}m^{\prime}n^{\prime}}b_{vlmn}+\frac{b-2s}{\mathrm{De}}C_{vlmn}^{v^{\prime}l^{\prime}m^{\prime}n^{\prime}}b_{vlmn}=k_{ij}(D_{ij})_{vlmn}^{v^{\prime}l^{\prime}m^{\prime}n^{\prime}}b_{vlmn}, (33) where the mass, stiffness, and potential matrices are decoupled due to the L^{2} -orthogonality of spherical harmonics: \displaystyle A_{vlmn}^{v^{\prime}l^{\prime}m^{\prime}n^{\prime}} \displaystyle=\delta_{vv^{\prime}}\delta_{ll^{\prime}}\delta_{mm^{\prime}}(O_{l})_{n}^{n^{\prime}}, \displaystyle B_{vlmn}^{v^{\prime}l^{\prime}m^{\prime}n^{\prime}} \displaystyle=\delta_{vv^{\prime}}\delta_{ll^{\prime}}\delta_{mm^{\prime}}\left(8(P_{l})_{n}^{n^{\prime}}+2l(l+1)(Q_{l})_{n}^{n^{\prime}}\right), \displaystyle C_{vlmn}^{v^{\prime}l^{\prime}m^{\prime}n^{\prime}} \displaystyle=\delta_{vv^{\prime}}\delta_{ll^{\prime}}\delta_{mm^{\prime}}\left(4(R_{l})_{n}^{n^{\prime}}\right), \displaystyle(D_{ij})_{vlmn}^{v^{\prime}l^{\prime}m^{\prime}n^{\prime}} \displaystyle=(U_{ij})_{vlm}^{v^{\prime}l^{\prime}m^{\prime}}2(S_{ll^{\prime}})_{n}^{n^{\prime}}+(V_{ij}+W_{ij})_{vlm}^{v^{\prime}l^{\prime}m^{\prime}}(O_{ll^{\prime}})_{n}^{n^{\prime}}. The radial matrices are defined by the inner products in the mapped domain: \displaystyle(O_{l})_{n}^{n^{\prime}} \displaystyle=(\phi_{ln},\phi_{ln^{\prime}})_{s,\frac{1}{2}}, \displaystyle(P_{l})_{n}^{n^{\prime}} \displaystyle=((1+p)\phi_{ln}^{\prime},\phi_{ln^{\prime}}^{\prime})_{s,\frac{1}{2}}, \displaystyle(Q_{l})_{n}^{n^{\prime}} \displaystyle=\left(\frac{1}{1+p}\phi_{ln},\phi_{ln^{\prime}}\right)_{s,\frac{1}{2}}, \displaystyle(R_{l})_{n}^{n^{\prime}} \displaystyle=\left(\frac{1+p}{1-p}\phi_{ln},\phi_{ln^{\prime}}^{\prime}\right)_{s,\frac{1}{2}}, \displaystyle(S_{ll^{\prime}})_{n}^{n^{\prime}} \displaystyle=((1+p)\phi_{ln},\phi_{l^{\prime}n^{\prime}}^{\prime})_{s,\frac{1}{2}}, \displaystyle(O_{ll^{\prime}})_{n}^{n^{\prime}} \displaystyle=(\phi_{ln},\phi_{l^{\prime}n^{\prime}})_{s,\frac{1}{2}}. The angular interaction matrices are given by: \displaystyle(U_{ij})_{vlm}^{v^{\prime}l^{\prime}m^{\prime}} \displaystyle=(Y_{lm}^{v},Y_{l^{\prime}m^{\prime}}^{v^{\prime}}\hat{r}_{i}\hat{r}_{j})_{\sin\theta}, \displaystyle(V_{ij})_{vlm}^{v^{\prime}l^{\prime}m^{\prime}} \displaystyle=(Y_{lm}^{v},\partial_{\theta}Y_{l^{\prime}m^{\prime}}^{v^{\prime}}\hat{\theta}_{i}\hat{r}_{j})_{\sin\theta}, \displaystyle(W_{ij})_{vlm}^{v^{\prime}l^{\prime}m^{\prime}} \displaystyle=\left(Y_{lm}^{v},\partial_{\varphi}Y_{l^{\prime}m^{\prime}}^{v^{\prime}}\frac{\hat{\varphi}_{i}\hat{r}_{j}}{\sin\theta}\right)_{\sin\theta}, where (\cdot,\cdot)_{\sin\theta} denotes the standard L^{2} inner product on the unit sphere. A key feature of this method is the sparsity of the radial matrices. Specifically, (O_{l}),(P_{l}),(Q_{l}) , and (R_{l}) are banded matrices with bandwidths of 7, 5, 5, and 5, respectively (for l=0 , the contribution from Q_{l} vanishes). The detailed structures of these matrices are provided in the appendix of [ 27 ] . While the convection matrix (D_{ij}) is dense in the radial direction, its angular blocks are sparse, which ensures computational efficiency (see Appendix A for details). 4.3 Fast Jacobi Galerkin method with C^{\infty} continuity (JGinf) To achieve higher spectral accuracy, particularly near the pole, we propose the JGinf method which enforces a stronger regularity condition consistent with the analytic behavior of the solution. The radial basis functions are chosen as: \psi_{ln}(p)=\begin{cases}J_{n}^{s-2,\frac{1}{2}}(p),&l=0,\\ (1+p)^{l}J_{n}^{s-2,\frac{1}{2}+2l-1}(p),&l>0.\end{cases} (34) The approximation space is defined similarly to JG1, but with an l -dependent polynomial degree constraint to avoid redundancy and ensure a uniform total degree: h_{N}(p,\theta,\varphi)=\sum_{l=0,\text{even}}^{L}\sum_{v=0,1}\sum_{m=v}^{l}\sum_{n=0}^{N-l}b_{vlmn}\psi_{ln}(p)Y_{lm}^{v}(\theta,\varphi). (35) The resulting linear system shares the same structure as the JG1 system. Importantly, the radial matrices (O_{l},P_{l},\dots) computed using the new basis \psi_{ln} retain their sparsity properties, possessing bandwidths of 7, 5, 5, and 5, respectively. This choice of basis ensures that the numerical solution correctly captures the asymptotic behavior of the distribution function near the coordinate singularity r=0 . 5 Moment closure approximation models Directly solving the high-dimensional Fokker–Planck equation is often computationally prohibitive for practical flow simulations. To mitigate this curse of dimensionality while retaining essential microscopic information, a common strategy is to derive evolution equations for the lower-order moments of the configuration distribution function. The most prevalent approach focuses on the second-order moment, known as the conformation tensor. 5.1 Derivation of the moment equation We define the conformation tensor \bm{C} as the second-order moment of the distribution function f(\bm{q},t) : \bm{C}(t)=\langle\bm{q}\bm{q}\rangle=\int_{\Omega}\bm{q}\bm{q}f(\bm{q},t)\,\mathrm{d}\bm{q}. (36) To derive the evolution equation for \bm{C} , we multiply Equation ( 4 ) by the dyadic product \bm{q}\bm{q} and integrate over the configuration space \Omega : \frac{\mathrm{d}\bm{C}}{\mathrm{d}t}=\int_{\Omega}\bm{q}\bm{q}\left[-\nabla_{\bm{q}}\cdot(\bm{K}\cdot\bm{q}f)+\frac{1}{\mathrm{De}}\Delta_{\bm{q}}f+\frac{b}{\mathrm{De}}\nabla_{\bm{q}}\cdot\left(f\frac{\bm{q}}{1-|\bm{q}|^{2}}\right)\right]\,\mathrm{d}\bm{q}. (37) By applying integration by parts and standard tensor identities, the terms on the right-hand side are evaluated as follows: Convection: \displaystyle\int_{\Omega}\bm{q}\bm{q}\left[-\nabla_{\bm{q}}\cdot(\bm{K}\cdot\bm{q}f)\right]\,\mathrm{d}\bm{q}=\bm{K}\cdot\bm{C}+\bm{C}\cdot\bm{K}^{\top}, Diffusion: \displaystyle\frac{1}{\mathrm{De}}\int_{\Omega}\bm{q}\bm{q}(\Delta_{\bm{q}}f)\,\mathrm{d}\bm{q}=\frac{1}{\mathrm{De}}\int_{\Omega}f(\Delta_{\bm{q}}(\bm{q}\bm{q}))\,\mathrm{d}\bm{q}=\frac{2}{\mathrm{De}}\bm{I}, Spring force: \displaystyle\frac{b}{\mathrm{De}}\int_{\Omega}\bm{q}\bm{q}\left[\nabla_{\bm{q}}\cdot\left(f\frac{\bm{q}}{1-|\bm{q}|^{2}}\right)\right]\,\mathrm{d}\bm{q}=-\frac{2b}{\mathrm{De}}\left\langle\frac{\bm{q}\bm{q}}{1-|\bm{q}|^{2}}\right\rangle. Combining these results yields the exact, but unclosed, evolution equation for \bm{C} : \frac{\mathrm{d}\bm{C}}{\mathrm{d}t}=\bm{K}\cdot\bm{C}+\bm{C}\cdot\bm{K}^{\top}+\frac{2}{\mathrm{De}}\bm{I}-\frac{2b}{\mathrm{De}}\left\langle\frac{\bm{q}\bm{q}}{1-|\bm{q}|^{2}}\right\rangle. (38) The system is unclosed because the nonlinear spring term involves higher-order moments (e.g., via the Taylor expansion \left\langle\frac{\bm{q}\bm{q}}{1-|\bm{q}|^{2}}\right\rangle=\sum_{k=0}^{\infty}\langle\bm{q}\bm{q}|\bm{q}|^{2k}\rangle ). To create a self-contained system, this term must be approximated as a function of \bm{C} , a process known as closure approximation. 5.2 The FENE-P model The FENE-P model employs the widely used Peterlin approximation [ 2 ] , a pre-averaging technique that replaces the denominator in the spring term with its ensemble average: \frac{1}{1-|\bm{q}|^{2}}\approx\frac{1}{1-\langle|\bm{q}|^{2}\rangle}=\frac{1}{1-\mathrm{tr}(\bm{C})}. (39) Substituting this into ( 38 ) yields the closed evolution equation for the FENE-P model: \frac{\mathrm{d}\bm{C}}{\mathrm{d}t}=\bm{K}\cdot\bm{C}+\bm{C}\cdot\bm{K}^{\top}+\frac{2}{\mathrm{De}}\bm{I}-\frac{b}{\mathrm{De}}\frac{\bm{C}}{1-\mathrm{tr}(\bm{C})}. (40) Under this approximation, it can be shown that if the initial distribution is Gaussian, the PDF remains Gaussian for all time [ 26 ] , taking the form f_{\mathrm{P}}(\bm{q})\propto\exp(-\frac{1}{2}\bm{C}^{-1}:\bm{q}\bm{q}) . The FENE-P model is computationally inexpensive and has been proven to be thermodynamically consistent with a modified free energy functional [ 13 ] . Although the Peterlin approximation cannot represent strongly non-Gaussian configuration statistics, the FENE-P closure is theoretically well-motivated in several important regimes. In much of the rheology literature, the flow strength is expressed in terms of the Weissenberg number \mathrm{Wi}\sim\mathrm{De}\,|\bm{K}|_{\infty} , so that small (resp. large) \mathrm{De}\,|\bm{K}|_{\infty} corresponds to weak (resp. strong) flow-induced polymer deformation. From the modeling viewpoint, FENE-P recovers the Hookean-dumbbell/Oldroyd-B limit in the large- b regime, in which the finite-extensibility effects become weak, and the spring behaves effectively linear on the typical configuration scale [ 2 ] . Moreover, when the polymer remains far from the extensibility boundary so that \mathrm{tr}(\bm{C})\ll 1 , the Peterlin factor admits the elementary expansion \frac{1}{1-\mathrm{tr}(\bm{C})}=1+\mathrm{tr}(\bm{C})+O\!\left(\mathrm{tr}(\bm{C})^{2}\right), (41) which shows that the FENE-P relaxation term can be interpreted as a leading Hookean-like contribution plus higher-order corrections associated with finite extensibility. These considerations help rationalize why FENE-P often provides reliable macroscopic stresses in shear-dominated flows over broad parameter ranges, and why it remains a common workhorse in industrial simulations [ 32 ] . Related entropy/energy estimates for Oldroyd-B and associated macro-macro models also support the numerical robustness of closed conformation-tensor descriptions and guide stable discretizations [ 13 ] . However, the FENE-p approximation fail or produce nonphysical results in some extreme cases, e.g. strong elongation flow. Therefore, a more physical closure approach, the quasi-equilibrium approximation (QE [ 11 ] ), is advocated. QE approximation has been adopted and efficiently implemented for both soft-polymer [ 15 , 28 ] and rod-like polymers [ 5 , 33 , 16 , 31 , 30 ] . 5.3 FENE-QE model and PLA algorithm The FENE-QE model [ 15 ] offers a more accurate closure by assuming that, at any instant, the distribution function f(\bm{q},t) relaxes to a state that minimizes the free energy subject to the constraint that its second moment is the current conformation tensor \bm{C}(t) . This leads to a distribution of the form f_{\mathrm{QE}}(\bm{q})=\frac{1}{Z(\bm{\lambda})}(1-|\bm{q}|^{2})^{b/2}\exp\left(\bm{\lambda}:\bm{q}\bm{q}\right), (42) where \bm{\lambda}(t) is a symmetric tensor of Lagrange multipliers enforcing the constraint \langle\bm{q}\bm{q}\rangle_{\mathrm{QE}}=\bm{C}(t) . (Note: \bm{\lambda} is not necessarily traceless, but symmetric). The unclosed evolution equation ( 38 ) can be written in terms of the potential U as \frac{\mathrm{d}\bm{C}}{\mathrm{d}t}=\bm{K}\cdot\bm{C}+\bm{C}\cdot\bm{K}^{\top}+\frac{2}{\mathrm{De}}\bm{I}-\frac{2}{\mathrm{De}}\langle\bm{q}(\nabla_{\bm{q}}U)^{\top}\rangle_{\mathrm{QE}}. (43) A key identity, derived from \int_{\Omega}\nabla_{\bm{q}}\cdot(\bm{q}f_{\mathrm{QE}})\,\mathrm{d}\bm{q}=0 , provides the closure relation: \langle\bm{q}(\nabla_{\bm{q}}U)^{\top}\rangle_{\mathrm{QE}}=\bm{I}+2\bm{C}\cdot\bm{\lambda}. (44) Substituting this into ( 43 ) yields the closed FENE-QE evolution equation: \frac{\mathrm{d}\bm{C}}{\mathrm{d}t}=\bm{K}\cdot\bm{C}+\bm{C}\cdot\bm{K}^{\top}-\frac{4}{\mathrm{De}}\bm{C}\cdot\bm{\lambda}. (45) The corresponding polymer stress tensor is given by \bm{\tau}_{p}=\langle\bm{q}(\nabla_{\bm{q}}U)^{\top}\rangle_{\mathrm{QE}}-\bm{I}=2\bm{C}\cdot\bm{\lambda} . The challenge lies in determining \bm{\lambda} from \bm{C} . The mapping \bm{C}\mapsto\bm{\lambda} is implicit and lacks an analytical inverse. The Piecewise Linear Approximation (PLA) method [ 28 ] addresses this by pre-computing and interpolating this mapping. Since \bm{C} and \bm{\lambda} are coaxial (share the same eigenvectors), the problem reduces to a 3D mapping between their eigenvalues, \{c_{i}\}\leftrightarrow\{\lambda_{i}\} . The PLA algorithm at each time step t_{n} proceeds as follows: 1. Diagonalize : Compute eigenvalues c_{1},c_{2},c_{3} and the eigenvector matrix \bm{Q} of \bm{C}^{n} . 2. Interpolate : Use a pre-computed lookup table \mathcal{T} and multivariate linear interpolation to find the eigenvalues \lambda_{1},\lambda_{2},\lambda_{3} corresponding to c_{1},c_{2},c_{3} . 3. Reconstruct : Assemble the Lagrange multiplier tensor \bm{\lambda}^{n}=\bm{Q}\cdot\mathrm{diag}(\lambda_{1},\lambda_{2},\lambda_{3})\cdot\bm{Q}^{\top} . 4. Advance : Use an ODE solver to advance ( 45 ) to the next time step using \bm{C}^{n} and \bm{\lambda}^{n} . 5.4 Neural network-accelerated FENE-QE model (FENE-QE-NN) While PLA is effective, it is constrained by large storage requirements and potential interpolation errors, particularly in complex flow regimes. To overcome these limitations, we propose the FENE-QE-NN model, which replaces the lookup table and interpolation with a compact, continuously differentiable neural network. The objective is to construct a high-fidelity mapping \mathcal{N}_{\theta}:\mathbb{R}^{3}\to\mathbb{R}^{3} from the eigenvalues of the conformation tensor, \bm{c}=(c_{1},c_{2},c_{3}) , to the eigenvalues of the Lagrange multiplier tensor, \bm{\lambda}=(\lambda_{1},\lambda_{2},\lambda_{3}) . Dataset and Permutation Invariance High-quality training data is crucial. We generate a dataset \mathcal{D}=\{(\bm{c}^{(i)},\bm{\lambda}^{(i)})\}_{i=1}^{N} by solving the forward problem (mapping \bm{\lambda} to \bm{c} ) via high-precision numerical quadrature. A key physical constraint is the permutation invariance of the eigenvalues. To simplify the learning task and reduce redundancy, we enforce a canonical ordering, c_{1}\geq c_{2}\geq c_{3} , for all training inputs. This forces the network to learn the mapping on a fundamental sub-domain, thereby improving both training efficiency and prediction accuracy. The sampling space is restricted to the physically admissible region 0<\mathrm{tr}(\bm{C})<1 . Network Architecture We employ a standard Multi-Layer Perceptron (MLP) consisting of an input layer (3 neurons), two hidden layers (64 neurons each), and an output layer (3 neurons). Critically, we select the hyperbolic tangent ( tanh ) as the activation function. Unlike piecewise linear functions such as ReLU, the C^{\infty} smoothness of tanh ensures that the resulting constitutive law is smooth. This property is vital for the stability of numerical simulations, especially when stress derivatives are involved. Hybrid Optimization Strategy To achieve the high accuracy required for scientific computing (i.e., near machine precision), we adopt a two-stage hybrid optimization strategy that combines the strengths of first- and second-order methods: 1. Phase 1: Global Search (Adam) . The network is pre-trained using the Adam optimizer with a learning rate of 10^{-3} for approximately 1000 epochs. Adam’s robustness effectively guides the parameters toward the basin of a global minimum. 2. Phase 2: Local Refinement (L-BFGS) . After Adam converges, we switch to the L-BFGS optimizer. This quasi-Newton method leverages curvature information to achieve super-linear convergence, refining the solution to a tolerance of 10^{-9} . Additionally, both input and output data are standardized using Z-score normalization to improve training stability and convergence speed. Online Implementation Once trained, the lightweight network is embedded into the time-stepping solver. The procedure at each time step mirrors the PLA algorithm but replaces the interpolation step with a network forward pass: 1. Decompose \bm{C}^{n} into its eigenvalues \bm{c}^{n} and eigenvector matrix \bm{Q} . 2. Sort and normalize \bm{c}^{n} , then feed it into the trained network \mathcal{N}_{\theta} to predict the normalized \hat{\bm{\lambda}} . 3. Denormalize and reconstruct the tensor \bm{\lambda}^{n}=\bm{Q}\cdot\mathrm{diag}(\hat{\bm{\lambda}})\cdot\bm{Q}^{\top} . 4. Advance the ODE ( 45 ) using the computed \bm{\lambda}^{n} . 6 Numerical results and discussion 6.1 Validation of the spectral method We first validate the accuracy of the proposed spectral method using the Method of Manufactured Solutions (MMS). The weighted L_{\omega}^{2} error norm is defined as \|f\|_{L_{\omega}^{2}}=\left(\int_{\Sigma}\left(\frac{1-p}{2}\right)^{s}h^{2}(p,\theta,\varphi)\frac{\sqrt{1+p}}{4}\sin\theta\,\mathrm{d}p\mathrm{d}\theta\mathrm{d}\varphi\right)^{1/2}, (46) and the relative error is computed as E_{\omega}=\|f_{\text{num}}-f_{\text{exact}}\|_{L_{\omega}^{2}}/\|f_{\text{exact}}\|_{L_{\omega}^{2}} . To facilitate a rigorous error analysis, we construct an exact analytical solution of the form f_{\text{exact}}(\bm{q},t)=f_{eq}^{\bm{D}}(\bm{q})\exp(-1/t) . This requires introducing a corresponding source term S(\bm{q},t) to the right-hand side of the Fokker–Planck equation: S(\bm{q},t)=\frac{1}{t^{2}}f_{eq}^{\bm{D}}(\bm{q})\exp\left(-\frac{1}{t}\right). (47) The physical parameters are set to b=12.0 , s=6.0 , \mathrm{De}=24.0 , and the flow field is \bm{K}=\text{diag}(1,-1,0) . The convergence results are summarized in Table 1 . Table 1 : Convergence analysis of the Jacobi spectral method. Comparisons are made between the C^{1} -continuous basis (JG1) and the C^{\infty} -continuous basis (JGinf). Resolution JG1 ( C^{1} ) JGinf ( C^{\infty} ) DoF Error DoF Error M=N=10 726 8.76\times 10^{-2} 256 9.26\times 10^{-2} M=N=20 4,851 1.10\times 10^{-3} 1,661 1.37\times 10^{-3} M=N=30 14,383 3.40\times 10^{-6} 5,216 5.11\times 10^{-6} M=N=40 33,281 3.41\times 10^{-9} 11,921 6.30\times 10^{-9} The semi-log convergence curves are plotted in Figure 1 , demonstrating the expected spectral accuracy characteristic of spectral methods. Figure 1 : Spectral convergence of the relative L_{\omega}^{2} error with respect to the polynomial degree N . 6.2 Training performance of FENE-QE-NN The neural network surrogate model is trained using a dataset generated by high-precision numerical quadrature. The network architecture consists of two hidden layers with 64 neurons each. The optimization protocol involves 1000 epochs using the Adam optimizer (global search), followed by L-BFGS (local refinement) with a termination tolerance of 10^{-8} . The training data is generated with b=12.0 and \mathrm{De}=1.0 . Figure 2 : Training diagnostics of the FENE-QE-NN constitutive model. (a) Loss history (MSE) showing the transition from Adam to L-BFGS. (b) Parity plot of the predicted vs. true Lagrange multipliers \lambda on the validation set. As illustrated in Figure 2 (a), the two-stage optimization strategy proves highly effective. The Adam optimizer rapidly reduces the Mean Squared Error (MSE) to \mathcal{O}(10^{-3}) , locating the optimal basin of attraction. Subsequently, the L-BFGS optimizer leverages curvature information to achieve super-linear convergence, driving the loss down to \mathcal{O}(10^{-6}) . Figure 2 (b) assesses the generalization capability. The predictions for the Lagrange multiplier \lambda align perfectly with the ground truth along the y=x line. Notably, even in the high-nonlinearity regime where large \lambda corresponds to the polymer approaching its maximum extensibility ( \text{tr}(\bm{C})\to 1 ), the network maintains high fidelity. The validation MSE is 1.83\times 10^{-2} , ensuring sufficient accuracy for the subsequent derivative calculations required for the stress tensor. 6.3 Benchmark 1: Extensional flow We first consider a planar extensional flow defined by the velocity field \bm{u}=(\kappa x,-\kappa y,0) . We employ the high-fidelity spectral solution ( M=N=40 ) as the reference to benchmark the accuracy and efficiency of different methods. Table 2 : Comparison of computational cost and accuracy for different solvers. Method CPU Time (s) L^{2} Error Reference ( M=N=40 ) 568.15 – Spectral ( M=N=20 ) 63.07 3.32\times 10^{-7} FENE-P 0.002 6.77\times 10^{-2} FENE-QE-PLA 0.090 1.84\times 10^{-4} FENE-QE-NN 0.087 5.14\times 10^{-4} Table 2 highlights the significant speed-up achieved by the closure models. The FENE-QE-PLA and FENE-QE-NN methods are approximately 6500 times faster than the direct high-fidelity spectral solver while maintaining an error level of \mathcal{O}(10^{-4}) . Figures 3 and 4 compare the reconstructed CDFs. At low flow strengths ( \mathrm{De}=1,\kappa=1 ), all models agree well. However, as the flow strength increases (e.g., \mathrm{De}=1,\kappa=20 ), the exact CDF develops a distinct bimodal structure. The 1D slices clearly reveal that the FENE-P model, due to its pre-averaging approximation, produces a unimodal Gaussian-like distribution and completely fails to capture the double peaks. In contrast, both FENE-QE-PLA and FENE-QE-NN successfully reproduce the bimodal features, validating the effectiveness of the free-energy minimization assumption in extensional flows. (a) \mathrm{De}=1.0,\kappa=1.0 (b) \mathrm{De}=1.0,\kappa=10.0 (c) \mathrm{De}=1.0,\kappa=20.0 (d) \mathrm{De}=15.0,\kappa=2.0 Figure 3 : CDF contours for extensional flow under various conditions. (a) \mathrm{De}=1,\kappa=1 (b) \mathrm{De}=1,\kappa=10 (c) \mathrm{De}=1,\kappa=20 (d) \mathrm{De}=15,\kappa=2 Figure 4 : 1D cross-sections of the CDF comparing the exact solution with closure models. 6.4 Benchmark 2: Mixed shear and extensional flow and symmetry breaking We further introduce a shear component to the flow: \bm{u}=(x+\kappa y,-y,0) . The velocity gradient tensor is given by \bm{K}=\begin{pmatrix}1&\kappa&0\\ 0&-1&0\\ 0&0&0\end{pmatrix}. (48) Table 3 : L^{2} Error of closure models under mixed shear and extensional flow (Fixed \mathrm{De}=1.0 ). \kappa FENE-P FENE-QE-PLA FENE-QE-NN 1.0 6.78\times 10^{-2} 1.84\times 10^{-4} 3.36\times 10^{-4} 2.0 6.81\times 10^{-2} 4.65\times 10^{-4} 9.93\times 10^{-4} 5.0 7.06\times 10^{-2} 2.18\times 10^{-3} 2.72\times 10^{-3} 10.0 7.93\times 10^{-2} 7.42\times 10^{-3} 4.68\times 10^{-3} 20.0 1.12\times 10^{-1} 3.13\times 10^{-2} 2.10\times 10^{-2} Symmetry Breaking Table 3 indicates that as the shear rate \kappa increases, the accuracy of the FENE-QE-based models (both PLA and NN) degrades more noticeably compared to the pure extensional case. This phenomenon arises from the intrinsic symmetry limitations of the FENE-QE closure. The FENE-QE ansatz assumes the distribution function takes the form f_{\text{QE}}\propto(1-|\bm{q}|^{2})^{b/2}\exp(\bm{\lambda}:\bm{q}\bm{q}) . Since \bm{\lambda} is a symmetric tensor, f_{\text{QE}} possesses three mutually orthogonal planes of symmetry defined by the eigenvectors of \bm{\lambda} (or equivalently, \bm{C} ). However, the exact solution of the Fokker–Planck equation under strong shear flow does not necessarily satisfy this specific symmetry group. As visualized in Figure 5 , the true CDF exhibits a skewness that the quadratic exponential form of FENE-QE cannot fully capture. Numerical stability and regularization We specifically address the numerical stability in the high-Deborah-number limit. We observe that the standard FENE-QE model (via exact integration or PLA) exhibits severe stiffness when the polymer is highly stretched ( \text{tr}(\bm{C})\to 1 ). Mathematically, this stems from the ill-conditioning of the inverse mapping \bm{C}\mapsto\bm{\lambda} . While the forward map is smooth, the inverse map becomes singular near the boundary of the configuration space. As \text{tr}(\bm{C})\to 1 , the Lagrange multipliers \lambda_{i}\to\infty , causing the condition number of the Jacobian to diverge: \kappa(\mathcal{J})=\left\|\frac{\partial\bm{\lambda}}{\partial\bm{C}}\right\|\left\|\left(\frac{\partial\bm{\lambda}}{\partial\bm{C}}\right)^{-1}\right\|\to\infty. (49) Consequently, small perturbations in \bm{C} (e.g., due to time-stepping truncation error) result in massive oscillations in \bm{\lambda} . The FENE-QE-NN model demonstrates superior robustness in this regime. This is attributed to two factors: 1. Smoothness: The Tanh activation function enforces C^{\infty} continuity, preventing the C^{0} kinks found in PLA which can trigger divergence. 2. Implicit regularization: Neural networks exhibit spectral bias , preferentially learning low-frequency functions. In the absence of infinite training data at the singularity, the network tends to smooth out the extreme asymptotic behavior of \bm{\lambda} near the boundary. This acts as an effective regularization, preventing the unphysical oscillations observed in the standard PLA approach. (a) \mathrm{De}=20.0,\kappa=1.0 (b) \mathrm{De}=1.0,\kappa=20.0 (c) 1D Slice(qx): \mathrm{De}=20,\kappa=1 (d) 1D Slice(qx): \mathrm{De}=1,\kappa=20 (e) 1D Slice(qy): \mathrm{De}=20,\kappa=1 (f) 1D Slice(qy): \mathrm{De}=1,\kappa=20 Figure 5 : CDF contours and cross-sections for mixed shear and extensional flow. 6.5 Benchmark 3: Mixed-flow test for FENE-P: microscopic vs. macroscopic accuracy We assess the performance of the FENE-P closure in a mixed-flow kinematics with the velocity-gradient tensor \bm{\kappa}=\begin{pmatrix}1&1&0\\ 0&-1&0\\ 0&0&0\end{pmatrix}. The errors are evaluated against the reference results, including the CDF L^{2} error, the shear stress error in \tau_{12} , and the absolute error of the first normal-stress difference N_{1} . The results are summarized in Table 4 . Overall, FENE-P exhibits a relatively large microscopic discrepancy: the CDF L^{2} error remains above the “95%” accuracy threshold for all tested De . Moreover, the macroscopic error increases markedly in stronger flows (larger De ), especially for N_{1} at De=10 , highlighting the limitation of the closure in highly elastic regimes. Nevertheless, for moderate elasticity (e.g., De=1,2 ), the errors in \tau_{12} and N_{1} are comparatively small and thus remain acceptable for engineering-level predictions where macroscopic quantities are of primary interest. Table 4 : Errors of FENE-P in mixed flow. De CDF L^{2} error Shear stress error \;(\tau_{12}) N_{1} abs. error 1 6.777661\times 10^{-2} 3.305862\times 10^{-3} 1.661804\times 10^{-2} 2 6.956758\times 10^{-2} 5.581815\times 10^{-3} 3.619042\times 10^{-2} 5 8.304386\times 10^{-2} 8.305585\times 10^{-3} 1.327803\times 10^{-1} 10 1.414949\times 10^{-1} 4.578891\times 10^{-3} 6.120807\times 10^{-1} Remark 6.1 (Numerical Definiteness) . In addition to accuracy limitations, we observed a numerical issue specific to the discrete FENE-P formulation: the computed conformation tensor (second moment) \mathbf{C} may lose positive definiteness in some runs. This indicates that standard discretizations of FENE-P do not automatically preserve the SPD property of \mathbf{C} , and stabilization/positivity-preserving treatments may be required in practice. 7 Conclusion In this paper, we have established and analyzed a rigorous deterministic framework for simulating dilute polymer solutions within a high-dimensional configuration space. Building upon our previous work, we introduced a fast Spectral-Galerkin method utilizing a basis constructed from mapped Jacobi polynomials and spherical harmonics. This approach effectively resolves the singularity of the FENE probability density function near the maximum extensibility limit while preserving spectral accuracy. We provided a comprehensive mathematical analysis, proving the long-term energy stability of the semi-implicit BDF2 time discretization scheme. Rigorous numerical benchmarks confirm that the proposed algorithm achieves exponential convergence, establishing it as a reliable reference tool for validating macroscopic constitutive models. Leveraging the high-fidelity data generated by our spectral solver, we conducted a systematic comparative study of closure approximations under complex flow conditions. Our results highlight the limitations of the classic FENE-P model, specifically its inability to capture the bimodal distribution of polymer configurations in strong extensional flows. Despite being less accurate than FENE-QE, the FENE-P model remains widely used in engineering practice due to its simplicity and its reasonably accurate predictions of key macroscopic stresses in weak-to-moderate flow regimes. In contrast, while the FENE-QE model demonstrates superior physical fidelity, we identified critical drawbacks in its standard PLA implementation: high computational cost and severe numerical stiffness arising from the ill-conditioned inverse mapping near the phase space boundary. To address these challenges, we proposed the FENE-QE-NN model, a data-driven closure that employs a deep neural network to approximate the mapping from the conformation tensor to the Lagrange multipliers. By utilizing smooth activation functions and a hybrid optimization strategy, our model not only retains the thermodynamic consistency and accuracy of the FENE-QE closure but also achieves computational efficiency comparable to the FENE-P model. Furthermore, we demonstrated that the neural network exhibits an intrinsic regularization effect, effectively smoothing the singularity that compromises traditional methods, thereby significantly enhancing numerical robustness in high-Deborah-number regimes. This work suggests several promising avenues for future research. A natural extension is to apply this framework to non-homogeneous flows, such as 1+3D or 2+3D systems, where spatial variations are significant. In this context, the spectral element method would be an ideal candidate for physical space discretization to maintain high-order accuracy. Secondly, regarding closure approximations, the accuracy of the FENE-QE model could be further improved by incorporating higher-order moment information, such as constraints on fourth-order moments, to better capture non-Gaussian features. Finally, given the demonstrated success of our neural network in solving this challenging inverse problem, we intend to explore more advanced architectures for data-driven model reduction. Our ultimate goal is to develop general-purpose machine learning surrogates that serve as universal constitutive laws for complex fluids, bridging the gap between micro-scale kinetic theory and macro-scale continuum mechanics. Appendix A Formula for Evaluating D_{ij} To evaluate D_{ij} , we provide subroutines to calculate the angular interaction matrices U_{ij} , V_{ij} , and W_{ij} . We decompose these integrals into polar components ( F matrices) and azimuthal components ( E matrices). A.1 Azimuthal Sub-matrices ( E ) The azimuthal integrals involve the basis functions e_{m}^{\nu}(\varphi) . We define the following sparse sub-matrices: \displaystyle(E_{00})_{\nu m}^{\nu^{\prime}m^{\prime}} \displaystyle=(e_{m}^{\nu},e_{m^{\prime}}^{\nu^{\prime}})=\delta_{\nu\nu^{\prime}}\delta_{mm^{\prime}}, (50) \displaystyle(E_{01})_{\nu m}^{\nu^{\prime}m^{\prime}} \displaystyle=(e_{m}^{\nu},e_{m^{\prime}}^{\nu^{\prime}}\cos\varphi), (51) \displaystyle(E_{11})_{\nu m}^{\nu^{\prime}m^{\prime}} \displaystyle=(e_{m}^{\nu},e_{m^{\prime}}^{\nu^{\prime}}\sin\varphi), (52) \displaystyle(E_{02})_{\nu m}^{\nu^{\prime}m^{\prime}} \displaystyle=(e_{m}^{\nu},e_{m^{\prime}}^{\nu^{\prime}}\cos 2\varphi), (53) \displaystyle(E_{12})_{\nu m}^{\nu^{\prime}m^{\prime}} \displaystyle=(e_{m}^{\nu},e_{m^{\prime}}^{\nu^{\prime}}\sin 2\varphi). (54) Additionally, terms involving the derivative \partial_{\varphi} are defined as: \displaystyle(E_{00}^{\prime})_{\nu m}^{\nu^{\prime}m^{\prime}} \displaystyle=(e_{m}^{\nu},\partial_{\varphi}e_{m^{\prime}}^{\nu^{\prime}}), (55) \displaystyle(E_{01}^{\prime})_{\nu m}^{\nu^{\prime}m^{\prime}} \displaystyle=(e_{m}^{\nu},\partial_{\varphi}e_{m^{\prime}}^{\nu^{\prime}}\cos\varphi), (56) \displaystyle(E_{11}^{\prime})_{\nu m}^{\nu^{\prime}m^{\prime}} \displaystyle=(e_{m}^{\nu},\partial_{\varphi}e_{m^{\prime}}^{\nu^{\prime}}\sin\varphi), (57) \displaystyle(E_{02}^{\prime})_{\nu m}^{\nu^{\prime}m^{\prime}} \displaystyle=(e_{m}^{\nu},\partial_{\varphi}e_{m^{\prime}}^{\nu^{\prime}}\cos 2\varphi), (58) \displaystyle(E_{12}^{\prime})_{\nu m}^{\nu^{\prime}m^{\prime}} \displaystyle=(e_{m}^{\nu},\partial_{\varphi}e_{m^{\prime}}^{\nu^{\prime}}\sin 2\varphi). (59) These matrices are all sparse, with non-zero values only when m=|m^{\prime}\pm 1| or m=m^{\prime},|m^{\prime}\pm 2| . A.2 Polar Sub-matrices ( F ) The polar integrals involve the normalized associated Legendre polynomials \bar{P}_{l}^{m}(\cos\theta) . We define: \displaystyle(F_{00})_{lm}^{l^{\prime}m^{\prime}} \displaystyle=(\bar{P}_{l}^{m},\bar{P}_{l^{\prime}}^{m^{\prime}})_{\sin\theta}, (60) \displaystyle(F_{01})_{lm}^{l^{\prime}m^{\prime}} \displaystyle=(\bar{P}_{l}^{m},\bar{P}_{l^{\prime}}^{m^{\prime}}\frac{\cos\theta}{\sin\theta})_{\sin\theta}, (61) \displaystyle(F_{02})_{lm}^{l^{\prime}m^{\prime}} \displaystyle=(\bar{P}_{l}^{m},\bar{P}_{l^{\prime}}^{m^{\prime}}\cos 2\theta)_{\sin\theta}, (62) \displaystyle(F_{12})_{lm}^{l^{\prime}m^{\prime}} \displaystyle=(\bar{P}_{l}^{m},\bar{P}_{l^{\prime}}^{m^{\prime}}\sin 2\theta)_{\sin\theta}. (63) And the derivative terms involving \partial_{\theta} : \displaystyle(F_{00}^{\prime})_{lm}^{l^{\prime}m^{\prime}} \displaystyle=(\bar{P}_{l}^{m},\partial_{\theta}\bar{P}_{l^{\prime}}^{m^{\prime}})_{\sin\theta}, (64) \displaystyle(F_{02}^{\prime})_{lm}^{l^{\prime}m^{\prime}} \displaystyle=(\bar{P}_{l}^{m},\partial_{\theta}\bar{P}_{l^{\prime}}^{m^{\prime}}\cos 2\theta)_{\sin\theta}, (65) \displaystyle(F_{12}^{\prime})_{lm}^{l^{\prime}m^{\prime}} \displaystyle=(\bar{P}_{l}^{m},\partial_{\theta}\bar{P}_{l^{\prime}}^{m^{\prime}}\sin 2\theta)_{\sin\theta}. (66) These matrices depend on l and l^{\prime} but are independent of \nu and \nu^{\prime} . The values are non-zero only for |l-l^{\prime}|\leq 2 . A.3 Assembly of U,V,W Using the sub-matrices defined above, the components of the angular matrices are assembled as follows: 1. Matrices U_{ij} (Geometric terms from r_{i}r_{j} ) \displaystyle(U_{11}) \displaystyle=\frac{1}{4}(F_{00}-F_{02})(E_{00}+E_{02}), \displaystyle(U_{22}) \displaystyle=\frac{1}{4}(F_{00}-F_{02})(E_{00}-E_{02}), \displaystyle(U_{33}) \displaystyle=\frac{1}{2}(F_{00}+F_{02})\delta_{\nu m}^{\nu^{\prime}m^{\prime}}, \displaystyle(U_{12}) \displaystyle=(U_{21})=\frac{1}{4}(F_{00}-F_{02})(E_{12}), \displaystyle(U_{13}) \displaystyle=(U_{31})=\frac{1}{2}(F_{12})(E_{01}), \displaystyle(U_{23}) \displaystyle=(U_{32})=\frac{1}{2}(F_{12})(E_{11}). 2. Matrices V_{ij} (Terms with \partial_{\theta} ) \displaystyle(V_{11}) \displaystyle=\frac{1}{4}(F_{12}^{\prime})(E_{00}+E_{02}), \displaystyle(V_{22}) \displaystyle=\frac{1}{4}(F_{12}^{\prime})(E_{00}-E_{02}), \displaystyle(V_{33}) \displaystyle=-\frac{1}{2}(F_{12}^{\prime})\delta_{\nu m}^{\nu^{\prime}m^{\prime}}, \displaystyle(V_{12}) \displaystyle=(V_{21})=\frac{1}{4}(F_{12}^{\prime})(E_{12}), \displaystyle(V_{13}) \displaystyle=\frac{1}{2}(F_{00}^{\prime}+F_{02}^{\prime})(E_{01}), \displaystyle(V_{23}) \displaystyle=\frac{1}{2}(F_{00}^{\prime}+F_{02}^{\prime})(E_{11}), \displaystyle(V_{31}) \displaystyle=-\frac{1}{2}(F_{00}^{\prime}-F_{02}^{\prime})(E_{01}), \displaystyle(V_{32}) \displaystyle=-\frac{1}{2}(F_{00}^{\prime}-F_{02}^{\prime})(E_{11}). 3. Matrices W_{ij} (Terms with \partial_{\varphi} ) \displaystyle(W_{11}) \displaystyle=-\frac{1}{2}(F_{00})(E_{12}^{\prime}), \displaystyle(W_{22}) \displaystyle=-W_{11}, \displaystyle(W_{3j}) \displaystyle=0, \displaystyle(W_{12}) \displaystyle=-\frac{1}{2}(F_{00})(E_{00}^{\prime}-E_{02}^{\prime}), \displaystyle(W_{21}) \displaystyle=\frac{1}{2}(F_{00})(E_{00}^{\prime}+E_{02}^{\prime}), \displaystyle(W_{13}) \displaystyle=-(F_{01})(E_{11}^{\prime}), \displaystyle(W_{23}) \displaystyle=(F_{01})(E_{01}^{\prime}). Since all constituent matrices E and F are block-banded with bandwidths of at most 2, the resulting matrices U,V,W are guaranteed to be sparse.