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