コード例 #1
0
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
0
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