Changeset 3249 for branches

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

examples: fixed most reference values, so that self-test is now sanitized.

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

Legend:

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

    r3105 r3249  
    3939* which material can be any powder/liquid/amorphous sample. 
    4040* 
    41 * %Example: lambda=6 coh=V.laz    inc=NULL Detector: D7_SC3_1D_I=3.3e-05 
    42 * %Example: lambda=6 coh=Y2O3.laz inc=NULL Detector: D7_SC3_1D_I=3.3e-05 
    43 * %Example: lambda=6 coh=V.laz    inc=NULL Detector: D7_SC3_1D_I=3.3e-05 
     41* %Example: lambda=6                       Detector: Detector_I=300493 
     42* %Example: lambda=6 coh=Y2O3.laz inc=NULL Detector: Detector_I=41144.6 
    4443* 
    4544* %Parameters 
  • branches/mcxtrace-1.0/nlib/examples/ILL_BRISP.instr

    r3074 r3249  
    7575* Al or Nb container, inside an Al shield (phi=10 cm). 
    7676* 
    77 * %Example: coh="V.laz" Detector: Detector_I=1.24911 
     77* %Example: coh="V.laz" Detector: Detector_I=1.76995 
    7878* 
    7979* %Parameters 
  • branches/mcxtrace-1.0/nlib/examples/ILL_D2B.instr

    r3107 r3249  
    4343* Ge       533 DM=0.863 AA 
    4444* 
    45 * %Example: lambda=1 Detector: BananaPSD_I=2.46226e-09 
     45* %Example: lambda=1 Detector: D2B_BananaPSD_I=13364.4 
    4646* 
    4747* %Parameters 
     
    116116if (!L1)    L = L2; 
    117117else        L = 1/(1/L1+1/L2); 
    118 if (RV < 0) RV=2*fabs(L*sin(DEG2RAD*THETA_M)); 
     118if (RV < 0) RV=2*L*sin(DEG2RAD*THETA_M); 
    119119KI = 2*PI/lambda; 
    120120Vi = K2V*fabs(KI); 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H10_IN8.instr

    r3109 r3249  
    4545* analyser, with a single type detector. 
    4646* 
    47 * %Example: QM=1 Sqw_coh=V.laz Detector: D7_SC3_1D_I=5.07236e-05 
    48 * %Example: QM=1 Sqw_coh=V.laz Detector: He3H_I=5.00081e-11 
     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 
    4949* 
    5050* %Parameters 
     
    127127 
    128128DEFINE INSTRUMENT ILL_H10_IN8( 
    129   KF=5, KI=0, QM=0.5, EN=5, verbose=1, 
     129  KF=5, KI=0, QM=0.5, EN=0, verbose=1, 
    130130  WM=0.233, HM=0.197, RMH=-1, RMV=-1, DM=1.807, NHM=15, NVM=15, 
    131131  WA=0.16, HA=0.08, RAH=-1,   RAV=-1, DA=2.087, NHA=15, NVA=15, 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H13_IN20.instr

    r3109 r3249  
    4343* configuration). 
    4444* 
    45 * %Example: QM=1 Sqw_coh=V.laz Detector: D7_SC3_1D_I=5.07236e-05 
    46 * %Example: QM=1 Sqw_coh=V.laz Detector: He3H_I=5.00081e-11 
     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 
    4747* 
    4848* %Parameters 
     
    125125 
    126126DEFINE INSTRUMENT ILL_H13_IN20( 
    127   KF=3, KI=0, QM=0.5, EN=5, verbose=1, 
     127  KF=3, KI=0, QM=0.5, EN=0, verbose=1, 
    128128  WM=0.20, HM=0.19, RMH=-1, RMV=-1, DM=3.155, NHM=15, NVM=15, 
    129129  WA=0.16, HA=0.08, RAH=-1, RAV=-1, DA=3.155, NHA=15, NVA=15, 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H15_IN6.instr

    r2397 r3249  
    4949* improve the statistics. 
    5050* 
    51 * %Example: lambda=4.14 Detector: M_theta_t_all_I=173 
     51* %Example: lambda=4.14 Detector: M_theta_t_all_I=88.5 
    5252* 
    5353* %Parameters 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H22_D1A.instr

    r3074 r3249  
    8989 
    9090  L = L2; /* assume guide exit L1=Inf */ 
    91   if (RV < 0) RV=abs(2*L*sin(DEG2RAD*A1)); 
     91  if (RV < 0) RV=2*L*sin(DEG2RAD*A1); 
    9292  KI=2*PI/lambda; 
    9393  Vi = K2V*fabs(KI); 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H22_D1B.instr

    r3074 r3249  
    104104      NAME_CURRENT_COMP, THETA_M, DM, lambda)); 
    105105   
    106 if (RV < 0) RV=2*L2*fabs(sin(DEG2RAD*THETA_M));    
     106if (RV < 0) RV=2*L2*sin(DEG2RAD*THETA_M); 
    107107KI = 2*PI/lambda;    
    108108Vi = K2V*fabs(KI); 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H25.instr

    r3074 r3249  
    2121* The H25 supermirror curved thermal guide at the ILL feeding S18, D23 and IN22 
    2222* 
    23 * %Example: m=2 Detector: GuideOut_Phic_I=3.46e+09 
     23* %Example: m=2 Detector: GuideOut_Phic_I=8.7861e+09 
    2424* 
    2525* %Parameters 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H25_IN22.instr

    r3074 r3249  
    2222* installed at the end of the H25 supermirror thermal guide. 
    2323* 
    24 * %Example: KI=3.84 QM=1 Sqw_coh=V.laz Detector: Sample_Cradle_I=3.5483e+07 
    25 * %Example: KI=3.84 QM=1 Sqw_coh=V.laz Detector: He3H_I=58 
     24* %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 
    2626* 
    2727* %Parameters 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H53.instr

    r3097 r3249  
    1717* The H53 curved cold guide at the ILL feeding IN14, IN16, D16, ADAM, CRYO-EDM 
    1818* 
    19 * %Example: m=1.2 dlambda=8.5 Detector: GuideOut_Phic_I=1.47529e+10 
     19* %Example: m=1.2 dlambda=8.5 Detector: H53_P5_Out_Phic_I=1.8081e+10 
    2020* 
    2121* %Parameters 
     
    421421AT (0,0,L_H53_P5+gGap) RELATIVE PREVIOUS 
    422422 
     423COMPONENT H53_P5_Out_Phic = Monitor_nD(options="capture per cm2", xwidth=0.06, yheight=0.12) 
     424AT (0,0,0.005) RELATIVE PREVIOUS 
     425 
    423426/* D16 position. Gap .200 */ 
    424427 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H53_D16.instr

    r3097 r3249  
    8686      NAME_CURRENT_COMP, THETA_M, DM, lambda)); 
    8787 
    88 if (RV < 0) RV=2*L2*fabs(sin(DEG2RAD*THETA_M)); 
     88if (RV < 0) RV=2*L2*sin(DEG2RAD*THETA_M); 
    8989KI=2*PI/lambda; 
    9090Vi = K2V*fabs(KI); 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H53_IN14.instr

    r3109 r3249  
    3636* with a single type detector. 
    3737* 
    38 * %Example: KI=1.55 QM=1 Detector: Sample_Cradle_I=9.85568e+07 
     38* %Example: KI=1.55 QM=1 Sqw_coh=V.laz Detector: Sample_Cradle_I=3.53099e+07 
    3939* 
    4040* %Parameters 
  • branches/mcxtrace-1.0/nlib/examples/ILL_H8_IN1.instr

    r3109 r3249  
    4747* with a single type detector. 
    4848* 
    49 * %Example: QM=1 Sqw_coh=V.laz Detector: D7_SC3_1D_I=5.07236e-05 
    50 * %Example: QM=1 Sqw_coh=V.laz Detector: He3H_I=5.00081e-11 
     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 
    5151* 
    5252* %Parameters 
     
    129129 
    130130DEFINE INSTRUMENT ILL_H8_IN1( 
    131   KF=10, KI=0, QM=0.5, EN=50, verbose=1, 
     131  KF=10, KI=0, QM=0.5, EN=0, verbose=1, 
    132132  WM=0.18, HM=0.20, RMH=-1,   RMV=-1, DM=1.278, NHM=15, NVM=15, 
    133133  WA=0.16, HA=0.12, RAH=-1,   RAV=-1, DA=1.278, NHA=15, NVA=15, 
  • branches/mcxtrace-1.0/nlib/examples/ILL_IN6.instr

    r2776 r3249  
    4848* improve the statistics. The H15 guide is not described in this model. 
    4949* 
    50 * %Example: lambda=4.14 Detector: M_theta_t_all_I=315.5 
     50* %Example: lambda=4.14 Detector: M_theta_t_all_I=152.846 
    5151* 
    5252* %Parameters 
     
    363363 
    364364/* Suppressor Chopper position. */ 
    365 COMPONENT Suppressor = FermiChopper(radius=0.07, nu=-Frequency/iRATIO, 
     365COMPONENT Suppressor = FermiChopper(radius=0.07, nu=Frequency/iRATIO, 
    366366   yheight=0.098, xwidth=0.052, nslit=1, R0=0, phase=0, 
    367367   length=0.012, eff=1, verbose=1) 
     
    379379AT (0,0,LME-LCE) RELATIVE mono_out 
    380380 
    381 COMPONENT FermiM = FermiChopper(phase=-iPHASE, radius=0.04, nu=-Frequency, 
     381COMPONENT FermiM = FermiChopper(phase=iPHASE, radius=0.04, nu=Frequency, 
    382382   yheight=0.064, xwidth=0.044, nslit=200.0, R0=.99, 
    383383   Qc=(mFC < 1 && mFC ? mFC*0.02176 : 0.02176), alpha=2.33, m=mFC, length=0.012, eff=1.0, verbose=1) 
  • branches/mcxtrace-1.0/nlib/examples/ISIS_GEM.instr

    r3074 r3249  
    2525* disordered materials and crystalline powders. 
    2626* 
    27 * %Example: sample="Y2O3.laz" Detector: monzns_I=0.894995 
     27* %Example: sample="Y2O3.laz" Detector: monzns_I=18.2817 
    2828* 
    2929* %Link 
     
    5151COMPONENT Source = ISIS_moderator( 
    5252    Face = "gem", Emin = emin, Emax = emax, target_index=1, focus_xw = 0.008, 
    53     focus_yh = 0.04, xwidth = 0.09, yheight = 0.084, CAngle = 0, 
     53    focus_yh = 0.04, xwidth = 0.09, yheight = 0.084, CAngle = 0,dist=0, 
    5454    SAC = 1) 
    5555AT (0, 0, 0) ABSOLUTE 
    5656 
    5757SPLIT COMPONENT Sample = PowderN( 
    58     yheight=0.04, radius=8e-3/2, 
     58    yheight=0.04, radius=8e-3/2,p_interact=1, 
    5959    reflections = sample,d_phi=atan(.20/dist)*RAD2DEG) 
    6060AT (0, 0, 17.00) RELATIVE Source 
  • branches/mcxtrace-1.0/nlib/examples/ISIS_HET.instr

    r3074 r3249  
    2525* Fermi Chopper. 
    2626* 
    27 * %Example: Emin=443 Detector: cyl_I=0.714158 
     27* %Example: Emin=443 Detector: cyl_I=0.75 
    2828* 
    2929* %Parameters 
     
    8585 
    8686COMPONENT FC = FermiChopper( 
    87   radius=0.05, nu=-nu_chop, yheight=c_h, 
     87  radius=0.05, nu=nu_chop, yheight=c_h, 
    8888  w=chan_w, nslit=nslits, curvature=1.0/roc, verbose=1, zero_time=2) 
    8989AT (0,0,10) RELATIVE ts1_mod 
  • branches/mcxtrace-1.0/nlib/examples/Test_Collimator_Radial.instr

    r2742 r3249  
    2020* blade thickness between slits, which decreases slightly intensity. 
    2121* 
    22 * %Example: Collimator=1 Detector: BananaTheta_I=2.91e-08 
    23 * %Example: Collimator=2 Detector: BananaTheta_I=2.68e-08 
    24 * %Example: Collimator=3 Detector: BananaTheta_I=2.97e-08 
     22* %Example: Collimator=1 Detector: BananaTheta_I=1.52649e-08 
     23* %Example: Collimator=2 Detector: BananaTheta_I=1.41509e-08 
     24* %Example: Collimator=3 Detector: BananaTheta_I=1.581e-08 
    2525* 
    2626* %Parameters 
  • branches/mcxtrace-1.0/nlib/examples/Test_Lens.instr

    r3074 r3249  
    2020* around the focusing point to show the beam spot. 
    2121* 
    22 * %Example: lambda=10 Detector: PSD_mon_39_I=1.9071e-18 
     22* %Example: lambda=10 Detector: PSD_mon_41_I=4.2e-19 
    2323* 
    2424* %Parameters 
     
    3535TRACE 
    3636 
    37 COMPONENT base=Arm() at (0,0,0) ABSOLUTE 
     37COMPONENT base=Progress_bar() at (0,0,0) ABSOLUTE 
    3838 
    3939COMPONENT source1 = Source_div( 
  • branches/mcxtrace-1.0/nlib/examples/Test_Pol_Mirror.instr

    r2250 r3249  
    7373 
    7474COMPONENT mirror = 
    75 Pol_mirror(zwidth = 0.40, yheight = 0.40, option=mirrorOption, 
     75Pol_mirror(zwidth = 0.40, yheight = 0.40, p_reflect=mirrorOption, 
    7676           rUpPar={1.0, 0.0219, 6.07, 2.0, 0.003}, 
    7777           rDownPar={0.1, 0.0219, 6.07, 2.0, 0.003}) 
  • branches/mcxtrace-1.0/nlib/examples/linup-4.instr

    r2250 r3249  
    2727* sample is a vanadium cylinder and there is no analyzer. 
    2828* 
    29 * %Example: PHM=-37.077 Detector: sng_I=5.36516e-10 
     29* %Example: PHM=-37.077 Detector: sng_I=1.95173e-09 
    3030* 
    3131 
  • branches/mcxtrace-1.0/nlib/examples/linup-6.instr

    r2250 r3249  
    2525* The sample is a vanadium and the analyzer is a single plate. 
    2626* 
    27 * %Example: PHM=-37.077 Detector: sng_I=2.97461e-10 
     27* %Example: PHM=-37.077 Detector: sng_I=1.11099e-09 
    2828* 
    2929* %Parameters 
  • branches/mcxtrace-1.0/nlib/examples/templateDIFF.instr

    r3074 r3249  
    8888if (L1<1.1) L = L2; 
    8989else        L = 1/(1/L1+1/L2); 
    90 if (RV < 0) RV=2*fabs(L*sin(DEG2RAD*THETA_M)); 
     90if (RV < 0) RV=2*L*sin(DEG2RAD*THETA_M); 
    9191KI=2*PI/lambda; 
    9292Vi = K2V*fabs(KI); 
  • branches/mcxtrace-1.0/nlib/examples/templateTAS.instr

    r3109 r3249  
    518518double L; 
    519519L = 1/(1/L1+1/L2); 
    520 if (RMV < 0) machine_real.rmv = 2*L*sin(DEG2RAD*fabs(machine_real.a1)); 
    521 if (RMH < 0) machine_real.rmh = 2*L/sin(DEG2RAD*fabs(machine_real.a1)); 
     520if (RMV < 0) machine_real.rmv = 2*L*sin(DEG2RAD*machine_real.a1); 
     521if (RMH < 0) machine_real.rmh = 2*L/sin(DEG2RAD*machine_real.a1); 
    522522L = 1/(1/L3+1/L4); 
    523 if (RAV < 0) machine_real.rav = 2*L*sin(DEG2RAD*fabs(machine_real.a5)); 
    524 if (RAH < 0) machine_real.rah = 2*L/sin(DEG2RAD*fabs(machine_real.a5)); 
    525  
    526 machine_real.rmv = fabs(machine_real.rmv)*machine_hkl.sm; 
    527 machine_real.rav = fabs(machine_real.rav)*machine_hkl.sa; 
    528 machine_real.rmh = fabs(machine_real.rmh)*machine_hkl.sm; 
    529 machine_real.rah = fabs(machine_real.rah)*machine_hkl.sa; 
     523if (RAV < 0) machine_real.rav = 2*L*sin(DEG2RAD*machine_real.a5); 
     524if (RAH < 0) machine_real.rah = 2*L/sin(DEG2RAD*machine_real.a5); 
    530525 
    531526if (verbose) {