argonMove.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:Argon 作者: FracturedRocketSpace 项目源码 文件源码
def keepParticlesInCell(positions):
    for p in range(config.nParticles):
        positions[p,:] = np.remainder(positions[p,:], config.lCalc);

# Calculate the forces. Jitted to make is super fast
# Code has been based on: http://combichem.blogspot.nl/2013/04/fun-with-numba-numpy-and-f2py.html
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号