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化接口,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仿真的配置、运行、处理及结果可视化。