Changeset 3258 for branches

Show
Ignore:
Timestamp:
01/26/12 21:06:40 (4 months ago)
Author:
erkn
Message:

examples: fixed ILL optics focusing and source parameters.

Location:
branches/mcxtrace-1.0/nlib/examples
Files:
13 modified

Legend:

Unmodified
Added
Removed
  • branches/mcxtrace-1.0/nlib/examples/ILL_BRISP.instr

    r3249 r3258  
    7575* Al or Nb container, inside an Al shield (phi=10 cm). 
    7676* 
    77 * %Example: coh="V.laz" Detector: Detector_I=1.76995 
     77* %Example: coh="V.laz" Detector: Detector_I=29.8614 
    7878* 
    7979* %Parameters 
     
    175175COMPONENT ThermalSource = Source_gen( 
    176176    radius = 0.1, focus_xw = 0.06, focus_yh = 0.06, dist=6, 
    177     lambda0 = lambda, dlambda = lambda*0.01, I1 = 0.5874e+13, T1 = 683.7) 
     177    lambda0 = lambda, dlambda = lambda*0.01,  
     178    T1=683.7,I1=0.5874e+13,T2=257.7,I2=2.5099e+13,T3=16.7 ,I3=1.0343e+12) 
    178179  AT (0, 0, 0) RELATIVE Origin 
    179180 
  • branches/mcxtrace-1.0/nlib/examples/ILL_D2B.instr

    r3249 r3258  
    152152} 
    153153 
     154RV = fabs(RV)*SM; 
     155 
    154156 
    155157%} 
     
    163165 
    164166/* source with constant flux. Directly send neutron events to monochromator area */ 
    165 COMPONENT Source = Source_gen(dist = 11, focus_xw = 0.05*fabs(sin(DEG2RAD*THETA_M)), focus_yh = 0.3, radius=0.11,  
     167COMPONENT Source = Source_gen(dist = 11, focus_xw = fabs(0.05*fabs(sin(DEG2RAD*THETA_M))), focus_yh = 0.3, radius=0.11,  
    166168        lambda0 = lambda, dlambda = lambda*0.01, 
    167169        T1 = 683.7, I1 = 0.5874e13, T2 = 257.7, I2 = 2.5094e13, T3 =  16.7, I3 = 0.10343e13) 
  • branches/mcxtrace-1.0/nlib/examples/ILL_D4.instr

    r3074 r3258  
    8282    DM, RV, (!RV ? "flat" : "curved"), A1); 
    8383} 
     84 RV = -fabs(RV);; 
    8485%} 
    8586 
     
    9394/* Hot source at the ILL */ 
    9495COMPONENT Source = Source_gen( 
    95     xwidth = 0.05, yheight=0.20, dist = L1, focus_xw = 0.18*sin(A1*DEG2RAD), focus_yh = 0.20, 
     96    xwidth = 0.05, yheight=0.20, dist = L1, focus_xw = fabs(0.18*sin(A1*DEG2RAD)), focus_yh = 0.20, 
    9697    lambda0 = lambda, dlambda = lambda*0.03, 
    9798    T1=1695,I1=1.74e13,T2=708,I2=3.9e12) 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H10_IN8.instr

    r3249 r3258  
    66*         Institut Laue Langevin, Grenoble, France 
    77* 
    8 * Instrument: Template TAS instrument 
     8* Instrument: ILL_H10_IN8 
    99* 
    1010* %Identification 
     
    4545* analyser, with a single type detector. 
    4646* 
    47 * %Example: QM=1 EN=0 Sqw_coh=V.laz Detector: D7_SC3_1D_I=3.93806e-05 
    48 * %Example: QM=1 EN=0 Sqw_coh=V.laz Detector: He3H_I=1.9e-11 
     47* %Example: QM=1 EN=0 Sqw_coh=V.laz Detector: D7_SC3_1D_I=1.82621e+09 
     48* %Example: QM=1 EN=0 Sqw_coh=V.laz -n 1e6 Detector: He3H_I=1069.05 
    4949* 
    5050* %Parameters 
     
    140140AT (0,0,0) ABSOLUTE 
    141141 
    142 /* a flat constant source */ 
     142/* a flat constant source: tube H10 is twice as brilliant as H12 */ 
    143143REMOVABLE COMPONENT Source = Source_gen( 
    144144  radius  = 0.10, 
    145145  dist = machine_hkl.l1, 
    146   focus_xw = WM, focus_yh = HM, 
     146  focus_xw = fabs(WM*sin(machine_real.a1*DEG2RAD)), focus_yh = HM, 
     147  T1 = 683.7, I1 = 2*0.5874e13, T2 = 257.7, I2 = 2*2.5094e13, T3 =  16.7, I3 = 2*0.10343e13, 
    147148  E0 = machine_hkl.ei, 
    148149  dE = machine_hkl.ei*0.03) 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H13_IN20.instr

    r3249 r3258  
    66*         Institut Laue Langevin, Grenoble, France 
    77* 
    8 * Instrument: Template TAS instrument 
     8* Instrument: ILL_H13_IN20 
    99* 
    1010* %Identification 
     
    4343* configuration). 
    4444* 
    45 * %Example: QM=1 EN=0 Sqw_coh=V.laz Detector: D7_SC3_1D_I=6.0819e-05 
    46 * %Example: QM=1 EN=0 Sqw_coh=V.laz Detector: He3H_I=3.0e-11 
     45* %Example: QM=1 EN=0 Sqw_coh=V.laz Detector: D7_SC3_1D_I=4.83869e+08 
     46* %Example: QM=1 EN=0 Sqw_coh=V.laz Detector: He3H_I=267.069 
    4747* 
    4848* %Parameters 
     
    142142  radius  = 0.10, 
    143143  dist = machine_hkl.l1, 
    144   focus_xw = WM, focus_yh = HM, 
     144  focus_xw = fabs(WM*sin(machine_real.a1*DEG2RAD)), focus_yh = HM, 
     145  T1 = 683.7, I1 = 0.5874e13, T2 = 257.7, I2 = 2.5094e13, T3 =  16.7, I3 = 0.10343e13, 
    145146  E0 = machine_hkl.ei, 
    146147  dE = machine_hkl.ei*0.03) 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H142_IN12.instr

    r3074 r3258  
    1818* the IN12 TAS spectrometer (classical configuration). 
    1919* 
    20 * %Example: KI=2.662 QM=1 Sqw_coh=V.laz Detector: Sample_Cradle_I=2.2e+06 
    21 * %Example: KI=2.662 QM=1 Sqw_coh=V.laz Detector: He3H_I=13.5 
     20* %Example: KI=2.662 QM=1 Sqw_coh=V.laz Detector: D7_SC3_1D_I=8.66922e+06 
     21* %Example: KI=2.662 QM=1 Sqw_coh=V.laz -n 1e6 Detector: He3H_I=13.5 
    2222* 
    2323* %Parameters 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H15_IN6.instr

    r3249 r3258  
    9898END 
    9999 
    100  
    101  
    102  
    103  
    104  
  • branches/mcxtrace-1.0/nlib/examples/ILL_H22_D1A.instr

    r3249 r3258  
    4242* Al environment (e.g. cryostat/furnace shield). 
    4343* 
    44 * This instrument is installed on the H22 guide. 
    45 * 
    46 * %Example: lambda=1.911 Detector: BananaPSD_I=63002 
     44* This instrument was installed on the H22 guide. 
     45* 
     46* %Example: lambda=1.911 Detector: BananaPSD_I=436746 
    4747* 
    4848* %Parameters 
     
    103103    printf("* Sample: %s in %s cylinder container\n", powder, container); 
    104104  } 
     105   
     106  RV = -fabs(RV); 
    105107%} 
    106108 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H25_IN22.instr

    r3249 r3258  
    2323* 
    2424* %Example: KI=3.84 QM=1 Sqw_coh=V.laz Detector: Sample_Cradle_I=1.3915e+08 
    25 * %Example: KI=3.84 QM=1 Sqw_coh=V.laz Detector: He3H_I=656.863 
     25* %Example: KI=3.84 QM=1 Sqw_coh=V.laz -n 1e6 Detector: He3H_I=550 
    2626* 
    2727* %Parameters 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H8_IN1.instr

    r3249 r3258  
    4747* with a single type detector. 
    4848* 
    49 * %Example: QM=1 Sqw_coh=V.laz Detector: D7_SC3_1D_I=3.39e-05 
    50 * %Example: QM=1 Sqw_coh=V.laz Detector: He3H_I=4.02e-11 
     49* %Example: QM=1 Sqw_coh=V.laz Detector: D7_SC3_1D_I=1.06671e+09 
     50* %Example: QM=1 Sqw_coh=V.laz Detector: He3H_I=1397.33 
    5151* 
    5252* %Parameters 
     
    146146  radius  = 0.10, 
    147147  dist = machine_hkl.l1, 
    148   focus_xw = WM, focus_yh = HM, 
     148  focus_xw = fabs(WM*sin(machine_real.a1*DEG2RAD)), focus_yh = HM, 
    149149  E0 = machine_hkl.ei, 
    150   dE = machine_hkl.ei*0.03) 
     150  dE = machine_hkl.ei*0.03, 
     151  T1=1695,I1=1.74e13,T2=708,I2=3.9e12) 
    151152AT (0,0,0) ABSOLUTE 
    152153 
  • branches/mcxtrace-1.0/nlib/examples/Test_Lens.instr

    r3249 r3258  
    1919* non diverging beam (ideal case). A set of PSD monitors is positioned 
    2020* around the focusing point to show the beam spot. 
    21 * 
    22 * %Example: lambda=10 Detector: PSD_mon_41_I=4.2e-19 
    2321* 
    2422* %Parameters 
  • branches/mcxtrace-1.0/nlib/examples/templateDIFF.instr

    r3249 r3258  
    8888if (L1<1.1) L = L2; 
    8989else        L = 1/(1/L1+1/L2); 
    90 if (RV < 0) RV=2*L*sin(DEG2RAD*THETA_M); 
     90if (RV < 0) RV=fabs(2*L*sin(DEG2RAD*THETA_M)); 
    9191KI=2*PI/lambda; 
    9292Vi = K2V*fabs(KI); 
     
    105105    DM, RV, (!RV ? "flat" : "curved"), THETA_M*2); 
    106106} 
     107 
     108RV = fabs(RV)*SM; 
     109 
    107110%} 
    108111 
  • branches/mcxtrace-1.0/nlib/examples/templateTAS.instr

    r3249 r3258  
    5858*     L1=2.33  
    5959* 
    60 * %Example: QM=1 Sqw_coh=V.laz Detector: D7_SC3_1D_I=5.07236e-05 
    61 * %Example: QM=1 Sqw_coh=V.laz Detector: He3H_I=5.00081e-11 
     60* %Example: QM=1 Sqw_coh=V.laz Detector: D7_SC3_1D_I=2.55907e+08 
     61* %Example: QM=1 Sqw_coh=V.laz Detector: He3H_I=249.736 
    6262* 
    6363* %Parameters 
     
    518518double L; 
    519519L = 1/(1/L1+1/L2); 
    520 if (RMV < 0) machine_real.rmv = 2*L*sin(DEG2RAD*machine_real.a1); 
    521 if (RMH < 0) machine_real.rmh = 2*L/sin(DEG2RAD*machine_real.a1); 
     520if (RMV < 0) machine_real.rmv = fabs(2*L*sin(DEG2RAD*machine_real.a1)); 
     521if (RMH < 0) machine_real.rmh = fabs(2*L/sin(DEG2RAD*machine_real.a1)); 
    522522L = 1/(1/L3+1/L4); 
    523 if (RAV < 0) machine_real.rav = 2*L*sin(DEG2RAD*machine_real.a5); 
    524 if (RAH < 0) machine_real.rah = 2*L/sin(DEG2RAD*machine_real.a5); 
     523if (RAV < 0) machine_real.rav = fabs(2*L*sin(DEG2RAD*machine_real.a5)); 
     524if (RAH < 0) machine_real.rah = fabs(2*L/sin(DEG2RAD*machine_real.a5)); 
    525525 
    526526if (verbose) { 
     
    545545      printf("Powder %s\n", Sqw_coh); 
    546546} 
     547 
     548machine_real.rmv = fabs(machine_real.rmv)*machine_hkl.sm; 
     549machine_real.rmh = fabs(machine_real.rmh)*machine_hkl.sm; 
     550machine_real.rav = fabs(machine_real.rav)*machine_hkl.sa; 
     551machine_real.rah = fabs(machine_real.rah)*machine_hkl.sa; 
     552 
    547553%} 
    548554/* end of INITIALIZE */ 
     
    558564  radius  = 0.10, 
    559565  dist = machine_hkl.l1, 
    560   focus_xw = WM, focus_yh = HM, 
     566  focus_xw = fabs(WM*sin(machine_real.a1*DEG2RAD)), focus_yh = HM, 
     567  T1 = 683.7, I1 = 0.5874e13, T2 = 257.7, I2 = 2.5094e13, T3 =  16.7, I3 = 0.10343e13, 
    561568  E0 = machine_hkl.ei, 
    562569  dE = machine_hkl.ei*0.03)