Skip to content

Commit

Permalink
SOF-7189: new templates for cp.x molecular dynamics calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Jan 3, 2024
1 parent 598f64e commit 3c55d6c
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 3 deletions.
51 changes: 51 additions & 0 deletions assets/espresso/cp.j2.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{% if subworkflowContext.MATERIAL_INDEX %}
{%- set input = input.perMaterial[subworkflowContext.MATERIAL_INDEX] -%}
{% endif -%}
&CONTROL
calculation = 'cp'
title = ''
restart_mode = '{{ input.RESTART_MODE }}'
tstress = .true.
tprnfor = .true.
outdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %}
prefix = 'cp'
pseudo_dir = {% raw %}'{{ JOB_WORK_DIR }}/pseudo'{% endraw %}
nstep = 100
iprint = 1
dt = 5.0
/
&SYSTEM
ibrav = {{ input.IBRAV }}
nat = {{ input.NAT }}
ntyp = {{ input.NTYP }}
ecutwfc = {{ cutoffs.wavefunction }}
ecutrho = {{ cutoffs.density }}
/
&ELECTRONS
electron_dynamics = 'verlet'
electron_velocities = 'zero'
emass = 300.0
/
&IONS
ion_dynamics = 'verlet'
ion_velocities = 'zero'
tempw = 300
/
&CELL
/
&WANNIER
nit = 60,
calwf = 3,
tolw = 1.D-6,
nsteps = 50,
adapt = .FALSE.
wfdt = 2.0D0,
wf_q = 500.D0,
wf_friction = 0.3d0,
/
ATOMIC_SPECIES
{{ input.ATOMIC_SPECIES }}
ATOMIC_POSITIONS crystal
{{ input.ATOMIC_POSITIONS }}
CELL_PARAMETERS angstrom
{{ input.CELL_PARAMETERS }}
41 changes: 41 additions & 0 deletions assets/espresso/cp_wf.j2.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{% if subworkflowContext.MATERIAL_INDEX %}
{%- set input = input.perMaterial[subworkflowContext.MATERIAL_INDEX] -%}
{% endif -%}
&CONTROL
calculation = 'cp-wf'
title = ''
restart_mode = '{{ input.RESTART_MODE }}'
tstress = .true.
tprnfor = .true.
outdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %}
prefix = 'cp_wf'
pseudo_dir = {% raw %}'{{ JOB_WORK_DIR }}/pseudo'{% endraw %}
nstep = 100
iprint = 1
dt = 5.0
/
&SYSTEM
ibrav = {{ input.IBRAV }}
nat = {{ input.NAT }}
ntyp = {{ input.NTYP }}
ecutwfc = {{ cutoffs.wavefunction }}
! ecutrho = {{ cutoffs.density }}
/
&ELECTRONS
electron_dynamics = 'verlet'
electron_velocities = 'zero'
emass = 300.0
/
&IONS
ion_dynamics = 'verlet'
ion_velocities = 'zero'
tempw = 300
/
&CELL
/
ATOMIC_SPECIES
{{ input.ATOMIC_SPECIES }}
ATOMIC_POSITIONS crystal
{{ input.ATOMIC_POSITIONS }}
CELL_PARAMETERS angstrom
{{ input.CELL_PARAMETERS }}
21 changes: 21 additions & 0 deletions executables/espresso/cp.x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
monitors:
- standard_output
results: []
flavors:
cp:
input:
- name: cp.in
results: []
monitors:
- standard_output
applicationName: espresso
executableName: cp.x

cp_wf:
input:
- name: cp_wf.in
results: []
monitors:
- standard_output
applicationName: espresso
executableName: cp.x
5 changes: 3 additions & 2 deletions executables/tree.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
espresso:
average.x: !include 'executables/espresso/average.x.yml'
bands.x: !include 'executables/espresso/bands.x.yml'
cp.x: !include 'executables/espresso/cp.x.yml'
dos.x: !include 'executables/espresso/dos.x.yml'
dynmat.x: !include 'executables/espresso/dynmat.x.yml'
epsilon.x: !include 'executables/espresso/epsilon.x.yml'
gw.x: !include 'executables/espresso/gw.x.yml'
hp.x: !include 'executables/espresso/hp.x.yml'
matdyn.x: !include 'executables/espresso/matdyn.x.yml'
neb.x: !include 'executables/espresso/neb.x.yml'
ph.x: !include 'executables/espresso/ph.x.yml'
pp.x: !include 'executables/espresso/pp.x.yml'
projwfc.x: !include 'executables/espresso/projwfc.x.yml'
pw.x: !include 'executables/espresso/pw.x.yml'
q2r.x: !include 'executables/espresso/q2r.x.yml'
hp.x: !include 'executables/espresso/hp.x.yml'
epsilon.x: !include 'executables/espresso/epsilon.x.yml'
jupyterLab:
jupyter: !include 'executables/jupyterLab/jupyter.yml'
exabyteml:
Expand Down
2 changes: 1 addition & 1 deletion src/js/data/tree.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions templates/espresso/cp.x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- content: !readFile 'assets/espresso/cp.j2.in'
name: cp.in
contextProviders: []
applicationName: espresso
executableName: cp.x

- content: !readFile 'assets/espresso/cp_wf.j2.in'
name: cp_wf.in
contextProviders: []
applicationName: espresso
executableName: cp.x

0 comments on commit 3c55d6c

Please sign in to comment.