IsingModel:Python 中的 Ising 模型

时间:2021-06-13 22:26:51
【文件属性】:
文件名称:IsingModel:Python 中的 Ising 模型
文件大小:3.05MB
文件格式:ZIP
更新时间:2021-06-13 22:26:51
Mathematica 伊辛模型 Python 中的 Ising 模型 我们在 Python 中有四组代码: regular2D.py 这使用 Metropolis 算法运行 1 或 2D 方形网格 Ising 模型。 变量在文件内进行调整。 对于一维模型,将 n 或 m 设置为 1。 HexagonalLattice.py 使用 Metropolis 算法运行二维六边形网格 Ising 模型。 这就是作业中所说的“三角”。 由于每个单元格有六个邻居,我们决定将其称为六边形而不是三角形。 lattice.py 这会创建一个任意维度的点阵,随机填充 -1 和 1。 它还包含作用于该晶格的函数。 MetropolisModule.py 这应该使用 Metropolis 算法运行任意大小和维度的“方形”Ising 模型。 它在lattice.py中绘制用法:[时间步长] [温度] [维度1中的长度] [维度2中
【文件预览】:
IsingModel-master
----README.md(2KB)
----IsingModelReport.pdf(2.6MB)
----HexagonalLattice.py(2KB)
----DataAnalysis.nb(2.99MB)
----metropolisModule.py(3KB)
----lattice.py~(6KB)
----regular2D.py(2KB)
----MathematicaPrototype.nb(153KB)
----lattice.pyc(4KB)
----HexagonalLattice.nb(41KB)
----lattice.py(3KB)
----wolffModule.py(3KB)

网友评论