allomorph.init_struct.gen_tnp_al
Note: - Abbreviations:
RAL = randomly distributed alloy
RCS = randomly distributed core-shell-like alloy
(R)L10 = L1_0 intermetallic alloy (with/without random component)
(R)L12 = L1_2 intermetallic alloy (with/without random component)
- To do:
FCC is currently being hard-coded for lattice constant retrieval, might need to be flexible
Perhaps could add a parameter to control core thickness
Functions
|
Randomly convert elements of atoms until specified ratio is reached. |
|
Return a normalised probability array for indices or None. |
|
Generates a TNP alloy structure based on specified distribution types. |
|
Map a (distrib1, distrib2) pair to the canonical TNP distribution name. |
|
Generates and writes TNP alloy structures. |
|
Main entry point for TNP generation. |
Module Contents
- allomorph.init_struct.gen_tnp_al.rand_conv(obj, element1, element2, element3, ele1Ratio, ele2Ratio, ele3Ratio, rseed, prob)[source]
Randomly convert elements of atoms until specified ratio is reached.
- allomorph.init_struct.gen_tnp_al._prob_array(prob, indices)[source]
Return a normalised probability array for indices or None.
- allomorph.init_struct.gen_tnp_al.gen_tnp(obj, element1, element2, element3, ele1Ratio, ele2Ratio, ele3Ratio, distrib1, distrib2, rseed=0, shape=None, ele_dict=None)[source]
Generates a TNP alloy structure based on specified distribution types.
- allomorph.init_struct.gen_tnp_al._map_tnp_distribution(distrib1, distrib2)[source]
Map a (distrib1, distrib2) pair to the canonical TNP distribution name.