arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1206.1361cond-mat.quant-gashep-thphysics.comp-phquant-ph
收藏

完全各向异性势阱中含时Gross-Pitaevskii方程的C语言程序

C programs for solving the time-dependent Gross-Pitaevskii equation in a fully anisotropic trap

Dusan Vudragovic, Ivana Vidanovic, Antun Balaz, Paulsamy Muruganandam, Sadhan K. Adhikari

摘要:

我们提出了C编程语言版本的早期出版的Fortran程序(Muruganandam和Adhikari,COMPUT。物理通讯180(2009)1888),用于计算时间相关的Gross-Pitaevskii(GP)方程的稳态和非稳态解。GP方程描述了超低温下稀玻色-爱因斯坦凝聚体的性质。C版本的程序使用与Fortran相同的算法,包括基于分步Crank-Nicolson方法的实时和非实时传播。在GP方程的一个空间变量形式下,我们考虑了一维、二维、圆对称和三维球对称谐振子陷阱。在二维空间变量形式下,我们考虑了二维各向异性和三维轴对称势阱中的GP方程。还考虑了完全各向异性的三维GP方程。除了这12个程序,对于涉及两个和三个空间变量的六个算法,我们还开发了线程(OpenMP并行化)程序,允许数值模拟使用计算机上所有可用的CPU内核。所有18个程序都经过了优化,并附带了几个流行的C编译器的makefile。我们提出了典型的线程代码的可扩展性的结果,并展示了几乎线性的加速与新的程序,允许在现代多核计算机上的一个数量级的执行时间减少。

英文摘要:

We present C programming language versions of earlier published Fortran programs (Muruganandam and Adhikari, Comput. Phys. Commun. 180 (2009) 1888) for calculating both stationary and non-stationary solutions of the time-dependent Gross-Pitaevskii (GP) equation. The GP equation describes the properties of dilute Bose-Einstein condensates at ultra-cold temperatures. C versions of programs use the same algorithms as the Fortran ones, involving real- and imaginary-time propagation based on a split-step Crank-Nicolson method. In a one-space-variable form of the GP equation, we consider the one-dimensional, two-dimensional, circularly-symmetric, and the three-dimensional spherically-symmetric harmonic-oscillator traps. In the two-space-variable form, we consider the GP equation in two-dimensional anisotropic and three-dimensional axially-symmetric traps. The fully-anisotropic three-dimensional GP equation is also considered. In addition to these twelve programs, for six algorithms that involve two and three space variables, we have also developed threaded (OpenMP parallelized) programs, which allow numerical simulations to use all available CPU cores on a computer. All 18 programs are optimized and accompanied by makefiles for several popular C compilers. We present typical results for scalability of threaded codes and demonstrate almost linear speedup obtained with the new programs, allowing a decrease in execution times by an order of magnitude on modern multi-core computers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