forked from materialsproject/pymatgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pymatgen.analysis.eos.html
501 lines (459 loc) · 28.5 KB
/
pymatgen.analysis.eos.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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>pymatgen.analysis.eos 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.eos">
<span id="pymatgen-analysis-eos-module"></span><h1>pymatgen.analysis.eos module<a class="headerlink" href="#module-pymatgen.analysis.eos" title="Permalink to this headline">¶</a></h1>
<p>This module implements various equation of states.</p>
<p>Note: Most of the code were initially adapted from ASE and deltafactor by
@gmatteo but has since undergone major refactoring.</p>
<dl class="class">
<dt id="pymatgen.analysis.eos.Birch">
<em class="property">class </em><code class="descname">Birch</code><span class="sig-paren">(</span><em>volumes</em>, <em>energies</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#Birch"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.Birch" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#pymatgen.analysis.eos.EOSBase" title="pymatgen.analysis.eos.EOSBase"><code class="xref py py-class docutils literal notranslate"><span class="pre">pymatgen.analysis.eos.EOSBase</span></code></a></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>volumes</strong> (<em>list/numpy.array</em>) – volumes in Ang^3</p></li>
<li><p><strong>energies</strong> (<em>list/numpy.array</em>) – energy in eV</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.eos.BirchMurnaghan">
<em class="property">class </em><code class="descname">BirchMurnaghan</code><span class="sig-paren">(</span><em>volumes</em>, <em>energies</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#BirchMurnaghan"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.BirchMurnaghan" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#pymatgen.analysis.eos.EOSBase" title="pymatgen.analysis.eos.EOSBase"><code class="xref py py-class docutils literal notranslate"><span class="pre">pymatgen.analysis.eos.EOSBase</span></code></a></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>volumes</strong> (<em>list/numpy.array</em>) – volumes in Ang^3</p></li>
<li><p><strong>energies</strong> (<em>list/numpy.array</em>) – energy in eV</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.eos.DeltaFactor">
<em class="property">class </em><code class="descname">DeltaFactor</code><span class="sig-paren">(</span><em>volumes</em>, <em>energies</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#DeltaFactor"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.DeltaFactor" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#pymatgen.analysis.eos.PolynomialEOS" title="pymatgen.analysis.eos.PolynomialEOS"><code class="xref py py-class docutils literal notranslate"><span class="pre">pymatgen.analysis.eos.PolynomialEOS</span></code></a></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>volumes</strong> (<em>list/numpy.array</em>) – volumes in Ang^3</p></li>
<li><p><strong>energies</strong> (<em>list/numpy.array</em>) – energy in eV</p></li>
</ul>
</dd>
</dl>
<dl class="method">
<dt id="pymatgen.analysis.eos.DeltaFactor.fit">
<code class="descname">fit</code><span class="sig-paren">(</span><em>order=3</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#DeltaFactor.fit"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.DeltaFactor.fit" title="Permalink to this definition">¶</a></dt>
<dd><p>Overriden since this eos works with volume**(2/3) instead of volume.</p>
</dd></dl>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.eos.EOS">
<em class="property">class </em><code class="descname">EOS</code><span class="sig-paren">(</span><em>eos_name='murnaghan'</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#EOS"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.EOS" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Convenient wrapper. Retained in its original state to ensure backward
compatibility.</p>
<p>Fit equation of state for bulk systems.</p>
<p>The following equations are supported:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">murnaghan</span><span class="p">:</span> <span class="n">PRB</span> <span class="mi">28</span><span class="p">,</span> <span class="mi">5480</span> <span class="p">(</span><span class="mi">1983</span><span class="p">)</span>
<span class="n">birch</span><span class="p">:</span> <span class="n">Intermetallic</span> <span class="n">compounds</span><span class="p">:</span> <span class="n">Principles</span> <span class="ow">and</span> <span class="n">Practice</span><span class="p">,</span> <span class="n">Vol</span> <span class="n">I</span><span class="p">:</span>
<span class="n">Principles</span><span class="o">.</span> <span class="n">pages</span> <span class="mi">195</span><span class="o">-</span><span class="mi">210</span>
<span class="n">birch_murnaghan</span><span class="p">:</span> <span class="n">PRB</span> <span class="mi">70</span><span class="p">,</span> <span class="mi">224107</span>
<span class="n">pourier_tarantola</span><span class="p">:</span> <span class="n">PRB</span> <span class="mi">70</span><span class="p">,</span> <span class="mi">224107</span>
<span class="n">vinet</span><span class="p">:</span> <span class="n">PRB</span> <span class="mi">70</span><span class="p">,</span> <span class="mi">224107</span>
<span class="n">deltafactor</span>
<span class="n">numerical_eos</span><span class="p">:</span> <span class="mf">10.1103</span><span class="o">/</span><span class="n">PhysRevB</span><span class="o">.</span><span class="mf">90.174107</span><span class="o">.</span>
</pre></div>
</div>
<p>Usage:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">eos</span> <span class="o">=</span> <span class="n">EOS</span><span class="p">(</span><span class="n">eos_name</span><span class="o">=</span><span class="s1">'murnaghan'</span><span class="p">)</span>
<span class="n">eos_fit</span> <span class="o">=</span> <span class="n">eos</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">volumes</span><span class="p">,</span> <span class="n">energies</span><span class="p">)</span>
<span class="n">eos_fit</span><span class="o">.</span><span class="n">plot</span><span class="p">()</span>
</pre></div>
</div>
<dl class="attribute">
<dt id="pymatgen.analysis.eos.EOS.MODELS">
<code class="descname">MODELS</code><em class="property"> = {'birch': <class 'pymatgen.analysis.eos.Birch'>, 'birch_murnaghan': <class 'pymatgen.analysis.eos.BirchMurnaghan'>, 'deltafactor': <class 'pymatgen.analysis.eos.DeltaFactor'>, 'murnaghan': <class 'pymatgen.analysis.eos.Murnaghan'>, 'numerical_eos': <class 'pymatgen.analysis.eos.NumericalEOS'>, 'pourier_tarantola': <class 'pymatgen.analysis.eos.PourierTarantola'>, 'vinet': <class 'pymatgen.analysis.eos.Vinet'>}</em><a class="headerlink" href="#pymatgen.analysis.eos.EOS.MODELS" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.eos.EOS.fit">
<code class="descname">fit</code><span class="sig-paren">(</span><em>volumes</em>, <em>energies</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#EOS.fit"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.EOS.fit" title="Permalink to this definition">¶</a></dt>
<dd><p>Fit energies as function of volumes.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>volumes</strong> (<em>list/np.array</em>) – </p></li>
<li><p><strong>energies</strong> (<em>list/np.array</em>) – </p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>EOSBase object</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p><a class="reference internal" href="#pymatgen.analysis.eos.EOSBase" title="pymatgen.analysis.eos.EOSBase">EOSBase</a></p>
</dd>
</dl>
</dd></dl>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.eos.EOSBase">
<em class="property">class </em><code class="descname">EOSBase</code><span class="sig-paren">(</span><em>volumes</em>, <em>energies</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#EOSBase"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.EOSBase" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Abstract class that must be subcalssed by all equation of state
implementations.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>volumes</strong> (<em>list/numpy.array</em>) – volumes in Ang^3</p></li>
<li><p><strong>energies</strong> (<em>list/numpy.array</em>) – energy in eV</p></li>
</ul>
</dd>
</dl>
<dl class="attribute">
<dt id="pymatgen.analysis.eos.EOSBase.b0">
<code class="descname">b0</code><a class="headerlink" href="#pymatgen.analysis.eos.EOSBase.b0" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the bulk modulus.
Note: the units for the bulk modulus: unit of energy/unit of volume^3.</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.eos.EOSBase.b0_GPa">
<code class="descname">b0_GPa</code><a class="headerlink" href="#pymatgen.analysis.eos.EOSBase.b0_GPa" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the bulk modulus in GPa.
Note: This assumes that the energy and volumes are in eV and Ang^3</p>
<blockquote>
<div><p>respectively</p>
</div></blockquote>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.eos.EOSBase.b1">
<code class="descname">b1</code><a class="headerlink" href="#pymatgen.analysis.eos.EOSBase.b1" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the derivative of bulk modulus wrt pressure(dimensionless)</p>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.eos.EOSBase.e0">
<code class="descname">e0</code><a class="headerlink" href="#pymatgen.analysis.eos.EOSBase.e0" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the min energy.</p>
</dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.eos.EOSBase.fit">
<code class="descname">fit</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#EOSBase.fit"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.EOSBase.fit" title="Permalink to this definition">¶</a></dt>
<dd><p>Do the fitting. Does least square fitting. If you want to use custom
fitting, must override this.</p>
</dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.eos.EOSBase.func">
<code class="descname">func</code><span class="sig-paren">(</span><em>volume</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#EOSBase.func"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.EOSBase.func" title="Permalink to this definition">¶</a></dt>
<dd><p>The equation of state function with the paramters other than volume set
to the ones obtained from fitting.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>volume</strong> (<em>list/numpy.array</em>) – </p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>numpy.array</p>
</dd>
</dl>
</dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.eos.EOSBase.plot">
<code class="descname">plot</code><span class="sig-paren">(</span><em>width=8</em>, <em>height=None</em>, <em>plt=None</em>, <em>dpi=None</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#EOSBase.plot"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.EOSBase.plot" title="Permalink to this definition">¶</a></dt>
<dd><p>Plot the equation of state.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>width</strong> (<em>float</em>) – Width of plot in inches. Defaults to 8in.</p></li>
<li><p><strong>height</strong> (<em>float</em>) – Height of plot in inches. Defaults to width *
golden ratio.</p></li>
<li><p><strong>plt</strong> (<em>matplotlib.pyplot</em>) – If plt is supplied, changes will be made
to an existing plot. Otherwise, a new plot will be created.</p></li>
<li><p><strong>dpi</strong> – </p></li>
<li><p><strong>kwargs</strong> (<em>dict</em>) – additional args fed to pyplot.plot.
supported keys: style, color, text, label</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Matplotlib plot object.</p>
</dd>
</dl>
</dd></dl>
<dl class="method">
<dt id="pymatgen.analysis.eos.EOSBase.plot_ax">
<code class="descname">plot_ax</code><span class="sig-paren">(</span><em>ax=None</em>, <em>fontsize=12</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#EOSBase.plot_ax"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.EOSBase.plot_ax" title="Permalink to this definition">¶</a></dt>
<dd><p>Plot the equation of state on axis <cite>ax</cite></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>ax</strong> – matplotlib <code class="xref py py-class docutils literal notranslate"><span class="pre">Axes</span></code> or None if a new figure should be created.</p></li>
<li><p><strong>fontsize</strong> – Legend fontsize.</p></li>
<li><p><strong>color</strong> (<em>str</em>) – plot color.</p></li>
<li><p><strong>label</strong> (<em>str</em>) – Plot label</p></li>
<li><p><strong>text</strong> (<em>str</em>) – Legend text (options)</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Matplotlib figure object.</p>
</dd>
</dl>
<p>Keyword arguments controlling the display of the figure:</p>
<table class="docutils align-center">
<colgroup>
<col style="width: 23%" />
<col style="width: 77%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>kwargs</p></th>
<th class="head"><p>Meaning</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>title</p></td>
<td><p>Title of the plot (Default: None).</p></td>
</tr>
<tr class="row-odd"><td><p>show</p></td>
<td><p>True to show the figure (default: True).</p></td>
</tr>
<tr class="row-even"><td><p>savefig</p></td>
<td><p>“abc.png” or “abc.eps” to save the figure to a file.</p></td>
</tr>
<tr class="row-odd"><td><p>size_kwargs</p></td>
<td><p>Dictionary with options passed to fig.set_size_inches
e.g. size_kwargs=dict(w=3, h=4)</p></td>
</tr>
<tr class="row-even"><td><p>tight_layout</p></td>
<td><p>True to call fig.tight_layout (default: False)</p></td>
</tr>
<tr class="row-odd"><td><p>ax_grid</p></td>
<td><p>True (False) to add (remove) grid from all axes in fig.
Default: None i.e. fig is left unchanged.</p></td>
</tr>
<tr class="row-even"><td><p>ax_annotate</p></td>
<td><p>Add labels to subplots e.g. (a), (b).
Default: False</p></td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.eos.EOSBase.results">
<code class="descname">results</code><a class="headerlink" href="#pymatgen.analysis.eos.EOSBase.results" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a summary dict.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>dict</p>
</dd>
</dl>
</dd></dl>
<dl class="attribute">
<dt id="pymatgen.analysis.eos.EOSBase.v0">
<code class="descname">v0</code><a class="headerlink" href="#pymatgen.analysis.eos.EOSBase.v0" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the minimum or the reference volume in Ang^3.</p>
</dd></dl>
</dd></dl>
<dl class="exception">
<dt id="pymatgen.analysis.eos.EOSError">
<em class="property">exception </em><code class="descname">EOSError</code><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#EOSError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.EOSError" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">Exception</span></code></p>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.eos.Murnaghan">
<em class="property">class </em><code class="descname">Murnaghan</code><span class="sig-paren">(</span><em>volumes</em>, <em>energies</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#Murnaghan"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.Murnaghan" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#pymatgen.analysis.eos.EOSBase" title="pymatgen.analysis.eos.EOSBase"><code class="xref py py-class docutils literal notranslate"><span class="pre">pymatgen.analysis.eos.EOSBase</span></code></a></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>volumes</strong> (<em>list/numpy.array</em>) – volumes in Ang^3</p></li>
<li><p><strong>energies</strong> (<em>list/numpy.array</em>) – energy in eV</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.eos.NumericalEOS">
<em class="property">class </em><code class="descname">NumericalEOS</code><span class="sig-paren">(</span><em>volumes</em>, <em>energies</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#NumericalEOS"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.NumericalEOS" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#pymatgen.analysis.eos.PolynomialEOS" title="pymatgen.analysis.eos.PolynomialEOS"><code class="xref py py-class docutils literal notranslate"><span class="pre">pymatgen.analysis.eos.PolynomialEOS</span></code></a></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>volumes</strong> (<em>list/numpy.array</em>) – volumes in Ang^3</p></li>
<li><p><strong>energies</strong> (<em>list/numpy.array</em>) – energy in eV</p></li>
</ul>
</dd>
</dl>
<dl class="method">
<dt id="pymatgen.analysis.eos.NumericalEOS.fit">
<code class="descname">fit</code><span class="sig-paren">(</span><em>min_ndata_factor=3</em>, <em>max_poly_order_factor=5</em>, <em>min_poly_order=2</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#NumericalEOS.fit"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.NumericalEOS.fit" title="Permalink to this definition">¶</a></dt>
<dd><p>Fit the input data to the ‘numerical eos’, the equation of state employed
in the quasiharmonic Debye model described in the paper:
10.1103/PhysRevB.90.174107.</p>
<p>credits: Cormac Toher</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>min_ndata_factor</strong> (<em>int</em>) – <p>parameter that controls the minimum number
of data points that will be used for fitting.
minimum number of data points =</p>
<blockquote>
<div><p>total data points-2*min_ndata_factor</p>
</div></blockquote>
</p></li>
<li><p><strong>max_poly_order_factor</strong> (<em>int</em>) – <p>parameter that limits the max order
of the polynomial used for fitting.
max_poly_order = number of data points used for fitting -</p>
<blockquote>
<div><p>max_poly_order_factor</p>
</div></blockquote>
</p></li>
<li><p><strong>min_poly_order</strong> (<em>int</em>) – minimum order of the polynomial to be
considered for fitting.</p></li>
</ul>
</dd>
</dl>
</dd></dl>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.eos.PolynomialEOS">
<em class="property">class </em><code class="descname">PolynomialEOS</code><span class="sig-paren">(</span><em>volumes</em>, <em>energies</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#PolynomialEOS"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.PolynomialEOS" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#pymatgen.analysis.eos.EOSBase" title="pymatgen.analysis.eos.EOSBase"><code class="xref py py-class docutils literal notranslate"><span class="pre">pymatgen.analysis.eos.EOSBase</span></code></a></p>
<p>Derives from EOSBase. Polynomial based equations of states must subclass
this.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>volumes</strong> (<em>list/numpy.array</em>) – volumes in Ang^3</p></li>
<li><p><strong>energies</strong> (<em>list/numpy.array</em>) – energy in eV</p></li>
</ul>
</dd>
</dl>
<dl class="method">
<dt id="pymatgen.analysis.eos.PolynomialEOS.fit">
<code class="descname">fit</code><span class="sig-paren">(</span><em>order</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#PolynomialEOS.fit"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.PolynomialEOS.fit" title="Permalink to this definition">¶</a></dt>
<dd><p>Do polynomial fitting and set the parameters. Uses numpy polyfit.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>order</strong> (<em>int</em>) – order of the fit polynomial</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.eos.PourierTarantola">
<em class="property">class </em><code class="descname">PourierTarantola</code><span class="sig-paren">(</span><em>volumes</em>, <em>energies</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#PourierTarantola"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.PourierTarantola" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#pymatgen.analysis.eos.EOSBase" title="pymatgen.analysis.eos.EOSBase"><code class="xref py py-class docutils literal notranslate"><span class="pre">pymatgen.analysis.eos.EOSBase</span></code></a></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>volumes</strong> (<em>list/numpy.array</em>) – volumes in Ang^3</p></li>
<li><p><strong>energies</strong> (<em>list/numpy.array</em>) – energy in eV</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="class">
<dt id="pymatgen.analysis.eos.Vinet">
<em class="property">class </em><code class="descname">Vinet</code><span class="sig-paren">(</span><em>volumes</em>, <em>energies</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pymatgen/analysis/eos.html#Vinet"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pymatgen.analysis.eos.Vinet" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#pymatgen.analysis.eos.EOSBase" title="pymatgen.analysis.eos.EOSBase"><code class="xref py py-class docutils literal notranslate"><span class="pre">pymatgen.analysis.eos.EOSBase</span></code></a></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>volumes</strong> (<em>list/numpy.array</em>) – volumes in Ang^3</p></li>
<li><p><strong>energies</strong> (<em>list/numpy.array</em>) – energy in eV</p></li>
</ul>
</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.eos.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>