moyo-wasm API¶
Interfaces¶
Lattice¶
Properties¶
basis¶
MoyoArithmeticCrystalClass¶
Properties¶
arithmetic_number¶
bravais_class¶
geometric_crystal_class¶
symbol¶
MoyoCell¶
Properties¶
lattice¶
numbers¶
positions¶
MoyoDataset¶
Properties¶
angle_tolerance¶
hall_number¶
hm_symbol¶
mapping_std_prim¶
number¶
operations¶
orbits¶
pearson_symbol¶
prim_std_cell¶
prim_std_linear¶
prim_std_origin_shift¶
site_symmetry_symbols¶
std_cell¶
std_linear¶
std_origin_shift¶
std_rotation_matrix¶
symprec¶
wyckoffs¶
MoyoHallSymbolEntry¶
Properties¶
arithmetic_number¶
centering¶
hall_number¶
hall_symbol¶
hm_full¶
hm_short¶
number¶
setting¶
MoyoLayerArithmeticCrystalClass¶
Properties¶
arithmetic_number¶
bravais_class¶
geometric_crystal_class¶
lattice_system¶
symbol¶
MoyoLayerGroupType¶
Properties¶
arithmetic_number¶
arithmetic_symbol¶
bravais_class¶
crystal_system¶
geometric_crystal_class¶
hall_number¶
hm_full¶
hm_short¶
lattice_system¶
number¶
MoyoLayerHallSymbolEntry¶
Properties¶
arithmetic_number¶
centering¶
hall_number¶
hall_symbol¶
hm_full¶
hm_short¶
number¶
setting¶
MoyoLayerWyckoffPosition¶
Properties¶
coordinates¶
Representative coordinate triplet (e.g. x,y,z).
letter¶
Wyckoff letter.
multiplicity¶
Multiplicity in the conventional layer cell.
site_symmetry¶
Site-symmetry symbol.
MoyoMagneticHallSymbolEntry¶
Properties¶
magnetic_hall_symbol¶
uni_number¶
MoyoMagneticOperation¶
Properties¶
rotation¶
time_reversal¶
translation¶
MoyoMagneticSpaceGroupType¶
Properties¶
bns_number¶
construct_type¶
litvin_number¶
number¶
og_number¶
uni_number¶
MoyoOperation¶
Properties¶
rotation¶
translation¶
MoyoSpaceGroupType¶
Properties¶
arithmetic_number¶
arithmetic_symbol¶
bravais_class¶
crystal_family¶
crystal_system¶
geometric_crystal_class¶
hall_number¶
hm_full¶
hm_short¶
lattice_system¶
number¶
MoyoWyckoffPosition¶
Properties¶
coordinates¶
Representative coordinate triplet (e.g. x,y,z).
letter¶
Wyckoff letter.
multiplicity¶
Multiplicity in the conventional cell.
site_symmetry¶
Site-symmetry symbol.
Type Aliases¶
AngleTolerance¶
MoyoCentering¶
MoyoLayerCentering¶
MoyoLayerSetting¶
type MoyoLayerSetting =
| {
type: "Spglib";
}
| {
type: "Standard";
}
| {
type: "HallNumber";
value: number;
};
MoyoSetting¶
type MoyoSetting =
| {
type: "Spglib";
}
| {
type: "Standard";
}
| {
type: "HallNumber";
value: number;
};
Functions¶
analyze_cell()¶
Analyze the symmetry of a crystal structure and return the full dataset.
cell_json is a JSON-encoded [MoyoCell] (row-major lattice.basis,
fractional positions, atomic numbers). symprec is the distance
tolerance (in the same length unit as the lattice). setting selects the
standardization convention: "Spglib" for spglib-compatible settings,
anything else (e.g. "Standard") for the ITA standard setting.
Parameters¶
| Parameter | Type |
|---|---|
cell_json |
string |
symprec |
number |
setting |
string |
Returns¶
arithmetic_crystal_class()¶
Return the arithmetic-crystal-class entry for the given arithmetic_number (1 - 73).
Parameters¶
| Parameter | Type |
|---|---|
arithmetic_number |
number |
Returns¶
hall_symbol_entries_from_number()¶
Return all Hall-symbol entries for the given ITA space-group number (1 - 230),
ordered by Hall number. Each entry corresponds to one setting of the space group.
Parameters¶
| Parameter | Type |
|---|---|
number |
number |
Returns¶
hall_symbol_entry()¶
Return the Hall-symbol entry for the given hall_number (1 - 530).
Parameters¶
| Parameter | Type |
|---|---|
hall_number |
number |
Returns¶
init()¶
If module_or_path is {RequestInfo} or {URL}, makes a request and
for everything else, calls WebAssembly.instantiate directly.
Parameters¶
| Parameter | Type | Description |
|---|---|---|
module_or_path? |
| InitInput | Promise\<InitInput> | { module_or_path: InitInput | Promise\<InitInput>; } |
Passing InitInput directly is deprecated. |
Returns¶
Promise\<InitOutput>
initSync()¶
Instantiates the given module, which can either be bytes or
a precompiled WebAssembly.Module.
Parameters¶
| Parameter | Type | Description |
|---|---|---|
module |
| SyncInitInput | { module: SyncInitInput; } |
Passing SyncInitInput directly is deprecated. |
Returns¶
InitOutput
layer_arithmetic_crystal_class()¶
Return the layer arithmetic-crystal-class entry for the given arithmetic_number (1 - 43).
Parameters¶
| Parameter | Type |
|---|---|
arithmetic_number |
number |
Returns¶
MoyoLayerArithmeticCrystalClass
layer_group_type()¶
Return the layer-group-type description for the given number (1 - 80).
Parameters¶
| Parameter | Type |
|---|---|
number |
number |
Returns¶
layer_hall_symbol_entries_from_number()¶
Return all layer Hall-symbol entries for the given layer-group number (1 - 80),
ordered by Hall number. Each entry corresponds to one setting of the layer group.
Parameters¶
| Parameter | Type |
|---|---|
number |
number |
Returns¶
layer_hall_symbol_entry()¶
Return the layer Hall-symbol entry for the given hall_number (1 - 116).
Parameters¶
| Parameter | Type |
|---|---|
hall_number |
number |
Returns¶
layer_wyckoff_positions()¶
Return all Wyckoff positions for the given layer Hall number (1 - 116), ordered general-position-first then descending multiplicity. Returns an empty array for unknown Hall numbers.
Parameters¶
| Parameter | Type |
|---|---|
hall_number |
number |
Returns¶
magnetic_hall_symbol_entry()¶
Return the magnetic Hall-symbol entry for the given uni_number (1 - 1651).
Parameters¶
| Parameter | Type |
|---|---|
uni_number |
number |
Returns¶
magnetic_operations_from_uni_number()¶
Return magnetic symmetry operations for the given uni_number (1 - 1651).
Parameters¶
| Parameter | Type |
|---|---|
uni_number |
number |
primitive |
boolean |
Returns¶
magnetic_space_group_type()¶
Return the magnetic-space-group-type description for the given uni_number (1 - 1651).
Parameters¶
| Parameter | Type |
|---|---|
uni_number |
number |
Returns¶
operations_from_layer_number()¶
Return symmetry operations for the given layer-group number (1 - 80).
Parameters¶
| Parameter | Type |
|---|---|
number |
number |
setting |
MoyoLayerSetting |
primitive |
boolean |
Returns¶
operations_from_number()¶
Return symmetry operations for the given space-group ITA number.
Parameters¶
| Parameter | Type |
|---|---|
number |
number |
setting |
MoyoSetting |
primitive |
boolean |
Returns¶
space_group_type()¶
Return the space-group-type description for the given ITA number (1 - 230).
Parameters¶
| Parameter | Type |
|---|---|
number |
number |
Returns¶
wyckoff_positions()¶
Return all Wyckoff positions for the given hall_number (1 - 530), ordered
general-position-first then descending multiplicity. Returns an empty array for
unknown Hall numbers.
Parameters¶
| Parameter | Type |
|---|---|
hall_number |
number |