Syntax

[formfactval, coeff] = sw_cff(atomname, {q})

Description

[formfactval, coeff] = sw_cff(atomname, {q}) returns the atomic charge form factors for x-ray scattering. The provided form factor values at Q=0 are normalized to Z.

Input Arguments

atomName
String, contains the name of the ion in using the symbol of the element following the charge, e.g. 'Cr3+'. It can be also the coefficients to calculate f. If the string contains whitespace, the first word will be used as input.
Q
Momentum transfer in Å units in a matrix with dimensions of or , optional.

Output Arguments

formFactVal
Value of form factor, evaluated at the points if is defined.
coeff
Form factor coefficients according to the following formula: , where and are the coefficients.

See Also

sw_mff