[−][src]Struct spglib::dataset::Dataset
Container for a structure's crystallographic properties.
Fields
spacegroup_number: i32
The space group type number defined in International Tables for Crystallography.
hall_number: i32
The serial number from 1-530.
international_symbol: String
The full Hermann-Mauguin notation.
hall_symbol: String
The hall symbol.
choice: String
The information on unique axis, setting, or cell choices.
transformation_matrix: [[f64; 3]; 3]
The result of space-group-type matching under a set of unique axis, setting, and cell choices. For more detail: https://spglib.github.io/spglib/definition.html#transformation-matrix-boldsymbol-p-and-origin-shift-boldsymbol-p
origin_shift: [f64; 3]
The result of space-group-type matching under a set of unique axis, setting, and cell choices. For more detail: https://spglib.github.io/spglib/definition.html#transformation-matrix-boldsymbol-p-and-origin-shift-boldsymbol-p
n_operations: i32
The number of symmetry operations.
rotations: Vec<[[i32; 3]; 3]>
The rotation symmetry operations.
translations: Vec<[f64; 3]>
The translation symmetry operations.
n_atoms: i32
The number of atoms in the input cell.
wyckoffs: Vec<i32>
The wyckoff letters encoded as integer numbers.
site_symmetry_symbols: Vec<String>
Site symmetry symbols for a given space group type.
equivalent_atoms: Vec<i32>
The mapping table from the atomic indices of the input cell to the atomic indices of symmetrically independent atoms.
crystallographic_orbits: Vec<i32>
This is almost equivalent to equivalent_atoms. But symmetry of the primitive cell is used to determine the symmetrically equivalent atoms.
primitive_lattice: [[f64; 3]; 3]
Non-standardized basis vectors of a primitive cell in the input cell.
mapping_to_primitive: Vec<i32>
The atomic indices in the primitive cell of the input structure.
n_std_atoms: i32
Number of atoms in the standardized cell after idealization.
std_lattice: [[f64; 3]; 3]
Lattice of the standardized cell after idealization.
std_types: Vec<i32>
Types in the standardized cell after idealization.
std_positions: Vec<[f64; 3]>
Positions in the standardized cell after idealization.
std_rotation_matrix: [[f64; 3]; 3]
Rotation matrix which rotates the cell structure from the pre idealization state to the post idealized state.
std_mapping_to_primitive: Vec<i32>
The atomic indices in the primitive cell of the standardized crystal structure where the same number represents the same atom in the primitive cell.
pointgroup_symbol: String
The symbol of the crystallographic point group in Hermann-Mauguin notation.
Implementations
impl Dataset
[src]
pub fn new(cell: &mut Cell, symprec: f64) -> Dataset
[src]
Returns the dataset for a given cell.
Example
Get the dataset for a BCC cell.
use spglib::cell::Cell; use spglib::dataset::Dataset; let lattice = [[4., 0., 0.], [0., 4., 0.], [0., 0., 4.]]; let positions = [[0., 0., 0.], [0.5, 0.5, 0.5]]; let types = [1, 1]; let mut bcc_cell = Cell::new(&lattice, &positions, &types); let dataset = Dataset::new(&mut bcc_cell, 1e-5); assert_eq!(dataset.hall_number, 529);
Trait Implementations
impl Clone for Dataset
[src]
impl Debug for Dataset
[src]
impl TryFrom<*mut SpglibDataset> for Dataset
[src]
type Error = SpglibError
The type returned in the event of a conversion error.
fn try_from(value: *mut SpglibDataset) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnwindSafe for Dataset
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,