<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hy Kristian
<p>Here are the files for the Optimizer.
<br>Yes I use the in14_6 instrument to evaluate the optimizer efficiency.
<br>You can plot the kw resolution function at the end.
<br>as a reference I also include a in14_6n instrument without optimization.
<p>If you got some pbs in compiling, tell me...
<p>here follows a Log for a simulation :
<p>mcstas in14_6.instr
<br>gcc -O2 -o in14_6 in14_6.c -lm
<br>farhi@macfarhi Instr:153> in14_6 -n 1e6 KI=2.66 WN=0.03 ORDER=1 MHV=3
<br>Instrument : IN14, v60 (21/09/99) on macfarhi.
<br>Flat source, m=3.00 noze, width 0.03
<br>Monochromator : (DM = 3.355)
<br>A1 = 20.61, A2 = 41.22 (deg)
<br>Ki = 2.66 Angs-1 (Energy = 14.7 meV, Velocity = 1.68e+03 m/s)
<br>RM = 0.669 Deg, RH = 0.714 Deg
<p>Sample :
<br>A3 = 0.00, A4 = 0.00 (deg)
<br>Energy transfert 0 meV, Moment transfert 0 Angs-1
<p>Analyser : (DA = 3.355)
<br>A5 = 20.61, A6 = 41.22 (deg)
<br>Kf = 2.66 Angs-1 (Energy = 14.7 meV, Velocity = 1.68e+03 m/s)
<br>RA = 1.21 Deg
<p>Detectors :
<br>>> OPTIM_PHASE_SET_REF (1000 neutrons)
<br>>> AUTO monitor has reached 100 counts (non optimized, absorbed)
<br>0.119690 119690
<br>>> OPTIM_PHASE_SET_SOURCE (119690 neutrons) from Ref
<br>Counts : reference = 119690, passing = 119690, monitor = 100
<br>Flux : reference = 1.9e+11, passing = 1.9e+11, monitor = 3.7e+07
<br>>> OPTIM_PHASE_SET_SOURCE (119690 neutrons)
<br>Number of redirections : 106379
<br>Counts : reference = 119690, passing = 119690, monitor = 4539
<br>Flux : reference = 1.9e+11, passing = 1.9e+12, monitor = 3.4e+07
<br>>> OPTIM_PHASE_SET_SOURCE (119690 neutrons)
<br>Number of redirections : 212824
<br>Counts : reference = 119690, passing = 119690, monitor = 4544
<br>Flux : reference = 1.9e+11, passing = 1.9e+12, monitor = 3.4e+07
<br>>> OPTIM_PHASE_SET_SOURCE (119690 neutrons)
<br>Number of redirections : 319299
<br>Counts : reference = 119690, passing = 119690, monitor = 4580
<br>Flux : reference = 1.9e+11, passing = 1.9e+12, monitor = 3.4e+07
<br>>> OPTIM_PHASE_SET_SOURCE (119690 neutrons)
<br>Number of redirections : 425880
<br>Counts : reference = 119690, passing = 119690, monitor = 4588
<br>Flux : reference = 1.9e+11, passing = 1.9e+12, monitor = 3.1e+07
<br>>> OPTIM_PHASE_SET_SOURCE (119690 neutrons)
<br>Number of redirections : 532178
<br>Counts : reference = 119690, passing = 119690, monitor = 4606
<br>Flux : reference = 1.9e+11, passing = 1.9e+12, monitor = 3.4e+07
<br>>> OPTIM_PHASE_SET_SOURCE (119690 neutrons)
<br>Number of redirections : 638681
<br>Counts : reference = 119690, passing = 119690, monitor = 4629
<br>Flux : reference = 1.9e+11, passing = 1.9e+12, monitor = 3.3e+07
<br>>> OPTIM_PHASE_SET_SOURCE (119690 neutrons)
<br>Number of redirections : 745164
<br>Counts : reference = 119690, passing = 119690, monitor = 4658
<br>Flux : reference = 1.9e+11, passing = 1.9e+12, monitor = 3.6e+07
<br>End of optimization
<br>Optim_Normal_Monitor_Counts = 100 (2 steps), Optim_Total_Monitor_Counts
= 32968
<br>Optimizer speedup : 78.9
<br>Number of redirections : 761697
<br>Counts : reference = 119690, passing = 28691, monitor = 724
<br>Flux : reference = 1.9e+11, passing = 1.9e+12, monitor = 6.5e+06
<br>Detector: kw1_I=7.07511e+11 kw1_ERR=1.34359e+10 kw1_N=60746
<br>Detector: PSDSample_I=2.41983e+08 PSDSample_ERR=2.85056e+06 PSDSample_N=32868
<br>Detector: Int4Sample_I=2.3616e+08 Int4Sample_ERR=2.81932e+06 Int4Sample_N=29140
<br>Detector: Flux1Sample_I=3.57466e+07 Flux1Sample_ERR=1.05143e+06 Flux1Sample_N=3677
<br>Detector: ESample_I=3.54956e+07 ESample_ERR=1.04524e+06 ESample_N=3654
<br>Detector: DivSample_I=2.9073e+07 DivSample_ERR=950905 DivSample_N=2399
<br>Detector: kw_I=3.56749e+07 kw_ERR=1.04785e+06 kw_N=3669
<br>Output files : sim/i60_k27w30d1m3.psd sim/i60_k27w30d1m3.nrj sim/i60_k27w30d1m3.div
sim/i60_k27w30d1m3.kw
<br>
<pre>Cheers !</pre>
<pre>--
Emmanuel FARHI, <A HREF="http://www.ill.fr/tas/people/Farhi.html">http://www.ill.fr/tas/people/Farhi.html</A> \|/ ____ \|/
TAS-Group, Institut Laue-Langevin (ILL) Grenoble ~@-/ oO \-@~
Avenue des Martyrs, BP 156, 38042 Grenoble Cedex 9,France /_( \__/ )_\
Work :Tel (33/0) 4 76 20 71 83. Fax (33/0) 4 76 48 39 06 \__U_/
La Grande Arche, Chateau d'Uriage, 38410 Saint Martin d'Uriage 04 76 59 73 94</pre>
</html>