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.
翻译: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模拟的配置、运行、结果处理及可视化。