arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.02052cs.MSphysics.ao-ph
收藏

PyPartMC:一个面向粒子分辨蒙特卡洛气溶胶模拟框架的 Pythonic 接口

PyPartMC: A Pythonic interface to a particle-resolved, Monte Carlo aerosol simulation framework

Zachary D'Aquino, Sylwester Arabas, Jeffrey Curtis, Akshunna Vaishnav, Nicole Riemer, Matthew West

AI总结:

PyPartMC 通过 pip 提供 PartMC 气溶胶模型的一步式安装接口,使用户能用 Python 等单一语言完成模拟的设置、运行、处理与可视化,降低了 Fortran 模型的使用门槛。

摘要:

PyPartMC 是 PartMC 的一个 Pythonic 接口,PartMC 是一个用 Fortran 实现的随机、粒子分辨气溶胶模型。PyPartMC 和 PartMC 都是免费、自由且开源的。PyPartMC 减少了安装和利用 PartMC 资源所需的步骤数量,并减轻了相关工作负担。如果没有 PyPartMC,设置 PartMC 需要:使用 UNIX shell、提供 Fortran 和 C 库,以及执行标准的 Fortran 和 C 源代码配置、编译和链接。这对于那些计算研究经验较少的人,或者那些打算在 UNIX 工具提供不太直接的环境(例如 Windows)中使用 PartMC 的人来说可能具有挑战性。PyPartMC 通过 pip Python 包管理器在 Linux、macOS 和 Windows 上提供 PartMC 及其所有依赖项的一步式安装/升级过程。这允许从 Python 和其他可互操作环境(例如通过 PyCall 的 Julia)流线化地访问 PartMC 代码库中未修改且带版本控制的 Fortran 内部实现。因此,PyPartMC 的用户可以使用一种通用编程语言来设置、运行、处理和可视化 PartMC 模拟的输出。

英文摘要:

PyPartMC is a Pythonic interface to PartMC, a stochastic, particle-resolved aerosol model implemented in Fortran. Both PyPartMC and PartMC are free, libre, and open-source. PyPartMC reduces the number of steps and mitigates the effort necessary to install and utilize the resources of PartMC. Without PyPartMC, setting up PartMC requires: working with UNIX shell, providing Fortran and C libraries, and performing standard Fortran and C source code configuration, compilation and linking. This can be challenging for those less experienced with computational research or those intending to use PartMC in environments where provision of UNIX tools is less straightforward (e.g., on Windows). PyPartMC offers a single-step installation/upgrade process of PartMC and all dependencies through the pip Python package manager on Linux, macOS, and Windows. This allows streamlined access to the unmodified and versioned Fortran internals of the PartMC codebase from both Python and other interoperable environments (e.g., Julia through PyCall). Consequently, users of PyPartMC can setup, run, process and visualize output of PartMC simulations using a single general-purpose programming language.

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

↑