When you start BornAgain GUI, you will be presented with the Welcome View, where you can
The instrument view consists of the instrument selector located on the left and the instrument settings window located on the right.
This tutorial will cover only the rectangular detector, since it is the most popular detector type for GISAS instruments. More information about BornAgain detector types one can find on BornAgain web page.
Rectangular detector is defined by following parameters:
Nbins
- number of detector pixels (horizontal for X axis
and vertical for Y axis
)Width
- width of the detector, mmHeight
- height of the detector, mmAlignment
- the way how the detector aligned with respect to the direct beam, sample, etc.Resolution function
- detector resolution. For the moment only 2D Gaussian is supported. Simulated result will be convolved with the given function to account for detector resolution.Positions:
u0 (dbeam)
- direct beam X coordinate, mmv0 (dbeam)
- direct beam Y coordinate, mmDistance
- distance from sample to detector, mmFurther instrument settings
Section Polarisation analysis accounts for simulation of polarized neutrons. Will be presented in later tutorial.
Section Environment contains settings for background which should be considered during simulation. For the moment only Constant background
of the given amplitude (set with BackgroundValue
field) and Poisson noise
are supported.
In the case of constant background, the intensity is calculated as
$$I = I_{sim} + A$$
where $A$ is the amplitude value given in the BackgroundValue
field.
In the case of Poisson background, the intensity $I_k$ at each detector point $k$ is obtained from the Poisson distribution with the probability $$P(I_k | \mu) = \frac{e^{-\mu}\cdot\mu^{I_k}}{I_k!}$$ where $\mu = I_{sim,\,k}$ is the simulated intensity at the detector point $k$ without background.
GALAXI is the high brilliance laboratory small angle X-ray scattering instrument operated by JCNS, Forschungszentrum Jülich.
GALAXI beam parameters
Intensity
$I = 10^6$ photonsWavelength
$\lambda = 1.34 \overset{\circ}{\text A}$Inclination angle
$\alpha_i = 0.2^{\circ}$Azimuthal angle
$\phi_i = 0.0^{\circ}$GALAXI detector parameters
Add angular beam divergency $\Delta\alpha_i=0.3$ mrad and $\Delta\phi_i=0.3$ mrad. Choose Gaussian distribution. Pay attention, that StdDev
$=\sigma$ and
$$\text{FWHM}=2\sqrt{2\log 2}\sigma\approx 2.355\sigma$$
Play with the Distribution
widget, vary the distribution parameters and observe changes.
Note: the larger Number of samples
you choose, the slower will be your simulation. Do you understand why?
Add detector resolution function with FWHM equal to the detector pixel size for both, $X$ and $Y$ directions.
If got stucked, see solution
The Sample View allows you to design the sample via a drag-and-drop interface. It consists of five main parts
If got stucked, see solution
Simulate the sample designed in the previous exercise. BornAgain should automatically switch to Job view
after the simulation has finished. Change plot units to $q$. Change the $Q_z$ range to start from 0. Save the plot to .png
file.
Take a Fourier transform of the image. See the result.
Make a horizontal slice at $Q_z=0.4$. Save it to text file
.
Make a vertical slice at $Q_y=0$. Save it to text file
.
Switch to Real time activity
. Vary width of the particles. How it influences the simulated GISAXS pattern?. Vary height of the particles. How did the simulated pattern change?
If got stucked, see solution
In [ ]: