This module intends to compute the neutron scattering length density of molecule
@author: Gervaise B. Alina
-
class sans.calculator.sld_calculator.SldCalculator
Bases: object
compute neutron SLD and related parameters
-
calculate_coherence_im()
- Compute imaginary part of the absorption
-
calculate_length()
- Compute the neutron 1/e length
-
calculate_neutron_sld()
- Compute the neutron SLD for a given molecule
@return absorp: absorption
@return coh: coherence cross section
@return inc: incoherence cross section
-
calculate_xray_sld(element)
- Get an element and compute the corresponding SLD for a given formula
@param element: elementis a string of existing atom
-
set_value(user_formula, density, wavelength=6.0)
- Store values of density and wavelength into the calculator
and compute the volume