File: simpleSim.tcl

package info (click to toggle)
espresso 6.7-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 311,068 kB
  • sloc: f90: 447,429; ansic: 52,566; sh: 40,631; xml: 37,561; tcl: 20,077; lisp: 5,923; makefile: 4,503; python: 4,379; perl: 1,219; cpp: 761; fortran: 618; java: 568; awk: 128
file content (41 lines) | stat: -rw-r--r-- 1,100 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module simpleSim -title "Simulation Setup" -script {
    
    line title -name "Title" {
	var jobtitle -label "Job title:"  -fmt %S	
    }
    namelist pars -name Parameters {
	var type {
	    -label    "Job type:"
	    -value    {"'Single-point calculation'" "'Structural optimization'"}
	    -widget   optionmenu
	    -default  "'Single-point calculation'"
	}
	var functional {
	    -label    "DFT Functional:"
	    -value    {'PBE' 'RPBE' 'B3LYP' }
	    -widget   optionmenu
	    -default  'B3LYP'
	}
	var basis {
	    -label    "Gaussian basis set:"
	    -value    {'STO-3G' '3-21G' '6-21G' '6-311G' '6-311G*'}
	    -widget   optionmenu
	    -default  '6-311G'
	}
	var natoms -label "natoms"  -widget spinint -validate posint -default 1
    }
    
    keyword coord ATOMIC_COORDINATES\n
    table atoms {
	-caption  "Enter atomic coorditanes"
	-head     {"Atomic symbol" X-Coordinate Y-Coordinate Z-Coordinate}
	-cols     4
	-rows     1
	-outfmt   "%3s %15.10f %15.10f %15.10f"
    }
    keyword coord_end END\n    

    tracevar natoms w {
	widgetconfigure atoms -rows [varvalue natoms]
    }
}