Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
nomad-lab
parser-gpaw
Commits
2b48358d
Commit
2b48358d
authored
Sep 12, 2016
by
Mikkel Strange
Browse files
added
parent
e215d5d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser/parser-gpaw/parser.py
View file @
2b48358d
...
...
@@ -14,7 +14,7 @@ from libxc_names import get_libxc_name
@
contextmanager
def
open_section
(
p
,
name
):
gid
=
p
.
openSection
(
name
)
yield
yield
gid
p
.
closeSection
(
name
,
gid
)
...
...
@@ -63,7 +63,7 @@ def parse(filename):
p
.
addValue
(
'program_basis_set_type'
,
'numeric AOs'
)
with
o
(
p
,
'section_basis_set_atom_centered'
):
p
.
addValue
(
'basis_set_atom_centered_short_name'
,
r
.
BasisSet
)
with
o
(
p
,
'section_system'
):
with
o
(
p
,
'section_system'
)
as
system_gid
:
p
.
addArrayValues
(
'simulation_cell'
,
c
(
r
.
UnitCell
,
'bohr'
))
symbols
=
np
.
array
([
chemical_symbols
[
z
]
for
z
in
r
.
AtomicNumbers
])
p
.
addArrayValues
(
'atom_labels'
,
symbols
)
...
...
@@ -75,6 +75,8 @@ def parse(filename):
with
o
(
p
,
'section_frame_sequence'
):
pass
with
o
(
p
,
'section_single_configuration_calculation'
):
p
.
addValue
(
'single_configuration_calculation_to_system_ref'
,
system_gid
)
p
.
addRealValue
(
'energy_total'
,
c
(
r
.
Epot
,
'hartree'
))
p
.
addRealValue
(
'energy_XC'
,
c
(
r
.
Exc
,
'hartree'
))
p
.
addRealValue
(
'electronic_kinetic_energy'
,
c
(
r
.
Ekin
,
'hartree'
))
...
...
@@ -88,7 +90,9 @@ def parse(filename):
# r.AtomicDensityMatrices)
#p.addArrayValues('x_gpaw_projections_real', r.Projections.real)
#p.addArrayValues('x_gpaw_projections_imag', r.Projections.imag)
with
o
(
p
,
'section_method'
):
with
o
(
p
,
'section_method'
)
as
method_gid
:
p
.
addValue
(
'single_configuration_to_calculation_method_ref'
,
method_gid
)
#p.addValue('relativity_method', 'pseudo_scalar_relativistic')
p
.
addValue
(
'electronic_structure_method'
,
'DFT'
)
p
.
addValue
(
'scf_threshold_energy_change'
,
c
(
r
.
EnergyError
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment