@@ -46,7 +46,7 @@ xtl.Cell.gamma
4646
4747Selected functions (see internal documentation for more):
4848 ``` python
49- xtl.Cell.latt([2.85 ,2.85 ,10.8 ,90 ,90 ,120 ]) # Define the lattice parameters from a list
49+ xtl.Cell.latt([2.85 ,2.85 ,10.8 ,90 ,90 ,120 ]) # Define the lattice parameters from a list or subset
5050xtl.Cell.tth([0 ,0 ,12 ],energy_kev = 8.0 ) # Calculate the two-theta of a reflection
5151xtl.Cell.lp() # Returns the current lattice parameters
5252xtl.Cell.volume() # Returns the calculated volume in A^3
@@ -111,16 +111,16 @@ xtl.Structrue contains all atomic positions in the unit cell.
111111
112112Each atom has properties:
113113
114- | Property | |
115- | ------------- | ------------- |
116- | u | Fractional atomic coordinates along direction of ** a** |
117- | v | Fractional atomic coordinates along direction of ** b** |
118- | w | Fractional atomic coordinates along direction of ** c** |
119- | type | element species, given as element name, e.g. 'Fe' |
120- | label | Name of atomic position, e.g. 'Fe1' |
121- | occupancy | Occupancy of this atom at this atomic position |
122- | uiso | atomic displacement factor (ADP) <u^2> |
123- | mxmymz | magnetic moment direction [ x,y,z] |
114+ | Property | |
115+ | -----------| -- -------------------------------------------------------- |
116+ | u | Fractional atomic coordinates along direction of ** a** |
117+ | v | Fractional atomic coordinates along direction of ** b** |
118+ | w | Fractional atomic coordinates along direction of ** c** |
119+ | type | element species, given as element name, e.g. 'Fe' |
120+ | label | Name of atomic position, e.g. 'Fe1' |
121+ | occupancy | Occupancy of this atom at this atomic position |
122+ | uiso | atomic displacement factor (ADP) <u^2> |
123+ | mxmymz | magnetic moment direction [ x,y,z] |
124124
125125Functions available:
126126``` python
@@ -176,13 +176,14 @@ xtl.Plot.tensor_scattering_stokes # Return tensor scattering intensities for non
176176### Scattering
177177Simulate diffraction from the crystal structure, for various scattering types, including:
178178
179- | Name | Explanation |
180- | ---- | ----------- |
181- | 'xray' | X-Ray diffraction, using atomic form factors |
182- | 'neutron' | Neutron difraction, using neutron scattering lengths. |
183- | 'neutron magnetic' | Magnetic neutron diffraction |
184- | 'xray magnetic' | Non-resonant x-ray magnetic diffraction |
185- | 'xray resonant' | Resonant x-ray magnetic diffraction |
179+ | Name | Explanation |
180+ | --------------------| ----------------------------------------------------------|
181+ | 'xray' | X-Ray diffraction, using atomic form factors |
182+ | 'neutron' | Neutron difraction, using neutron scattering lengths. |
183+ | 'neutron magnetic' | Magnetic neutron diffraction |
184+ | 'xray magnetic' | Non-resonant x-ray magnetic diffraction |
185+ | 'xray resonant' | Resonant x-ray magnetic diffraction |
186+ | 'xray dispersion' | X-Ray diffraction using energy dispersive form factors |
186187
187188Functions calculate the complex structure factor based on the equation:
188189
@@ -192,19 +193,27 @@ Scattering factors and scattering lengths for available elements are found in [d
192193
193194Setup the scattering attributes with the * xtl.Scatter.setup_scatter(parameter)* function:
194195
195- | Parameter | Explanation |
196- | ---------- | ----------- |
197- | type | 'xray','neutron','xray magnetic','neutron magnetic','xray resonant' |
198- | energy_kev | radiation energy in keV |
199- | wavelength_a | radiation wavelength in Angstrom |
200- | powder_units | units to use when displaying/ plotting [ 'twotheta', 'd',' 'q'] |
201- | min_twotheta | minimum detector (two-theta) angle |
202- | max_twotheta | maximum detector (two-theta) angle |
203- | min_theta | minimum sample angle = -opening angle |
204- | max_theta | maximum sample angle = opening angle |
205- | theta_offset | sample offset angle |
206- | specular | [ h,k,l] : reflections normal to sample surface |
207- | parallel | [ h,k,l] : reflections normal to sample surface |
196+ | Parameter | Explanation |
197+ | ---------------------| -----------------------------------------------------------------------------------------|
198+ | scattering_type | 'xray','neutron','xray magnetic','neutron magnetic','xray resonant', 'xray dispersion' |
199+ | energy_kev | radiation energy in keV |
200+ | wavelength_a | radiation wavelength in Angstrom |
201+ | powder_units | units to use when displaying/ plotting [ 'twotheta', 'd',' 'q'] |
202+ | min_twotheta | minimum detector (two-theta) angle |
203+ | max_twotheta | maximum detector (two-theta) angle |
204+ | min_theta | minimum sample angle = -opening angle |
205+ | max_theta | maximum sample angle = opening angle |
206+ | theta_offset | sample offset angle |
207+ | specular | [ h,k,l] : reflections normal to sample surface |
208+ | parallel | [ h,k,l] : reflections normal to sample surface |
209+ | scattering_factors | xray scattering factor, either 'waaskirf' or 'itc' |
210+ | scattering_lengths | neutron scattering lengths either 'sears' or 'default' |
211+ | magnetic_formfactor | True/False magnetic form factor for magnetic SF |
212+ | polarisation | beam polarisation setting [ 'ss', 'sp'* , 'sp', 'pp'] |
213+ | polarisation_vector | [ x,y,z] incident polarisation vector |
214+ | azimuthal_reference | [ h,k,l] direction of azimuthal zero angle |
215+ | azimuth | azimuthal angle in deg |
216+ | flm | Resonant settings (flm1, flm2, flm3) |
208217
209218
210219Selected functions (see internal documentation for more):
0 commit comments