1 Star 0 Fork 0

自由民/liquid

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
stimulator.py 739 Bytes
一键复制 编辑 原始数据 按行查看 历史
# -*- 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()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/zwdnet/liquid.git
git@gitee.com:zwdnet/liquid.git
zwdnet
liquid
liquid
master

搜索帮助