对称自适应基函数(sabf)发生器。
gyroid的Python项目详细描述
gyroid是一个python包,它基于单元单元的空间组生成symmetry adapted基函数。
快速启动
一。安装
$ easy_install gyroid
或
$ tar -xvf gyroid-xxx.tar.gz $ cd gyroid-xxx $ python setup.py install
所需套餐:
- numpy:应在安装陀螺仪之前安装。
- scipy:使用它以Matlab Mat格式保存数据。
- matplotlib:二维图形绘制。
- mayavi:它依赖于许多包,例如vtk(使用python包装器和打开的共享库编译)。如果不需要“渲染结构”三维功能,只需忽略它。
2.使用量
以下是该软件包的典型用法。它将在立方单元中产生一组具有点群ia-3d(230)的sabfs。最后一行将合成一个所有sabf系数等于1.0的陀螺结构,将结构数据保存到matlab mat文件中,显示渲染图像的屏幕截图并将图像保存到文件中。
>>> import gyroid as gy >>> import numpy as np >>> N1,N2,N3 = 32,32,32 number of grids in each dimension of a unit cell >>> uc = gy.UnitCell(3) create a standard cubic unit cell with side length 1.0 >>> group = gy.Group(3,gy.BRAVAIS,uc.shape,"Ia-3d") create a Ia-3d point group >>> grid = gy.Grid(np.array([N1,N2,N3]),group) create a collection of waves that are not canceled >>> basis = gy.Basis(group,grid) create the SABFs >>> gy.render_structure_3d(basis,grid,N1,N2,N3,1.0) create the gyroid structure and render it
寻求帮助
- 你可以直接在liuyxpp@gmail.com联系我。
- 您可以通过向gyroid@librelist.com发送电子邮件并回复确认邮件来加入邮件列表。要取消订阅,请向gyroid-unsubscribe@librelist.com发送邮件并回复确认邮件。