Small-Angle X-ray Scattering (SAXS)
This module contains functions to compute the SAXS spectrum starting from the atomic positions (and chemical species).
snow.descriptors.saxs
thomson(element, q)
Computes the Thomson part of the atomic form factor at given exchanged momentum using the Cromer-Mann approximation
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element
|
str
|
Symbol of the chemical species |
required |
q
|
float
|
Magnitude of exchanged momentum |
required |
Returns:
| Name | Type | Description |
|---|---|---|
f |
float
|
Atomic form factor for the element at given exchanged momentum |
Source code in snow/descriptors/saxs.py
iq_from_dist_mat(species, q, dist_mat)
Computes the SAXS spectrum for a set of points from its distance matrix.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
species
|
list[strings]
|
The list with species of the atoms |
required |
q
|
float
|
Magnitude of exchanged momentum |
required |
dist_mat
|
float
|
Matrix of distances of the atoms, can be computed with |
required |
Returns:
| Name | Type | Description |
|---|---|---|
iq |
float
|
Intensity of SAXS for the considered system, at given exchanged momentum |
Source code in snow/descriptors/saxs.py
iq_from_pddf(element_i, element_j, q, dists, counts, nat=0)
Computes thes SAXS spectrum from a PDDF.
Carfeul: if the bin at distance 0 is not included, nat must be manually set, otherwise set at 0
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_i
|
str
|
Name of the chemical species of atoms i |
required |
element_j
|
str
|
Name of the chemical species of atoms j |
required |
nat
|
int
|
Number of atoms (only set if element_i == element_j) |
0
|
q
|
float
|
Magnitude of exchanged momentum |
required |
dists
|
list[float]
|
Central values of the bins of the PDDF |
required |
counts
|
list
|
Values of PDDF at the bins |
required |
Returns:
| Name | Type | Description |
|---|---|---|
intensity |
float
|
Intensity of SAXS for the considered system, at given exchanged momentum |