BSD 3-Clause "New" or "Revised" License

项目介绍

glotzerlab/hoomd-blue 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前获得 457 个 Star、175 次 Fork。

仓库全名
glotzerlab/hoomd-blue
开源许可证
BSD 3-Clause "New" or "Revised" License
Star 数
457
Fork 数
175
未关闭 Issue
20

README 摘要

HOOMD-blue is a Python package that runs simulations of particle systems on CPUs and GPUs. It performs hard particle Monte Carlo simulations of a variety of shape classes and molecular dynamics simulations of particles with a range of pair, bond, angle, and other potentials. Many features are targeted at the soft matter research community, though the code is general and capable of many types of particle simulations…

完整内容见 GitHub 原始 README 或本页 。

常见问题

hoomd-blue 用什么语言开发?

主要使用 C++ 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前有 457 个 Star。

hoomd-blue 可以免费商用吗?

仓库采用 BSD 3-Clause "New" or "Revised" License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 hoomd-blue 的源码?

可以直接克隆仓库:git clone https://github.com/glotzerlab/hoomd-blue.git,默认分支为 trunk;安装与运行步骤见仓库 README。

hoomd-blue 最近还在维护吗?

仓库最近一次更新为 1 天前,当前有 20 个未关闭 Issue;Star 数为 457,可作为社区活跃度的参考。

关于

Molecular dynamics and Monte Carlo soft matter simulation on GPUs.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

C
C++
CMake
CSS
Cuda
HTML
Jupyter Notebook
NASL
Python
Shell

Release

README

HOOMD-blue

Citing HOOMD conda-forge conda-forge Downloads Read the Docs Contributors License

HOOMD-blue is a Python package that runs simulations of particle systems on CPUs and GPUs. It performs hard particle Monte Carlo simulations of a variety of shape classes and molecular dynamics simulations of particles with a range of pair, bond, angle, and other potentials. Many features are targeted at the soft matter research community, though the code is general and capable of many types of particle simulations.

Resources

  • hoomd-rs: Infinitely customizable MC/MD simulations and order parameter computations in Rust. Faster than HOOMD-blue in most benchmarks.

  • freud: Analyze HOOMD-blue simulation results with the freud Python library.

  • signac: Manage your workflow with signac.

  • Molecular Simulation Design Framework (MoSDeF) tools:

    • mbuild: Assemble reusable components into complex molecular systems.
    • foyer: Perform atom-typing and define classical molecular modeling force fields.
    • gmso: A flexible and mutable data structure for chemical topologies that writes HOOMD-blue formats.

Example scripts

These examples demonstrate some of the Python API.

Hard particle Monte Carlo:

import hoomd

mc = hoomd.hpmc.integrate.ConvexPolyhedron()
mc.shape['octahedron'] = dict(vertices=[
    (-0.5, 0, 0),
    (0.5, 0, 0),
    (0, -0.5, 0),
    (0, 0.5, 0),
    (0, 0, -0.5),
    (0, 0, 0.5),
])

cpu = hoomd.device.CPU()
sim = hoomd.Simulation(device=cpu, seed=20)
sim.operations.integrator = mc
# The tutorial describes how to construct an initial configuration 'init.gsd'.
sim.create_state_from_gsd(filename='init.gsd')

sim.run(1e5)

Molecular dynamics:

import hoomd

cell = hoomd.md.nlist.Cell(buffer=0.4)
lj = hoomd.md.pair.LJ(nlist=cell)
lj.params[('A', 'A')] = dict(epsilon=1, sigma=1)
lj.r_cut[('A', 'A')] = 2.5

integrator = hoomd.md.Integrator(dt=0.005)
integrator.forces.append(lj)
bussi = hoomd.md.methods.thermostats.Bussi(kT=1.5)
nvt = hoomd.md.methods.ConstantVolume(filter=hoomd.filter.All(), thermostat=bussi)
integrator.methods.append(nvt)

gpu = hoomd.device.GPU()
sim = hoomd.Simulation(device=gpu)
sim.operations.integrator = integrator
# The tutorial describes how to construct an initial configuration 'init.gsd'.
sim.create_state_from_gsd(filename='init.gsd')
sim.state.thermalize_particle_momenta(filter=hoomd.filter.All(), kT=1.5)

sim.run(1e5)

Change log

CHANGELOG.rst contains the full change log.

Contributing to HOOMD-blue

Contributions are welcomed via pull requests. Please report bugs and suggest feature enhancements via the issue tracker. See CONTRIBUTING.rst and ARCHITECTURE.md for more information.

License

HOOMD-blue is available under the 3-clause BSD license.

评论

暂无评论