TITLE

Size: px
Start display at page:

Download "TITLE"

Transcription

1 VisBAR Wave Batch v

2 1 VisBAR wave batch Cube Cube PNG Python VTK Cube xyz VTK Cube VTK library.py A VTK 88 i

3 B 91 B.1 v0.9.4 ( ,9 22 ) B.2 v0.9.5 ( ) B.3 v1.0.0 ( ) B.3.1 Window size ii

4 2.1 Cube VTK ( ) ( PNG ) iii

5 1 VisBAR wave batch 1.1 VisBAR wave batch Python[1] Input GaussianCube ( Cube ) Cube Cube README VisBAR_wave _batch[*] Python VisBAR_wave _batch VisBAR (VisBAR=Visualization tool with Ball, Arrow, Rod)[*][1] VisBAR_wave _batch [1] ( [2] ) [*] [1] Takeo Hoshi, Yohei Akiyama, Tatsunori Tanaka and Takahisa Ohno, "Ten-million-atom electronic structure calculations on the K computer with a massively parallel order-n theory", J. Phys. Soc. Jpn. 82, , 4pp (2013). [2] Takeo Hoshi, Keita Yamazaki, Yohei Akiyama, " Novel linear algebraic theory and one-hundred-million-atom electronic structure calculation on the K computer ", in press; Preprint ( 1

6 Visualization Tool Kit (VTK)[2] 2 2

7 py Python (1)VisBAR_wave_batch.py VisBAR wave batch (2)formatconvert.py Cube VTK (3)visualize_isosurface.py (4)library.py (5)bond_length.txt (6)visbar_wb_setting_default.txt (7)Cube Cube (.cube ) (8)00README_FIRST_JP.txt README ( ) (9)00README_FIRST_EN.txt README ( ) 3

8 2 Cube 2.1 VTK A 1. Python( ) 2. Numpy[3](Python ) 3. VTK Python Wrapper VTK A 1. Python Python2.7.x (Python Windows Installer (Windows binary )) 2. Python2.7 Python(command line) print hello hello Python 4

9 3. Numpy Numpy NumPy/ numpy win32-superpack-python2.7.exe Numpy Python command line import numpy print numpy.matrix([[1,2],[3,4]]) [[1, 2], [3, 4]] 5. VTK VTK ( A ) Python( ver2.7) 1 URL URL VTK 2 3 URL 2 3 URL 1 URL Backup 3 URL 1,VTK win32-py2.7.exe (2,VTK win32.exe [Python2.7]) (3,VTK win32-py2.7.exe) URL 6. sample sphere.py 7. sample sphere.py 3.1 5

10 2.2 Cube VisBAR wave batch Cube [ ] 1. VisBAR wave batch.py Input:[Auto:a, frame by frame:c] PNG a 2. Periodic:0, No Periodic:1= a Cube PNG Cube PNG Python IDLE(Python GUI) 2.1: Cube 6

11 2.3 Cube PNG Cube [ ] 1. Cube 2. VisBAR wave batch.py [Auto:a] 3. Periodic:0, No Periodic:1= 4. Cube PNG 7

12 2.4 Cube [ ] 1. VisBAR wave batch.py Input:[Auto:a, frame by frame:c] c 2. Periodic:0, No Periodic:1= 3. Python IDLE(Python GUI) Visualization Toolkit VTK ( ) VTK ( ) j joystick ( ) t trackball ( ) e Visualization Toolkit w ( s ) s ( ) 3 ( ) r p u a z ( ) png ( image*.png ) (a+ or a+ ) 2.5 8

13 *(1.01)**level level level 1 level 1 level 1 level 1 level 1 level 1 Python command line 9

14 2.5 visbar wb setting default.txt 2.4 z visbar wb setting output.txt visbar wb setting.txt 1. VisBAR wave batch.py c z visbar wb setting output.txt 2. customize setting y parallelview customize setting:[on:1,off:=0] On Off 0 customize setting n On y/n VTK Python command line 3. visbar wb setting output.txt z visbar wb setting output.txt visbar wb setting.txt 6. visbar wb setting.txt 7. VisBAR wave batch.py 10

15 visbar wb setting.txt 1 --end setting-- visbar wb setting default.txt isovalue 0.02 isovalueminus isoopacity 1.0 outlinecolor Window_size isominusr 1.0 isominusg 0.0 isominusb 0.0 isominusr 1.0 isoplusr 1.0 isoplusg 1.0 isoplusb 0.0 BackGround FocalPoint Position ParallelScale 30.0 ViewUp bond On atom On wave_function On outline On parallel_view On text On --end_setting-- 11

16 isovalue ( ) isovalueminus ( ) isoopacity ( ) outlinecolor (RGB ) (R,G,B)=( , , ) Window size (, ) isominusr RGB R ( ) isominusg RGB G ( ) isominusb RGB B ( ) isoplusr RGB R ( ) isoplusg RGB G ( ) isoplusb RGB B ( ) BackGround (RGB ) (R,G,B)=( , , ) FocalPoint ( ) Position ( ) ParallelScale ( ) ViewUp ( ) bond On (On/Off) atom On (On/Off) wave function (On/Off) outline (On/Off) parallel view parerellview (OnOff) text (On/Off) 12

17 2.6 bond length.txt bond length.txt 1 --end setting-- bond length.txt C C 3.0 C H 2.2 H C 2.2 H H end_setting-- C 6 H 6 C-C C-H H-C H-H 4 ( ) C-H H-C C H Cube 2.7 convert wave function.vtk.txt Cube make atom.xyz.txt Cube XYZ 13

18 3.3.2 log VTK.txt Cube Cube 14

19 3 VisBAR wave batch 3.1 Python 3D VTK Python Python ( ) Python ( ) PC f = open("sample","r") line = f.readline() while line: line = f.readline() if line.find("check") >= 0: print line break f.cloce() sample check Python python 15

20 ( ) 16

21 3.1.2 VTK 3 VTK Python Wrapper URL sample sphere.py import vtk source = vtk. vtkspheresource ( ) source. SetCenter ( 0, 0, 0 ) source. SetRadius ( 8. 0 ) mapper = vtk. vtkpolydatamapper ( ) mapper. SetInput ( source. GetOutput ( ) ) a c t o r = vtk. vtkactor ( ) a c t o r. SetMapper ( mapper ) r e n = vtk. vtkrenderer ( ) ren. AddActor ( a c t o r ) renwin = vtk. vtkrenderwindow ( ) renwin. AddRenderer ( ren ) i r e n = vtk. vtkrenderwindowinteractor ( ) i r e n. SetRenderWindow ( renwin ) i r e n. I n i t i a l i z e ( ) renwin. Render ( ) i r e n. S t a r t ( ) 17

22 3.1: VTK [import vtk] 1 vtk [source = vtk.vtkspheresource()] 2 vtk Sphere sorce [source.setcenter(0,0,0)] 3 sorce Sphere (x,y,z)=(0,0,0) [source.setradius(8.0)] 4 sorce Sphere 8.0 [mapper = vtk.vtkpolydatamapper()] 5 vtkpolydatamapper mapper [mapper.setinput(source.getoutput())] Sphere mapper [actor = vtk.vtkactor()] 7 vtkactor actor [actor.setmapper(mapper)] 8 5,6 mapper actor 18

23 [ren = vtk.vtkrenderer()] 9 vtkrenderer ren [ren.addactor(actor)] 10 actor ren [renwin = vtk.vtkrenderwindow()] 11 vtkrenderwindow renwin [renwin.addrenderer(ren)] 12 renwin ren [iren = vtk.vtkrenderwindowinteractor()] 13 vtkrenderwindowinteractor iren [iren.setrenderwindow(renwin)] 14 iren renwin [iren.initialize()] 15 iren [renwin.render()] 16 renwin [iren.start()] 17 iren 19

24 [ ] sorce Dataset or ( VTK sphere[ ] ) filter sorce mapper sorce filter (actor) actor renderer actor renderwindow actor renderer iren(renderwindowinteractor) VTK 20

25 3.2 VisBAR wave batch.py formatconvert.py visualize isosurface.py library.py 4 Cube VTK xyz VTK ( ) xyz ( ) 3.2: ( ) 3.3: ( PNG ) 21

26 3.2.1 (formatconvert.py) (visualize isosurface.py) PNG 1 Cube (x,y,z) 2 Cube Cube 6 3 VTK x z VTK VTK 5 Cube xyz 4,6,7 (visualize isosurface.py) (visbar wb setting default.txt bond length.txt) VTK xyz VTK PNG 22

27 3.2.2 Periodic:0, No Periodic:1= ( 5 x 5, 5 y 5, 5 z 5) ( Cube ± ) (0,0,0) A A(12.5,0,5) x x (10) A(12.5,0,2.5) (10,0,0)=A (2.5,0,2.5) Cube xyz 3.4: 23

28 3.5 2 x1 x2 x2 (x2-10,y) x3 (x3-20,y) x4 (x4-30,y) x =( )/ =( ) x x y z 3.5: 24

29 Cube Cube eigen state cube (C 6 H 6 ) HOMO HOMO wavefunction of thermally vibrated C6H E E E E E x,y,z ( ) (40) 4 (80 ) x 5 (80 ) y 6 (80 ) z 7 12 (x,y,z) (x,y,z) 18 25

30 xyz (C 6 H 6 )[3.3.1] Cube xyz 12 HOMO wavefunction of thermally vibrated C6H6 C C C C C C H H H H H H (Cube 1 +2 ) x y z 26

31 3.3.3 VTK (C 6 H 6 )[3.3.1] Cube VTK # vtk DataFile Version 2.0 Probability density for the 3d electron position in a hydrogen atom ASCII DATASET STRUCTURED_POINTS DIMENSIONS ORIGIN SPACING POINT_DATA SCALARS probability_density float LOOKUP_TABLE default ( ) 3 (ASCII BINARY ASCII) 4 ( ) 5 x,y,z 6 (x,y,z) 7 (X, Y, Z) 8 ( ) 9 10 LookUpTable 11 27

32 3.3.4 Cube VTK Cube VTK Cube xyz VTK Cube VTK Cube (x,y,z) 6 z y x F(Mx,My,Mz) F (0, 0, 0) F (0, 0, 1) F (0, 0, 2) F (0, 0, 3) F (0, 0, 4) F (0, 0, 5) F (0, 0, 6) F (0, 0, 7) F (0, 0, 8) F (0, 0, 9) F (0, 0, 10) F (0, 0, 11) F (0, 0, 73) F (0, 0, 74) F (0, 0, 75) F (0, 0, 76) F (0, 0, 77) F (0, 0, 78) F (0, 0, 79) F (0, 0, 80) F (0, 1, 0) F (0, 1, 1) F (0, 1, 2) F (0, 1, 3) F (0, 1, 4) F (0, 1, 5) F (0, 1, 6) F (0, 1, 7) F (0, 1, 8) F (0, 1, 9) F (0, 1, 10) F (0, 1, 11) F (0, 1, 73) F (0, 1, 74) F (0, 1, 75) F (0, 1, 76) F (0, 1, 77) F (0, 1, 78) F (0, 1, 79) F (0, 1, 80) VTK 80 x y z F(Nx,Ny,Nz) F (0, 0, 0) F (1, 0, 0) F (2, 0, 0)... F (79, 0, 0) F (80, 0, 0) F (0, 1, 0) F (1, 1, 0) F (2, 1, 0)... F (79, 1, 0) F (80, 1, 0) F (0, 80, 0) F (1, 80, 0) F (2, 80, 0)... F (79, 80, 0) F (80, 80, 0) F (0, 0, 1) F (1, 0, 1) F (2, 0, 1)... F (79, 0, 1) F (80, 0, 1) F (0, 1, 1) F (1, 1, 1) F (2, 1, 1)... F (79, 1, 1) F (80, 1, 1) F (0, 80, 80) F (1, 80, 80) F (2, 80, 80)... F (79, 80, 80) F (80, 80, 80) Cube Cube VTK... 28

33 3.4 / import os import re import formatconvert as convert convert import visualize_isosurface as view view import vtk vtk Cube pwd = os.getcwd() files = os.listdir(pwd) path( ) out_log = open( log_vtk.txt, w ) log_vtk.txt out_log cnt = 0 Batch_mode = raw_input("input:[auto:a, frame by fram:c]=") 29

34 a Cube PNG c a boundary_mode = raw_input("periodic:0, No_Periodic:1=") 0 1 Cube 1 2 for filenametext in files: files filenametext if filenametext.find(".cube") >= 0:.cube if if filenametext.find(".png") <0:.png if PNG.cube if ( sample.cube.png Cube ) print " " print filenametext Cube out_log.write(filenametext + \n ) if cnt == 0: 0 if

35 check_line=convert.cube_vtk(filenametext,boundary_mode) filenametext view.vtk(filenametext,batch_mode) filenametext,batch_mode cnt +=1 1 elif cnt >= 1: 1 if 1 2 check_line=convert.cube_vtk2(filenametext,check_line,boundary_mode) filenametext check_line view.vtk(filenametext,batch_mode) filenametext,batch_mode out_log.close 31

36 3.4.2 Cube xyz import os import re import library as lib library lib def cube_vtk(filenametext,boundary_mode): filenametext boundary_mode f = open(filenametext, r ) filenametext Cube out = open( make_atom.xyz.txt, w ) ( make_atom.xyz.txt, w ) Cube 6 cube_list=[] cube_list for j in range(0,6): j 0 5 cube_read = f.readline() 1 cube_read = cube_read.rstrip() 1 cube_read = re.sub("\n","",cube_read) 1 32

37 cube_read = re.split(" *",cube_read) 1 cube_list +=[cube_read] 1 cube_list Cube xyz new_cube = int(cube_list[2][1])*-1 cube_list[2][1] xyz - out.write(str(new_cube) + \n ) comment0=len(cube_list[0]) Cube comment1=len(cube_list[1]) Cube out.write(" ") for com0 in range(0,comment0): out.write(str(cube_list[0][com0])+ ) for com1 in range(0,comment1): out.write(str(cube_list[1][com1])+ ) out.write(" "+ \n ) 33

38 Cube (7 19 ) all_atom=[] all_atom for j in range(0,new_cube): (new_cube) atomxyz = f.readline() 1 atomxyz = atomxyz.rstrip() 1 atomxyz = re.sub("\n","",atomxyz) 1 atomxyz = re.split(" *",atomxyz) 1 all_atom +=[atomxyz] 1 atomxyz if Cube xyz if boundary_mode == "0": boundary_mode 0 if for i in range(0,new_cube): if float(all_atom[i][3]) > float(cube_list[2][2])*(-1): x (all_atom[i][3]) ((cube_list[2][2])*(-1)) if 34

39 kyori=(float(all_atom[i][3])-float(cube_list[2][2]))\ /(float(cube_list[2][2])*(-2)) x (all_atom[i][3]) ((cube_list[2][2])cube_list[2][ ) ((float(cube_list[2][2])*(-2)) kyori all_atom[i][3]=str(float(all_atom[i][3])\ +float(cube_list[2][2])*int(kyori)*2) x kyori x x elif float(all_atom[i][3]) < float(cube_list[2][2]): x kyori=(float(all_atom[i][3])+float(cube_list[2][2]))\ /(float(cube_list[2][2])*(-2)) all_atom[i][3]=str(float(all_atom[i][3])\ +float(cube_list[2][2])*int(kyori)*2) if float(all_atom[i][4]) > float(cube_list[2][3])*(-1): y kyori=(float(all_atom[i][4])-float(cube_list[2][3]))\ /(float(cube_list[2][3])*(-2)) all_atom[i][4]=str(float(all_atom[i][4])\ +float(cube_list[2][3])*int(kyori)*2) elif float(all_atom[i][4]) < float(cube_list[2][3]): y kyori=(float(all_atom[i][4])+float(cube_list[2][3]))\ /(float(cube_list[2][3])*(-2)) all_atom[i][4]=str(float(all_atom[i][4])\ +float(cube_list[2][3])*int(kyori)*2) if float(all_atom[i][5]) > float(cube_list[2][4])*(-1): z 35

40 kyori=(float(all_atom[i][5])-float(cube_list[2][4]))\ /(float(cube_list[2][4])*(-2)) all_atom[i][5]=str(float(all_atom[i][5])\ +float(cube_list[2][4])*int(kyori)*2) elif float(all_atom[i][5]) < float(cube_list[2][4]): z kyori=(float(all_atom[i][5])+float(cube_list[2][4]))\ /(float(cube_list[2][4])*(-2)) all_atom[i][5]=str(float(all_atom[i][5])\ +float(cube_list[2][4])*int(kyori)*2) (library.py) Cube xyz for k in range(0,int(cube_list[2][1])*-1): for m in range(0,117): library.py (117 ) if lib.library.items()[m][1][0] == int(float(all_atom[k][1])): library.py Cube if out.write(lib.library.items()[m][0]+ ) library.py else: continue if for l in range (3,6): l 3 5 if l==5: l 5 out.write(all_atom[k][l]+ \n ) 36

41 xyz z else: l 5 out.write(all_atom[k][l]+ ) xyz z Cube xyz out.close xyz f.close Cube Cube Cube f = open(filenametext, r ) filenametext Cube out = open( convert_wave_function.vtk.txt, w ) convert_wave_function.vtk.txt Cube check = 0 check 0 check2 = 1 check2 1 for n in range(0,7+int(cube_list[2][1])*-1): Cube 37

42 f.readline() 1 Cube z L mod L=int(cube_list[5][1])/6 L mod=int(cube_list[5][1])%6 6 mod Cube L mod Cube 6 Cube 6 VTK for line in range(0,1): for line1 in f.readlines(): line1 1 check += 1 1 t1=line1.split() t1 if int(cube_list[5][1])/6 +1 == check/check2: Cube_list[5][1] z ( 80) 6 check/check2 if if 6 check2 += 1 check2 38

43 if mod == 0: mod 0 i out.write( + \n ) continue elif mod == 1: mod 1 elif x0=float(t1[0]) x0 t1[0] out.write( %f %x0+ + \n ) x0 continue elif mod == 2: x0=float(t1[0]) x1=float(t1[1]) out.write( %f %x0+ + %f %x1+ + \n ) continue elif mod == 3: x0=float(t1[0]) x1=float(t1[1]) x2=float(t1[2]) out.write( %f %x0+ + %f %x1+ + %f %x2+ + \n ) continue elif mod == 4: x0=float(t1[0]) x1=float(t1[1]) x2=float(t1[2]) x3=float(t1[3]) out.write( %f %x0+ + %f %x1+/ + %f %x2+ + %f %x3+ + \n ) continue elif mod == 5: 39

44 x0=float(t1[0]) x1=float(t1[1]) x2=float(t1[2]) x3=float(t1[3]) x4=float(t1[4]) out.write( %f %x0+ + %f %x1+/ + %f %x2+ + %f %x3+ + %f %x4+ + \n ) continue continue x0=float(t1[0]) x1=float(t1[1]) x2=float(t1[2]) x3=float(t1[3]) x4=float(t1[4]) x5=float(t1[5]) out.write( %f %x0+ + %f %x1+/ + %f %x2+ + %f %x3+ + %f %x4+ + %f %x5+ ) out.close() f.close() cube VTK f = open( convert_wave_function.vtk.txt, r ) out = open( VTK_out.vtk, w ) VTK total_line=[] total_line mirror = [] mirror for j in range (0,int(cube_list[3][1])): x j 40

45 all_line=[] all_line for i in range(0,int(cube_list[4][1])): y i line = f.readline() 1 line = line.rstrip() 1 line = re.sub("\n","",line) 1 line = re.split(" ",line) 1 all_line += [line] 1 all_line total_line += [all_line] all_line total_line VTK x z out.write( # vtk DataFile Version \n ) VTK VTK out.write( Probability density for the 3d electron position in / a hydrogen atom + \n ) out.write( ASCII + \n ) VTK ASCII (ASCII BAINARY ) out.write( DATASET STRUCTURED_POINTS + \n ) STRUCTURED_POINTS 41

46 out.write( DIMENSIONS + +cube_list[3][1]+ +cube_list[4][1]+/ +cube_list[5][1]+ \n ) eigen_state_ cube.txt (x,y,z )=(80,80,80) out.write( ORIGIN + +cube_list[2][2]+ +cube_list[2][3]+/ +cube_list[2][4]+ \n ) eigen_state_ cube.txt (x,y,z)=( , , ) out.write( SPACING + +cube_list[3][2]+ +cube_list[4][3]+/ +cube_list[5][4]+ \n ) eigen_state_ cube.txt (x,y,z )=( , , ) out.write( POINT_DATA + +str(int(cube_list[3][1])*int(cube_list[4][1])*/ int(cube_list[5][1]))+ + \n ) eigen_state_ cube.txt (x 80) (y 80) (z 80)= out.write( SCALARS probability_density float + \n ) out.write( LOOKUP_TABLE default + \n ) LOOKUP_TABLE default for k in range (0,int(cube_list[5][1])): z for j in range (0,int(cube_list[4][1])): y for i in range (0,int(cube_list[3][1])): x if i==(int(cube_list[3][1])-1): x 80 if out.write(total_line[i][j][k]+ \n ) + else: x 80 else 42

47 out.write(total_line[i][j][k]+ ) + out.close VTK f.close print "end" end Python command line return total_line total_line 2 Cube def cube_vtk2(filenametext,check_line,boundary_mode): filenametext checl_line boundary_mode f = open(filenametext, r ) filenametext Cube out = open( make_atom.xyz.txt, w ) ( make_atom.xyz.txt, w ) Cube 6 cube_list=[] cube_list for j in range(0,6): j 0 5 cube_read = f.readline() 1 cube_read = cube_read.rstrip() 43

48 1 cube_read = re.sub("\n","",cube_read) 1 cube_read = re.split(" *",cube_read) 1 cube_list +=[cube_read] 1 cube_list Cube xyz new_cube = int(cube_list[2][1])*-1 cube_list[2][1] xyz - out.write(str(new_cube) + \n ) comment0=len(cube_list[0]) Cube comment1=len(cube_list[1]) Cube out.write(" ") for com0 in range(0,comment0): out.write(str(cube_list[0][com0])+ ) for com1 in range(0,comment1): out.write(str(cube_list[1][com1])+ ) 44

49 out.write(" "+ \n ) Cube (7 19 ) all_atom=[] all_atom for j in range(0,new_cube): (new_cube) atomxyz = f.readline() 1 atomxyz = atomxyz.rstrip() 1 atomxyz = re.sub("\n","",atomxyz) 1 atomxyz = re.split(" *",atomxyz) 1 all_atom +=[atomxyz] 1 atomxyz if Cube xyz if boundary_mode == "0": boundary_mode 0 if for i in range(0,new_cube): 45

50 if float(all_atom[i][3]) > float(cube_list[2][2])*(-1): x (all_atom[i][3]) ((cube_list[2][2])*(-1)) if kyori=(float(all_atom[i][3])-float(cube_list[2][2]))\ /(float(cube_list[2][2])*(-2)) x (all_atom[i][3]) ((cube_list[2][2])cube_list[2][ ) ((float(cube_list[2][2])*(-2)) kyori all_atom[i][3]=str(float(all_atom[i][3])\ +float(cube_list[2][2])*int(kyori)*2) x kyori x x elif float(all_atom[i][3]) < float(cube_list[2][2]): x kyori=(float(all_atom[i][3])+float(cube_list[2][2]))\ /(float(cube_list[2][2])*(-2)) all_atom[i][3]=str(float(all_atom[i][3])\ +float(cube_list[2][2])*int(kyori)*2) if float(all_atom[i][4]) > float(cube_list[2][3])*(-1): y kyori=(float(all_atom[i][4])-float(cube_list[2][3]))\ /(float(cube_list[2][3])*(-2)) all_atom[i][4]=str(float(all_atom[i][4])\ +float(cube_list[2][3])*int(kyori)*2) elif float(all_atom[i][4]) < float(cube_list[2][3]): y kyori=(float(all_atom[i][4])+float(cube_list[2][3]))\ /(float(cube_list[2][3])*(-2)) all_atom[i][4]=str(float(all_atom[i][4])\ 46

51 +float(cube_list[2][3])*int(kyori)*2) if float(all_atom[i][5]) > float(cube_list[2][4])*(-1): z kyori=(float(all_atom[i][5])-float(cube_list[2][4]))\ /(float(cube_list[2][4])*(-2)) all_atom[i][5]=str(float(all_atom[i][5])\ +float(cube_list[2][4])*int(kyori)*2) elif float(all_atom[i][5]) < float(cube_list[2][4]): z kyori=(float(all_atom[i][5])+float(cube_list[2][4]))\ /(float(cube_list[2][4])*(-2)) all_atom[i][5]=str(float(all_atom[i][5])\ +float(cube_list[2][4])*int(kyori)*2) (library.py) Cube xyz for k in range(0,int(cube_list[2][1])*-1): for m in range(0,117): library.py (117 ) if lib.library.items()[m][1][0] == int(float(all_atom[k][1])): library.py Cube if out.write(lib.library.items()[m][0]+ ) library.py else: continue if for l in range (3,6): l

52 if l==5: l 5 out.write(all_atom[k][l]+ \n ) xyz z else: l 5 out.write(all_atom[k][l]+ ) xyz z Cube xyz out.close xyz f.close Cube Cube Cube f = open(filenametext, r ) filenametext Cube out = open( convert_wave_function.vtk.txt, w ) convert_wave_function.vtk.txt Cube check = 0 check 0 check2 = 1 48

53 check2 1 for n in range(0,7+int(cube_list[2][1])*-1): Cube f.readline() 1 Cube z L mod L=int(cube_list[5][1])/6 L mod=int(cube_list[5][1])%6 6 mod Cube L mod Cube 6 Cube 6 VTK for line in range(0,1): for line1 in f.readlines(): line1 1 check += 1 1 t1=line1.split() t1 if int(cube_list[5][1])/6 +1 == check/check2: Cube_list[5][1] z ( 80) 6 check/check2 if if 6 49

54 check2 += 1 check2 if mod == 0: mod 0 i out.write( + \n ) continue elif mod == 1: mod 1 elif x0=float(t1[0]) x0 t1[0] out.write( %f %x0+ + \n ) x0 continue elif mod == 2: x0=float(t1[0]) x1=float(t1[1]) out.write( %f %x0+ + %f %x1+ + \n ) continue elif mod == 3: x0=float(t1[0]) x1=float(t1[1]) x2=float(t1[2]) out.write( %f %x0+ + %f %x1+ + %f %x2+ + \n ) continue elif mod == 4: x0=float(t1[0]) x1=float(t1[1]) x2=float(t1[2]) x3=float(t1[3]) out.write( %f %x0+ + %f %x1+/ 50

55 + %f %x2+ + %f %x3+ + \n ) continue elif mod == 5: x0=float(t1[0]) x1=float(t1[1]) x2=float(t1[2]) x3=float(t1[3]) x4=float(t1[4]) out.write( %f %x0+ + %f %x1+/ + %f %x2+ + %f %x3+ + %f %x4+ + \n ) continue continue x0=float(t1[0]) x1=float(t1[1]) x2=float(t1[2]) x3=float(t1[3]) x4=float(t1[4]) x5=float(t1[5]) out.write( %f %x0+ + %f %x1+/ + %f %x2+ + %f %x3+ + %f %x4+ + %f %x5+ ) out.close() f.close() cube VTK f = open( convert_wave_function.vtk.txt, r ) out = open( VTK_out.vtk, w ) VTK total_line=[] total_line mirror = [] mirror 51

56 for j in range (0,int(cube_list[3][1])): x j all_line=[] all_line for i in range(0,int(cube_list[4][1])): y i line = f.readline() 1 line = line.rstrip() 1 line = re.sub("\n","",line) 1 line = re.split(" ",line) 1 all_line += [line] 1 all_line total_line += [all_line] all_line total_line Cube sum_wave = 0 sum_wave 0 for i in range(0,int(cube_list[3][1])): i cube_list[3][1] Cube x for j in range(0,int(cube_list[4][1])): j cube_list[4][1] Cube y 52

57 for k in range(0,int(cube_list[5][1])): k cube_list[5][1] Cube z total=total_line[i][j][k] Cube total check_wave=check_line[i][j][k] Cube check_wave total=float(total) total check_wave=float(check_wave) check_wave sum_wave += total*check_wave sum_wave total check_wave if sum_wave >= 0: sum_wave 0 if print "plus",sum_wave "plus" sum_wave elif sum_wave < 0: sum_wave 0 if print "minus",sum_wave "minus" sum_wave for i in range(0,int(cube_list[3][1])): i cube_list[3][1] Cube x for j in range(0,int(cube_list[4][1])): j cube_list[4][1] Cube y for k in range(0,int(cube_list[5][1])): k cube_list[5][1] Cube z dammy=total_line[i][j][k] dammy 53

58 dammy=float(dammy)*-1 dammy -1 total_line[i][j][k]=str(dammy) total_line dammy else : if print "NG" NG Python command line VTK x z out.write( # vtk DataFile Version \n ) VTK VTK out.write( Probability density for the 3d electron position in / a hydrogen atom + \n ) out.write( ASCII + \n ) VTK ASCII (ASCII BAINARY ) out.write( DATASET STRUCTURED_POINTS + \n ) STRUCTURED_POINTS out.write( DIMENSIONS + +cube_list[3][1]+ +cube_list[4][1]+/ +cube_list[5][1]+ \n ) eigen_state_ cube (x,y,z )=(80,80,80) out.write( ORIGIN + +cube_list[2][2]+ +cube_list[2][3]+/ +cube_list[2][4]+ \n ) eigen_state_ cube (x,y,z)=( , , ) out.write( SPACING + +cube_list[3][2]+ +cube_list[4][3]+/ +cube_list[5][4]+ \n ) eigen_state_ cube (x,y,z )=( , , ) 54

59 out.write( POINT_DATA + +str(int(cube_list[3][1])*int(cube_list[4][1])*/ int(cube_list[5][1]))+ + \n ) eigen_state_ cube (x 80) (y 80) (z 80)= out.write( SCALARS probability_density float + \n ) out.write( LOOKUP_TABLE default + \n ) LOOKUP_TABLE default for k in range (0,int(cube_list[5][1])): z for j in range (0,int(cube_list[4][1])): y for i in range (0,int(cube_list[3][1])): x if i==(int(cube_list[3][1])-1): x 80 if out.write(total_line[i][j][k]+ \n ) + else: x 80 else out.write(total_line[i][j][k]+ ) + out.close VTK f.close print "end" end Python command line 55

60 return total_line total_line 56

61 3.4.3 import os import re from vtk import* VTK import library as lib library lib import math math( ) import numpy as np numpy( ) np def setting_read(): setting_read pwd = os.getcwd() pwd files = os.listdir(pwd) path( ) if "visbar_wb_setting_default.txt" in files >= 0: visbar_wb_setting_default.txt if setting_file_name="visbar_wb_setting_default.txt" setting_file_name visbar_wb_setting_default.txt f = open(setting_file_name, r ) visbar_wb_setting_default.txt 57

62 a=1 a cnt=0 0 dic={} while True: while findsharp=-1 findsharp -1 line = f.readline() 1 if line.find("--end_setting--") >=0 : --end_setting-- break break while break all_line=[] all_line line = line.replace("\t"," ") line = line.rstrip() line = re.sub("\n","",line) line = re.split(" *",line) line if line[0] == "": 58

63 line if continue continue while if line[0].find("#") >=0: line 1 if continue continue while all_line += line all_line line del all_line[0] 0 for i in range(0,len(all_line)): i all_line if all_line[i].find("#") >=0: all_line if findsharp=i i findsharp if findsharp >=0: findsharp 0 if del all_line[findsharp:] all_line if len(all_line) ==0: all_line if print "Dictionary isn t possible" +" "+ "["+line[0]+"]" Dictionary isn t possible continue while para=[] para 59

64 para += all_line para all_line dic[line[0]]=para line para line[0]:para f.close visbar_wb_setting.txt if "visbar_wb_setting.txt" in files >= 0: visbar_wb_setting.txt if setting_file_name="visbar_wb_setting.txt" visbar_wb_setting.txt setting_file_name f = open(setting_file_name, r ) setting_file_name (visbar_wb_setting.txt) a=1 a 1 cnt=0 cnt 0 dic2={} dic2 while True: while findsharp=-1 findsharp -1 line = f.readline() 1 if line.find("--end_setting--") >=0 : 1 --end_setting-- break 60

65 break while break all_line=[] all_line line = line.replace("\t"," ") line = line.rstrip() line = re.sub("\n","",line) line = re.split(" *",line) line if line[0] == "": line if continue continue while if line[0].find("#") >=0: line 1 if continue continue while all_line += line all_line line del all_line[0] 0 for i in range(0,len(all_line)): i all_line if all_line[i].find("#") >=0: all_line if 61

66 findsharp=i i findsharp if findsharp >=0: findsharp 0 if del all_line[findsharp:] all_line if len(all_line) ==0: findsharp 0 if print "Dictionary isn t possible" +" "+ "["+line[0]+"]" Dictionary isn t possible continue while para=[] para para += all_line para all_line dic2[line[0]]=para line para line[0]:para dic.update(dic2) dic dic2 dic return dic dic read=setting_read() setting_read() read def setting_bond(): setting_bond f = open("bond_length.txt", r ) bond_length.txt 62

67 a=1 a cnt=0 0 dic={} while True: while findsharp=-1 findsharp -1 line = f.readline() 1 if line.find("--end_setting--") >=0 : --end_setting-- break break while break all_line=[] all_line line = line.replace("\t"," ") line = line.rstrip() line = re.sub("\n","",line) line = re.split(" *",line) line if line[0] == "": line if continue 63

68 continue while if line[0].find("#") >=0: line 1 if continue continue while all_line += line all_line line del all_line[0:2] 0,1 for i in range(0,len(all_line)): i all_line if all_line[i].find("#") >=0: all_line if findsharp=i i findsharp if findsharp >=0: findsharp 0 if del all_line[findsharp:] all_line if len(all_line) ==0: all_line if print "Dictionary isn t possible" +" "+ "["+line[0]+"]" Dictionary isn t possible continue while dic[line[0],line[1]]=line[2] line line line[0],line[1]]:line[2] 64

69 f.close bond_length.txt retur dic dic read_bond=setting_bond() setting_bond read_bond setting read() save_step = 0 save_step 0 isovalue=float(read["isovalue"][0]) isovalue setting stableiso=float(read["isovalue"][0]) stableiso setting isovalueminus=float(read["isovalueminus"][0]) isovalueminus setting stableisominus=float(read["isovalueminus"][0]) stableisominus setting level=0 level 0 u png save step def vtk(filenametext,batch_mode): vtk filenametext,batch_mode 65

70 save_step = 0 save_step 0 def usermethod(obj, arg): global save_step save_step global print "usermethod" usermethod print "level =",level,"isovalue=",stableiso,"isovalueminus=",stableisominus level Python command line isosurface.setvalue(0,stableiso) isosurface.setvalue isosurfaceminus.setvalue(0,stableisominus) isosurfaceminus.setvalue renwin.render() renwin Render windowtoimagefilter=vtk.vtkwindowtoimagefilter() windowtoimagefilter vtk.vtkwindowtoimagefilter() windowtoimagefilter.setinput(renwin) windowtoimagefilter renwin windowtoimagefilter.update() windowtoimagefilter pngwriter=vtk.vtkpngwriter() pngwriter vtk.vtkpngwriter() pngwriter.setinput(windowtoimagefilter.getoutput()) pngwriter windowtoimagefilter pngwriter.setfilename("image"+ str(save_step) +".png") image+ +.png 66

71 pngwriter.write() pngwriter Write() save_step += 1 save_step 1 setting read setting def setting_write(): setting_write isosurface.setvalue(0,stableiso) isosurface.setvalue isosurfaceminus.setvalue(0,stableisominus) isosurfaceminus.setvalue renwin.render() renwin Render out = open("visbar_wb_setting_output.txt", w ) visbar_wb_setting_output.txt out.write( isovalue + + str(isovalue*(1.01**level)) + \n ) isovalue out.write( isovalueminus + + str(isovalueminus*(1.01**level)) + \n ) isovalueminus out.write( isoopacity + + \ str(isosurfaceactor.getproperty().getopacity()) + \n ) isoopacity out.write( outlinecolor + + str( outlineactor.getproperty().getambientcolor()[ + + str( outlineactor.getproperty().getambientcolor()[ + + str( outlineactor.getproperty().getambientcolor()[ outlinecolor RGB out.write( Window_size + + str(renwin.getsize()[0])\ + + str(renwin.getsize()[1])+ \n ) Window_size (x,y) 67

72 out.write( isominusr + +str(isominusr)+ \n ) isominusr RGB R out.write( isominusg + +str(isominusg)+ \n ) isominusg RGB G out.write( isominusb + +str(isominusb)+ \n ) isominusb RGB B out.write( isoplusr + +str(isoplusr)+ \n ) isoplusr RGB R out.write( isoplusg + +str(isoplusg)+ \n ) isoplusg RGB G out.write( isoplusb + +str(isoplusb)+ \n ) isoplusb RGB B out.write( BackGround + +str(ren.getbackground()[0]) + +str(ren.getbackground()[1]) + +str(ren.getbackground()[2])+ \n ) BackGround RGB out.write( FocalPoint + +str(camera.getfocalpoint()[0]) + +str(camera.getfocalpoint()[1]) + +str(camera.getfocalpoint()[2])+ \n ) FocalPoint FocalPoint out.write( Position + +str(camera.getposition()[0]) + +str(camera.getposition()[1]) + +str(camera.getposition()[2])+ \n ) Position out.write( ParallelScale + +str(camera.getparallelscale())+ \n ) ParallelScale ParallelScale out.write( ViewUp + +str(camera.getviewup()[0]) + +str(camera.getviewup()[1]) + +str(camera.getviewup()[2])+ \n ) ViewUp ViewUp more_setting = raw_input("customize_setting:[yes:y, No:n]=") y 68

73 n more_setting all_parts=["bond","atom","wave_function","outline","parallel_view","text"] all_parts isosurface.setvalue(0,stableiso) isosurface.setvalue isosurfaceminus.setvalue(0,stableisominus) isosurfaceminus.setvalue renwin.render() renwin Render if more_setting == "y": more_setting y if for parts in all_parts: all_parts parts parts_setting = raw_input(parts +"_setting:[on:1, Off:0]=") On/Off On 1 Off 0 if parts_setting == "1": parts_setting 1 if out.write(parts + " " + "On" +"\n") On print parts + " " + "On" On print " " elif parts_setting == "0": parts_setting 0 if out.write(parts + " " + "Off" +"\n") Off print parts + " " + "Off" 69

74 Off print " " elif more_setting =="n": more_setting n if for parts in all_parts: all_parts parts out.write(parts + " " + "On" +"\n") On more_setting n On out.write( --end_setting-- + \n ) --end_setting-- out.close visbar_wb_setting_output.txt StructuredPoints( ) VTK out.vtk reader = vtkstructuredpointsreader() reader vtkstructuredpointsreader() StructuredPoints reader.setfilename("vtk_out.vtk") VTK_out.vtk outline = vtkoutlinefilter() outline vtkoutlinefilter() outline.setinputconnection(reader.getoutputport()) outline reader 70

75 outlinemapper = vtkpolydatamapper() outlinemapper vtkpolydatamapper() outlinemapper.setinputconnection(outline.getoutputport()) outlinemapper outline outlineactor = vtkactor() outlineactor vtkactor() outlineactor.setmapper(outlinemapper) outlineactor outlinemapper outlineactor.getproperty().setcolor(float(read["outlinecolor"][0]), float(read["outlinecolor"][1]), float(read["outlinecolor"][2])) outlineactor RGB (R,G,B) setting ( ) isominusr=float(read["isominusr"][0]) RGB R setting isominusg=float(read["isominusg"][0]) RGB G setting isominusb=float(read["isominusb"][0]) RGB B setting isoplusr=float(read["isoplusr"][0]) RGB R setting isoplusg=float(read["isoplusg"][0]) RGB G setting isoplusb=float(read["isoplusb"][0]) RGB B setting lut=vtkcolortransferfunction() lut 71

76 lut.addrgbpoint(-0.1,isominusr,isominusg,isominusb) -0.1 RGB(isominusR,isominusG,isominusB) lut.addrgbpoint(-0.075,isominusr,isominusg,isominusb) lut.addrgbpoint(-0.05,isominusr,isominusg,isominusb) lut.addrgbpoint(-0.025,isominusr,isominusg,isominusb) lut.addrgbpoint(-0.001,isominusr,isominusg,isominusb) lut.addrgbpoint(0,1,0,0) lut.addrgbpoint(0.001,isoplusr,isoplusg,isoplusb) lut.addrgbpoint(0.025,isoplusr,isoplusg,isoplusb) lut.addrgbpoint(0.05,isoplusr,isoplusg,isoplusb) lut.addrgbpoint(0.075,isoplusr,isoplusg,isoplusb) lut.addrgbpoint(0.1,isoplusr,isoplusg,isoplusb) global global isovalue isovalue global global isovalueminus isovalueminus global isosurface = vtkcontourfilter() isosurface vtkcontourfilter() isosurface.setinputconnection(reader.getoutputport()) isosurface reader isosurface.setvalue(0,isovalue) iosurface isosurfacemapper = vtkpolydatamapper() isosurfacemapper vtkpolydatamapper() isosurfacemapper.setlookuptable(lut) isosurfacemapper lut 72

77 isosurfacemapper.setinputconnection(isosurface.getoutputport()) isosurfacemapper isosurface isosurfaceactor = vtkactor() isosurfaceactor vtkactor() isosurfaceactor.setmapper(isosurfacemapper) isosurfaceactor isosurface isosurfaceactor.getproperty().setopacity(float(read["isoopacity"][0])) setting isosurfaceminus = vtkcontourfilter() isosurfaceminus.setinputconnection(reader.getoutputport()) isosurfaceminus.setvalue(0,isovalueminus) isosurfaceminusmapper = vtkpolydatamapper() isosurfaceminusmapper.setlookuptable(lut) isosurfaceminusmapper.setinputconnection(isosurfaceminus.getoutputport()) isosurfaceminusactor = vtkactor() isosurfaceminusactor.setmapper(isosurfaceminusmapper) isosurfaceminusactor.getproperty().setopacity(float(read["isoopacity"][0])) ren = vtkrenderer() ren vtkrenderer() ren.setbackground(float(read["background"][0]), float(read["background"][1]), float(read["background"][2])) setting xyz 73

78 f=open( make_atom.xyz.txt, r ) xyz atom_list=[] atom_list number=f.readline() number comment=f.readline() comment for j in range(0,int(number)): number( ) atom = f.readline() 1 atom = atom.rstrip() 1 atom = re.sub("\n","",atom) 1 atom = re.split(" *",atom) 1 atom_list +=[atom] 1 atom_list f.close xyz xyz Sphere for k in range(0,int(number)): # create source source0 = vtkspheresource() 74

79 source0 vtkspheresource() vtkspheresource() sphere( ) source0.setcenter(float(atom_list[k][1]),float(atom_list[k][2]),/ float(atom_list[k][3])) source0.setradius(float(lib.library[atom_list[k][0]][1])) source0.setthetaresolution(15) ( ) source0.setphiresolution(15) ( ) # mapper mapper0 = vtkpolydatamapper() mapper0 vtkpolydatamapper() mapper0.setinput(source0.getoutput()) mapper0 sorce() # actor actor0 = vtkactor() actor0 vtkactor() actor0.setmapper(mapper0) actor0 mapper0 actor0.getproperty().setcolor(lib.library[atom_list[k][0]][2][0]/255,/ lib.library[atom_list[k][0]][2][1]/255,lib.library[atom_list[k][0]][2][2]/255) actor0 library.py RGB if read["atom"][0] == "On": atom On actor0 ren.addactor(actor0) ren actor0 75

80 all_atom=atom_list atom_list all_atom for i in range(0,int(number)-1): i 0 (number)-1 for j in range(i+1,int(number)): j i+1 number all_atom[i][1]=float(all_atom[i][1]) all_atom x all_atom[i][2]=float(all_atom[i][2]) all_atom y all_atom[i][3]=float(all_atom[i][3]) all_atom z all_atom[j][1]=float(all_atom[j][1]) all_atom x all_atom[j][2]=float(all_atom[j][2]) all_atom y all_atom[j][3]=float(all_atom[j][3]) all_atom z length = ((all_atom[j][1] - all_atom[i][1])**2.0\ +(all_atom[j][2] - all_atom[i][2])**2.0\ +(all_atom[j][3] - all_atom[i][3])**2.0)**0.5 if length <= float(read_bond[all_atom[i][0],all_atom[j][0]]): bond_length length if radius=0.1 radius 0.1 res=10 res 10 axis=[all_atom[i][1]-all_atom[j][1],\ 76

81 all_atom[i][2]-all_atom[j][2],all_atom[i][3]-all_atom[j][3]] pos=[(all_atom[i][1]+all_atom[j][1])/2.0,(all_atom[i][2]+all_atom[j][2]) height=math.sqrt(axis[0]**2+axis[1]**2+axis[2]**2) theta = math.acos(axis[1] / np.linalg.norm(axis)) v = np.array([axis[2], 0, -axis[0]]) v [axis[2], 0, -axis[0] cylinder = vtkcylindersource() cylinder vtkcylindersource() cylinder.setresolution(res) cylinder.setheight(height) cylinder.setradius(radius) mapper = vtkpolydatamapper() mapper vtkpolydatamapper() mapper.setinput(cylinder.getoutput()) mapper cylinder.getoutput() actor = vtkactor() actor vtkactor() actor.setmapper(mapper) actor mapper actor.rotatewxyz(theta / math.pi * 180, v[0], v[1], v[2]) actor 77

82 actor.setposition(pos) actor position if read["bond"][0] == "On": bond On if ren.addactor(actor) actor camera=vtkcamera() camera vtkcamera() camera.setfocalpoint(float(read["focalpoint"][0]), float(read["focalpoint"][1]), float(read["focalpoint"][2])) camera setting camera.setposition(float(read["position"][0]), float(read["position"][1]), float(read["position"][2])) camera setting (x,y,z) camera.computeviewplanenormal camera ComputeViewPlaneNormal camera.setparallelscale(float(read["parallelscale"][0])) parallelscale setting camera.setviewup(float(read["viewup"][0]), float(read["viewup"][1]), float(read["viewup"][2])) camera camera.usehorizontalviewangleoff camera ren.setactivecamera(camera) 78

83 ren camera if read["parallel_view"][0] == "On": parallel_view On if ren.getactivecamera().parallelprojectionon() On Window txt = vtk.vtktextactor() txt vtk.vtktextactor() txt.setinput(comment) txt comment txtprop=txt.gettextproperty() txtprop txt.gettextproperty() txtprop.setfontfamilytoarial() Arial txtprop.setfontsize(16) txtprop.setcolor(0,0,0) txt.setdisplayposition(10,450) comment2=filenametext comment2 Cube txt2 = vtktextactor() txt2 vtktextactor() txt2.setinput(comment2) txt2 comment2 txtprop2=txt2.gettextproperty() txtprop2 GetTextProperty() 79

84 txtprop2.setfontfamilytoarial() Arial txtprop2.setfontsize(10) txtprop2.setcolor(0,0,0) ren.addactor(txt2) txt2 Actor text_representation = vtktextrepresentation() vtktextrepresentation() text_representation text_representation.getpositioncoordinate().setvalue(0.05, 0.85) text_representation.getposition2coordinate().setvalue(0.8, 0.1) text_widget = vtktextwidget() vtktextwidget() text_widget text_widget.setrepresentation(text_representation) text_widget.setrepresentation text_representation if read["outline"][0] == "On": outline On if ren.addactor(outlineactor) ren outline if read["wave_function"][0] == "On": wave_function On if ren.addactor(isosurfaceactor) 80

85 ren isosurfaceactor ren.addactor(isosurfaceminusactor) ren isosurfaceminusactor renwin = vtkrenderwindow() renwin vtkrenderwindow() renwin.setwindowname("visbar wave batch") renwin VisBAR wave batch renwin.setsize(int(read["window_size"][0]), int(read["window_size"][1])) Window setting renwin.addrenderer(ren) renwin ren def Keypress(obj, event): global isovalue,isovalueminus,level,stableiso,stableisominus isovalue,isovalueminus,level,stableiso,stableisominus key = obj.getkeysym() key obj.getkeysym() if key == "4": 4 level +=1 level 1 stableiso = isovalue*(1.01**level) isovalue 1.01 lebel stableiso

86 elif key == "5": level -=1 stableiso = isovalue*(1.01**level) elif key == "6": level +=1 stableisominus = isovalueminus*(1.01**level) elif key == "7": level -=1 stableisominus = isovalueminus*(1.01**level) elif key == "1": level +=1 stableiso = isovalue*(1.01**level) stableisominus = isovalueminus*(1.01**level) elif key == "2": level -=1 stableiso = isovalue*(1.01**level) stableisominus = isovalueminus*(1.01**level) elif key == "z": setting_write() setting setting print "level =",level,"isovalue=",stableiso,"isovalueminus=",stableisominus level Python command line isosurface.setvalue(0,stableiso) isosurface.setvalue isosurfaceminus.setvalue(0,stableisominus) isosurfaceminus.setvalue renwin.render() renwin Render if Batch_mode == "c" : 82

87 Batch_mode c if w2if = vtkwindowtoimagefilter() vtkwindowtoimagefilter() w2if w2if.setinput(renwin) w2if renwin writer = vtkpngwriter() vtkpngwriter() writer writer.setinput(w2if.getoutput()) writer w2if writer.setfilename(str(filenametext)+".png") Cube.png writer.write() writer print "mode c" Python command line c iren = vtkrenderwindowinteractor() iren vtkrenderwindowinteractor() iren.addobserver("userevent", usermethod) png iren iren.setrenderwindow(renwin) iren renwin iren.addobserver("keypressevent", Keypress) iren text_widget = vtktextwidget() vtktextwidget() text_widget text_widget.setrepresentation(text_representation) text_widget.setrepresentation text_representation text_widget.setinteractor(iren) 83

88 text_widget.setinteractor iren text_widget.settextactor(txt) text_widget txt text_widget.selectableoff() if read["text"][0] == "On": text On if text_widget.on() text_widget iren.initialize() iren Initialize() iren.start() VTK elif Batch_mode == "a" : Batch_mode a if if read["text"][0] == "On": text On if ren.addactor(txt) actor w2if = vtkwindowtoimagefilter() vtkwindowtoimagefilter() w2if w2if.setinput(renwin) w2if renwin writer = vtkpngwriter() vtkpngwriter() writer writer.setinput(w2if.getoutput()) writer w2if writer.setfilename(str(filenametext)+".png") Cube.png 84

89 writer.write() writer print "mode a" Python command line a else : if a else print "mode else" Python command line mode else 85

90 3.4.4 library.py H Ca 118 Python H :[1,0.37,(0.,0.,255.)] H :[1,0.37,(0.,0.,255.)]= :[,,( RGB )] # -*- coding: cp932 -*- library={ H :[1,0.37,(0.,0.,255.)], He :[2,1.5,(0.,255.,0.)], Li :[3,1.52,(82.,82.,255.)], Be :[4,1.13,(128.,0.,255.)], B :[5,0.9,(230.,230.,10.)], C :[6,0.77,(80.,80.,80.)], N :[7,0.53,(255.,128.,0.)], O :[8,0.61,(255.,0.,128.)], F :[9,0.71,(0.,255.,128)], Ne :[10,1.59,(70.,255.,70.)], Na :[11,1.86,(122.,122.,255.)], Mg :[12,1.6,(128.,64.,192.)], Al :[13,1.43,(255.,210.,0.)], Si :[14,1.17,(120.,120.,120.)], P :[15,1.09,(192.,128.,64.)], S :[16,1.02,(192.,64.,128.)], Cl :[17,1.01,(64.,192.,128.)], Ar :[18,1.91,(140.,255.,140.)], K :[19,2.26,(160.,160.,255.)], Ca :[20,1.97,(128.,80.,150.)], 86

91 [1] Python ( ) [2] Visualization Tool Kit (VTK ) [3] Numpy (Numpy ) 87

92 A VTK 1 VTK VTK < > DELL VOSTRO3350 Windows Professional OS32bit servicepack1 WindowsUpdate Python Visual Studio Express 2012 for Windows Desktop VTK vtkdata zip CMake(cmake win32-x86.exe) C++ gfortran < > Linux 4. VTK Python 3D 88

93 Windows VTK Windows Visual Studio VTK Python < > ( ) 1. VTK C:/Users/damp-tottori/Desktop/VTK yamazaki D 2. VTK ( VTK vtk zip 3. VTK vtkdata zip 4. CMake VTK (VTK5.10.1) C:/Users/damp-tottori/Downloads/vtk C:/Users/damptottori/Desktop/vtkBuild Yes 6. Configure Visual Studio11 compiler native Finish CMAKE MAKE PROGRAM MAKE PROGRAM NOT FOUND C:/Windows/Microsoft.NET/Framework/v /MSBuild.exe Configure 7. Advanced( ) BUILD SHARED LIBS check CMAKE CONFIGURATION TYPES Release CMAKE INSTALL PREFIX C:/VTK VTK DATA ROOT C:/VTK/vtkdata VTK WRAP PYTHON check CMAKE LINKER NOT FOUND C:/Program Files/Microsoft Visual Studio 11.0/VC/bin/link.exe COVERAGE COMMAND NOT FOUND C:/Program Files/gfortran/bin/gcov.exe 89

94 8. Configure 9. VTK USE TK check Configure Configure 10. Configure Generate VTK.sln vtkbuild cmake 11. vtkbuild VTK.sln Microsoft Visula Studio Visual Studio Solution Explorer ALL BUILD 13. ALL BUILD Solution Explorer RUN TESTS 14. Solution Explorer INSTALL Python 15. Python VTK Python Python C:/Python27/Lib/site-packages VTK Python VTK (C:/Users/damp-tottori/Desktop/VTK yamazaki Download) /lib/site-packages C:/Python27/Lib/site-packages vtk.pth C:/Users/damp-tottori/Desktop/VTK yamazaki Download packages 16. C:/Users/damp-tottori/Desktop/VTK yamazaki Download/bin C:/Users/damp-tottori/Desktop/VTK yamazaki Download/lib/site-packages vtk 17. Python import vtk < > C:\Program Files INSTALL VisualStadio < > C++ C++ C++ 90

95 B B.1 v0.9.4 ( ,9 22 ) (v0.9.4r2, ) 0.02 Cube Cube PerspectiveView ProjectionView Cube Log B.2 v0.9.5 ( ) 91

96 B.3 v1.0.0 ( ) bugfix Window size (B.3.1 ) B.3.1 Window size Linux Python VTK python-vtk numpy visualize isosurface.py eigen_state_ cube end Traceback (most recent call last): File "VisBAR_wave_batch.py", line 24, in <module> view.vtk(filenametext,batch_mode) File "/home/user/tmp/visbar_wave_batch_package_v0.9.4_ /\ visualize_isosurface.py", line 512, in vtk float(read["window_size"][1])) TypeError: function takes exactly 1 argument (2 given) visualize isosurface.py 511,512 renwin.setsize(float(read["window_size"][0]), float(read["window_size"][1])) TypeError renwin.setsize renwin.setsize(int(read["window_size"][0]), int(read["window_size"][1])) 92

TITLE

TITLE VisBAR Wave Batch v0.9 25 9 11 1 VisBAR wave batch 1 1.1.......................................... 1 1.2................................. 2 1.3.............................. 3 2 4 2.1.....................................

More information

1 VisBAR edu H 2 O.....

1 VisBAR edu H 2 O..... VisBAR edu v1.03 ( ) 25 4 22 1 VisBAR edu 1 1.1....................................................... 1 1.2.................................................. 2 2 3 2.1 H 2 O.........................................

More information

untitled

untitled 2 VTK takata@ 1 G401 gnuplot 2 3 x, y, ), ) Version3.8 2 1 G401 vtk 3 CMakeLists.txt PROJECT (ProjectName) INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake) IF (USE_VTK_FILE) INCLUDE(${USE_VTK_FILE}) ENDIF

More information

Python Speed Learning

Python   Speed Learning Python Speed Learning 1 / 76 Python 2 1 $ python 1 >>> 1 + 2 2 3 2 / 76 print : 1 print : ( ) 3 / 76 print : 1 print 1 2 print hello 3 print 1+2 4 print 7/3 5 print abs(-5*4) 4 / 76 print : 1 print 1 2

More information

Python Speed Learning

Python   Speed Learning Python Speed Learning 1 / 89 1 2 3 4 (import) 5 6 7 (for) (if) 8 9 10 ( ) 11 12 for 13 2 / 89 Contents 1 2 3 4 (import) 5 6 7 (for) (if) 8 9 10 ( ) 11 12 for 13 3 / 89 (def) (for) (if) etc. 1 4 / 89 Jupyter

More information

1 I EViews View Proc Freeze

1 I EViews View Proc Freeze EViews 2017 9 6 1 I EViews 4 1 5 2 10 3 13 4 16 4.1 View.......................................... 17 4.2 Proc.......................................... 22 4.3 Freeze & Name....................................

More information

Rによる計量分析:データ解析と可視化 - 第2回 セットアップ

Rによる計量分析:データ解析と可視化 - 第2回 セットアップ R 2 2017 Email: gito@eco.u-toyama.ac.jp October 16, 2017 Outline 1 ( ) 2 R RStudio 3 4 R (Toyama/NIHU) R October 16, 2017 1 / 34 R RStudio, R PC ( ) ( ) (Toyama/NIHU) R October 16, 2017 2 / 34 R ( ) R

More information

Visual Python, Numpy, Matplotlib

Visual Python, Numpy, Matplotlib Visual Python, Numpy, Matplotlib 1 / 38 Contents 1 2 Visual Python 3 Numpy Scipy 4 Scipy 5 Matplotlib 2 / 38 Contents 1 2 Visual Python 3 Numpy Scipy 4 Scipy 5 Matplotlib 3 / 38 3 Visual Python: 3D Numpy,

More information

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for embedded systems that use microcontrollers (MCUs)

More information

13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software Nspire Nspire Nspir

13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software Nspire Nspire Nspir 13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software 37.1 37.1 Nspire Nspire Nspire 37.1: Student Software 13 2 13 Student Software esc

More information

dTVIIman.PDF

dTVIIman.PDF dtv.ii SR diffusion TENSOR Visualizer II, the Second Release Rev.0.90 (2005.08.22) dtv 3 6 ROI ROI 10 11 15 21 23 25 2 dtv dtvdiffusion TENSOR Visualizer MR VOLUME-ONE dtv VOLUME-ONE ROI 1.1 dtv.ii SR

More information

ProVAL Recent Projects, ProVAL Online 3 Recent Projects ProVAL Online Show Online Content on the Start Page Page 13

ProVAL Recent Projects, ProVAL Online 3 Recent Projects ProVAL Online Show Online Content on the Start Page Page 13 ProVAL Unit System Enable Recording Log Preferred Language Default File Type Default Project Path ProVAL : Unit SystemUse SI Units SI SI USCS Enable Recording Log Language Default File Type Default Project

More information

untitled

untitled FutureNet Microsoft Corporation Microsoft Windows Windows 95 Windows 98 Windows NT4.0 Windows 2000, Windows XP, Microsoft Internet Exproler (1) (2) (3) COM. (4) (5) ii ... 1 1.1... 1 1.2... 3 1.3... 6...

More information

PowerPoint Presentation

PowerPoint Presentation 知能システム論 1 (3) 2009.4.21 情報システム学研究科情報メディアシステム学専攻知能システム学講座末廣尚士 - 講義資料の HP http://www.taka.is.uec.ac.jp/ から右のメニューの class をクリック または http://www.taka.is.uec.ac.jp/class200 9/class2009.html を直接入力 2. Python 入門

More information

Python (Anaconda ) Anaconda 2 3 Python Python IDLE Python NumPy 6

Python (Anaconda ) Anaconda 2 3 Python Python IDLE Python NumPy 6 Python (Anaconda ) 2017. 05. 30. 1 1 2 Anaconda 2 3 Python 3 3.1 Python.......................... 3 3.2 IDLE Python....................... 5 4 NumPy 6 5 matplotlib 7 5.1..................................

More information

Microsoft Word - ChoreonoidStartUpGuide.docx

Microsoft Word - ChoreonoidStartUpGuide.docx Choreonoid 1 ... 4... 4... 4... 4... 4... 5... 5 Choreonoid... 6 Choreonoid... 6 Choreonoid... 6 Choreonid... 8 Choreonoid... 9 Choreonoid Windows... 9...9...13 Choreonoid (Linux )... 21 Ubuntu Linux...21

More information

たのしいプログラミング Pythonではじめよう!

たのしいプログラミング Pythonではじめよう! Title of English-language original: Python for Kids A Playful Introduction to Programming ISBN 978-1-59327-407-8, published by No Starch Press, Inc. Copyright 2013 by Jason R. Briggs. Japanese-language

More information

Visual Python, Numpy, Matplotlib

Visual Python, Numpy, Matplotlib Visual Python, Numpy, Matplotlib 1 / 57 Contents 1 2 Visual Python 3 Numpy Scipy 4 Scipy 5 Matplotlib 2 / 57 Contents 1 2 Visual Python 3 Numpy Scipy 4 Scipy 5 Matplotlib 3 / 57 3 Visual Python: 3D Numpy,

More information

インテル(R) Visual Fortran Composer XE

インテル(R) Visual Fortran Composer XE Visual Fortran Composer XE 1. 2. 3. 4. 5. Visual Studio 6. Visual Studio 7. 8. Compaq Visual Fortran 9. Visual Studio 10. 2 https://registrationcenter.intel.com/regcenter/ w_fcompxe_all_jp_2013_sp1.1.139.exe

More information

appli_HPhi_install

appli_HPhi_install 2018/3/7 HΦ version 3.0.0 インストール手順書 (Linux 64 ビット版 ) 目次 1. アプリケーション概要...- 1-2. システム環境...- 1-3. 必要なツール ライブラリのインストール...- 1-1 cmake...- 2-2 numpy...- 3-4. アプリケーションのインストール...- 4-5. 動作確認の実施...- 5 - 本手順書は HΦ

More information

Microsoft Word - MetaFluor70取扱説明.doc

Microsoft Word - MetaFluor70取扱説明.doc MetaFluor (Version 7.7) MetaFluor 1. MetaFluor MetaFluor Meta Imaging Series 7.x Meta Imaging Series Administrator CCD Meta Imaging Series Administrator CCD Molecular Devices Japan KK/ Imaging Team (1/14)

More information

LSM5Pascal Ver 3.2 GFP 4D Image VisArt Carl Zeiss Co.,Ltd.

LSM5Pascal Ver 3.2 GFP 4D Image VisArt Carl Zeiss Co.,Ltd. LSM5Pascal Ver 3.2 GFP 4D Image VisArt 2004.03 LSM5PASCAL V3.2 LSM5PASCAL SW3.2Axiovert200M 1 1 2 3 3 4 4 5 SingleTrack 9 Multi Track 10,18 5 / 21 6 3 27 7 35 8 ( OFF) 40 LSM5PASCAL V3.2 LSM5PASCAL 65

More information

New version (2.15.1) of Specview is now available Dismiss Windows Specview.bat set spv= Specview set jhome= JAVA (C:\Program Files\Java\jre<version>\

New version (2.15.1) of Specview is now available Dismiss Windows Specview.bat set spv= Specview set jhome= JAVA (C:\Program Files\Java\jre<version>\ Specview VO 2012 2012/3/26 Specview Specview STSCI(Space Telescope SCience Institute) VO Specview Web page http://www.stsci.edu/resources/software hardware/specview http://specview.stsci.edu/javahelp/main.html

More information

1

1 PalmGauss SC PGSC-5G Instruction Manual PalmGauss SC PGSC-5G Version 1.01 PalmGauss SC PGSC5G 1.... 3 2.... 3 3.... 3 3.1... 3 3.2... 3 3.3 PalmGauss... 4 3.4... 4 3.4.1 (Fig. 4)... 4 3.4.2 (Fig. 5)...

More information

1.... 1 2.... 1 2.1. RATS... 1 2.1.1. expat... 1 2.1.2. expat... 1 2.1.3. expat... 2 2.2. RATS... 2 2.2.1. RATS... 2 2.2.2.... 3 3. RATS... 4 3.1.... 4 3.2.... 4 3.3.... 6 3.3.1.... 6 3.3.2.... 6 3.3.3....

More information

<4D F736F F D B B83578B6594BB2D834A836F815B82D082C88C60202E646F63>

<4D F736F F D B B83578B6594BB2D834A836F815B82D082C88C60202E646F63> デザイン言語 Processing 入門 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. http://www.morikita.co.jp/books/mid/084931 このサンプルページの内容は, 初版 1 刷発行当時のものです. Processing Ben Fry Casey Reas Windows Mac Linux Lesson 1 Processing

More information

1 6/13 2 6/20 3 6/27 4 7/4 5 7/11 6 7/18 N 7 7/25 Warshall-Floyd, Bellman-Ford, Dijkstra TSP DP, 8/1 2 / 36

1 6/13 2 6/20 3 6/27 4 7/4 5 7/11 6 7/18 N 7 7/25 Warshall-Floyd, Bellman-Ford, Dijkstra TSP DP, 8/1 2 / 36 3 2016 6 27 1 / 36 1 6/13 2 6/20 3 6/27 4 7/4 5 7/11 6 7/18 N 7 7/25 Warshall-Floyd, Bellman-Ford, Dijkstra TSP DP, 8/1 2 / 36 1 2 3 3 / 36 4 / 36 os.urandom(n) n >>> import os >>> r = os.urandom(4) #

More information

TOPLON PRIO操作手順

TOPLON PRIO操作手順 TOPLON PRIO 2004/05/24 I/O LON WAGO TOPLON PRIO 1. 1) PCC-10 S/W 2) PC 3) PCC-10 4) Windows Lon WorksR Plug n Play Apply OK 5) Visio LonMaker LonPoint 6) TOPLON PRIO 2. IO-PRO SYM TOPLON-PRIO SNVT NVI

More information

quattro.PDF

quattro.PDF Quattro USB Audio Interface 2 M-AUDIO 3 Windows Windows 98 SE/ Windows ME/ Windows 2000/ Windows XP Platinum III 500MHz/ 96kHz Platinum II 400MKz/ 48kHz 128MB RAM / 96kHz 64MB RAM/ 48kHz Macintosh USB

More information

XML ( ) XML XML jedit XML XPath XSLT jedit JAVA VM jedit Slava Pestov GNU GPL ( ) jedit jedit ( jedit XML jed

XML ( ) XML XML jedit XML XPath XSLT jedit JAVA VM jedit Slava Pestov GNU GPL ( ) jedit jedit (  jedit XML jed XML XML XML jedit XML XPath XSLT jedit JAVA VM jedit Slava Pestov GNU GPL ( jedit jedit (http://www.jedit.org/index.php jedit XML jedit Plugin Central (http://plugins.jedit.org/ jedit Java (Java VM = Java

More information

Python2 Python3 Python 2.7 Python 3.6 Python2 Python3 Python 2.7 Python3.6 Python Python Anaconda Python Anaconda Python

Python2 Python3 Python 2.7 Python 3.6 Python2 Python3 Python 2.7 Python3.6 Python Python Anaconda Python Anaconda Python (Python ) C++ Python Python 1 Python2 Python3 Python 2.7 Python 3.6 Python2 Python3 Python 2.7 Python3.6 Python Python Anaconda Python Anaconda Python https://www.continuum.io/downloads 2 Python 3.6 version

More information

Python ( ) Anaconda 2 3 Python Python IDLE Python NumPy 6 5 matpl

Python ( ) Anaconda 2 3 Python Python IDLE Python NumPy 6 5 matpl Python ( ) 2017. 11. 21. 1 1 2 Anaconda 2 3 Python 3 3.1 Python.......................... 3 3.2 IDLE Python....................... 5 4 NumPy 6 5 matplotlib 7 5.1.................................. 7 5.2..................................

More information

version 1.0 November 2010 PyRAF Y. Nakajima Computer and Data Management Division Subaru Telescope NAOJ

version 1.0 November 2010 PyRAF Y. Nakajima Computer and Data Management Division Subaru Telescope NAOJ version 1.0 November 2010 PyRAF Y. Nakajima Computer and Data Management Division Subaru Telescope NAOJ Chapter 1 PyRAF 1.1 PyRAF PyRAF IRAF Python STScI 1998 (1) IRAF-CL (2) CL-? (3) IRAF Python wrapper

More information

Specview Specview Specview STSCI(Space Telescope SCience Institute) VO Specview Web page htt

Specview Specview Specview STSCI(Space Telescope SCience Institute) VO Specview Web page   htt Specview Specview Specview STSCI(Space Telescope SCience Institute) VO Specview Web page http://www.stsci.edu/resources/software_hardware/specview http://specview.stsci.edu/javahelp/main.html Specview

More information

インテル(R) Visual Fortran Composer XE 2013 Windows版 入門ガイド

インテル(R) Visual Fortran Composer XE 2013 Windows版 入門ガイド Visual Fortran Composer XE 2013 Windows* エクセルソフト株式会社 www.xlsoft.com Rev. 1.1 (2012/12/10) Copyright 1998-2013 XLsoft Corporation. All Rights Reserved. 1 / 53 ... 3... 4... 4... 5 Visual Studio... 9...

More information

listings-ext

listings-ext (6) Python (2) ( ) ohsaki@kwansei.ac.jp 5 Python (2) 1 5.1 (statement)........................... 1 5.2 (scope)......................... 11 5.3 (subroutine).................... 14 5 Python (2) Python 5.1

More information

course pptx

course pptx ParaView () 20105141CAE OPENFOAM (R) is a registered trade mark of OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM (R) and OpenCFD (R) trade marks. This offering is not

More information

1 1.1 (JCPRG) 30 Nuclear Reaction Data File (NRDF) PC GSYS2.4 JCPRG GSYS2.4 Java Windows, Linux, Max OS X, FreeBSD GUI PNG, GIF, JPEG X Y GSYS2

1 1.1 (JCPRG) 30 Nuclear Reaction Data File (NRDF) PC GSYS2.4 JCPRG GSYS2.4 Java Windows, Linux, Max OS X, FreeBSD GUI PNG, GIF, JPEG X Y GSYS2 (GSYS2.4) GSYS2.4 Manual SUZUKI Ryusuke Hokkaido University Hospital Abstract GSYS2.4 is an update version of GSYS version 2. Main features added in this version are Magnifying glass function, Automatically

More information

Ver.1 1/17/2003 2

Ver.1 1/17/2003 2 Ver.1 1/17/2003 1 Ver.1 1/17/2003 2 Ver.1 1/17/2003 3 Ver.1 1/17/2003 4 Ver.1 1/17/2003 5 Ver.1 1/17/2003 6 Ver.1 1/17/2003 MALTAB M GUI figure >> guide GUI GUI OK 7 Ver.1 1/17/2003 8 Ver.1 1/17/2003 Callback

More information

HA8000シリーズ ユーザーズガイド ~BIOS編~ HA8000/RS110/TS10 2013年6月~モデル

HA8000シリーズ ユーザーズガイド ~BIOS編~ HA8000/RS110/TS10 2013年6月~モデル P1E1M01500-3 - - - LSI MegaRAID SAS-MFI BIOS Version x.xx.xx (Build xxxx xx, xxxx) Copyright (c) xxxx LSI Corporation HA -0 (Bus xx Dev

More information

0.2 Button TextBox: menu tab 2

0.2 Button TextBox: menu tab 2 Specview VO 2012 2012/9/27 Specview Specview STSCI(Space Telescope SCience Institute) VO Specview Web page http://www.stsci.edu/resources/software hardware/specview http://specview.stsci.edu/javahelp/main.html

More information

コンピュータ概論

コンピュータ概論 4.1 For Check Point 1. For 2. 4.1.1 For (For) For = To Step (Next) 4.1.1 Next 4.1.1 4.1.2 1 i 10 For Next Cells(i,1) Cells(1, 1) Cells(2, 1) Cells(10, 1) 4.1.2 50 1. 2 1 10 3. 0 360 10 sin() 4.1.2 For

More information

N manual_JP.PDF

N manual_JP.PDF NEC Express5800 - 1 - N8103-73 ESMPRO/ServerManagerServerAgent Power Console Plus Express5800 EXPRESSBUILDER Version 3.077-N(1) Version 3.078a-N 1): - 2 - Windows NT 4.0 Microsoft Windows NT Server 4.0

More information

untitled

untitled JCSP CSP HPC H.Nakahara 1 2 CSP A B HPC H.Nakahara 3 CSP HPC H.Nakahara 4 CSP Process A chan Process B ( DFD) HPC H.Nakahara 5 DFD HPC H.Nakahara 6 DFD FAX OK? HPC H.Nakahara 7 HPC H.Nakahara 8 HPC H.Nakahara

More information

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó 2 2015 4 20 1 (4/13) : ruby 2 / 49 2 ( ) : gnuplot 3 / 49 1 1 2014 6 IIJ / 4 / 49 1 ( ) / 5 / 49 ( ) 6 / 49 (summary statistics) : (mean) (median) (mode) : (range) (variance) (standard deviation) 7 / 49

More information

RT-PCR プロトコール.PDF

RT-PCR プロトコール.PDF Real -Time RT-PCR icycler iq Bio Rad RT-PCR RT-PCR 1 icycler iq Bio Rad icycler iq 30 2 Ready-To-Go T-Primed First-Strand Kit (amersham pharmacia biotech) Ready-To-Go T-Primed First-Strand Kit QuantiTect

More information

2.2 Sage I 11 factor Sage Sage exit quit 1 sage : exit 2 Exiting Sage ( CPU time 0m0.06s, Wall time 2m8.71 s). 2.2 Sage Python Sage 1. Sage.sage 2. sa

2.2 Sage I 11 factor Sage Sage exit quit 1 sage : exit 2 Exiting Sage ( CPU time 0m0.06s, Wall time 2m8.71 s). 2.2 Sage Python Sage 1. Sage.sage 2. sa I 2017 11 1 SageMath SageMath( Sage ) Sage Python Sage Python Sage Maxima Maxima Sage Sage Sage Linux, Mac, Windows *1 2 Sage Sage 4 1. ( sage CUI) 2. Sage ( sage.sage ) 3. Sage ( notebook() ) 4. Sage

More information

スライド タイトルなし

スライド タイトルなし LightCycler Software Ver.3.5 : 200206 1/30 Windows NT Windows NT Ctrl + Alt + Delete LightCycler 3 Front Screen 2/30 LightCycler3 Front RUN Data Analysis LightCycler Data Analysis Edit Graphics Defaults

More information

nopcommerce 2.2 2.1.6 Adobe Flash ( 1 ) 1 nopcommerce 2.2 ( [5, p.3-4] )

nopcommerce 2.2 2.1.6 Adobe Flash ( 1 ) 1 nopcommerce 2.2 ( [5, p.3-4] ) nopcommerce 2.2 NopCommerce (Ver.2.3) NopCommerce 2.1.1 (OS) Windows 7 Windows Vista Windows XP Windows Server 2003 Windows Server 2008 2.1.2 Web Internet Information Service (IIS) 6.0 2.1.3 ASP.NET 4.0

More information

,,,,., C Java,,.,,.,., ,,.,, i

,,,,., C Java,,.,,.,., ,,.,, i 24 Development of the programming s learning tool for children be derived from maze 1130353 2013 3 1 ,,,,., C Java,,.,,.,., 1 6 1 2.,,.,, i Abstract Development of the programming s learning tool for children

More information

workshop Eclipse TAU AICS.key

workshop Eclipse TAU AICS.key 11 AICS 2016/02/10 1 Bryzgalov Peter @ HPC Usability Research Team RIKEN AICS Copyright 2016 RIKEN AICS 2 3 OS X, Linux www.eclipse.org/downloads/packages/eclipse-parallel-application-developers/lunasr2

More information

の Install Cygwin now リンクから setup.exe をダウンロードして ダブルクリックしてください Choose A Download Source の項目では Install from Internet を選んで次に進みます Se

の Install Cygwin now リンクから setup.exe をダウンロードして ダブルクリックしてください Choose A Download Source の項目では Install from Internet を選んで次に進みます Se Windows マシンに Geant4 をインストールしよう ここでは Cygwin を使って Geant4 を動かす方法を紹介します Cygwin と Geant4 をインストールするには C ドライブに約 10GB の記憶容量が必要です また インストールは Power User のアカウントで行ってください Step 1: まず Microsoft Visual C++ と Microsoft

More information

A/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B

A/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B A/B (2018/10/19) Ver. 1.0 kurino@math.cst.nihon-u.ac.jp http://edu-gw2.math.cst.nihon-u.ac.jp/ kurino/2018/soft/soft.html 2018 10 19 A/B 1 2018 10 19 2 1 1 1.1 OHP.................................... 1

More information

num2.dvi

num2.dvi kanenko@mbk.nifty.com http://kanenko.a.la9.jp/ 16 32...... h 0 h = ε () 0 ( ) 0 1 IEEE754 (ieee754.c Kerosoft Ltd.!) 1 2 : OS! : WindowsXP ( ) : X Window xcalc.. (,.) C double 10,??? 3 :, ( ) : BASIC,

More information

Systemwalker IT Service Management Systemwalker IT Service Management V11.0L10 IT Service Management - Centric Manager Windows

Systemwalker IT Service Management Systemwalker IT Service Management V11.0L10 IT Service Management - Centric Manager Windows Systemwalker IT Service Management Systemwalker IT Service Management V11.0L10 IT Service Management - Centric Manager Windows Systemwalker IT Service Management Systemwalker Centric Manager IT Service

More information

Jlspec

Jlspec 1OFF 通常 OFF 通常 2 ON 設定内容の初期化を行う ( 工場出荷状態 ) OFF 通常 3 ON 自己診断 / 設定内容の印字を行う 4OFF 通常 %!PS-Adobe-2.0 /Courier findfont 10 scalefont setfont /LEFT 36 def /TOP 792 def /PITCH 12 def /LF {show /x LEFT def /y

More information

VLD Kazutoshi Kobayashi

VLD Kazutoshi Kobayashi VLD Kazutoshi Kobayashi (kobayasi@kuee.kyoto-u.ac.jp) 2005 8 26-29 1, Verilog-HDL, Verilog-HDL. Verilog-HDL,, FPGA,, HDL,. 1.1, 1. (a) (b) (c) FPGA (d). 2. 10,, Verilog-HDL, FPGA,. 1.2,,,, html. % netscape

More information

ファーストステップガイド1.2.doc

ファーストステップガイド1.2.doc Ver.1.2 EasyNetBox for Spam Filter Powered by SENDMAIL CSK Win. Sendmail, Inc. MicrosoftWindows Microsoft Corporation. Windows XP MicrosoftCorporation. LinuxLinus Torvalds 2 ...4 1.1... 4 1.2 PC... 5 1.3...

More information

スライド 1

スライド 1 1 1. 2 2. 3 isplever 4 5 6 7 8 9 VHDL 10 VHDL 4 Decode cnt = "1010" High Low DOUT CLK 25MHz 50MHz clk_inst Cnt[3:0] RST 2 4 1010 11 library ieee; library xp; use xp.components.all; use ieee.std_logic_1164.all;

More information

strtok-count.eps

strtok-count.eps IoT FPGA 2016/12/1 IoT FPGA 200MHz 32 ASCII PCI Express FPGA OpenCL (Volvox) Volvox CPU 10 1 IoT (Internet of Things) 2020 208 [1] IoT IoT HTTP JSON ( Python Ruby) IoT IoT IoT (Hadoop [2] ) AI (Artificial

More information

20 H8/3069LAN H. Fukura

20 H8/3069LAN H. Fukura 20 H8/3069LAN 1.1 2009 2 9 H. Fukura 1 1 2 Cygwin 2 2.1................... 3 2.2................. 3 3 h8300-hms 13 3.1................... 14 3.2......... 14 3.3............. 35 3.4.............. 38 i

More information

チュートリアル XP Embedded 入門編

チュートリアル XP Embedded 入門編 TUT-0057 Ver. 1.0 www.interface.co.jp Ver 1.0 2005 6 (,), Web site () / () 2004 Interface Corporation. All rights reserved. ...1...1 1. XP Embedded...2 2....3 2.1....3 2.2....4 2.2.1. SLD...4 2.3....5

More information

2009 T060050

2009 T060050 T060050 C++ Microsoft Visual C++ 2008 Express Edition DX C DX VC++ Debug exe 1 2 2009 T060050 1 1 2 1 2.1...................... 1 2.2....................... 2 3 3 3.1................... 3 3.2.....................

More information

Android Studioセットアップガイド

Android Studioセットアップガイド Android Studio 2016/4/9 Android Studio Android *1 Android Studio Android Studio Android Studio Android Studio Android PDF : Android Studio Android Android Studio Android *2 c R TM *1 Android Studio Android

More information

80 X 1, X 2,, X n ( λ ) λ P(X = x) = f (x; λ) = λx e λ, x = 0, 1, 2, x! l(λ) = n f (x i ; λ) = i=1 i=1 n λ x i e λ i=1 x i! = λ n i=1 x i e nλ n i=1 x

80 X 1, X 2,, X n ( λ ) λ P(X = x) = f (x; λ) = λx e λ, x = 0, 1, 2, x! l(λ) = n f (x i ; λ) = i=1 i=1 n λ x i e λ i=1 x i! = λ n i=1 x i e nλ n i=1 x 80 X 1, X 2,, X n ( λ ) λ P(X = x) = f (x; λ) = λx e λ, x = 0, 1, 2, x! l(λ) = n f (x i ; λ) = n λ x i e λ x i! = λ n x i e nλ n x i! n n log l(λ) = log(λ) x i nλ log( x i!) log l(λ) λ = 1 λ n x i n =

More information

25 II :30 16:00 (1),. Do not open this problem booklet until the start of the examination is announced. (2) 3.. Answer the following 3 proble

25 II :30 16:00 (1),. Do not open this problem booklet until the start of the examination is announced. (2) 3.. Answer the following 3 proble 25 II 25 2 6 13:30 16:00 (1),. Do not open this problem boolet until the start of the examination is announced. (2) 3.. Answer the following 3 problems. Use the designated answer sheet for each problem.

More information

PowerGres on Linuxマニュアル

PowerGres on Linuxマニュアル PowerGres R on Linux Linux Linus Torvalds TM R 1 2 2 PowerGres on Linux 2 2.1 PowerGres on Linux.................................... 2 2.2.............................................. 2 2.3..............................................

More information

Moldplus_Server_4.12

Moldplus_Server_4.12 Moldplus Server 4.12 04.12.2008... 3 MOLDPLUS SERVER V4.12... 4 VERSION 4.12 WHAT S NEW...5... 7... 9... 15 A.WINDOWS VISTA WINDOWS XP SERVER... 15 B. WINDOWS VISTA... 18... 23 XML... 24... 27 1.1 MOLDPLUS

More information

Windows Cygwin Mac *1 Emacs Ruby ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2

Windows Cygwin Mac *1 Emacs Ruby ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2 September 2016 1 Windows Cygwin Mac *1 Emacs Ruby 1 1.1 ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2 ~/16:00:20> ls 2 2 ls ls -a ~/16:00:20> ls -a

More information

グラフ数値読み取りシステム (GSYS2.4) 利用の手引

グラフ数値読み取りシステム (GSYS2.4) 利用の手引 (GSYS2.4) GSYS2.4 Manual SUZUKI Ryusuke Hokkaido University Hospital 2011 6 7 Abstract GSYS2.4 is an update version of GSYS version 2. Main features added in this version are Magnifying glass function,

More information

fx-9860G Manager PLUS_J

fx-9860G Manager PLUS_J fx-9860g J fx-9860g Manager PLUS http://edu.casio.jp k 1 k III 2 3 1. 2. 4 3. 4. 5 1. 2. 3. 4. 5. 1. 6 7 k 8 k 9 k 10 k 11 k k k 12 k k k 1 2 3 4 5 6 1 2 3 4 5 6 13 k 1 2 3 1 2 3 1 2 3 1 2 3 14 k a j.+-(),m1

More information

program.dvi

program.dvi 2001.06.19 1 programming semi ver.1.0 2001.06.19 1 GA SA 2 A 2.1 valuename = value value name = valuename # ; Fig. 1 #-----GA parameter popsize = 200 mutation rate = 0.01 crossover rate = 1.0 generation

More information

外部SQLソース入門

外部SQLソース入門 Introduction to External SQL Sources 外部 SQL ソース入門 3 ESS 3 ESS : 4 ESS : 4 5 ESS 5 Step 1:... 6 Step 2: DSN... 6 Step 3: FileMaker Pro... 6 Step 4: FileMaker Pro 1. 6 Step 5:... 6 Step 6: FileMaker Pro...

More information

Platypus-QM β ( )

Platypus-QM β ( ) Platypus-QM β (2012.11.12) 1 1 1.1...................................... 1 1.1.1...................................... 1 1.1.2................................... 1 1.1.3..........................................

More information

programmingII2019-v01

programmingII2019-v01 II 2019 2Q A 6/11 6/18 6/25 7/2 7/9 7/16 7/23 B 6/12 6/19 6/24 7/3 7/10 7/17 7/24 x = 0 dv(t) dt = g Z t2 t 1 dv(t) dt dt = Z t2 t 1 gdt g v(t 2 ) = v(t 1 ) + g(t 2 t 1 ) v v(t) x g(t 2 t 1 ) t 1 t 2

More information

28 Docker Design and Implementation of Program Evaluation System Using Docker Virtualized Environment

28 Docker Design and Implementation of Program Evaluation System Using Docker Virtualized Environment 28 Docker Design and Implementation of Program Evaluation System Using Docker Virtualized Environment 1170288 2017 2 28 Docker,.,,.,,.,,.,. Docker.,..,., Web, Web.,.,.,, CPU,,. i ., OS..,, OS, VirtualBox,.,

More information

untitled

untitled Worldspan go! 4.x (UCI) Administrator Guide go! 4.x (UCI) Version 2.1.4 : 31 August 2007 1. WORLDSPAN GO! VERSION 4.X (UCI)... 3 2. WORLDSPAN GO! VERSION 4.X (UCI)... 4 3.... 6 4. WORLDSPAN GO! VERSION

More information

X Window System X X &

X Window System X X & 1 1 1.1 X Window System................................... 1 1.2 X......................................... 1 1.3 X &................................ 1 1.3.1 X.......................... 1 1.3.2 &....................................

More information

SQUFOF NTT Shanks SQUFOF SQUFOF Pentium III Pentium 4 SQUFOF 2.03 (Pentium 4 2.0GHz Willamette) N UBASIC 50 / 200 [

SQUFOF NTT Shanks SQUFOF SQUFOF Pentium III Pentium 4 SQUFOF 2.03 (Pentium 4 2.0GHz Willamette) N UBASIC 50 / 200 [ SQUFOF SQUFOF NTT 2003 2 17 16 60 Shanks SQUFOF SQUFOF Pentium III Pentium 4 SQUFOF 2.03 (Pentium 4 2.0GHz Willamette) 60 1 1.1 N 62 16 24 UBASIC 50 / 200 [ 01] 4 large prime 943 2 1 (%) 57 146 146 15

More information

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó 2 212 4 13 1 (4/6) : ruby 2 / 35 ( ) : gnuplot 3 / 35 ( ) 4 / 35 (summary statistics) : (mean) (median) (mode) : (range) (variance) (standard deviation) 5 / 35 (mean): x = 1 n (median): { xr+1 m, m = 2r

More information

1

1 DVC512/DVC512GOLD 日本語取扱説明書 1 3 3 3 USB/DMX 4 6 6 SETUP 7 8 9 9 10 11 11 12 12 12 13 13 14 15 AUTO/LTP/HTP 16 17 17 18 19 19 Scene Audio BPM Sync 20 Audio BPM Sync21 21 22 22 23 24 Tricks & Tips25 3 XLR

More information

Oracle Lite Tutorial

Oracle Lite Tutorial GrapeCity -.NET with GrapeCity - FlexGrid Creation Date: Nov. 30, 2005 Last Update: Nov. 30, 2005 Version: 1.0 Document Control Internal Use Only Author Hiroshi Ota Change Logs Date Author Version Change

More information

Report Template

Report Template f 1 3... 3 PC... 3... 4 12... 12 Web... 12 E-mail FAX... 17... 18 Service Pack 19 UPDATE... 19... 20 web... 21 Version 24 25... 25... 26... 27... 28 29 2 isplever7.1 for Windows isplever7.1 PC isplever7.1

More information

untitled

untitled IBM i IBM GUI 2 JAVA JAVA JAVA JAVA-COBOL JAVA JDBC CUI CUI COBOL DB2 3 1 3270 5250 HTML IBM HATS WebFacing 4 2 IBM CS Bridge XML Bridge 5 Eclipse RSE RPG 6 7 WEB/JAVA RPG WEB 8 EBCDIC EBCDIC PC ASCII

More information

from tkinter import * root = Tk() # variable teban = IntVar() teban.set(1) # def start(): canvas.create_rectangle(0, 0, 560, 560, fill= white ) for k

from tkinter import * root = Tk() # variable teban = IntVar() teban.set(1) # def start(): canvas.create_rectangle(0, 0, 560, 560, fill= white ) for k Zen Deep Zen Go from tkinter import * root = Tk() canvas = Canvas(root, width = 360, height=360) canvas.pack() root.mainloop() 1 from tkinter import * root = Tk() # variable teban = IntVar() teban.set(1)

More information

MOMW_I_,II 利用ガイド.PDF

MOMW_I_,II 利用ガイド.PDF MOMW (I), II 1 The Making of the Modern World I. The Making of the Modern World... 2 II.... 3 II-1... 3 II-2 Basic Search... 4 II-3... 5 II-4 Advanced Search... 9 II-5... 13 III.... 14 III-1... 14 III-2...

More information

PowerGres on Linuxマニュアル

PowerGres on Linuxマニュアル PowerGres R on Linux Linux Linus Torvalds TM R 1 2 2 PowerGres on Linux 2 2.1 PowerGres on Linux.................................... 2 2.2.............................................. 2 2.3..............................................

More information

Microsoft Word - D JP.docx

Microsoft Word - D JP.docx Application Service Gateway Thunder/AX Series vthunder ライセンスキー インストール 手順 1 1.... 3 2. vthunder... 3 3. ACOS... 3 4. ID... 5 5.... 8 6.... 8 61... 8 62 GUI... 10 2 1. 概要 2. vthunder へのアクセス 方法 SSHHTTPSvThunder

More information

自動シャットタ<3099>ウンクイックインストールカ<3099>イト<3099>.indb

自動シャットタ<3099>ウンクイックインストールカ<3099>イト<3099>.indb OMRON Corporation. 2011 All Rights Reserved. 2 3 4 5 6 7 8 9 10 11 12 13 14 15 title Red Hat Enterprise Linux Server (2.6.18-8.el5xen serial) root (hd0,1) kernel /xen.gz-2.6.18-8.el5 console=vga xencons=ttys16

More information

untitled

untitled ALTIRIS DEPLOYMENT SOLUTION 6.9 Quick Startup Guide Rev. 1.2 2008 7 11 1.... 2 DEPLOYMENT SERVER... 2 DEPLOYMENT CONSOLE... 2 DEPLOYMENT DATABASE... 2 DEPLOYMENT SHARE... 3 PXE SERVER... 3 DEPLOYMENT AGENT...

More information

gnuplot.dvi

gnuplot.dvi gnuplot gnuplot 1 gnuplot exit 2 10 10 2.1 2 plot x plot sin(x) plot [-20:20] sin(x) plot [-20:20][0.5:1] sin(x), x, cos(x) + - * / ** 5 ** plot 2**x y =2 x sin(x) cos(x) exp(x) e x abs(x) log(x) log10(x)

More information

Step 1 Feature Extraction Featuer Extraction Feature Extraction Featuer Extraction Image Analysis Start>Programs>Agilent-Life Sciences>Feature Extract

Step 1 Feature Extraction Featuer Extraction Feature Extraction Featuer Extraction Image Analysis Start>Programs>Agilent-Life Sciences>Feature Extract Agilent G2565AA Feature Extraction Step 1 Feature Extraction Step 2 Step 3 Step 4 ( ) Step 5 ( ) Step 6 Step 7 Step 8 Feature Extraction Step 9 Step 10 Feature Extraction Step 11 Feature Extraction Step

More information

untitled

untitled Fortran90 ( ) 17 12 29 1 Fortran90 Fortran90 FORTRAN77 Fortran90 1 Fortran90 module 1.1 Windows Windows UNIX Cygwin (http://www.cygwin.com) C\: Install Cygwin f77 emacs latex ps2eps dvips Fortran90 Intel

More information

2012 M

2012 M 2012 M0109218 2012 : M0109218 36 1 1 1.1............................. 1 1.2................................. 5 2 6 2.1................... 6 2.2................ 8 2.3............ 12 3 15 3.1...................

More information

ActivKey v3.0 ActivKey v3.0 ActivKey v Copyright KDDI Corporation All Rights Reserved. 1/37

ActivKey v3.0 ActivKey v3.0 ActivKey v Copyright KDDI Corporation All Rights Reserved. 1/37 ActivKey v3.0 ActivKey v3.0 2007 8 16 2.0 Copyright KDDI Corporation All Rights Reserved. 1/37 1.1 2007 5 25 FIXS0603014 2.0 2007 8 16 ActivIdentity Device Driver v2.0 ActivKeyv3.0 ActivKey ActivCard Gold

More information

120802_MPI.ppt

120802_MPI.ppt CPU CPU CPU CPU CPU SMP Symmetric MultiProcessing CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CP OpenMP MPI MPI CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU MPI MPI+OpenMP CPU CPU CPU CPU CPU CPU CPU CP

More information

Microsoft Word - Meta70_Preferences.doc

Microsoft Word - Meta70_Preferences.doc Image Windows Preferences Edit, Preferences MetaMorph, MetaVue Image Windows Preferences Edit, Preferences Image Windows Preferences 1. Windows Image Placement: Acquire Overlay at Top Left Corner: 1 Acquire

More information

WinPSKユーザーズガイド

WinPSKユーザーズガイド 8 ae4jy@mindspring.com - 1 - - 2 - 5 5.. 5 5 5.. 6 6 1 1 1 1 1 1 1 1-3 - Status Bar 36-4 - Peter Martinez, WinPSK MHz Pentium Windows95,98 NT4.0 DX VGA640x480 Help MB RAM CPU WinPSK CPU CPU Too Slow CPU

More information

取扱説明書の読み替え一覧表

取扱説明書の読み替え一覧表 SCSI アレイコントローラカード取扱説明書 ( 追補版 ) PG-140BL PG-140C PG-140CL PG-141B PG-142B PG-142C PG-142D GP5-150 GP5-1501 GP5-151 はじめに Linux MicrosoftWindows NTMicrosoft Corporation NetwareNovell Copyright 1985-2001 Microsoft

More information