2.6.12. prismatique.sample.supercell_dims
- supercell_dims(sample_specification, skip_validation_and_conversion=False)[source]
Calculate the \(x\)-, \(y\)-, and \(z\)-dimensions of the sample’s supercell.
See the documentation for class
prismatique.discretization.Paramsfor a discussion on sample supercells.- Parameters:
- sample_specification
prismatique.sample.ModelParams|prismatique.sample.PotentialSliceSubsetIDs|prismatique.sample.SMatrixSubsetIDs|prismatique.sample.PotentialSliceAndSMatrixSubsetIDs The simulation parameters specifying the sample model.
If
sample_specificationis of the typeprismatique.sample.ModelParams, thensample_specificationsspecifies sample model parameters that are used to construct the model from scratch, i.e. the potential slices for each frozen phonon configuration subset are calculated from said model parameters. See the documentation for the classesprismatique.discretization.Paramsandprismatique.thermal.Paramsfor discussions on potential slices and frozen phonon configuration subsets respectively. Note that of parameters stored insample_specification, only the following are used:sample_specification
atomic_coords_filename
unit_cell_tiling
Otherwise, if
sample_specificationis an instance of the classprismatique.sample.PotentialSliceSubsetIDs, the classprismatique.sample.SMatrixSubsetIDs, or the classprismatique.sample.PotentialSliceAndSMatrixSubsetIDs, thensample_specificationspecifies a set of files, where each file stores either the pre-calculated potential slices or \(S\)-matrices for a frozen phonon configuration subset. See the documentation for the aforementioned classes for further discussions on specifying pre-calculated objects. See the documentation for the subpackageprismatique.stemfor a discussion on \(S\)-matrices.- skip_validation_and_conversionbool, optional
If
skip_validation_and_conversionis set toFalse, then validations and conversions are performed on the above parameters.Otherwise, if
skip_validation_and_conversionis set toTrue, no validations and conversions are performed on the above parameters. This option is desired primarily when the user wants to avoid potentially expensive validation and/or conversion operations.
- sample_specification
- Returns:
- sample_supercell_dimsarray_like (int, shape=(
3,)) sample_supercell_dims[0],sample_supercell_dims[1], andsample_supercell_dims[2]are respectively the \(x\)-, \(y\)-, and \(z\)-dimensions of the sample’s supercell in units of angstroms, and are denoted respectively as \(\Delta X\), \(\Delta Y\), and \(\Delta Z\) in the documentation for the classprismatique.discretization.Params.
- sample_supercell_dimsarray_like (int, shape=(