nomad-parser-plugins-atomistic 1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. atomisticparsers/__init__.py +400 -0
  2. atomisticparsers/amber/__init__.py +19 -0
  3. atomisticparsers/amber/__main__.py +31 -0
  4. atomisticparsers/amber/metainfo/__init__.py +19 -0
  5. atomisticparsers/amber/metainfo/amber.py +495 -0
  6. atomisticparsers/amber/parser.py +42 -0
  7. atomisticparsers/asap/__init__.py +19 -0
  8. atomisticparsers/asap/__main__.py +31 -0
  9. atomisticparsers/asap/metainfo/__init__.py +19 -0
  10. atomisticparsers/asap/metainfo/asap.py +75 -0
  11. atomisticparsers/asap/parser.py +197 -0
  12. atomisticparsers/bopfox/__init__.py +19 -0
  13. atomisticparsers/bopfox/__main__.py +31 -0
  14. atomisticparsers/bopfox/metainfo/__init__.py +19 -0
  15. atomisticparsers/bopfox/metainfo/bopfox.py +225 -0
  16. atomisticparsers/bopfox/parser.py +808 -0
  17. atomisticparsers/dftbplus/__init__.py +19 -0
  18. atomisticparsers/dftbplus/__main__.py +31 -0
  19. atomisticparsers/dftbplus/metainfo/__init__.py +19 -0
  20. atomisticparsers/dftbplus/metainfo/dftbplus.py +217 -0
  21. atomisticparsers/dftbplus/parser.py +500 -0
  22. atomisticparsers/dlpoly/__init__.py +19 -0
  23. atomisticparsers/dlpoly/__main__.py +31 -0
  24. atomisticparsers/dlpoly/metainfo/__init__.py +19 -0
  25. atomisticparsers/dlpoly/metainfo/dl_poly.py +312 -0
  26. atomisticparsers/dlpoly/parser.py +798 -0
  27. atomisticparsers/gromacs/__init__.py +19 -0
  28. atomisticparsers/gromacs/__main__.py +31 -0
  29. atomisticparsers/gromacs/metainfo/__init__.py +19 -0
  30. atomisticparsers/gromacs/metainfo/gromacs.py +2388 -0
  31. atomisticparsers/gromacs/parser.py +1581 -0
  32. atomisticparsers/gromos/__init__.py +19 -0
  33. atomisticparsers/gromos/__main__.py +31 -0
  34. atomisticparsers/gromos/metainfo/__init__.py +19 -0
  35. atomisticparsers/gromos/metainfo/gromos.py +1995 -0
  36. atomisticparsers/gromos/parser.py +58 -0
  37. atomisticparsers/gulp/__init__.py +19 -0
  38. atomisticparsers/gulp/__main__.py +31 -0
  39. atomisticparsers/gulp/metainfo/__init__.py +19 -0
  40. atomisticparsers/gulp/metainfo/gulp.py +1117 -0
  41. atomisticparsers/gulp/parser.py +1316 -0
  42. atomisticparsers/h5md/__init__.py +19 -0
  43. atomisticparsers/h5md/__main__.py +31 -0
  44. atomisticparsers/h5md/metainfo/__init__.py +19 -0
  45. atomisticparsers/h5md/metainfo/h5md.py +239 -0
  46. atomisticparsers/h5md/parser.py +901 -0
  47. atomisticparsers/lammps/__init__.py +19 -0
  48. atomisticparsers/lammps/__main__.py +31 -0
  49. atomisticparsers/lammps/metainfo/__init__.py +19 -0
  50. atomisticparsers/lammps/metainfo/lammps.py +1417 -0
  51. atomisticparsers/lammps/parser.py +1753 -0
  52. atomisticparsers/libatoms/__init__.py +19 -0
  53. atomisticparsers/libatoms/__main__.py +31 -0
  54. atomisticparsers/libatoms/metainfo/__init__.py +19 -0
  55. atomisticparsers/libatoms/metainfo/lib_atoms.py +251 -0
  56. atomisticparsers/libatoms/parser.py +38 -0
  57. atomisticparsers/namd/__init__.py +19 -0
  58. atomisticparsers/namd/__main__.py +31 -0
  59. atomisticparsers/namd/metainfo/__init__.py +19 -0
  60. atomisticparsers/namd/metainfo/namd.py +1605 -0
  61. atomisticparsers/namd/parser.py +312 -0
  62. atomisticparsers/tinker/__init__.py +19 -0
  63. atomisticparsers/tinker/__main__.py +31 -0
  64. atomisticparsers/tinker/metainfo/__init__.py +18 -0
  65. atomisticparsers/tinker/metainfo/tinker.py +1363 -0
  66. atomisticparsers/tinker/parser.py +685 -0
  67. atomisticparsers/utils/__init__.py +22 -0
  68. atomisticparsers/utils/mdanalysis.py +662 -0
  69. atomisticparsers/utils/parsers.py +226 -0
  70. atomisticparsers/xtb/__init__.py +19 -0
  71. atomisticparsers/xtb/__main__.py +32 -0
  72. atomisticparsers/xtb/metainfo/__init__.py +19 -0
  73. atomisticparsers/xtb/metainfo/xtb.py +256 -0
  74. atomisticparsers/xtb/parser.py +979 -0
  75. nomad_parser_plugins_atomistic-1.0.dist-info/LICENSE +202 -0
  76. nomad_parser_plugins_atomistic-1.0.dist-info/METADATA +327 -0
  77. nomad_parser_plugins_atomistic-1.0.dist-info/RECORD +80 -0
  78. nomad_parser_plugins_atomistic-1.0.dist-info/WHEEL +5 -0
  79. nomad_parser_plugins_atomistic-1.0.dist-info/entry_points.txt +15 -0
  80. nomad_parser_plugins_atomistic-1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright The NOMAD Authors.
