A.D. Sanchez , S. Chaitanya Kumar , M. Ebrahim-Zadeh
{"title":"基于 CUDA 的聚焦高斯光束二次谐波生成效率计算器","authors":"A.D. Sanchez , S. Chaitanya Kumar , M. Ebrahim-Zadeh","doi":"10.1016/j.cpc.2024.109232","DOIUrl":null,"url":null,"abstract":"<div><p>We present an object-oriented programming (OOP) CUDA-based package for fast and accurate simulation of second-harmonic generation (SHG) efficiency using focused Gaussian beams. The model includes linear as well as two-photon absorption that can ultimately lead to thermal lensing due to self-heating effects. Our approach speeds up calculations by nearly 40x (11x) without (with) temperature profiles with respect to an equivalent implementation using CPU. The package offers a valuable tool for experimental design and study of 3D field propagation in nonlinear three-wave interactions. It is useful for optimization of SHG-based experiments and mitigates undesired thermal effects, enabling improved oven designs and advanced device architectures, leading to stable, efficient high-power SHG.</p></div><div><h3>Program summary</h3><p><em>Program Title:</em> <span>cuSHG</span></p><p><em>CPC Library link to program files:</em> <span>https://doi.org/10.17632/hn76s7x848.1</span><svg><path></path></svg></p><p><em>Developer's repository link:</em> <span>https://github.com/alfredos84/cuSHG</span><svg><path></path></svg></p><p><em>Licensing provisions:</em> MIT</p><p><em>Programming language:</em> <figure><img></figure>, CUDA</p><p><em>Nature of problem:</em> The problem which is solved in this work is that of second-harmonic generation (SHG) performance degradation in a nonlinear crystal with focused Gaussian beams due to thermal effects. By placing the nonlinear crystal in an oven that controls temperature, the package computes the involved electric fields along the medium. The implemented model includes the linear and nonlinear absorption which occasionally lead to self-heating effect, degrading the performance of the SHG.</p><p><em>Solution method:</em> The coupled differential equations for three-wave interactions, which describe the field evolution along the crystal, are solved using the well-known Split-Step Fourier method. The temperature profiles are estimated using the finite-elements method. The field evolution and thermal effects are embedded in a self-consistent algorithm that sequentially and separately solves the electromagnetic and thermal problems until the system reaches the steady state. Due to the eventual computational demand that some problems may have, we chose to implement the coupled equations in the <figure><img></figure>/CUDA programming language. This allows us to significantly speed up simulations, thanks to the computing power provided by a graphics processing unit (GPU) card. The output files obtained are the interacting electric fields and the temperature profile, which have to be analyzed during post-processing.</p></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":null,"pages":null},"PeriodicalIF":7.2000,"publicationDate":"2024-05-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"CUDA-based focused Gaussian beams second-harmonic generation efficiency calculator\",\"authors\":\"A.D. Sanchez , S. Chaitanya Kumar , M. Ebrahim-Zadeh\",\"doi\":\"10.1016/j.cpc.2024.109232\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>We present an object-oriented programming (OOP) CUDA-based package for fast and accurate simulation of second-harmonic generation (SHG) efficiency using focused Gaussian beams. The model includes linear as well as two-photon absorption that can ultimately lead to thermal lensing due to self-heating effects. Our approach speeds up calculations by nearly 40x (11x) without (with) temperature profiles with respect to an equivalent implementation using CPU. The package offers a valuable tool for experimental design and study of 3D field propagation in nonlinear three-wave interactions. It is useful for optimization of SHG-based experiments and mitigates undesired thermal effects, enabling improved oven designs and advanced device architectures, leading to stable, efficient high-power SHG.</p></div><div><h3>Program summary</h3><p><em>Program Title:</em> <span>cuSHG</span></p><p><em>CPC Library link to program files:</em> <span>https://doi.org/10.17632/hn76s7x848.1</span><svg><path></path></svg></p><p><em>Developer's repository link:</em> <span>https://github.com/alfredos84/cuSHG</span><svg><path></path></svg></p><p><em>Licensing provisions:</em> MIT</p><p><em>Programming language:</em> <figure><img></figure>, CUDA</p><p><em>Nature of problem:</em> The problem which is solved in this work is that of second-harmonic generation (SHG) performance degradation in a nonlinear crystal with focused Gaussian beams due to thermal effects. By placing the nonlinear crystal in an oven that controls temperature, the package computes the involved electric fields along the medium. The implemented model includes the linear and nonlinear absorption which occasionally lead to self-heating effect, degrading the performance of the SHG.</p><p><em>Solution method:</em> The coupled differential equations for three-wave interactions, which describe the field evolution along the crystal, are solved using the well-known Split-Step Fourier method. The temperature profiles are estimated using the finite-elements method. The field evolution and thermal effects are embedded in a self-consistent algorithm that sequentially and separately solves the electromagnetic and thermal problems until the system reaches the steady state. Due to the eventual computational demand that some problems may have, we chose to implement the coupled equations in the <figure><img></figure>/CUDA programming language. This allows us to significantly speed up simulations, thanks to the computing power provided by a graphics processing unit (GPU) card. The output files obtained are the interacting electric fields and the temperature profile, which have to be analyzed during post-processing.</p></div>\",\"PeriodicalId\":285,\"journal\":{\"name\":\"Computer Physics Communications\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":7.2000,\"publicationDate\":\"2024-05-06\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computer Physics Communications\",\"FirstCategoryId\":\"101\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0010465524001553\",\"RegionNum\":2,\"RegionCategory\":\"物理与天体物理\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Physics Communications","FirstCategoryId":"101","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0010465524001553","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
We present an object-oriented programming (OOP) CUDA-based package for fast and accurate simulation of second-harmonic generation (SHG) efficiency using focused Gaussian beams. The model includes linear as well as two-photon absorption that can ultimately lead to thermal lensing due to self-heating effects. Our approach speeds up calculations by nearly 40x (11x) without (with) temperature profiles with respect to an equivalent implementation using CPU. The package offers a valuable tool for experimental design and study of 3D field propagation in nonlinear three-wave interactions. It is useful for optimization of SHG-based experiments and mitigates undesired thermal effects, enabling improved oven designs and advanced device architectures, leading to stable, efficient high-power SHG.
Program summary
Program Title:cuSHG
CPC Library link to program files:https://doi.org/10.17632/hn76s7x848.1
Nature of problem: The problem which is solved in this work is that of second-harmonic generation (SHG) performance degradation in a nonlinear crystal with focused Gaussian beams due to thermal effects. By placing the nonlinear crystal in an oven that controls temperature, the package computes the involved electric fields along the medium. The implemented model includes the linear and nonlinear absorption which occasionally lead to self-heating effect, degrading the performance of the SHG.
Solution method: The coupled differential equations for three-wave interactions, which describe the field evolution along the crystal, are solved using the well-known Split-Step Fourier method. The temperature profiles are estimated using the finite-elements method. The field evolution and thermal effects are embedded in a self-consistent algorithm that sequentially and separately solves the electromagnetic and thermal problems until the system reaches the steady state. Due to the eventual computational demand that some problems may have, we chose to implement the coupled equations in the /CUDA programming language. This allows us to significantly speed up simulations, thanks to the computing power provided by a graphics processing unit (GPU) card. The output files obtained are the interacting electric fields and the temperature profile, which have to be analyzed during post-processing.
期刊介绍:
The focus of CPC is on contemporary computational methods and techniques and their implementation, the effectiveness of which will normally be evidenced by the author(s) within the context of a substantive problem in physics. Within this setting CPC publishes two types of paper.
Computer Programs in Physics (CPiP)
These papers describe significant computer programs to be archived in the CPC Program Library which is held in the Mendeley Data repository. The submitted software must be covered by an approved open source licence. Papers and associated computer programs that address a problem of contemporary interest in physics that cannot be solved by current software are particularly encouraged.
Computational Physics Papers (CP)
These are research papers in, but are not limited to, the following themes across computational physics and related disciplines.
mathematical and numerical methods and algorithms;
computational models including those associated with the design, control and analysis of experiments; and
algebraic computation.
Each will normally include software implementation and performance details. The software implementation should, ideally, be available via GitHub, Zenodo or an institutional repository.In addition, research papers on the impact of advanced computer architecture and special purpose computers on computing in the physical sciences and software topics related to, and of importance in, the physical sciences may be considered.