DDscat .C++用户和程序员指南
DDscat.C++ User and programmer guide
摘要:
DDscat.C++ 7.3.0是一个免费提供的开源C++软件包,应用“离散偶极子近似”(DDA)计算具有任意几何形状和复折射率的目标对电磁波的散射和吸收。DDscat.C++是著名DDscat Fortran-90软件的克隆。我们在本文档中引用DDscat作为父代码。这两个代码的7.3.0版本具有相同的功能,但实现方式完全不同。作为一个教学项目开始,DDscat.C++代码在编程技术和功能上与父代码DDscat不同,这对C++来说是必不可少的,但在Fortran中很少。由于当前版本的DDscat.C++只是一个克隆,因此DDscat.C++在电磁计算中的用法与DDscat相同。请参阅“离散偶极子近似代码DDSCAT 7.3用户指南”开始使用代码。本文件由两部分组成。在第一部分中,我们为想要开始使用代码的用户提供快速入门指南。只解释了DDscat.C++和DDscat之间的区别。文档的第二部分为想要更改代码、添加功能或帮助作者进行代码重构和调试的人解释了编程技巧。
英文摘要:
DDscat.C++ 7.3.0 is a freely available open-source C++ software package applying the "discrete dipole approximation" (DDA) to calculate scattering and absorption of electromagnetic waves by targets with arbitrary geometries and a complex refractive index. DDscat.C++ is a clone of well known DDscat Fortran-90 software. We refer to DDscat as to the parent code in this document. Versions 7.3.0 of both codes have the identical functionality but the quite different implementation. Started as a teaching project, the DDscat.C++ code differs from the parent code DDscat in programming techniques and features, essential for C++ but quite seldom in Fortran. As DDscat.C++ in its current version is just a clone, usage of DDscat.C++ for electromagnetic calculations is the same as of DDscat. Please, refer to "User Guide for the Discrete Dipole Approximation Code DDSCAT 7.3" to start using the code(s). This document consists of two parts. In the first part we present Quick start guide for users who want to begin to use the code. Only differencies between DDscat.C++ and DDscat are explained. The second part of the document explains programming tips for the persons who want to change the code, to add the functionality or help the author with code refactoring and debugging.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。