RSoft 光学仿真软件 解压即可用 包括BeamPROP、FullWAVE、BandSOLVE、GratingMOD、DiffractMOD、FemSIM, 以及MOST软件。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 7425 2006-09-12 09:08 RSoftexamples
ing3.ind
文件 6377 2006-09-17 21:24 RSoftexampleslog.txt
文件 8871 2006-09-14 10:22 RSoftexamplesp.ind
文件 1516123 2006-09-17 21:24 RSoftexamplesptmp.vtk
文件 962 2006-09-15 20:31 RSoftexamplesgrat_fiber.ind
文件 970 2006-09-15 20:32 RSoftexamplesgrtmp.run
文件 447 2006-09-15 20:32 RSoftexamplesgrtmp_log.txt
文件 307 2006-09-15 20:32 RSoftexamplesgrtmp.pcs
文件 18458 2006-09-15 20:32 RSoftexamplesgrtmp.dat
文件 12110 2006-09-15 20:32 RSoftexamplesgrtmp_sel.dat
文件 452 2006-09-15 20:32 RSoftexamplesgrtmp_post.pcs
文件 872 2006-09-15 20:35 RSoftexamplesgrat2.ind
文件 1264 2004-04-22 11:00 RSoftexamplesDiffractMODTutorialTut4checkerboard3d.ind
目录 0 2007-10-26 17:34 RSoftexamplesDiffractMODTutorialTut4
文件 1520 2004-04-22 11:00 RSoftexamplesDiffractMODTutorialTut3metal2d.ind
目录 0 2007-10-26 17:34 RSoftexamplesDiffractMODTutorialTut3
文件 1628 2004-04-22 11:00 RSoftexamplesDiffractMODTutorialTut2filter.ind
目录 0 2007-10-26 17:34 RSoftexamplesDiffractMODTutorialTut2
文件 1081 2004-04-22 11:00 RSoftexamplesDiffractMODTutorialTut1antiref.ind
目录 0 2007-10-26 17:34 RSoftexamplesDiffractMODTutorialTut1
目录 0 2007-10-26 17:34 RSoftexamplesDiffractMODTutorial
目录 0 2007-10-26 17:34 RSoftexamplesDiffractMOD
文件 14438 2003-02-10 17:00 RSoftexamplesGratingMODTutorialTutS4grating3.dat
文件 846 2003-04-16 14:10 RSoftexamplesGratingMODTutorialTutS4grating3.ind
文件 328 2003-04-16 14:11 RSoftexamplesGratingMODTutorialTutS4grating3_inv.ind
目录 0 2007-10-26 17:34 RSoftexamplesGratingMODTutorialTutS4
文件 804 2003-04-16 14:10 RSoftexamplesGratingMODTutorialTutS3constdsp.ind
目录 0 2007-10-26 17:34 RSoftexamplesGratingMODTutorialTutS3
文件 109 2002-03-04 11:00 RSoftexamplesGratingMODTutorialTutS2 wo_chnl.dat
文件 553 2003-04-16 14:10 RSoftexamplesGratingMODTutorialTutS2 wo_chnl.ind
............此处省略1552个文件信息
#!/usr/bin/env python
import sys traceback re
__HAS_TK = 0
def print_msg(msg):
if __HAS_TK:
tkMessageBox.showinfo(“Information“ msg)
print msg
else:
print msg
def print_err(msg):
if __HAS_TK:
tkMessageBox.showerror(“ERROR“ msg)
print msg
else:
print msg
def exception ():
“““ This function handles any exception derived from Exception and
prints it out in a message box. Code merrily stolen from the
Thinking in Python site.“““
try:
type value tb = sys.exc_info ()
info = traceback.extract_tb (tb)
filename lineno function text = info[-1] # last line only
print_err (“Exception: %s:%d: %s: %s (in %s)“ %
(filename lineno type.__name__ str (value) function))
finally:
type = value = tb = None # clean up
print_msg(“Testing if Tkinter is available... “)
try:
import Tkinter
except ImportError:
msg = “Sorry Tkinter does not appear to be available.
“
“Please check your Python installation. “
“It is possible that you have not installed Tcl/Tk and Tkinter.“
“Please visit http://www.python.org for more details.“
print_err(msg)
sys.exit(1)
else:
import tkMessageBox
print_msg(“OK - you have Tkinter“)
print_msg(“TclVersion = %s TkVersion = %s“%(Tkinter.TclVersion
Tkinter.TkVersion))
__HAS_TK = 1
def test_vtk_cone():
import vtkpython
msg = “““Testing a sample vtk program. You should see a 300x300
pixel window with a black background and with a magenta coloured
Cone. You can interact with the cone using the mouse. To quit
the test press q on the window. If this test is successful then
the basic vtkpython installation is OK.“““
print_msg (re.sub(‘s+‘ ‘ ‘ msg))
# create a rendering window and renderer
ren = vtkpython.vtkRenderer()
renWin = vtkpython.vtkRenderWindow()
renWin.AddRenderer(ren)
iren = vtkpython.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin)
# create an actor and give it cone geometry
cone = vtkpython.vtkConeSource()
cone.SetResolution(40)
coneMapper = vtkpython.vtkPolyDataMapper()
coneMapper.SetInput(cone.GetOutput())
coneActor = vtkpython.vtkActor()
coneActor.SetMapper(coneMapper)
coneActor.GetProperty ().SetColor (0.5 0.5 1.0)
ren.AddActor(coneActor)
# enable user interface interactor
iren.Initialize()
iren.Start()
def test_vtk_tk_render_widget(root):
import vtkpython
from vtkRenderWidget import vtkTkRenderWidget
msg = “““Testing a sample vtk program that uses the
vtkTkRenderWidget. You should see a 300x300 pixel window with a
black background and with a magenta coloured Cone. You can
interact with the cone using the mouse. To quit the test press q
on the window. If this test is successful then
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 7425 2006-09-12 09:08 RSoftexamples
ing3.ind
文件 6377 2006-09-17 21:24 RSoftexampleslog.txt
文件 8871 2006-09-14 10:22 RSoftexamplesp.ind
文件 1516123 2006-09-17 21:24 RSoftexamplesptmp.vtk
文件 962 2006-09-15 20:31 RSoftexamplesgrat_fiber.ind
文件 970 2006-09-15 20:32 RSoftexamplesgrtmp.run
文件 447 2006-09-15 20:32 RSoftexamplesgrtmp_log.txt
文件 307 2006-09-15 20:32 RSoftexamplesgrtmp.pcs
文件 18458 2006-09-15 20:32 RSoftexamplesgrtmp.dat
文件 12110 2006-09-15 20:32 RSoftexamplesgrtmp_sel.dat
文件 452 2006-09-15 20:32 RSoftexamplesgrtmp_post.pcs
文件 872 2006-09-15 20:35 RSoftexamplesgrat2.ind
文件 1264 2004-04-22 11:00 RSoftexamplesDiffractMODTutorialTut4checkerboard3d.ind
目录 0 2007-10-26 17:34 RSoftexamplesDiffractMODTutorialTut4
文件 1520 2004-04-22 11:00 RSoftexamplesDiffractMODTutorialTut3me
目录 0 2007-10-26 17:34 RSoftexamplesDiffractMODTutorialTut3
文件 1628 2004-04-22 11:00 RSoftexamplesDiffractMODTutorialTut2filter.ind
目录 0 2007-10-26 17:34 RSoftexamplesDiffractMODTutorialTut2
文件 1081 2004-04-22 11:00 RSoftexamplesDiffractMODTutorialTut1antiref.ind
目录 0 2007-10-26 17:34 RSoftexamplesDiffractMODTutorialTut1
目录 0 2007-10-26 17:34 RSoftexamplesDiffractMODTutorial
目录 0 2007-10-26 17:34 RSoftexamplesDiffractMOD
文件 14438 2003-02-10 17:00 RSoftexamplesGratingMODTutorialTutS4grating3.dat
文件 846 2003-04-16 14:10 RSoftexamplesGratingMODTutorialTutS4grating3.ind
文件 328 2003-04-16 14:11 RSoftexamplesGratingMODTutorialTutS4grating3_inv.ind
目录 0 2007-10-26 17:34 RSoftexamplesGratingMODTutorialTutS4
文件 804 2003-04-16 14:10 RSoftexamplesGratingMODTutorialTutS3constdsp.ind
目录 0 2007-10-26 17:34 RSoftexamplesGratingMODTutorialTutS3
文件 109 2002-03-04 11:00 RSoftexamplesGratingMODTutorialTutS2 wo_chnl.dat
文件 553 2003-04-16 14:10 RSoftexamplesGratingMODTutorialTutS2 wo_chnl.ind
............此处省略1552个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)