This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
fileformat:inp:background [2018/06/22 15:14] smerkel created |
fileformat:inp:background [2019/02/18 10:12] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== .inp file with background ====== | ||
+ | The following code shows an example of an //.inp// file with background (see 5th line from below: //bg 80//). For a standard //.inp// file see [[fileformat:inp:basic|here]]. | ||
+ | |||
+ | The code basically shows two columns. The left one shows the input parameters and the code which the [[software:polyxsim|PolyXSim algorithm]] can read. The second column to the right shows the respective explanations. Note that every passage which starts with a //#// symbol is skipped by the algorithm. So all explanations (right column) start with a //#// in front. Some input code (left column) is also labelled with a //#//. By doing this you can force the algorithm to skip the labelled passage, for example in line 3: //#beam_width//. Depending on the kind of simulation you want to perform, it might be necessary to switch on/switch off certain input parameters. | ||
+ | |||
<code> | <code> | ||
## Instrumental, looks like P02 in PETRA | ## Instrumental, looks like P02 in PETRA | ||
wavelength 0.289 # wavelength in Angstrom | wavelength 0.289 # wavelength in Angstrom | ||
#beam_width 1 # Beam width (mm) If no beam width is specified it is assumed that the entire sample width is illuminated | #beam_width 1 # Beam width (mm) If no beam width is specified it is assumed that the entire sample width is illuminated | ||
- | beamflux 1e15 # Beam flux (Ph/s/mm2) | + | beamflux 1e17 # Beam flux (Ph/s/mm2) |
beampol_factor 1 # Polarisation factor | beampol_factor 1 # Polarisation factor | ||
beampol_direct 0 # Polarisation direction | beampol_direct 0 # Polarisation direction | ||
Line 77: | Line 82: | ||
### Images | ### Images | ||
make_image 1 | make_image 1 | ||
- | bg 100 # Add 10 counts to background | + | bg 80 # Add 10 counts to background |
noise 1 #noise flag [0= no noise, 1= add Poisson noise] | noise 1 #noise flag [0= no noise, 1= add Poisson noise] | ||
#psf 2 # Add Gaussian detector point spread with a FWHM of 2 pixel | #psf 2 # Add Gaussian detector point spread with a FWHM of 2 pixel |