gemdat.io
This module contains functions to read and write data.
get_list_of_known_materials()
Return list of known materials.
Returns:
Source code in src/gemdat/io.py
99 100 101 102 103 104 105 106 107 | |
load_known_material(name, supercell=None)
Load known material from internal database.
Parameters:
-
name(str) –Name of the material
-
supercell(tuple(int, int, int) | None, default:None) –Optionally, scale the lattice by a sequence of three factors. For example,
(2, 1, 1)specifies that the supercell should have dimensions \(2a \times b \times c\).
Returns:
-
structure(Structure) –Output structure
Source code in src/gemdat/io.py
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 | |
read_cif(filename)
Load cif file and return first item as pymatgen.core.structure.Structure.
Parameters:
Returns:
-
structure(Structure) –Output structure
Source code in src/gemdat/io.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
write_cif(structure, filename)
Write structure to cif file using pymatgen.io.cif.CifWriter.
Parameters:
Source code in src/gemdat/io.py
25 26 27 28 29 30 31 32 33 34 35 36 | |