本文整理汇总了Python中simulation.Simulation.runSimulation方法的典型用法代码示例。如果您正苦于以下问题:Python Simulation.runSimulation方法的具体用法?Python Simulation.runSimulation怎么用?Python Simulation.runSimulation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类simulation.Simulation
的用法示例。
在下文中一共展示了Simulation.runSimulation方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: basic_test
# 需要导入模块: from simulation import Simulation [as 别名]
# 或者: from simulation.Simulation import runSimulation [as 别名]
def basic_test():
test_geom = Geometry(1,1,[Rod(0,0,Dielectric('si'), \
occupancy_radius(0.3,1))])
sim = Simulation('basic_test',test_geom)
sim.runSimulation()
sim.postProcess()
return True
示例2: bs2d_test
# 需要导入模块: from simulation import Simulation [as 别名]
# 或者: from simulation.Simulation import runSimulation [as 别名]
def bs2d_test():
test_geom = wheel(1,1,5,0.3,0,Dielectric('si')\
,priority='Occupancy')
draw_geometry(test_geom,'test_2d')
test_kspace = KSpace(2,x_res=50,y_res=50)
sim = Simulation('test_2d',test_geom,test_kspace,numbands=5, \
resolution=64)
sim.runSimulation()
sim.postProcess()
draw_bandstructure('test_2d',test_kspace,5,filled=False)
return True
示例3: main
# 需要导入模块: from simulation import Simulation [as 别名]
# 或者: from simulation.Simulation import runSimulation [as 别名]
def main():
simulation = Simulation()
simulation.loadSimulation()
simulation.runSimulation()