當前位置: 首頁>>代碼示例>>Python>>正文


Python System.write方法代碼示例

本文整理匯總了Python中System.write方法的典型用法代碼示例。如果您正苦於以下問題:Python System.write方法的具體用法?Python System.write怎麽用?Python System.write使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System的用法示例。


在下文中一共展示了System.write方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1:

# 需要導入模塊: import System [as 別名]
# 或者: from System import write [as 別名]
  [ 0,0,0,             0 ],
  [ a/s3,0,c/2,     1 ],
]

bonds=[
  [ 0,1, System.modAxial([ a/s3,0, c/2],   23.239000,[-1.628000,-1.628000,-3.641000]) ],
  [ 1,0, System.modAxial([-a/s3,0,-c/2],   23.239000,[-1.628000,-1.628000,-3.641000]) ],

  [ 0,0, System.modAxial([ 0, a,0],          10.124000,[ 1.456000, 1.456000, 0.150000]) ],
  [ 1,1, System.modAxial([ 0, a,0],          10.124000,[ 1.456000, 1.456000, 0.150000]) ],

  [ 0,1, System.modAxial([-2*a/s3,0, c/2], -6.393000,[ 1.212000, 1.212000, 1.511000]) ],
  [ 1,0, System.modAxial([ 2*a/s3,0,-c/2], -6.393000,[ 1.212000, 1.212000, 1.511000]) ],

  [ 0,0, System.modAxial([ 0,0,c],            0.00,[-0.178000,-0.178000,-0.083000]) ],
  [ 1,1, System.modAxial([ 0,0,c],            0.00,[-0.178000,-0.178000,-0.083000]) ],

  [ 0,1, System.modAxial([ 5*a/(2*s3), a/2, c/2],  
                                                1.392000,[ 0.456000, 0.456000,-0.582000]) ],
  [ 1,0, System.modAxial([-5*a/(2*s3),-a/2,-c/2],  
                                                1.392000,[ 0.456000, 0.456000,-0.582000]) ],

  [ 0,0, System.modAxial([ a*s3,0,0],        1.856000,[-0.093000,-0.093000,0.593000]) ],
  [ 1,1, System.modAxial([ a*s3,0,0],        1.856000,[-0.093000,-0.093000,0.593000]) ],
  [ 0,0, System.modAxial([-a*s3,0,0],        1.856000,[-0.093000,-0.093000,0.593000]) ],
  [ 1,1, System.modAxial([-a*s3,0,0],        1.856000,[-0.093000,-0.093000,0.593000]) ],

]

System.write(cell,atoms,sites,bonds,"hcp")
開發者ID:danse-inelastic,項目名稱:pybvk,代碼行數:32,代碼來源:y_295_.py

示例2:

# 需要導入模塊: import System [as 別名]
# 或者: from System import write [as 別名]
]

bonds=[
[ 0,0,1.0*a,1.0*a,0.0*a,4.3726, 4.5798, 0.0, 
                         4.5798, 4.3726, 0.0, 
                         0.0, 0.0, -0.2264 ],
[ 0,0,2.0*a,0.0*a,0.0*a,-2.3562, 0.0, 0.0, 
                         0.0, 0.0773, 0.0, 
                         0.0, 0.0, 0.0773 ],
[ 0,0,2.0*a,1.0*a,1.0*a,0.2058, -0.0496, -0.0496, 
                         -0.0496, 0.3169, -0.0547, 
                         -0.0496, -0.0547, 0.3169 ],
[ 0,0,2.0*a,2.0*a,0.0*a,0.1231, 0.1505, 0.0, 
                         0.1505, 0.1231, 0.0, 
                         0.0, 0.0, 0.0114 ],
[ 0,0,3.0*a,1.0*a,0.0*a,-0.0525, 0.0193, 0.0, 
                         0.0193, -0.0992, 0.0, 
                         0.0, 0.0, -0.1044 ],
[ 0,0,2.0*a,2.0*a,2.0*a,-0.3316, -0.2194, -0.2194, 
                      -0.2194, -0.3316, -0.2194, 
                      -0.2194, -0.2194, -0.3316 ],
[ 0,0,3.0*a,2.0*a,1.0*a,0.1057, -0.0068, 0.0763, 
                      -0.0068, -0.1138, 0.005, 
                      0.0763, 0.005, 0.0263 ],
[ 0,0,4.0*a,0.0*a,0.0*a,-0.0009, 0.0, 0.0, 
                      0.0, 0.2219, 0.0, 
                      0.0, 0.0, 0.2219 ],
]
        
System.write(cell,atoms,sites,bonds,"cubic")
開發者ID:danse-inelastic,項目名稱:pybvk,代碼行數:32,代碼來源:ce_295_.py

示例3:

# 需要導入模塊: import System [as 別名]
# 或者: from System import write [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")
開發者ID:danse-inelastic,項目名稱:pybvk,代碼行數:31,代碼來源:in_77_.py


注:本文中的System.write方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。