代码拉取完成,页面将自动刷新
# -*- coding:utf-8 -*-
#具体的模拟程序
import particle
import numpy as np
def __init__():
pass
class Stimulator():
def __init__(self, N):
self.N = N
self.h = 2.0
# self.Points = [[0 for x in range(N)] for y in range(N)]
# for i in range(self.N//2):
# for j in range(self.N//2):
# self.Points[i][j] = 1
self.particles = particle.Particles(N//2, N//2, self.N, self.h)
def step(self):
self.particles.compute_D()
self.particles.compute_P()
self.particles.compute_Vi()
self.particles.compute_Acc()
self.particles.compute_V()
self.particles.compute_position()
return self.particles.get_Particles()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。