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 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.
翻译:PyPartMC是PartMC的Python化接口,后者是基于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模拟的配置、运行、处理及结果可视化输出。