3
+ #
4
+ # This file is part of NOMAD.
5
+ # See https://nomad-lab.eu for further info.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ from .parser import DFTBPlusParser
@@ -0,0 +1,31 @@
1
+ #
2
+ # Copyright The NOMAD Authors.
3
+ #
4
+ # This file is part of NOMAD.
5
+ # See https://nomad-lab.eu for further info.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ import sys
20
+ import json
21
+ import logging
22
+
23
+ from nomad.utils import configure_logging
24
+ from nomad.datamodel import EntryArchive
25
+ from atomisticparsers.dftbplus import DFTBPlusParser
26
+
27
+ if __name__ == '__main__':
28
+ configure_logging(console_log_level=logging.DEBUG)
29
+ archive = EntryArchive()
30
+ DFTBPlusParser().parse(sys.argv[1], archive, logging)
31
+ json.dump(archive.m_to_dict(), sys.stdout, indent=2)
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright The NOMAD Authors.
3
+ #
4
+ # This file is part of NOMAD.
5
+ # See https://nomad-lab.eu for further info.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ from . import dftbplus
@@ -0,0 +1,217 @@
1
+ #
2
+ # Copyright The NOMAD Authors.
3
+ #
4
+ # This file is part of NOMAD.
5
+ # See https://nomad-lab.eu for further info.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ import numpy as np # pylint: disable=unused-import
20
+
21
+ from nomad.metainfo import ( # pylint: disable=unused-import
22
+ Package,
23
+ Quantity,
24
+ Section,
25
+ SubSection,
26
+ JSON,
27
+ )
28
+ import runschema.run # pylint: disable=unused-import
29
+ import runschema.calculation # pylint: disable=unused-import
30
+ import runschema.method # pylint: disable=unused-import
31
+ import runschema.system # pylint: disable=unused-import
32
+
33
+
34
+ m_package = Package()
35
+
36
+
37
+ class AtomParameters(runschema.method.AtomParameters):
38
+ m_def = Section(validate=False, extends_base_section=True)
39
+
40
+ atom = Quantity(
41
+ type=np.int32,
42
+ shape=[],
43
+ description="""
44
+ -
45
+ """,
46
+ )
47
+
48
+ x_dftbp_charge = Quantity(
49
+ type=np.float64,
50
+ shape=[],
51
+ description="""
52
+ -
53
+ """,
54
+ )
55
+
56
+
57
+ class System(runschema.system.System):
58
+ m_def = Section(validate=False, extends_base_section=True)
59
+
60
+ x_dftbp_atom_positions_X = Quantity(
61
+ type=np.float64,
62
+ shape=[],
63
+ description="""
64
+ -
65
+ """,
66
+ )
67
+
68
+ x_dftbp_atom_positions_Y = Quantity(
69
+ type=np.float64,
70
+ shape=[],
71
+ description="""
72
+ -
73
+ """,
74
+ )
75
+
76
+ x_dftbp_atom_positions_Z = Quantity(
77
+ type=np.float64,
78
+ shape=[],
79
+ description="""
80
+ -
81
+ """,
82
+ )
83
+
84
+
85
+ class BandEnergies(runschema.calculation.BandEnergies):
86
+ m_def = Section(validate=False, extends_base_section=True)
87
+
88
+ x_dftbp_eigenvalues_values = Quantity(
89
+ type=np.float64,
90
+ shape=[],
91
+ description="""
92
+ -
93
+ """,
94
+ )
95
+
96
+ x_dftbp_eigenvalues_occupation = Quantity(
97
+ type=np.float64,
98
+ shape=[],
99
+ description="""
100
+ -
101
+ """,
102
+ )
103
+
104
+
105
+ class Calculation(runschema.calculation.Calculation):
106
+ m_def = Section(validate=False, extends_base_section=True)
107
+
108
+ x_dftbp_atom_forces_X = Quantity(
109
+ type=np.float64,
110
+ shape=[],
111
+ description="""
112
+ -
113
+ """,
114
+ )
115
+
116
+ x_dftbp_atom_forces_Y = Quantity(
117
+ type=np.float64,
118
+ shape=[],
119
+ description="""
120
+ -
121
+ """,
122
+ )
123
+
124
+ x_dftbp_atom_forces_Z = Quantity(
125
+ type=np.float64,
126
+ shape=[],
127
+ description="""
128
+ -
129
+ """,
130
+ )
131
+
132
+ x_dftbp_force_max = Quantity(
133
+ type=np.float64,
134
+ shape=[],
135
+ description="""
136
+ -
137
+ """,
138
+ )
139
+
140
+ x_dftbp_force_max_mov = Quantity(
141
+ type=np.float64,
142
+ shape=[],
143
+ description="""
144
+ -
145
+ """,
146
+ )
147
+
148
+
149
+ class Energy(runschema.calculation.Energy):
150
+ m_def = Section(validate=False, extends_base_section=True)
151
+
152
+ x_dftbp_total_mermin = SubSection(runschema.calculation.EnergyEntry.m_def)
153
+
154
+ x_dftbp_band = SubSection(runschema.calculation.EnergyEntry.m_def)
155
+
156
+ x_dftbp_ts = SubSection(runschema.calculation.EnergyEntry.m_def)
157
+
158
+ x_dftbp_band_free = SubSection(runschema.calculation.EnergyEntry.m_def)
159
+
160
+ x_dftbp_band_t0 = SubSection(runschema.calculation.EnergyEntry.m_def)
161
+
162
+ x_dftbp_scc = SubSection(runschema.calculation.EnergyEntry.m_def)
163
+
164
+ x_dftbp_dispersion = SubSection(runschema.calculation.EnergyEntry.m_def)
165
+
166
+ x_dftbp_force_related = SubSection(runschema.calculation.EnergyEntry.m_def)
167
+
168
+
169
+ class TB(runschema.method.TB):
170
+ m_def = Section(validate=False, extends_base_section=True)
171
+
172
+ x_dftbp_input_parameters = Quantity(
173
+ type=JSON,
174
+ shape=[],
175
+ description="""
176
+ -
177
+ """,
178
+ )
179
+
180
+ x_dftbp_n_sk_files = Quantity(
181
+ type=np.int32,
182
+ shape=[],
183
+ description="""
184
+ """,
185
+ )
186
+
187
+ x_dftbp_sk_files = Quantity(
188
+ type=str,
189
+ shape=['x_dftbp_n_sk_files'],
190
+ description="""
191
+ """,
192
+ )
193
+
194
+
195
+ class Run(runschema.run.Run):
196
+ m_def = Section(validate=False, extends_base_section=True)
197
+
198
+ x_dftbp_input_file = Quantity(
199
+ type=str,
200
+ shape=[],
201
+ description="""
202
+ """,
203
+ )
204
+
205
+ x_dftbp_processed_input_file = Quantity(
206
+ type=str,
207
+ shape=[],
208
+ description="""
209
+ """,
210
+ )
211
+
212
+ x_dftbp_parser_version = Quantity(
213
+ type=str,
214
+ shape=[],
215
+ description="""
216
+ """,
217
+ )