{"id":91532,"date":"2025-05-11T01:53:13","date_gmt":"2025-05-11T01:53:13","guid":{"rendered":"https:\/\/www.europesays.com\/uk\/91532\/"},"modified":"2025-05-11T01:53:13","modified_gmt":"2025-05-11T01:53:13","slug":"jax-bte-a-gpu-accelerated-differentiable-solver-for-phonon-boltzmann-transport-equations","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/uk\/91532\/","title":{"rendered":"JAX-BTE: a GPU-accelerated differentiable solver for phonon Boltzmann transport equations"},"content":{"rendered":"<p>Phonon BTE<\/p>\n<p>The phonon BTE describes the evolution of phonon distributions over time in a system. For a system with a heat source at steady state, the energy-based phonon BTE under the single mode relaxation time approximation can be expressed as<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 66\" title=\"Ziman, J. M. Electrons and Phonons: The Theory of Transport Phenomena in Solids (Clarendon, 2001).\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#ref-CR66\" id=\"ref-link-section-d332762491e1425\" target=\"_blank\" rel=\"noopener\">66<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 60\" title=\"Loy, J. M., Murthy, J. Y. &amp; Singh, D. A fast hybrid Fourier&#x2013;Boltzmann transport equation solver for nongray phonon transport. J. Heat Transf. 135, 011008 (2013).\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#ref-CR60\" id=\"ref-link-section-d332762491e1428\" target=\"_blank\" rel=\"noopener\">60<\/a>:<\/p>\n<p>$${\\boldsymbol{v}}\\cdot \\nabla e=\\frac{e-{e}^{0}}{\\tau }+Q,$$<\/p>\n<p>\n                    (1)\n                <\/p>\n<p>where e(<b>x<\/b>, <b>s<\/b>, \u03c9, p) is the phonon energy distribution function, which depends on spatial position <b>x<\/b>, directional unit vector <b>s<\/b>, phonon frequency \u03c9, and phonon branch p. <b>v<\/b>(\u03c9, p) is the group velocity, and \u03c4(\u03c9, p) is the relaxation time, which can be obtained for all phonons at different \u03c9 and p using first-principles Density Functional Theory (DFT) calculations. Q represents the volumetric heat source intensity, and e0(<b>x<\/b>) is the equilibrium part of the distribution function. According to energy conservation, e0 is related to e through<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 67\" title=\"Bhatnagar, P. L., Gross, E. P. &amp; Krook, M. A model for collision processes in gases. I. Small amplitude processes in charged and neutral one-component systems. Phys. Rev. 94, 511 (1954).\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#ref-CR67\" id=\"ref-link-section-d332762491e1570\" target=\"_blank\" rel=\"noopener\">67<\/a>:<\/p>\n<p>$${e}^{0}=\\frac{1}{4\\pi }C{T}_{L},$$<\/p>\n<p>\n                    (2)\n                <\/p>\n<p>$${T}_{L}=\\frac{{\\int}_{4\\pi }{\\sum }_{p}{\\int}_{\\omega }\\frac{e}{\\tau }d\\omega d\\Omega }{{\\sum }_{p}{\\int}_{\\omega }\\frac{C}{\\tau }d\\omega },$$<\/p>\n<p>\n                    (3)\n                <\/p>\n<p>where C(\u03c9, p) is the volumetric heat capacity for a given phonon mode, TL is the lattice temperature, and \u03a9 is the solid angle in spherical coordinates. The heat flux can be calculated by:<\/p>\n<p>$${\\bf{q}}={\\int}_{4\\pi }\\sum _{p}{\\int}_{\\omega }{\\bf{v}}ed\\omega d\\Omega .$$<\/p>\n<p>\n                    (4)\n                <\/p>\n<p>Boundary conditions<\/p>\n<p>For the JAX-BTE solver, three built-in boundary conditions commonly used in phonon BTE simulations<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 57\" title=\"Guo, Z. &amp; Xu, K. Discrete unified gas kinetic scheme for multiscale heat transfer based on the phonon Boltzmann transport equation. Int. J. Heat. Mass Transf. 102, 944&#x2013;958 (2016).\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#ref-CR57\" id=\"ref-link-section-d332762491e1907\" target=\"_blank\" rel=\"noopener\">57<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 58\" title=\"Luo, Xiao-Ping &amp; Yi, Hong-Liang A discrete unified gas kinetic scheme for phonon Boltzmann transport equation accounting for phonon dispersion and polarization. Int. J. Heat. Mass Transf. 114, 970&#x2013;980 (2017).\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#ref-CR58\" id=\"ref-link-section-d332762491e1910\" target=\"_blank\" rel=\"noopener\">58<\/a> are implemented.<\/p>\n<p>Isothermal boundary<\/p>\n<p>This boundary absorbs all incoming phonons and emits phonons in thermal equilibrium at a specific temperature T back into the simulation domain. This can be described as:<\/p>\n<p>$$e\\left({{\\boldsymbol{x}}}_{b},{\\boldsymbol{s}},\\omega ,p\\right)=\\frac{C}{4\\pi }T,\\,{\\boldsymbol{s}}\\cdot {{\\boldsymbol{n}}}_{b} \\,<\/p>\n<p>\n                    (5)\n                <\/p>\n<p>where <b>x<\/b>b is the position at the boundary and <b>n<\/b>b is the outward-pointing normal unit vector at the boundary.<\/p>\n<p>Diffusely reflecting boundary<\/p>\n<p>This adiabatic boundary reflects phonons leaving the simulation domain with equal probability in all possible directions pointing into the simulation domain. According to energy conservation, it is represented as:<\/p>\n<p>$$e\\left({{\\boldsymbol{x}}}_{b},{\\boldsymbol{s}},\\omega ,p\\right)=\\frac{1}{\\pi }{\\int}_{{{\\boldsymbol{s}}}^{{\\prime} }\\cdot {{\\boldsymbol{n}}}_{b}\\ &gt; \\ 0}e\\left({{\\boldsymbol{x}}}_{b},{{\\boldsymbol{s}}}^{{\\prime} },\\omega ,p\\right)\\left\\vert {{\\boldsymbol{s}}}^{{\\prime} }\\cdot {{\\boldsymbol{n}}}_{b}\\right\\vert d\\Omega ,\\,{\\boldsymbol{s}}\\cdot {{\\boldsymbol{n}}}_{b}\\,<\/p>\n<p>\n                    (6)\n                <\/p>\n<p>where \\({{\\boldsymbol{s}}}^{{\\prime} }\\) are all angles that point out of the domain and the use of this boundary condition implies a rough surface.<\/p>\n<p>Specularly reflecting boundary<\/p>\n<p>Another adiabatic boundary condition, specular reflecting boundaries assumes phonons reflect as if from a mirror, where the phonon energy along the reflected angle is equal to that of the incident angle:<\/p>\n<p>$$e\\left({{\\boldsymbol{x}}}_{b},{\\boldsymbol{s}},\\omega ,p\\right)=e\\left({{\\boldsymbol{x}}}_{b},{{\\boldsymbol{s}}}^{{\\prime} },\\omega ,p\\right),\\,{\\boldsymbol{s}}\\cdot {{\\boldsymbol{n}}}_{b}\\,<\/p>\n<p>\n                    (7)\n                <\/p>\n<p>where \\({{\\boldsymbol{s}}}^{{\\prime} }={\\boldsymbol{s}}-2{{\\boldsymbol{n}}}_{b}({\\boldsymbol{s}}\\cdot {{\\boldsymbol{n}}}_{b})\\) is the reflected phonon direction. This boundary condition assumes a perfectly smooth surface.<\/p>\n<p>Band discretization<\/p>\n<p>For discretizing phonon energy in the frequency and polarization domains, the wave vector space is divided into n equidistant intervals [K0, \u2026, Kn], referred to as bands, where K0 is the minimum wave vector and Kn is the maximum wave vector. For each wave vector interval, phonon properties such as heat capacity, relaxation time, and group velocity are calculated by weighted averaging these properties within the interval (i.e., within each band). Specifically, for each band, the representative phonon properties are given by<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 63\" title=\"Hu, Y. et al. GiftBTE: an efficient deterministic solver for non-gray phonon Boltzmann transport equation. J. Phys. Condens. Matter 36, 025901 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#ref-CR63\" id=\"ref-link-section-d332762491e2594\" target=\"_blank\" rel=\"noopener\">63<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 68\" title=\"Hu, Y. et al. Unification of nonequilibrium molecular dynamics and the mode-resolved phonon Boltzmann equation for thermal transport simulations. Phys. Rev. B 101, 155308 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#ref-CR68\" id=\"ref-link-section-d332762491e2597\" target=\"_blank\" rel=\"noopener\">68<\/a>:<\/p>\n<p>$${C}_{\\lambda }=\\mathop{\\sum }\\limits_{k &gt; {K}_{n-1}}^{{K}_{n}}C,$$<\/p>\n<p>\n                    (8)\n                <\/p>\n<p>$${{\\boldsymbol{v}}}_{\\lambda }=\\frac{\\mathop{\\sum }\\nolimits_{k\\ &gt; \\ {K}_{n-1}}^{{K}_{n}}C{\\boldsymbol{v}}}{\\mathop{\\sum }\\nolimits_{k\\ &gt; \\ {K}_{n-1}}^{{K}_{n}}C},$$<\/p>\n<p>\n                    (9)\n                <\/p>\n<p>$${\\tau }_{\\lambda }=\\frac{\\mathop{\\sum }\\nolimits_{k\\ &gt; \\ {K}_{n-1}}^{{K}_{n}}C{v}^{2}\\tau }{{{\\boldsymbol{v}}}_{\\lambda }\\mathop{\\sum }\\nolimits_{k\\ &gt; \\ {K}_{n-1}}^{{K}_{n}}Cv},$$<\/p>\n<p>\n                    (10)\n                <\/p>\n<p>$${Q}_{\\lambda }=\\frac{{C}_{\\lambda }Q}{{\\sum }_{\\lambda }{C}_{\\lambda }},$$<\/p>\n<p>\n                    (11)\n                <\/p>\n<p>where \u03bb is the index of the phonon band and k is the wave vector. The original integral equation of frequency is transformed into a summation form:<\/p>\n<p>$$\\mathop{\\sum}\\limits_{p}{\\int}_{\\omega }\\frac{e}{\\tau }d\\omega =\\mathop{\\sum}\\limits_{\\lambda }\\frac{{e}_{\\lambda }}{{\\tau }_{\\lambda }}\\,,$$<\/p>\n<p>\n                    (12)\n                <\/p>\n<p>$$\\mathop{\\sum}\\limits_{p}{\\int}_{\\omega }\\frac{C}{\\tau }d\\omega =\\mathop{\\sum}\\limits_{\\lambda }\\frac{{C}_{\\lambda }}{{\\tau }_{\\lambda }}\\,.$$<\/p>\n<p>\n                    (13)\n                <\/p>\n<p>Angle discretization<\/p>\n<p>The angle discretization transforms the integration over directional space into a weighted summation<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 35\" title=\"Li, R., Lee, E. &amp; Luo, T. Physics-informed neural networks for solving multiscale mode-resolved phonon Boltzmann transport equation. Mater. Today Phys. 19, 100429 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#ref-CR35\" id=\"ref-link-section-d332762491e3365\" target=\"_blank\" rel=\"noopener\">35<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 57\" title=\"Guo, Z. &amp; Xu, K. Discrete unified gas kinetic scheme for multiscale heat transfer based on the phonon Boltzmann transport equation. Int. J. Heat. Mass Transf. 102, 944&#x2013;958 (2016).\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#ref-CR57\" id=\"ref-link-section-d332762491e3368\" target=\"_blank\" rel=\"noopener\">57<\/a>:<\/p>\n<p>$${\\int}_{4\\pi }{e}_{\\lambda }d\\Omega =\\mathop{\\int}\\nolimits_{0}^{\\pi }\\mathop{\\int}\\nolimits_{0}^{2\\pi }{e}_{\\lambda }sin\\theta d\\theta d\\varphi =\\sum _{\\alpha }{\\beta }_{{\\theta }_{\\alpha }}{\\beta }_{{\\varphi }_{\\alpha }}sin{\\theta }_{\\alpha }{e}_{\\alpha ,\\lambda }=\\sum _{\\alpha }{\\beta }_{\\alpha }{e}_{\\alpha ,\\lambda }.$$<\/p>\n<p>\n                    (14)\n                <\/p>\n<p>Here \u03b8 is the polar angle and \u03c6 is the azimuthal angle. \u03b1 is the index for the sampled direction <b>s<\/b>\u03b1 = (cos\u03b8, sin\u03b8cos\u03c6, sin\u03b8sin\u03c6). The weights \\({\\beta }_{{\\theta }_{\\alpha }}\\) and \\({\\beta }_{{\\varphi }_{\\alpha }}\\), as well as their corresponding directions, are calculated using Gauss-Legendre quadrature to achieve high numerical accuracy with reduced computational cost. The final weight of the phonon energy in direction \u03b1 and band \u03bb, e\u03b1,\u03bb, is given as \\({\\beta }_{\\alpha }={\\beta }_{{\\theta }_{\\alpha }}{\\beta }_{{\\varphi }_{\\alpha }}sin{\\theta }_{\\alpha }\\).<\/p>\n<p>Spatial discretization<\/p>\n<p>After applying band and angular discretization, the phonon BTE in its steady-state form becomes:<\/p>\n<p>$${{\\boldsymbol{v}}}_{\\lambda }\\cdot \\nabla {e}_{\\alpha ,\\lambda }=-\\frac{{e}_{\\alpha ,\\lambda }-{e}_{\\lambda }^{0}}{{\\tau }_{\\lambda }}+{Q}_{\\lambda }$$<\/p>\n<p>\n                    (15)\n                <\/p>\n<p>where \u03bb is the index of the band and \u03b1 is the angle index. The equilibrium energy is represented by:<\/p>\n<p>$$\\begin{array}{l}{e}_{\\lambda }^{0}=\\frac{1}{4\\pi }{C}_{\\lambda }{T}_{L},\\\\ {T}_{L}=\\frac{{\\sum }_{\\lambda }{\\sum }_{\\alpha }{\\omega }_{\\alpha }\\frac{{e}_{\\alpha ,\\lambda }}{{\\tau }_{\\lambda }}}{{\\sum }_{\\lambda }\\frac{{C}_{\\lambda }}{{\\tau }_{\\lambda }}}.\\end{array}$$<\/p>\n<p>\n                    (16)\n                <\/p>\n<p>The finite volume method (FVM) is employed to spatially discretize the equation. Namely, by dividing the computational domain into discrete control volumes (cells), and the equation is solved by balancing the energy fluxes across the boundaries of each control volume. The governing equation is integrated over the volume of each cell, transforming the spatial derivative into surface integrals across the cell faces. For a control volume i, the discretized form of the BTE becomes,<\/p>\n<p>$$\\sum _{j\\in N(i)}{{\\boldsymbol{v}}}_{i,\\lambda }\\cdot {{\\boldsymbol{n}}}_{ij}{S}_{ij}{e}_{ij,\\alpha ,\\lambda }=-\\frac{{e}_{i,\\alpha ,\\lambda }-{e}_{i,\\lambda }^{0}}{{\\tau }_{i,\\lambda }}{V}_{i}+{Q}_{i,\\lambda }{V}_{i},$$<\/p>\n<p>\n                    (17)\n                <\/p>\n<p>where Vi is the volume of the cell i and N(i) is the list of neighboring cells of cell i, Sij is the area of the interface between cell i and cell j, <b>n<\/b>ij is the outward-facing normal vector at the interface, and eij,\u03b1,\u03bb is the phonon energy at the interface, which is computed using upwind scheme to ensure numerical stability,<\/p>\n<p>$${e}_{ij,\\alpha ,\\lambda }={e}^{{\\prime} }+\\nabla {e}^{{\\prime} }\\cdot {d}_{ij}^{{\\prime} },$$<\/p>\n<p>\n                    (18)\n                <\/p>\n<p>where \\({e}^{{\\prime} }\\) and \\(\\nabla {e}^{{\\prime} }\\) are the phonon energy density and its gradient in the cell from the upwind direction (<b>s<\/b> \u22c5 <b>n<\/b> &gt; 0), while \\({d}_{ij}^{{\\prime} }\\) is the vector from the center of the upwind cell to the center of interface ij. The gradient \\(\\nabla {e}^{{\\prime} }\\) is numerically computed using the Green-Gauss method.<\/p>\n<p>Directly solving the full system of algebraic equations (Eq. (<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#Equ17\" target=\"_blank\" rel=\"noopener\">17<\/a>)) is computationally challenging and unstable due to the presence of the equilibrium energy term, which is a function of the integral of the phonon energy distribution across all directions and bands. To address this, the system is solved iteratively with pseudo-time stepping. Namely, at each iteration (i.e., pseudo-time step) n + 1, the phonon energy distribution is updated based on the changes (or increments) from the previous iteration n. As a result, Eq. (<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#Equ17\" target=\"_blank\" rel=\"noopener\">17<\/a>) can be reformulated in its incremental form,<\/p>\n<p>$$\\frac{{\\Delta }{e}_{i,\\alpha ,\\lambda}^{n+1}}{{\\tau}_{i,\\lambda}}+\\frac{1}{{V}_{i}}\\sum _{j\\in N\\left(i\\right)}\\Delta {e}_{ij,\\alpha ,\\lambda }^{n+1}{{\\boldsymbol{v}}}_{i,\\lambda }\\cdot {{\\boldsymbol{n}}}_{ij}{S}_{ij}=-\\frac{1}{{V}_{i}}\\sum _{j\\in N\\left(i\\right)}{e}_{ij,\\alpha ,\\lambda }^{n}{{\\boldsymbol{v}}}_{i,\\lambda }\\cdot {{\\boldsymbol{n}}}_{ij}{S}_{ij}-\\frac{{e}_{i,\\alpha ,\\lambda }^{n}-{e}_{i,\\lambda }^{n,0}}{{\\tau }_{i,\\lambda }}+{Q}_{i,\\lambda }$$<\/p>\n<p>\n                    (19)\n                <\/p>\n<p>where \u0394en+1 = en+1 \u2212 en is the incremental update of phonon energy density between iterations. This incremental form allows for gradual convergence towards the steady-state solution, ensuring numerical stability and avoiding sharp changes in the solution.<\/p>\n<p>Iterative matrix formulation and solution scheme<\/p>\n<p>Once the element-wise algebraic equations (<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#Equ19\" target=\"_blank\" rel=\"noopener\">19<\/a>) for the discretized BTE have been established, it is advantageous to express these equations in matrix form. Each cell-wise equation can be represented as a linear combination of the unknown phonon energy difference \u0394en, leading to a system of linear equations for all cells under each band-angle combination. This matrix representation facilitates the use of GPU computing, enabling batch processing of the equations and significantly accelerating the simulation. Specifically, the matrix form is expressed as follows:<\/p>\n<p>$${{\\boldsymbol{A}}}_{\\alpha ,\\lambda }\\Delta {e}_{\\alpha ,\\lambda \\,}^{n+1}={{\\boldsymbol{b}}}_{\\alpha ,\\lambda }^{n},$$<\/p>\n<p>\n                    (20)\n                <\/p>\n<p>where <b>A<\/b>\u03b1,\u03bb is the stiffness matrix for angle \u03b1 and band \u03bb, which has the dimensions of Nc \u00d7 Nc, with Nc being the total number of cells. The diagonal and off-diagonal elements of the matrix are given by:<\/p>\n<p>$$\\begin{array}{l}{A}_{ii,\\alpha ,\\lambda }=\\frac{1}{{\\tau }_{i,\\lambda }}+\\mathop{\\sum}\\limits_{j\\in N\\left(i\\right)}\\frac{1}{{V}_{i}}{{\\boldsymbol{v}}}_{i,\\lambda }\\cdot {{\\boldsymbol{n}}}_{ij}H\\left({{\\boldsymbol{v}}}_{i,\\lambda }\\cdot {{\\boldsymbol{n}}}_{ij}\\right){S}_{ij},\\\\ {A}_{ij,\\alpha ,\\lambda }=\\frac{1}{{V}_{i}}{{\\boldsymbol{v}}}_{i,\\lambda }\\cdot {{\\boldsymbol{n}}}_{ij}H\\left({-{\\boldsymbol{v}}}_{i,\\lambda }\\cdot {{\\boldsymbol{n}}}_{ij}\\right),\\end{array}$$<\/p>\n<p>\n                    (21)\n                <\/p>\n<p>where H(\u22c5) is the Heaviside step function. The right-side vector <b>b<\/b>n is expressed as:<\/p>\n<p>$$\\begin{array}{ll}{b}_{i,\\alpha ,\\lambda }^{n}=-\\mathop{\\sum}\\limits_{j\\in N\\left(i\\right)}\\frac{1}{{V}_{i}}{{\\boldsymbol{v}}}_{i,\\lambda }\\cdot {{\\boldsymbol{n}}}_{ij}H\\left({{\\boldsymbol{v}}}_{i,\\lambda }\\cdot {{\\boldsymbol{n}}}_{ij}\\right){S}_{ij}\\left({e}_{i,\\alpha ,\\lambda }^{n}+\\nabla {e}_{i,\\alpha ,\\lambda }^{n}\\cdot {{\\boldsymbol{d}}}_{i,ij}\\right)\\\\ \\qquad\\quad\\,\\,\\,-\\mathop{\\sum}\\limits_{j\\in N\\left(i\\right)}\\frac{1}{{V}_{i}}{{\\boldsymbol{v}}}_{i,\\lambda }\\cdot {{\\boldsymbol{n}}}_{ij}H\\left({-{\\boldsymbol{v}}}_{i,\\lambda }\\cdot {{\\boldsymbol{n}}}_{ij}\\right){S}_{ij}\\left({e}_{j,\\alpha ,\\lambda }^{n}+\\nabla {e}_{j,\\alpha ,\\lambda }^{n}\\cdot {{\\boldsymbol{d}}}_{j,ij}\\right)\\\\ \\qquad\\quad\\,\\,\\,-\\frac{{e}_{i,\\alpha ,\\lambda }^{n}}{{\\tau }_{i,\\lambda }}+\\frac{{e}_{i,\\alpha ,\\lambda }^{n,0}}{{\\tau }_{i,\\lambda }}+{Q}_{i,\\lambda }.\\end{array}$$<\/p>\n<p>\n                    (22)\n                <\/p>\n<p>In these equations, the stiffness matrix <b>A<\/b>\u03b1,\u03bb depends only on material properties and mesh topology, and thus remains unchanged throughout the simulation process. The vector \\({{\\boldsymbol{b}}}_{\\alpha ,\\lambda }^{n}\\), however, needs to be re-evaluated at each iteration after updating the phonon energy density. To solve the linear system, the bi-conjugate gradient (Bi-CG) method is employed, with a Jacobi preconditioner to improve convergence.<\/p>\n<p>In the iterative solver, the initial phonon energy density is calculated based on the given initial temperature. For each iteration, both the equilibrium energy density and phonon energy density are updated using equation (<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#Equ3\" target=\"_blank\" rel=\"noopener\">3<\/a>). The complete solution procedure is summarized as follows<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 60\" title=\"Loy, J. M., Murthy, J. Y. &amp; Singh, D. A fast hybrid Fourier&#x2013;Boltzmann transport equation solver for nongray phonon transport. J. Heat Transf. 135, 011008 (2013).\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#ref-CR60\" id=\"ref-link-section-d332762491e6616\" target=\"_blank\" rel=\"noopener\">60<\/a>:<\/p>\n<ol class=\"u-list-style-none\">\n<li>\n                    1.<\/p>\n<p>Set initial equilibrium energy density e0 and phonon energy density e according to the initial temperature.<\/p>\n<\/li>\n<li>\n                    2.<\/p>\n<p>Solve the discretized form of the BTE according to the input boundary conditions to update phonon energy density e according to equation (<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#Equ19\" target=\"_blank\" rel=\"noopener\">19<\/a>).<\/p>\n<\/li>\n<li>\n                    3.<\/p>\n<p>Update e0 and T based on equation (<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#Equ16\" target=\"_blank\" rel=\"noopener\">16<\/a>).<\/p>\n<\/li>\n<li>\n                    4.<\/p>\n<p>Repeat step 2 and 3 until converge is achieved when the following criteria are satisfied,<\/p>\n<p>$$\\begin{array}{rlr}{\\epsilon }_{T}&amp;=\\sqrt{\\mathop{\\sum }\\limits_{i}^{N}\\frac{{\\left({T}_{i}^{n}-{T}_{i}^{n+1}\\right)}^{2}}{N}}\/{T}_{max} <\/p>\n<p>\n                    (23)\n                <\/p>\n<p>where N is the number of spatial cells, \\({\\tilde{\\epsilon }}_{T}\\) and \\(\\tilde{{\\epsilon }_{q}}\\) are user-defined target temperature residual and heat flux residual, repsectively.<\/p>\n<\/li>\n<\/ol>\n<p>Forward and inverse modeling workflow<\/p>\n<p>The workflow of the JAX-BTE solver for both forward and inverse simulations is illustrated in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#Fig9\" target=\"_blank\" rel=\"noopener\">9<\/a>. The process begins with the geometry configuration, typically represented as a mesh for spatial discretization. The computational mesh, along with material-specific phonon properties, often obtained from first-principles Density Functional Theory (DFT) calculations<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 69\" title=\"Tadano, T., Gohda, Y. &amp; Tsuneyuki, S. Anharmonic force constants extracted from first-principles molecular dynamics: applications to heat transfer simulations. J. Phys. Condens. Matter 26, 225402 (2014).\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#ref-CR69\" id=\"ref-link-section-d332762491e7156\" target=\"_blank\" rel=\"noopener\">69<\/a>, as well as other physical parameters, are fed as the input into the JAX-BTE solver for the forward simulations. Thanks to differentiable programming, inverse simulations can also be conducted if certain input information, such as transistor dimensions or heat source intensity, is unknown while additional measurement data are available. In the inverse setting, the unknowns are defined as trainable parameters, which can be \u201ctrained\u201d through the gradient-based optimization.<\/p>\n<p><b id=\"Fig9\" class=\"c-article-section__figure-caption\" data-test=\"figure-caption-text\">Fig. 9: Schematic of the forward and inverse JAX-BTE simulations.<\/b><a class=\"c-article-section__figure-link\" data-test=\"img-link\" data-track=\"click\" data-track-label=\"image\" data-track-action=\"view figure\" href=\"https:\/\/www.nature.com\/articles\/s41524-025-01635-0\/figures\/9\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" aria-describedby=\"Fig9\" src=\"https:\/\/www.europesays.com\/uk\/wp-content\/uploads\/2025\/05\/41524_2025_1635_Fig9_HTML.png\" alt=\"figure 9\" loading=\"lazy\" width=\"685\" height=\"263\"\/><\/a><\/p>\n<p>Red arrows indicate the forward simulation flow, while black arrows indicate the gradient flow for inverse modeling.<\/p>\n<p>Specifically, the core solver processes the inputs to perform the forward simulation, yielding outputs such as phonon energy distribution, temperature distributions and heat flux. As depicted in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41524-025-01635-0#Fig10\" target=\"_blank\" rel=\"noopener\">10<\/a>, within the solver, phonon energy densities are stored as a three-dimensional JAX tensor, with indices corresponding to the cell index, band index, and angular index. The solver also utilizes the owner and neighbor lists derived from the geometry to map the phonon energy tensors onto a graph that encodes the topological information of the computational mesh. Using this graph-based representation, the solver efficiently computes the phonon energy densities by solving the discretized algebraic equations in parallel using GPUs. This tensor-based parallelization enables efficient updates of the phonon energy distribution across both structured and unstructured meshes.<\/p>\n<p><b id=\"Fig10\" class=\"c-article-section__figure-caption\" data-test=\"figure-caption-text\">Fig. 10: Parallel strategy of the JAX-BTE solver.<\/b><a class=\"c-article-section__figure-link\" data-test=\"img-link\" data-track=\"click\" data-track-label=\"image\" data-track-action=\"view figure\" href=\"https:\/\/www.nature.com\/articles\/s41524-025-01635-0\/figures\/10\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" aria-describedby=\"Fig10\" src=\"https:\/\/www.europesays.com\/uk\/wp-content\/uploads\/2025\/05\/41524_2025_1635_Fig10_HTML.png\" alt=\"figure 10\" loading=\"lazy\" width=\"685\" height=\"524\"\/><\/a><\/p>\n<p>Phonon energy is stored as a 3D JAX tensor. Owner and neighbor lists are used for the construction of graph-based data structure for efficient GPU computing.<\/p>\n<p>For inverse modeling tasks, the JAX-BTE solver facilitates the optimization of unknown or uncertain input parameters by comparing simulated results with experimental measurements. These parameters could include material properties, geometric variables, or heat source intensities. The inverse problem is formulated as an optimization problem, where the objective is to minimize a loss function that quantifies the difference between the simulation outputs (e.g., temperature or heat flux) and the corresponding measured data. Given that JAX-BTE is fully differentiable, the loss function can be expressed as a function of the trainable parameters, and its gradient with respect to these parameters is automatically computed through the AD capabilities of JAX. The differentiability feature in JAX-BTE is enabled by the JAX gradient tracking framework. While AD is used for flux calculations and gradient reconstruction, gradient propagation for implicit components, such as the BiCGSTAB solver, is handled through a discrete adjoint approach. Instead of naively applying AD to iterative steps, which would be computationally inefficient, JAX formulates an additional adjoint equation system and solves it using BiCGSTAB. This hybrid strategy leverages the flexibility of AD for explicit computations while utilizing adjoint methods for iterative solvers, ensuring efficient and scalable gradient tracking even for large-scale phonon BTE simulations. This gradient information enables the use of gradient-based optimization algorithms, such as stochastic gradient descent (SGD), Adam, or L-BFGS, to iteratively update the parameters and minimize the loss. The differentiability of the solver ensures that even complex, high-dimensional parameter spaces can be explored systematically, allowing for accurate recovery of unknown parameters or material properties in a physics-constrained setting.<\/p>\n","protected":false},"excerpt":{"rendered":"Phonon BTE The phonon BTE describes the evolution of phonon distributions over time in a system. For a&hellip;\n","protected":false},"author":2,"featured_media":91533,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3845],"tags":[43290,43292,12788,3968,22098,43291,11699,43293,43288,74,70,43289,11698,16,15],"class_list":{"0":"post-91532","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-physics","8":"tag-characterization-and-evaluation-of-materials","9":"tag-computational-intelligence","10":"tag-electrical-and-electronic-engineering","11":"tag-general","12":"tag-materials-science","13":"tag-mathematical-and-computational-engineering","14":"tag-mathematical-and-computational-physics","15":"tag-mathematical-modeling-and-industrial-mathematics","16":"tag-nanoscale-devices","17":"tag-physics","18":"tag-science","19":"tag-techniques-and-instrumentation","20":"tag-theoretical","21":"tag-uk","22":"tag-united-kingdom"},"share_on_mastodon":{"url":"https:\/\/pubeurope.com\/@uk\/114486706503806480","error":""},"_links":{"self":[{"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/posts\/91532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/comments?post=91532"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/posts\/91532\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/media\/91533"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/media?parent=91532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/categories?post=91532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/uk\/wp-json\/wp\/v2\/tags?post=91532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}