forked from materialsproject/pymatgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pymatgen.analysis.defects.core.html
537 lines (486 loc) · 31.8 KB
/
pymatgen.analysis.defects.core.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>pymatgen.analysis.defects.core module — pymatgen 2019.5.1 documentation</title>
<link rel="stylesheet" href="_static/proBlue.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/language_data.js"></script>
<script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="shortcut icon" href="_static/favicon.ico"/>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33990148-1']);
_gaq.push(['_trackPageview']);
</script>
</head><body>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">pymatgen 2019.5.1 documentation</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="module-pymatgen.analysis.defects.core">
<span id="pymatgen-analysis-defects-core-module"></span><h1>pymatgen.analysis.defects.core module<a class="headerlink" href="#module-pymatgen.analysis.defects.core" title="Permalink to this headline">¶</a></h1>
<dl class="class">
<dt id="pymatgen.analysis.defects.core.Defect">
<em class="property">class </em><code class="descname">Defect</code><span class="sig-paren">(</span><em>structure</em>, <em>defect_site</em>, <em>charge=0.0</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#Defect"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.Defect" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">monty.json.MSONable</span></code></p>
<p>Abstract class for a single point defect</p>
<p>Initializes an abstract defect</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>structure</strong> – Pymatgen Structure without any defects</p></li>
<li><p><strong>defect_site</strong> (<a class="reference internal" href="pymatgen.core.sites.html#pymatgen.core.sites.Site" title="pymatgen.core.sites.Site"><em>Site</em></a>) – site for defect within structure
must have same lattice as structure</p></li>
<li><p><strong>charge</strong> – (int or float) defect charge
default is zero, meaning no change to NELECT after defect is created in the structure
(assuming use_structure_charge=True in vasp input set)</p></li>
</ul>
</dd>
</dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Defect.bulk_structure">
<code class="descname">bulk_structure</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Defect.bulk_structure" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the structure without any defects.</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Defect.charge">
<code class="descname">charge</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Defect.charge" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the charge of a defect</p>
</dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.defects.core.Defect.copy">
<code class="descname">copy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#Defect.copy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.Defect.copy" title="Permalink to this definition">¶</a></dt>
<dd><p>Convenience method to get a copy of the defect.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>A copy of the Defect.</p>
</dd>
</dl>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Defect.defect_composition">
<code class="descname">defect_composition</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Defect.defect_composition" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the defect composition as a Composition object</p>
</dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.defects.core.Defect.generate_defect_structure">
<code class="descname">generate_defect_structure</code><span class="sig-paren">(</span><em>supercell=(1</em>, <em>1</em>, <em>1)</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#Defect.generate_defect_structure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.Defect.generate_defect_structure" title="Permalink to this definition">¶</a></dt>
<dd><p>Given structure and defect_site (and type of defect) should return a defect_structure that is charged
:param supercell: supercell integer, vector, or scaling matrix
:type supercell: int, [3x1], or [[]] (3x3)</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Defect.multiplicity">
<code class="descname">multiplicity</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Defect.multiplicity" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the multiplicity of a defect site within the structure (needed for concentration analysis)</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Defect.name">
<code class="descname">name</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Defect.name" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a name for this defect</p>
</dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.defects.core.Defect.set_charge">
<code class="descname">set_charge</code><span class="sig-paren">(</span><em>new_charge=0.0</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#Defect.set_charge"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.Defect.set_charge" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the overall charge
:param charge: new charge to set
:type charge: float</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Defect.site">
<code class="descname">site</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Defect.site" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the defect position as a site object</p>
</dd></dl>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.defects.core.DefectCorrection">
<em class="property">class </em><code class="descname">DefectCorrection</code><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#DefectCorrection"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectCorrection" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">monty.json.MSONable</span></code></p>
<p>A Correction class modeled off the computed entry correction format</p>
<dl class="method">
<dt id="pymatgen.analysis.defects.core.DefectCorrection.correct_entry">
<code class="descname">correct_entry</code><span class="sig-paren">(</span><em>entry</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#DefectCorrection.correct_entry"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectCorrection.correct_entry" title="Permalink to this definition">¶</a></dt>
<dd><p>Corrects a single entry.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>entry</strong> – A DefectEntry object.</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>An processed entry.</p>
</dd>
<dt class="field-odd">Raises</dt>
<dd class="field-odd"><p><strong>CompatibilityError if entry is not compatible.</strong> – </p>
</dd>
</dl>
</dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.defects.core.DefectCorrection.get_correction">
<code class="descname">get_correction</code><span class="sig-paren">(</span><em>entry</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#DefectCorrection.get_correction"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectCorrection.get_correction" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns correction for a single entry.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>entry</strong> – A DefectEntry object.</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>A single dictionary with the format
correction_name: energy_correction</p>
</dd>
<dt class="field-odd">Raises</dt>
<dd class="field-odd"><p><strong>CompatibilityError if entry is not compatible.</strong> – </p>
</dd>
</dl>
</dd></dl>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.defects.core.DefectEntry">
<em class="property">class </em><code class="descname">DefectEntry</code><span class="sig-paren">(</span><em>defect</em>, <em>uncorrected_energy</em>, <em>corrections=None</em>, <em>parameters=None</em>, <em>entry_id=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#DefectEntry"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectEntry" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">monty.json.MSONable</span></code></p>
<p>An lightweight DefectEntry object containing key computed data
for many defect analysis.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>defect</strong> – A Defect object from pymatgen.analysis.defects.core</p></li>
<li><p><strong>uncorrected_energy</strong> (<em>float</em>) – Energy of the defect entry. Usually the difference between
the final calculated energy for the defect supercell - the perfect
supercell energy</p></li>
<li><p><strong>corrections</strong> (<em>[</em><a class="reference internal" href="pymatgen.entries.compatibility.html#pymatgen.entries.compatibility.Correction" title="pymatgen.entries.compatibility.Correction"><em>Correction</em></a><em>]</em>) – List of Correction classes (from pymatgen.analysis.defects.corrections)
which correct energy due to charge (e.g. Freysoldt or Kumagai)
or other factors (e.g. Shallow level shifts)</p></li>
<li><p><strong>parameters</strong> (<em>dict</em>) – An optional dict of calculation parameters and data to
use with correction schemes
(examples of parameter keys: supercell_size, axis_grid, bulk_planar_averages
defect_planar_averages )</p></li>
<li><p><strong>entry_id</strong> (<em>obj</em>) – An id to uniquely identify this defect, can be any MSONable
type</p></li>
</ul>
</dd>
</dl>
<dl>
<dt>Optional:</dt><dd><p>note that if you intend to use this defect entry with Charge Corrections
but the bulk_structure stored in defect is not the final supercell,
then ‘scaling_matrix’ must be stored in parameters</p>
<blockquote>
<div><p>for example: parameters = {‘scaling_matrix’: [3,3,3]}</p>
</div></blockquote>
</dd>
</dl>
<dl class="method">
<dt id="pymatgen.analysis.defects.core.DefectEntry.as_dict">
<code class="descname">as_dict</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#DefectEntry.as_dict"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectEntry.as_dict" title="Permalink to this definition">¶</a></dt>
<dd><p>Json-serializable dict representation of DefectEntry</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.DefectEntry.bulk_structure">
<code class="descname">bulk_structure</code><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectEntry.bulk_structure" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.DefectEntry.charge">
<code class="descname">charge</code><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectEntry.charge" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.defects.core.DefectEntry.copy">
<code class="descname">copy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#DefectEntry.copy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectEntry.copy" title="Permalink to this definition">¶</a></dt>
<dd><p>Convenience method to get a copy of the DefectEntry.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>A copy of the DefectEntry.</p>
</dd>
</dl>
</dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.defects.core.DefectEntry.defect_concentration">
<code class="descname">defect_concentration</code><span class="sig-paren">(</span><em>chemical_potentials</em>, <em>temperature=300</em>, <em>fermi_level=0.0</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#DefectEntry.defect_concentration"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectEntry.defect_concentration" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the defect concentration for a temperature and Fermi level.
:param temperature: the temperature in K
:param fermi_level: the fermi level in eV (with respect to the VBM)</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>defects concentration in cm^-3</p>
</dd>
</dl>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.DefectEntry.energy">
<code class="descname">energy</code><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectEntry.energy" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the <em>corrected</em> energy of the entry</p>
</dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.defects.core.DefectEntry.formation_energy">
<code class="descname">formation_energy</code><span class="sig-paren">(</span><em>chemical_potentials=None</em>, <em>fermi_level=0</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#DefectEntry.formation_energy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectEntry.formation_energy" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the formation energy for a defect taking into account a given chemical potential and fermi_level</p>
</dd></dl>
<dl class="classmethod">
<dt id="pymatgen.analysis.defects.core.DefectEntry.from_dict">
<em class="property">classmethod </em><code class="descname">from_dict</code><span class="sig-paren">(</span><em>d</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#DefectEntry.from_dict"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectEntry.from_dict" title="Permalink to this definition">¶</a></dt>
<dd><p>Reconstitute a DefectEntry object from a dict representation created using
as_dict().</p>
<blockquote>
<div><dl class="simple">
<dt>Args:</dt><dd><p>d (dict): dict representation of DefectEntry.</p>
</dd>
<dt>Returns:</dt><dd><p>DefectEntry object</p>
</dd>
</dl>
</div></blockquote>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.DefectEntry.multiplicity">
<code class="descname">multiplicity</code><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectEntry.multiplicity" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.DefectEntry.name">
<code class="descname">name</code><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectEntry.name" title="Permalink to this definition">¶</a></dt>
<dd><p>Returms the defect name</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.DefectEntry.site">
<code class="descname">site</code><a class="headerlink" href="#pymatgen.analysis.defects.core.DefectEntry.site" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.defects.core.Interstitial">
<em class="property">class </em><code class="descname">Interstitial</code><span class="sig-paren">(</span><em>structure</em>, <em>defect_site</em>, <em>charge=0.0</em>, <em>site_name=''</em>, <em>multiplicity=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#Interstitial"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.Interstitial" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#pymatgen.analysis.defects.core.Defect" title="pymatgen.analysis.defects.core.Defect"><code class="xref py py-class docutils literal notranslate"><span class="pre">pymatgen.analysis.defects.core.Defect</span></code></a></p>
<p>Subclass of Defect to capture essential information for a single Interstitial defect structure.</p>
<p>Initializes an interstial defect.
User must specify multiplity. Default is 1
:param structure: Pymatgen Structure without any defects
:param defect_site: the site for the interstitial
:type defect_site: Site
:param charge: (int or float) defect charge</p>
<blockquote>
<div><p>default is zero, meaning no change to NELECT after defect is created in the structure
(assuming use_structure_charge=True in vasp input set)</p>
</div></blockquote>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>site_name</strong> – <p>allows user to give a unique name to defect, since Wyckoff symbol/multiplicity
is sometimes insufficient to categorize the defect type.</p>
<blockquote>
<div><p>default is no name beyond multiplicity.</p>
</div></blockquote>
</p></li>
<li><p><strong>multiplicity</strong> (<em>int</em>) – <p>multiplicity of defect within
the supercell can be supplied by user. if not
specified, then space group symmetry is used
to generator interstitial sublattice</p>
<p>NOTE: multiplicity generation will not work for
interstitial complexes,
where multiplicity may depend on additional
factors (ex. orientation etc.)
If defect is not a complex, then this
process will yield the correct multiplicity,
provided that the defect does not undergo
significant relaxation.</p>
</p></li>
</ul>
</dd>
</dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Interstitial.defect_composition">
<code class="descname">defect_composition</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Interstitial.defect_composition" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the defect composition as a Composition object</p>
</dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.defects.core.Interstitial.generate_defect_structure">
<code class="descname">generate_defect_structure</code><span class="sig-paren">(</span><em>supercell=(1</em>, <em>1</em>, <em>1)</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#Interstitial.generate_defect_structure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.Interstitial.generate_defect_structure" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns Defective Interstitial structure, decorated with charge
:param supercell: supercell integer, vector, or scaling matrix
:type supercell: int, [3x1], or [[]] (3x3)</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Interstitial.multiplicity">
<code class="descname">multiplicity</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Interstitial.multiplicity" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the multiplicity of a defect site within the structure (needed for concentration analysis)</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Interstitial.name">
<code class="descname">name</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Interstitial.name" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a name for this defect</p>
</dd></dl>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.defects.core.Substitution">
<em class="property">class </em><code class="descname">Substitution</code><span class="sig-paren">(</span><em>structure</em>, <em>defect_site</em>, <em>charge=0.0</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#Substitution"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.Substitution" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#pymatgen.analysis.defects.core.Defect" title="pymatgen.analysis.defects.core.Defect"><code class="xref py py-class docutils literal notranslate"><span class="pre">pymatgen.analysis.defects.core.Defect</span></code></a></p>
<p>Subclass of Defect to capture essential information for a single Substitution defect structure.</p>
<p>Initializes an abstract defect</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>structure</strong> – Pymatgen Structure without any defects</p></li>
<li><p><strong>defect_site</strong> (<a class="reference internal" href="pymatgen.core.sites.html#pymatgen.core.sites.Site" title="pymatgen.core.sites.Site"><em>Site</em></a>) – site for defect within structure
must have same lattice as structure</p></li>
<li><p><strong>charge</strong> – (int or float) defect charge
default is zero, meaning no change to NELECT after defect is created in the structure
(assuming use_structure_charge=True in vasp input set)</p></li>
</ul>
</dd>
</dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Substitution.defect_composition">
<code class="descname">defect_composition</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Substitution.defect_composition" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the defect composition as a Composition object</p>
</dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.defects.core.Substitution.generate_defect_structure">
<code class="descname">generate_defect_structure</code><span class="sig-paren">(</span><em>supercell=(1</em>, <em>1</em>, <em>1)</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#Substitution.generate_defect_structure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.Substitution.generate_defect_structure" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns Defective Substitution structure, decorated with charge
:param supercell: supercell integer, vector, or scaling matrix
:type supercell: int, [3x1], or [[]] (3x3)</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Substitution.multiplicity">
<code class="descname">multiplicity</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Substitution.multiplicity" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the multiplicity of a defect site within the structure (needed for concentration analysis)</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Substitution.name">
<code class="descname">name</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Substitution.name" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a name for this defect</p>
</dd></dl>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.defects.core.Vacancy">
<em class="property">class </em><code class="descname">Vacancy</code><span class="sig-paren">(</span><em>structure</em>, <em>defect_site</em>, <em>charge=0.0</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#Vacancy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.Vacancy" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#pymatgen.analysis.defects.core.Defect" title="pymatgen.analysis.defects.core.Defect"><code class="xref py py-class docutils literal notranslate"><span class="pre">pymatgen.analysis.defects.core.Defect</span></code></a></p>
<p>Subclass of Defect to capture essential information for a single Vacancy defect structure.</p>
<p>Initializes an abstract defect</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>structure</strong> – Pymatgen Structure without any defects</p></li>
<li><p><strong>defect_site</strong> (<a class="reference internal" href="pymatgen.core.sites.html#pymatgen.core.sites.Site" title="pymatgen.core.sites.Site"><em>Site</em></a>) – site for defect within structure
must have same lattice as structure</p></li>
<li><p><strong>charge</strong> – (int or float) defect charge
default is zero, meaning no change to NELECT after defect is created in the structure
(assuming use_structure_charge=True in vasp input set)</p></li>
</ul>
</dd>
</dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Vacancy.defect_composition">
<code class="descname">defect_composition</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Vacancy.defect_composition" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the defect composition as a Composition object</p>
</dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.defects.core.Vacancy.generate_defect_structure">
<code class="descname">generate_defect_structure</code><span class="sig-paren">(</span><em>supercell=(1</em>, <em>1</em>, <em>1)</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#Vacancy.generate_defect_structure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.Vacancy.generate_defect_structure" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns Defective Vacancy structure, decorated with charge
:param supercell: supercell integer, vector, or scaling matrix
:type supercell: int, [3x1], or [[]] (3x3)</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Vacancy.multiplicity">
<code class="descname">multiplicity</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Vacancy.multiplicity" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the multiplicity of a defect site within the structure (needed for concentration analysis)</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.defects.core.Vacancy.name">
<code class="descname">name</code><a class="headerlink" href="#pymatgen.analysis.defects.core.Vacancy.name" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a name for this defect</p>
</dd></dl>
</dd></dl>
<dl class="function">
<dt id="pymatgen.analysis.defects.core.create_saturated_interstitial_structure">
<code class="descname">create_saturated_interstitial_structure</code><span class="sig-paren">(</span><em>interstitial_def</em>, <em>dist_tol=0.1</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/defects/core.html#create_saturated_interstitial_structure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.defects.core.create_saturated_interstitial_structure" title="Permalink to this definition">¶</a></dt>
<dd><p>this takes a Interstitial defect object and generates the
sublattice for it based on the structure’s space group.
Useful for understanding multiplicity of an interstitial
defect in thermodynamic analysis.</p>
<dl class="simple">
<dt>NOTE: if large relaxation happens to interstitial or</dt><dd><p>defect involves a complex then there maybe additional
degrees of freedom that need to be considered for
the multiplicity.</p>
</dd>
</dl>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>dist_tol</strong> – changing distance tolerance of saturated structure,
allowing for possibly overlapping sites
but ensuring space group is maintained</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Structure object decorated with interstitial site equivalents</p>
</dd>
</dl>
</dd></dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/pymatgen.analysis.defects.core.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
</form>
</div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">pymatgen 2019.5.1 documentation</a> »</li>
</ul>
</div>
<div class="footer" role="contentinfo">
© Copyright 2011, Pymatgen Development Team.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.0.1.
</div>
<div class="footer">This page uses <a href="http://analytics.google.com/">
Google Analytics</a> to collect statistics. You can disable it by blocking
the JavaScript coming from www.google-analytics.com.
<script type="text/javascript">
(function() {
var ga = document.createElement('script');
ga.src = ('https:' == document.location.protocol ?
'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
ga.setAttribute('async', 'true');
document.documentElement.firstChild.appendChild(ga);
})();
</script>
</div>
</body>
</html>