Coverage for ase/calculators/vasp/setups.py: 100.00%
5 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-11-27 15:21 +0000
« prev ^ index » next coverage.py v7.16.2, created at 2026-11-27 15:21 +0000
1import copy
3_setups_defaults = {
4 'minimal': {
5 'K': '_pv',
6 'Ca': '_pv',
7 'Rb': '_pv',
8 'Sr': '_sv',
9 'Y': '_sv',
10 'Zr': '_sv',
11 'Nb': '_pv',
12 'Cs': '_sv',
13 'Ba': '_sv',
14 'Fr': '_sv',
15 'Ra': '_sv',
16 'Sc': '_sv',
17 },
18 # VASP recommended
19 'recommended': {
20 'Li': '_sv',
21 'Na': '_pv',
22 'K': '_sv',
23 'Ca': '_sv',
24 'Sc': '_sv',
25 'Ti': '_sv',
26 'V': '_sv',
27 'Cr': '_pv',
28 'Mn': '_pv',
29 'Ga': '_d',
30 'Ge': '_d',
31 'Rb': '_sv',
32 'Sr': '_sv',
33 'Y': '_sv',
34 'Zr': '_sv',
35 'Nb': '_sv',
36 'Mo': '_sv',
37 'Tc': '_pv',
38 'Ru': '_pv',
39 'Rh': '_pv',
40 'In': '_d',
41 'Sn': '_d',
42 'Cs': '_sv',
43 'Ba': '_sv',
44 'Pr': '_3',
45 'Nd': '_3',
46 'Pm': '_3',
47 'Sm': '_3',
48 'Eu': '_2',
49 'Gd': '_3',
50 'Tb': '_3',
51 'Dy': '_3',
52 'Ho': '_3',
53 'Er': '_3',
54 'Tm': '_3',
55 'Yb': '_2',
56 'Lu': '_3',
57 'Hf': '_pv',
58 'Ta': '_pv',
59 'W': '_pv',
60 'Tl': '_d',
61 'Pb': '_d',
62 'Bi': '_d',
63 'Po': '_d',
64 'At': '_d',
65 'Fr': '_sv',
66 'Ra': '_sv',
67 },
68 # https://wiki.materialsproject.org/Pseudopotentials_Choice
69 'materialsproject':
70 # Alkali and alkali-earth
71 {
72 'Li': '_sv',
73 'Na': '_pv',
74 'K': '_sv',
75 'Cs': '_sv',
76 'Rb': '_sv',
77 'Be': '_sv',
78 'Mg': '_pv',
79 'Ca': '_sv',
80 'Sr': '_sv',
81 'Ba': '_sv',
82 # d-elements, transition metals
83 'Sc': '_sv',
84 'Y': '_sv',
85 'Ti': '_pv',
86 'Zr': '_sv',
87 'Hf': '_pv',
88 'V': '_sv',
89 'Nb': '_pv',
90 'Ta': '_pv',
91 'Cr': '_pv',
92 'Mo': '_pv',
93 'W': '_sv', # updated from W_pv
94 'Mn': '_pv',
95 'Tc': '_pv',
96 'Re': '_pv',
97 'Fe': '_pv',
98 'Co': '',
99 'Ni': '_pv',
100 'Cu': '_pv',
101 'Zn': '',
102 'Ru': '_pv',
103 'Rh': '_pv',
104 'Pd': '',
105 'Ag': '',
106 'Cd': '',
107 'Hg': '',
108 'Ir': '',
109 'Pt': '',
110 'Os': '_pv',
111 # Main group
112 'Ga': '_d',
113 'Ge': '_d',
114 'Al': '',
115 'As': '',
116 'Se': '',
117 'Br': '',
118 'In': '_d',
119 'Sn': '_d',
120 'Tl': '_d',
121 'Pb': '_d',
122 'Bi': '_d', # ?
123 'Po': '',
124 'At': '_d',
125 # Rare-earth, f-electrons
126 'La': '',
127 'Ce': '',
128 'Pr': '_3',
129 'Nd': '_3',
130 'Pm': '_3',
131 'Sm': '_3',
132 'Eu': '',
133 'Gd': '',
134 'Tb': '_3',
135 'Dy': '_3',
136 'Ho': '_3',
137 'Er': '_3',
138 'Tm': '_3',
139 'Yb': '',
140 'Lu': '_3',
141 },
142 #
143 'gw': {
144 'H': '_GW',
145 'He': '_GW',
146 'Li': '_sv_GW',
147 'Be': '_sv_GW',
148 'B': '_GW',
149 'C': '_GW',
150 'N': '_GW',
151 'O': '_GW',
152 'F': '_GW',
153 'Ne': '_GW',
154 'Na': '_sv_GW',
155 'Mg': '_sv_GW',
156 'Al': '_GW',
157 'Si': '_GW',
158 'P': '_GW',
159 'S': '_GW',
160 'Cl': '_GW',
161 'Ar': '_GW',
162 'K': '_sv_GW',
163 'Ca': '_sv_GW',
164 'Sc': '_sv_GW',
165 'Ti': '_sv_GW',
166 'V': '_sv_GW',
167 'Cr': '_sv_GW',
168 'Mn': '_sv_GW',
169 'Fe': '_sv_GW',
170 'Co': '_sv_GW',
171 'Ni': '_sv_GW',
172 'Cu': '_sv_GW',
173 'Zn': '_sv_GW',
174 'Ga': '_d_GW',
175 'Ge': '_d_GW',
176 'As': '_GW',
177 'Se': '_GW',
178 'Br': '_GW',
179 'Kr': '_GW',
180 'Rb': '_sv_GW',
181 'Sr': '_sv_GW',
182 'Y': '_sv_GW',
183 'Zr': '_sv_GW',
184 'Nb': '_sv_GW',
185 'Mo': '_sv_GW',
186 'Tc': '_sv_GW',
187 'Ru': '_sv_GW',
188 'Rh': '_sv_GW',
189 'Pd': '_sv_GW',
190 'Ag': '_sv_GW',
191 'Cd': '_sv_GW',
192 'In': '_d_GW',
193 'Sn': '_d_GW',
194 'Sb': '_d_GW',
195 'Te': '_GW',
196 'I': '_GW',
197 'Xe': '_GW',
198 'Cs': '_sv_GW',
199 'Ba': '_sv_GW',
200 'La': '_GW',
201 'Ce': '_GW',
202 'Hf': '_sv_GW',
203 'Ta': '_sv_GW',
204 'W': '_sv_GW',
205 'Re': '_sv_GW',
206 'Os': '_sv_GW',
207 'Ir': '_sv_GW',
208 'Pt': '_sv_GW',
209 'Au': '_sv_GW',
210 'Hg': '_sv_GW',
211 'Tl': '_d_GW',
212 'Pb': '_d_GW',
213 'Bi': '_d_GW',
214 'Po': '_d_GW',
215 'At': '_d_GW',
216 'Rn': '_d_GW',
217 },
218}
221def get_default_setups():
222 # Avoid mutating the module dictionary, so we use a copy instead
223 # Note, it is a nested dict, so a regular copy is not enough
224 return copy.deepcopy(_setups_defaults)
227# Compatibility
228setups_defaults = get_default_setups()