Skip to content

Commit d5b09d5

Browse files
authored
Merge pull request #35 from Exabyte-io/chore/SOF-6603
Chore/SOF-6603
2 parents 0f25c34 + 9fc84a8 commit d5b09d5

12 files changed

+268
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: HSE Band Gap
2+
application:
3+
name: espresso
4+
version: "6.3"
5+
model:
6+
name: DFTModel
7+
method:
8+
name: PseudopotentialMethod
9+
units:
10+
- config:
11+
execName: pw.x
12+
flavorName: pw_scf_hse
13+
name: pw_scf_hse
14+
functions:
15+
head: true
16+
type: executionBuilder
17+
- config:
18+
execName: projwfc.x
19+
flavorName: projwfc
20+
name: projwfc
21+
type: executionBuilder
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Note: this subworkflow is assumed to be part of the "Band Structure - HSE" workflow
2+
# and is this NOT self-sufficient!
3+
name: Band Structure - HSE
4+
application:
5+
name: espresso
6+
version: 5.4.0
7+
method:
8+
name: PseudopotentialMethod
9+
model:
10+
name: DFTModel
11+
units:
12+
- config:
13+
execName: pw.x
14+
flavorName: pw_scf_bands_hse
15+
name: pw_scf_bands_hse
16+
type: executionBuilder
17+
- config:
18+
execName: bands.x
19+
flavorName: bands
20+
name: bands
21+
type: executionBuilder
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Note: this subworkflow is assumed to be run after a pw_scf unit
2+
# and is this NOT self-sufficient!
3+
name: Extract KPOINTS
4+
application:
5+
name: python
6+
version: 3.8.6
7+
method:
8+
name: UnknownMethod
9+
model:
10+
name: UnknownModel
11+
units:
12+
- config:
13+
name: Extract kpoints
14+
execName: python
15+
flavorName: espresso_extract_kpoints
16+
type: executionBuilder
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: K-point Convergence
2+
application:
3+
name: espresso
4+
version: "6.3"
5+
method:
6+
name: PseudopotentialMethod
7+
model:
8+
name: DFTModel
9+
units:
10+
- config:
11+
name: Init tolerance
12+
flowchartId: init-tolerance
13+
operand: TOL
14+
value: 1.0e-5
15+
type: assignment
16+
- config:
17+
name: Init increment
18+
flowchartId: init-increment
19+
operand: INC
20+
value: 1
21+
type: assignment
22+
- config:
23+
name: Init result
24+
flowchartId: init-result
25+
operand: PREV_RESULT
26+
value: 0
27+
type: assignment
28+
- config:
29+
name: Init parameter
30+
flowchartId: init-parameter
31+
operand: PARAMETER
32+
value: 1
33+
type: assignment
34+
- config:
35+
name: pw_scf_kpt_conv
36+
flowchartId: pwscf-kpoint-convergence
37+
execName: pw.x
38+
flavorName: pw_scf_kpt_conv
39+
type: executionBuilder
40+
- config:
41+
name: store result
42+
flowchartId: store-result
43+
operand: RESULT
44+
value: total_energy
45+
input:
46+
- name: total_energy
47+
scope: pwscf-kpoint-convergence
48+
type: assignment
49+
- config:
50+
name: check convergence
51+
flowchartId: check-convergence
52+
statement: "abs((PREV_RESULT-RESULT)/RESULT) < TOL"
53+
maxOccurrences: 50
54+
then: convergence-is-reached
55+
else: update-result
56+
type: condition
57+
- config:
58+
name: update result
59+
flowchartId: update-result
60+
operand: PREV_RESULT
61+
value: RESULT
62+
input:
63+
- name: RESULT
64+
scope: global
65+
type: assignment
66+
- config:
67+
name: increment parameter
68+
flowchartId: increment-parameter
69+
operand: PREV_RESULT
70+
value: PARAMETER+INC
71+
input:
72+
- name: INC
73+
scope: global
74+
- name: PARAMETER
75+
scope: global
76+
next: pwscf-kpoint-convergence
77+
type: assignment
78+
- config:
79+
name: exit
80+
flowchartId: convergence-is-reached
81+
operand: PARAMETER
82+
value: PARAMETER
83+
input:
84+
- name: PARAMETER
85+
scope: global
86+
type: assignment
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: K-point Convergence
2+
application:
3+
name: vasp
4+
version: 5.3.5
5+
model:
6+
name: DFTModel
7+
method:
8+
config:
9+
type: pseudopotential
10+
subtype: paw
11+
name: PseudopotentialMethod
12+
units:
13+
- config:
14+
name: Init tolerance
15+
flowchartId: init-tolerance
16+
operand: TOL
17+
value: 1.0e-5
18+
type: assignment
19+
- config:
20+
name: Init increment
21+
flowchartId: init-increment
22+
operand: INC
23+
value: 1
24+
type: assignment
25+
- config:
26+
name: Init result
27+
flowchartId: init-result
28+
operand: PREV_RESULT
29+
value: 0
30+
type: assignment
31+
- config:
32+
name: Init parameter
33+
flowchartId: init-parameter
34+
operand: PARAMETER
35+
value: 1
36+
type: assignment
37+
- config:
38+
name: vasp_kpt_conv
39+
flowchartId: vasp-kpoint-convergence
40+
execName: vasp
41+
flavorName: vasp_kpt_conv
42+
type: executionBuilder
43+
- config:
44+
name: store result
45+
flowchartId: store-result
46+
operand: RESULT
47+
value: total_energy
48+
input:
49+
- name: total_energy
50+
scope: vasp-kpoint-convergence
51+
type: assignment
52+
- config:
53+
name: check convergence
54+
flowchartId: check-convergence
55+
statement: "abs((PREV_RESULT-RESULT)/RESULT) < TOL"
56+
maxOccurrences: 50
57+
then: convergence-is-reached
58+
else: update-result
59+
type: condition
60+
- config:
61+
name: update result
62+
flowchartId: update-result
63+
operand: PREV_RESULT
64+
value: RESULT
65+
input:
66+
- name: RESULT
67+
scope: global
68+
type: assignment
69+
- config:
70+
name: increment parameter
71+
flowchartId: increment-parameter
72+
operand: PREV_RESULT
73+
value: PARAMETER+INC
74+
input:
75+
- name: INC
76+
scope: global
77+
- name: PARAMETER
78+
scope: global
79+
next: vasp-kpoint-convergence
80+
type: assignment
81+
- config:
82+
name: exit
83+
flowchartId: convergence-is-reached
84+
operand: PARAMETER
85+
value: PARAMETER
86+
input:
87+
- name: PARAMETER
88+
scope: global
89+
type: assignment
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: Band Gap + DoS - HSE
2+
units:
3+
- name: band_gap_hse_dos
4+
type: subworkflow
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Band Structure - HSE
2+
units:
3+
- name: pw_scf
4+
type: subworkflow
5+
config:
6+
attributes:
7+
name: Preliminary SCF Calculation
8+
- name: espresso_extract_kpoints
9+
type: subworkflow
10+
- name: band_structure_hse
11+
type: subworkflow
12+
config:
13+
attributes:
14+
name: Main HSE Run
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: K-point Convergence
2+
units:
3+
- name: kpoint_convergence
4+
type: subworkflow
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Shell Hello World
1+
name: Shell Script
22
units:
33
- name: hello_world
44
type: subworkflow
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: K-point Convergence
2+
units:
3+
- name: kpoint_convergence
4+
type: subworkflow

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"underscore.string": "^3.3.4"
4747
},
4848
"devDependencies": {
49-
"@exabyte-io/ade.js": "2023.4.26-0",
49+
"@exabyte-io/ade.js": "2023.5.29-0",
5050
"@exabyte-io/code.js": "2022.11.11-0",
5151
"@exabyte-io/eslint-config": "^2022.11.17-0",
5252
"@exabyte-io/ide.js": "2022.7.28-1",

0 commit comments

Comments
 (0)