本文整理汇总了Python中System.axial方法的典型用法代码示例。如果您正苦于以下问题:Python System.axial方法的具体用法?Python System.axial怎么用?Python System.axial使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System
的用法示例。
在下文中一共展示了System.axial方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: import System [as 别名]
# 或者: from System import axial [as 别名]
[ 0,1, -2*a/sqrt(3),0,c/2, -1.496, 0.000, 0.965,
0.000,-0.937, 0.000,
0.965, 0.000,-1.066 ],
[ 1,0, 2*a/sqrt(3),0,-c/2, -1.496, 0.000, 0.965,
0.000,-0.937, 0.000,
0.965, 0.000,-1.066 ],
[ 0,0, 0,0,c, 0.080, 0.000, 0.000,
0.000, 0.080, 0.000,
0.000, 0.000,-3.897 ],
[ 1,1, 0,0,c, 0.080, 0.000, 0.000,
0.000, 0.080, 0.000,
0.000, 0.000,-3.897 ],
[ 0,1, System.axial([5*a/(2*sqrt(3)),a/2,c/2], 0.488,-0.011) ],
[ 1,0, System.axial([-5*a/(2*sqrt(3)),-a/2,-c/2], 0.488,-0.011) ],
[ 0,0, System.axial([ a*sqrt(3),0,0], 1.213, 0.318) ],
[ 1,1, System.axial([ a*sqrt(3),0,0], 1.213, 0.318) ],
[ 0,0, System.axial([-a*sqrt(3),0,0], 1.213, 0.318) ],
[ 1,1, System.axial([-a*sqrt(3),0,0], 1.213, 0.318) ],
[ 0,0, System.axial([0,a,c], 1.048,-0.133) ],
[ 1,1, System.axial([0,a,c], 1.048,-0.133) ],
[ 0,0, System.axial([0,2*a,0], -0.344, 0.040) ],
[ 1,1, System.axial([0,2*a,0], -0.344, 0.040) ],
]
System.write(cell,atoms,sites,bonds,"hcp")
示例2:
# 需要导入模块: import System [as 别名]
# 或者: from System import axial [as 别名]
cell=[
a,b, 0,
a, 0,c,
0,b,c
]
atoms=[
[ "In", m ],
]
sites=[
[ 0,0,0, 0 ],
]
bonds=[
[ 0,0, System.axial([ a, 0, c], 12.316,-2.064) ],
[ 0,0, System.axial([ a, b, 0], 16.763,-2.759) ],
[ 0,0, System.axial([2*a, 0, 0], 1.278, 0.929) ],
[ 0,0, System.axial([ 0, 0,2*c], 1.695, 0.294) ],
[ 0,0, System.axial([2*a, b, c], -0.452, 0.002) ],
[ 0,0, System.axial([ a, b,2*c], -0.601, 0.268) ],
[ 0,0, System.axial([2*a, 0,2*c], -0.423,-0.216) ],
[ 0,0, System.axial([2*a,2*b, 0], -1.130, 0.033) ],
[ 0,0, System.axial([3*a,1*b, 0], 0.167, 0.000) ],
[ 0,0, System.axial([ a, 0,3*c], -0.026, 0.000) ],
[ 0,0, System.axial([3*a, 0,1*c], 0.225, 0.000) ],
]
System.write(cell,atoms,sites,bonds,"fct")
示例3:
# 需要导入模块: import System [as 别名]
# 或者: from System import axial [as 别名]
0,a,0,
0,0,c,
]
atoms=[
[ "A", m ],
[ "B", m ],
]
sites=[
[ 0,0,0, 0 ],
[ a/sqrt(3),0,c/2, 1 ],
]
bonds=[
[ 0,1, System.axial([ a/sqrt(3),0, c/2], 10.483,-0.309) ],
[ 1,0, System.axial([-a/sqrt(3),0,-c/2], 10.483,-0.309) ],
[ 0,0, System.axial([ 0, a,0], 10.099,-0.292) ],
[ 1,1, System.axial([ 0, a,0], 10.099,-0.292) ],
[ 0,1, System.axial([-2*a/sqrt(3),0, c/2], -0.222,-0.246) ],
[ 1,0, System.axial([ 2*a/sqrt(3),0,-c/2], -0.222,-0.246) ],
[ 0,0, System.axial([ 0,0,c], 0.305,-0.490) ],
[ 1,1, System.axial([ 0,0,c], 0.305,-0.490) ],
[ 0,1, System.axial([ 5*a/(2*sqrt(3)), a/2, c/2], 0.748, 0.013) ],
[ 1,0, System.axial([-5*a/(2*sqrt(3)),-a/2,-c/2], 0.748, 0.013) ],
[ 0,0, System.axial([ a*sqrt(3),0,0], 0.529, 0.091) ],