-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from Exabyte-io/feat/SOF-7298
SOF-7298: add spin-orbit coupling templates
- Loading branch information
Showing
13 changed files
with
947 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{% if subworkflowContext.MATERIAL_INDEX %} | ||
{%- set input = input.perMaterial[subworkflowContext.MATERIAL_INDEX] -%} | ||
{% endif -%} | ||
&CONTROL | ||
calculation = 'bands' | ||
title = '' | ||
verbosity = 'low' | ||
restart_mode = '{{input.RESTART_MODE}}' | ||
wf_collect = .true. | ||
tstress = .true. | ||
tprnfor = .true. | ||
outdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %} | ||
wfcdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %} | ||
prefix = '__prefix__' | ||
pseudo_dir = {% raw %}'{{ JOB_WORK_DIR }}/pseudo'{% endraw %} | ||
/ | ||
&SYSTEM | ||
ibrav = {{ input.IBRAV }} | ||
nat = {{ input.NAT }} | ||
ntyp = {{ input.NTYP_WITH_LABELS }} | ||
ecutwfc = {{ cutoffs.wavefunction }} | ||
ecutrho = {{ cutoffs.density }} | ||
occupations = 'smearing' | ||
degauss = 0.005 | ||
noncolin = .true. | ||
lspinorb = .true. | ||
{%- if nonCollinearMagnetization.isStartingMagnetization %} | ||
{%- for item in nonCollinearMagnetization.startingMagnetization %} | ||
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isConstrainedMagnetization %} | ||
constrained_magnetization = '{{ nonCollinearMagnetization.constrainedMagnetization.constrainType }}' | ||
lambda = {{ nonCollinearMagnetization.constrainedMagnetization.lambda }} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isConstrainedMagnetization and nonCollinearMagnetization.isFixedMagnetization %} | ||
fixed_magnetization(1) = {{ nonCollinearMagnetization.fixedMagnetization.x }} | ||
fixed_magnetization(2) = {{ nonCollinearMagnetization.fixedMagnetization.y }} | ||
fixed_magnetization(3) = {{ nonCollinearMagnetization.fixedMagnetization.z }} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity and nonCollinearMagnetization.lforcet %} | ||
lforcet = .true. | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity and !nonCollinearMagnetization.lforcet %} | ||
lforcet = .false. | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isArbitrarySpinDirection %} | ||
{%- for item in nonCollinearMagnetization.spinAngles %} | ||
angle1({{ item.index }}) = {{ item.angle1 }} | ||
angle2({{ item.index }}) = {{ item.angle2 }} {% endfor %} | ||
{%- endif %} | ||
/ | ||
&ELECTRONS | ||
diagonalization = 'david' | ||
diago_david_ndim = 4 | ||
diago_full_acc = .true. | ||
mixing_beta = 0.3 | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity %} | ||
startingpot = 'file' | ||
{%- endif %} | ||
/ | ||
&IONS | ||
/ | ||
&CELL | ||
/ | ||
ATOMIC_SPECIES | ||
{{ input.ATOMIC_SPECIES_WITH_LABELS }} | ||
ATOMIC_POSITIONS crystal | ||
{{ input.ATOMIC_POSITIONS }} | ||
CELL_PARAMETERS angstrom | ||
{{ input.CELL_PARAMETERS }} | ||
K_POINTS crystal_b | ||
{{kpath.length}} | ||
{% for point in kpath -%} | ||
{% for d in point.coordinates %}{{d}} {% endfor -%}{{point.steps}} | ||
{% endfor %} | ||
HUBBARD {ortho-atomic} | ||
{% for row in hubbard_u -%} | ||
U {{ row.atomicSpecies }}-{{ row.atomicOrbital }} {{ row.hubbardUValue }} | ||
{% endfor -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{% if subworkflowContext.MATERIAL_INDEX %} | ||
{%- set input = input.perMaterial[subworkflowContext.MATERIAL_INDEX] -%} | ||
{% endif -%} | ||
&CONTROL | ||
calculation = 'bands' | ||
title = '' | ||
verbosity = 'low' | ||
restart_mode = '{{input.RESTART_MODE}}' | ||
wf_collect = .true. | ||
tstress = .true. | ||
tprnfor = .true. | ||
outdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %} | ||
wfcdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %} | ||
prefix = '__prefix__' | ||
pseudo_dir = {% raw %}'{{ JOB_WORK_DIR }}/pseudo'{% endraw %} | ||
/ | ||
&SYSTEM | ||
ibrav = {{ input.IBRAV }} | ||
nat = {{ input.NAT }} | ||
ntyp = {{ input.NTYP_WITH_LABELS }} | ||
ecutwfc = {{ cutoffs.wavefunction }} | ||
ecutrho = {{ cutoffs.density }} | ||
occupations = 'smearing' | ||
degauss = 0.005 | ||
lda_plus_u = .true. | ||
lda_plus_u_kind = 0 | ||
U_projection_type = 'ortho-atomic' | ||
{%- for row in hubbard_legacy %} | ||
Hubbard_U({{ row.atomicSpeciesIndex }}) = {{ row.hubbardUValue }} | ||
{%- endfor %} | ||
noncolin = .true. | ||
lspinorb = .true. | ||
{%- if nonCollinearMagnetization.isStartingMagnetization %} | ||
{%- for item in nonCollinearMagnetization.startingMagnetization %} | ||
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isConstrainedMagnetization %} | ||
constrained_magnetization = '{{ nonCollinearMagnetization.constrainedMagnetization.constrainType }}' | ||
lambda = {{ nonCollinearMagnetization.constrainedMagnetization.lambda }} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isConstrainedMagnetization and nonCollinearMagnetization.isFixedMagnetization %} | ||
fixed_magnetization(1) = {{ nonCollinearMagnetization.fixedMagnetization.x }} | ||
fixed_magnetization(2) = {{ nonCollinearMagnetization.fixedMagnetization.y }} | ||
fixed_magnetization(3) = {{ nonCollinearMagnetization.fixedMagnetization.z }} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity and nonCollinearMagnetization.lforcet %} | ||
lforcet = .true. | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity and !nonCollinearMagnetization.lforcet %} | ||
lforcet = .false. | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isArbitrarySpinDirection %} | ||
{%- for item in nonCollinearMagnetization.spinAngles %} | ||
angle1({{ item.index }}) = {{ item.angle1 }} | ||
angle2({{ item.index }}) = {{ item.angle2 }} {% endfor %} | ||
{%- endif %} | ||
/ | ||
&ELECTRONS | ||
diagonalization = 'david' | ||
diago_david_ndim = 4 | ||
diago_full_acc = .true. | ||
mixing_beta = 0.3 | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity %} | ||
startingpot = 'file' | ||
{%- endif %} | ||
/ | ||
&IONS | ||
/ | ||
&CELL | ||
/ | ||
ATOMIC_SPECIES | ||
{{ input.ATOMIC_SPECIES_WITH_LABELS }} | ||
ATOMIC_POSITIONS crystal | ||
{{ input.ATOMIC_POSITIONS }} | ||
CELL_PARAMETERS angstrom | ||
{{ input.CELL_PARAMETERS }} | ||
K_POINTS crystal_b | ||
{{kpath.length}} | ||
{% for point in kpath -%} | ||
{% for d in point.coordinates %}{{d}} {% endfor -%}{{point.steps}} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{% if subworkflowContext.MATERIAL_INDEX %} | ||
{%- set input = input.perMaterial[subworkflowContext.MATERIAL_INDEX] -%} | ||
{% endif -%} | ||
&CONTROL | ||
calculation = 'bands' | ||
title = '' | ||
verbosity = 'low' | ||
restart_mode = '{{input.RESTART_MODE}}' | ||
wf_collect = .true. | ||
tstress = .true. | ||
tprnfor = .true. | ||
outdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %} | ||
wfcdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %} | ||
prefix = '__prefix__' | ||
pseudo_dir = {% raw %}'{{ JOB_WORK_DIR }}/pseudo'{% endraw %} | ||
/ | ||
&SYSTEM | ||
ibrav = {{ input.IBRAV }} | ||
nat = {{ input.NAT }} | ||
ntyp = {{ input.NTYP_WITH_LABELS }} | ||
ecutwfc = {{ cutoffs.wavefunction }} | ||
ecutrho = {{ cutoffs.density }} | ||
occupations = 'smearing' | ||
degauss = 0.005 | ||
noncolin = .true. | ||
lspinorb = .true. | ||
{%- if nonCollinearMagnetization.isStartingMagnetization %} | ||
{%- for item in nonCollinearMagnetization.startingMagnetization %} | ||
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isConstrainedMagnetization %} | ||
constrained_magnetization = '{{ nonCollinearMagnetization.constrainedMagnetization.constrainType }}' | ||
lambda = {{ nonCollinearMagnetization.constrainedMagnetization.lambda }} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isConstrainedMagnetization and nonCollinearMagnetization.isFixedMagnetization %} | ||
fixed_magnetization(1) = {{ nonCollinearMagnetization.fixedMagnetization.x }} | ||
fixed_magnetization(2) = {{ nonCollinearMagnetization.fixedMagnetization.y }} | ||
fixed_magnetization(3) = {{ nonCollinearMagnetization.fixedMagnetization.z }} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity and nonCollinearMagnetization.lforcet %} | ||
lforcet = .true. | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity and !nonCollinearMagnetization.lforcet %} | ||
lforcet = .false. | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isArbitrarySpinDirection %} | ||
{%- for item in nonCollinearMagnetization.spinAngles %} | ||
angle1({{ item.index }}) = {{ item.angle1 }} | ||
angle2({{ item.index }}) = {{ item.angle2 }} {% endfor %} | ||
{%- endif %} | ||
/ | ||
&ELECTRONS | ||
diagonalization = 'david' | ||
diago_david_ndim = 4 | ||
diago_full_acc = .true. | ||
mixing_beta = 0.3 | ||
/ | ||
&IONS | ||
/ | ||
&CELL | ||
/ | ||
ATOMIC_SPECIES | ||
{{ input.ATOMIC_SPECIES_WITH_LABELS }} | ||
ATOMIC_POSITIONS crystal | ||
{{ input.ATOMIC_POSITIONS }} | ||
CELL_PARAMETERS angstrom | ||
{{ input.CELL_PARAMETERS }} | ||
K_POINTS crystal_b | ||
{{kpath.length}} | ||
{% for point in kpath -%} | ||
{% for d in point.coordinates %}{{d}} {% endfor -%}{{point.steps}} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
&CONTROL | ||
calculation = 'nscf' | ||
title = '' | ||
verbosity = 'low' | ||
restart_mode = '{{input.RESTART_MODE}}' | ||
wf_collect = .true. | ||
tstress = .true. | ||
tprnfor = .true. | ||
outdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %} | ||
wfcdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %} | ||
prefix = '__prefix__' | ||
pseudo_dir = {% raw %}'{{ JOB_WORK_DIR }}/pseudo'{% endraw %} | ||
/ | ||
&SYSTEM | ||
ibrav = {{ input.IBRAV }} | ||
nat = {{ input.NAT }} | ||
ntyp = {{ input.NTYP_WITH_LABELS }} | ||
ecutwfc = {{ cutoffs.wavefunction }} | ||
ecutrho = {{ cutoffs.density }} | ||
occupations = 'smearing' | ||
degauss = 0.005 | ||
noncolin = .true. | ||
lspinorb = .true. | ||
{%- if nonCollinearMagnetization.isStartingMagnetization %} | ||
{%- for item in nonCollinearMagnetization.startingMagnetization %} | ||
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isConstrainedMagnetization %} | ||
constrained_magnetization = '{{ nonCollinearMagnetization.constrainedMagnetization.constrainType }}' | ||
lambda = {{ nonCollinearMagnetization.constrainedMagnetization.lambda }} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isConstrainedMagnetization and nonCollinearMagnetization.isFixedMagnetization %} | ||
fixed_magnetization(1) = {{ nonCollinearMagnetization.fixedMagnetization.x }} | ||
fixed_magnetization(2) = {{ nonCollinearMagnetization.fixedMagnetization.y }} | ||
fixed_magnetization(3) = {{ nonCollinearMagnetization.fixedMagnetization.z }} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity and nonCollinearMagnetization.lforcet %} | ||
lforcet = .true. | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity and !nonCollinearMagnetization.lforcet %} | ||
lforcet = .false. | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isArbitrarySpinDirection %} | ||
{%- for item in nonCollinearMagnetization.spinAngles %} | ||
angle1({{ item.index }}) = {{ item.angle1 }} | ||
angle2({{ item.index }}) = {{ item.angle2 }} {% endfor %} | ||
{%- endif %} | ||
{%- if subworkflowContext.NO_SYMMETRY_NO_INVERSION %} | ||
nosym = .true. | ||
noinv = .true. | ||
{%- endif %} | ||
/ | ||
&ELECTRONS | ||
diagonalization = 'david' | ||
diago_david_ndim = 4 | ||
diago_full_acc = .true. | ||
mixing_beta = 0.3 | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity %} | ||
startingpot = 'file' | ||
{%- endif %} | ||
/ | ||
&IONS | ||
/ | ||
&CELL | ||
/ | ||
ATOMIC_SPECIES | ||
{{ input.ATOMIC_SPECIES_WITH_LABELS }} | ||
ATOMIC_POSITIONS crystal | ||
{{ input.ATOMIC_POSITIONS }} | ||
CELL_PARAMETERS angstrom | ||
{{ input.CELL_PARAMETERS }} | ||
K_POINTS automatic | ||
{% for d in kgrid.dimensions %}{{d}} {% endfor %}{% for s in kgrid.shifts %}{{s}} {% endfor %} | ||
HUBBARD {ortho-atomic} | ||
{% for row in hubbard_u -%} | ||
U {{ row.atomicSpecies }}-{{ row.atomicOrbital }} {{ row.hubbardUValue }} | ||
{% endfor -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
&CONTROL | ||
calculation = 'nscf' | ||
title = '' | ||
verbosity = 'low' | ||
restart_mode = '{{input.RESTART_MODE}}' | ||
wf_collect = .true. | ||
tstress = .true. | ||
tprnfor = .true. | ||
outdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %} | ||
wfcdir = {% raw %}'{{ JOB_WORK_DIR }}/outdir'{% endraw %} | ||
prefix = '__prefix__' | ||
pseudo_dir = {% raw %}'{{ JOB_WORK_DIR }}/pseudo'{% endraw %} | ||
/ | ||
&SYSTEM | ||
ibrav = {{ input.IBRAV }} | ||
nat = {{ input.NAT }} | ||
ntyp = {{ input.NTYP_WITH_LABELS }} | ||
ecutwfc = {{ cutoffs.wavefunction }} | ||
ecutrho = {{ cutoffs.density }} | ||
occupations = 'smearing' | ||
degauss = 0.005 | ||
lda_plus_u = .true. | ||
lda_plus_u_kind = 0 | ||
U_projection_type = 'ortho-atomic' | ||
{%- for row in hubbard_legacy %} | ||
Hubbard_U({{ row.atomicSpeciesIndex }}) = {{ row.hubbardUValue }} | ||
{%- endfor %} | ||
noncolin = .true. | ||
lspinorb = .true. | ||
{%- if nonCollinearMagnetization.isStartingMagnetization %} | ||
{%- for item in nonCollinearMagnetization.startingMagnetization %} | ||
starting_magnetization({{ item.index }}) = {{ item.value }} {% endfor -%} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isConstrainedMagnetization %} | ||
constrained_magnetization = '{{ nonCollinearMagnetization.constrainedMagnetization.constrainType }}' | ||
lambda = {{ nonCollinearMagnetization.constrainedMagnetization.lambda }} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isConstrainedMagnetization and nonCollinearMagnetization.isFixedMagnetization %} | ||
fixed_magnetization(1) = {{ nonCollinearMagnetization.fixedMagnetization.x }} | ||
fixed_magnetization(2) = {{ nonCollinearMagnetization.fixedMagnetization.y }} | ||
fixed_magnetization(3) = {{ nonCollinearMagnetization.fixedMagnetization.z }} | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity and nonCollinearMagnetization.lforcet %} | ||
lforcet = .true. | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity and !nonCollinearMagnetization.lforcet %} | ||
lforcet = .false. | ||
{%- endif %} | ||
{%- if nonCollinearMagnetization.isArbitrarySpinDirection %} | ||
{%- for item in nonCollinearMagnetization.spinAngles %} | ||
angle1({{ item.index }}) = {{ item.angle1 }} | ||
angle2({{ item.index }}) = {{ item.angle2 }} {% endfor %} | ||
{%- endif %} | ||
{%- if subworkflowContext.NO_SYMMETRY_NO_INVERSION %} | ||
nosym = .true. | ||
noinv = .true. | ||
{%- endif %} | ||
/ | ||
&ELECTRONS | ||
diagonalization = 'david' | ||
diago_david_ndim = 4 | ||
diago_full_acc = .true. | ||
mixing_beta = 0.3 | ||
{%- if nonCollinearMagnetization.isExistingChargeDensity %} | ||
startingpot = 'file' | ||
{%- endif %} | ||
/ | ||
&IONS | ||
/ | ||
&CELL | ||
/ | ||
ATOMIC_SPECIES | ||
{{ input.ATOMIC_SPECIES_WITH_LABELS }} | ||
ATOMIC_POSITIONS crystal | ||
{{ input.ATOMIC_POSITIONS }} | ||
CELL_PARAMETERS angstrom | ||
{{ input.CELL_PARAMETERS }} | ||
K_POINTS automatic | ||
{% for d in kgrid.dimensions %}{{d}} {% endfor %}{% for s in kgrid.shifts %}{{s}} {% endfor %} |
Oops, something went wrong.