Expand description
Materials: elements combined by atom or mass fraction, with a mass density,
a derived atom number density, and per-element displacement (E_d), lattice
binding (E_b) and surface binding (E_s) energies.
§Conventions (read this before trusting a default)
- Fractions passed in are relative weights: they are normalised by
dividing by their sum, so stoichiometric counts (
Si 1, O 2) are valid. The sum must be finite and strictly positive and every entry finite and non-negative; otherwise construction fails. Normalisation is exact division, with no tolerance window. E_d,E_b,E_sare model parameters, not measured properties of your sample. Defaults come fromcrate::elementsand are conventions with citations there:E_sdefaults to the elemental cohesive (sublimation) energy where one is tabulated;E_ddefaults to the ASTM E521 convention value where one is recorded;E_bdefaults to 0 eV, the common choice for amorphous-target binary-collision runs. Where there is no default (None) the getter returnsMaterialError::EnergyNotSetso the user has to decide. Energies are stored in eV (suffix_ev); seecrate::units.- Elements keep the order they were given in, so every output derived from a material is deterministic.
- Atom number density follows
n_i = x_i * rho * N_A / sum_j(x_j * M_j)withxthe atom fractions,rhothe mass density andMthe atomic weights (CODATA 2022N_A).
Structs§
- Component
- One element within a material.
- Element
Spec - Serialized form of one element entry. Give exactly one of
symbol/zand exactly one ofatom_fraction/mass_fraction; every element of a material must use the same fraction kind. - Material
- A material: a list of elements, a mass density and per-element energies.
- Material
Spec - Serialized form of a
Material(what the CLI’s TOML describes).
Enums§
- Energy
Kind - Which per-element energy a message is about.
- Material
Error - Errors from building or querying a
Material.