- Timestamp:
- 01/26/12 21:06:20 (4 months ago)
- Location:
- branches/mcxtrace-1.0/nlib/examples
- Files:
-
- 24 modified
-
HZB_NEAT.instr (modified) (1 diff)
-
ILL_BRISP.instr (modified) (1 diff)
-
ILL_D2B.instr (modified) (2 diffs)
-
ILL_H10_IN8.instr (modified) (2 diffs)
-
ILL_H13_IN20.instr (modified) (2 diffs)
-
ILL_H15_IN6.instr (modified) (1 diff)
-
ILL_H22_D1A.instr (modified) (1 diff)
-
ILL_H22_D1B.instr (modified) (1 diff)
-
ILL_H25.instr (modified) (1 diff)
-
ILL_H25_IN22.instr (modified) (1 diff)
-
ILL_H53.instr (modified) (2 diffs)
-
ILL_H53_D16.instr (modified) (1 diff)
-
ILL_H53_IN14.instr (modified) (1 diff)
-
ILL_H8_IN1.instr (modified) (2 diffs)
-
ILL_IN6.instr (modified) (3 diffs)
-
ISIS_GEM.instr (modified) (2 diffs)
-
ISIS_HET.instr (modified) (2 diffs)
-
Test_Collimator_Radial.instr (modified) (1 diff)
-
Test_Lens.instr (modified) (2 diffs)
-
Test_Pol_Mirror.instr (modified) (1 diff)
-
linup-4.instr (modified) (1 diff)
-
linup-6.instr (modified) (1 diff)
-
templateDIFF.instr (modified) (1 diff)
-
templateTAS.instr (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/mcxtrace-1.0/nlib/examples/HZB_NEAT.instr
r3105 r3249 39 39 * which material can be any powder/liquid/amorphous sample. 40 40 * 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 44 43 * 45 44 * %Parameters -
branches/mcxtrace-1.0/nlib/examples/ILL_BRISP.instr
r3074 r3249 75 75 * Al or Nb container, inside an Al shield (phi=10 cm). 76 76 * 77 * %Example: coh="V.laz" Detector: Detector_I=1. 2491177 * %Example: coh="V.laz" Detector: Detector_I=1.76995 78 78 * 79 79 * %Parameters -
branches/mcxtrace-1.0/nlib/examples/ILL_D2B.instr
r3107 r3249 43 43 * Ge 533 DM=0.863 AA 44 44 * 45 * %Example: lambda=1 Detector: BananaPSD_I=2.46226e-0945 * %Example: lambda=1 Detector: D2B_BananaPSD_I=13364.4 46 46 * 47 47 * %Parameters … … 116 116 if (!L1) L = L2; 117 117 else L = 1/(1/L1+1/L2); 118 if (RV < 0) RV=2* fabs(L*sin(DEG2RAD*THETA_M));118 if (RV < 0) RV=2*L*sin(DEG2RAD*THETA_M); 119 119 KI = 2*PI/lambda; 120 120 Vi = K2V*fabs(KI); -
branches/mcxtrace-1.0/nlib/examples/ILL_H10_IN8.instr
r3109 r3249 45 45 * analyser, with a single type detector. 46 46 * 47 * %Example: QM=1 Sqw_coh=V.laz Detector: D7_SC3_1D_I=5.07236e-0548 * %Example: QM=1 Sqw_coh=V.laz Detector: He3H_I=5.00081e-1147 * %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 49 49 * 50 50 * %Parameters … … 127 127 128 128 DEFINE 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, 130 130 WM=0.233, HM=0.197, RMH=-1, RMV=-1, DM=1.807, NHM=15, NVM=15, 131 131 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 43 43 * configuration). 44 44 * 45 * %Example: QM=1 Sqw_coh=V.laz Detector: D7_SC3_1D_I=5.07236e-0546 * %Example: QM=1 Sqw_coh=V.laz Detector: He3H_I=5.00081e-1145 * %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 47 47 * 48 48 * %Parameters … … 125 125 126 126 DEFINE 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, 128 128 WM=0.20, HM=0.19, RMH=-1, RMV=-1, DM=3.155, NHM=15, NVM=15, 129 129 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 49 49 * improve the statistics. 50 50 * 51 * %Example: lambda=4.14 Detector: M_theta_t_all_I= 17351 * %Example: lambda=4.14 Detector: M_theta_t_all_I=88.5 52 52 * 53 53 * %Parameters -
branches/mcxtrace-1.0/nlib/examples/ILL_H22_D1A.instr
r3074 r3249 89 89 90 90 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); 92 92 KI=2*PI/lambda; 93 93 Vi = K2V*fabs(KI); -
branches/mcxtrace-1.0/nlib/examples/ILL_H22_D1B.instr
r3074 r3249 104 104 NAME_CURRENT_COMP, THETA_M, DM, lambda)); 105 105 106 if (RV < 0) RV=2*L2* fabs(sin(DEG2RAD*THETA_M));106 if (RV < 0) RV=2*L2*sin(DEG2RAD*THETA_M); 107 107 KI = 2*PI/lambda; 108 108 Vi = K2V*fabs(KI); -
branches/mcxtrace-1.0/nlib/examples/ILL_H25.instr
r3074 r3249 21 21 * The H25 supermirror curved thermal guide at the ILL feeding S18, D23 and IN22 22 22 * 23 * %Example: m=2 Detector: GuideOut_Phic_I= 3.46e+0923 * %Example: m=2 Detector: GuideOut_Phic_I=8.7861e+09 24 24 * 25 25 * %Parameters -
branches/mcxtrace-1.0/nlib/examples/ILL_H25_IN22.instr
r3074 r3249 22 22 * installed at the end of the H25 supermirror thermal guide. 23 23 * 24 * %Example: KI=3.84 QM=1 Sqw_coh=V.laz Detector: Sample_Cradle_I= 3.5483e+0725 * %Example: KI=3.84 QM=1 Sqw_coh=V.laz Detector: He3H_I= 5824 * %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 26 26 * 27 27 * %Parameters -
branches/mcxtrace-1.0/nlib/examples/ILL_H53.instr
r3097 r3249 17 17 * The H53 curved cold guide at the ILL feeding IN14, IN16, D16, ADAM, CRYO-EDM 18 18 * 19 * %Example: m=1.2 dlambda=8.5 Detector: GuideOut_Phic_I=1.47529e+1019 * %Example: m=1.2 dlambda=8.5 Detector: H53_P5_Out_Phic_I=1.8081e+10 20 20 * 21 21 * %Parameters … … 421 421 AT (0,0,L_H53_P5+gGap) RELATIVE PREVIOUS 422 422 423 COMPONENT H53_P5_Out_Phic = Monitor_nD(options="capture per cm2", xwidth=0.06, yheight=0.12) 424 AT (0,0,0.005) RELATIVE PREVIOUS 425 423 426 /* D16 position. Gap .200 */ 424 427 -
branches/mcxtrace-1.0/nlib/examples/ILL_H53_D16.instr
r3097 r3249 86 86 NAME_CURRENT_COMP, THETA_M, DM, lambda)); 87 87 88 if (RV < 0) RV=2*L2* fabs(sin(DEG2RAD*THETA_M));88 if (RV < 0) RV=2*L2*sin(DEG2RAD*THETA_M); 89 89 KI=2*PI/lambda; 90 90 Vi = K2V*fabs(KI); -
branches/mcxtrace-1.0/nlib/examples/ILL_H53_IN14.instr
r3109 r3249 36 36 * with a single type detector. 37 37 * 38 * %Example: KI=1.55 QM=1 Detector: Sample_Cradle_I=9.85568e+0738 * %Example: KI=1.55 QM=1 Sqw_coh=V.laz Detector: Sample_Cradle_I=3.53099e+07 39 39 * 40 40 * %Parameters -
branches/mcxtrace-1.0/nlib/examples/ILL_H8_IN1.instr
r3109 r3249 47 47 * with a single type detector. 48 48 * 49 * %Example: QM=1 Sqw_coh=V.laz Detector: D7_SC3_1D_I= 5.07236e-0550 * %Example: QM=1 Sqw_coh=V.laz Detector: He3H_I= 5.00081e-1149 * %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 51 51 * 52 52 * %Parameters … … 129 129 130 130 DEFINE 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, 132 132 WM=0.18, HM=0.20, RMH=-1, RMV=-1, DM=1.278, NHM=15, NVM=15, 133 133 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 48 48 * improve the statistics. The H15 guide is not described in this model. 49 49 * 50 * %Example: lambda=4.14 Detector: M_theta_t_all_I= 315.550 * %Example: lambda=4.14 Detector: M_theta_t_all_I=152.846 51 51 * 52 52 * %Parameters … … 363 363 364 364 /* Suppressor Chopper position. */ 365 COMPONENT Suppressor = FermiChopper(radius=0.07, nu= -Frequency/iRATIO,365 COMPONENT Suppressor = FermiChopper(radius=0.07, nu=Frequency/iRATIO, 366 366 yheight=0.098, xwidth=0.052, nslit=1, R0=0, phase=0, 367 367 length=0.012, eff=1, verbose=1) … … 379 379 AT (0,0,LME-LCE) RELATIVE mono_out 380 380 381 COMPONENT FermiM = FermiChopper(phase= -iPHASE, radius=0.04, nu=-Frequency,381 COMPONENT FermiM = FermiChopper(phase=iPHASE, radius=0.04, nu=Frequency, 382 382 yheight=0.064, xwidth=0.044, nslit=200.0, R0=.99, 383 383 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 25 25 * disordered materials and crystalline powders. 26 26 * 27 * %Example: sample="Y2O3.laz" Detector: monzns_I= 0.89499527 * %Example: sample="Y2O3.laz" Detector: monzns_I=18.2817 28 28 * 29 29 * %Link … … 51 51 COMPONENT Source = ISIS_moderator( 52 52 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, 54 54 SAC = 1) 55 55 AT (0, 0, 0) ABSOLUTE 56 56 57 57 SPLIT COMPONENT Sample = PowderN( 58 yheight=0.04, radius=8e-3/2, 58 yheight=0.04, radius=8e-3/2,p_interact=1, 59 59 reflections = sample,d_phi=atan(.20/dist)*RAD2DEG) 60 60 AT (0, 0, 17.00) RELATIVE Source -
branches/mcxtrace-1.0/nlib/examples/ISIS_HET.instr
r3074 r3249 25 25 * Fermi Chopper. 26 26 * 27 * %Example: Emin=443 Detector: cyl_I=0.7 1415827 * %Example: Emin=443 Detector: cyl_I=0.75 28 28 * 29 29 * %Parameters … … 85 85 86 86 COMPONENT FC = FermiChopper( 87 radius=0.05, nu= -nu_chop, yheight=c_h,87 radius=0.05, nu=nu_chop, yheight=c_h, 88 88 w=chan_w, nslit=nslits, curvature=1.0/roc, verbose=1, zero_time=2) 89 89 AT (0,0,10) RELATIVE ts1_mod -
branches/mcxtrace-1.0/nlib/examples/Test_Collimator_Radial.instr
r2742 r3249 20 20 * blade thickness between slits, which decreases slightly intensity. 21 21 * 22 * %Example: Collimator=1 Detector: BananaTheta_I= 2.91e-0823 * %Example: Collimator=2 Detector: BananaTheta_I= 2.68e-0824 * %Example: Collimator=3 Detector: BananaTheta_I= 2.97e-0822 * %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 25 25 * 26 26 * %Parameters -
branches/mcxtrace-1.0/nlib/examples/Test_Lens.instr
r3074 r3249 20 20 * around the focusing point to show the beam spot. 21 21 * 22 * %Example: lambda=10 Detector: PSD_mon_ 39_I=1.9071e-1822 * %Example: lambda=10 Detector: PSD_mon_41_I=4.2e-19 23 23 * 24 24 * %Parameters … … 35 35 TRACE 36 36 37 COMPONENT base= Arm() at (0,0,0) ABSOLUTE37 COMPONENT base=Progress_bar() at (0,0,0) ABSOLUTE 38 38 39 39 COMPONENT source1 = Source_div( -
branches/mcxtrace-1.0/nlib/examples/Test_Pol_Mirror.instr
r2250 r3249 73 73 74 74 COMPONENT mirror = 75 Pol_mirror(zwidth = 0.40, yheight = 0.40, option=mirrorOption,75 Pol_mirror(zwidth = 0.40, yheight = 0.40, p_reflect=mirrorOption, 76 76 rUpPar={1.0, 0.0219, 6.07, 2.0, 0.003}, 77 77 rDownPar={0.1, 0.0219, 6.07, 2.0, 0.003}) -
branches/mcxtrace-1.0/nlib/examples/linup-4.instr
r2250 r3249 27 27 * sample is a vanadium cylinder and there is no analyzer. 28 28 * 29 * %Example: PHM=-37.077 Detector: sng_I= 5.36516e-1029 * %Example: PHM=-37.077 Detector: sng_I=1.95173e-09 30 30 * 31 31 -
branches/mcxtrace-1.0/nlib/examples/linup-6.instr
r2250 r3249 25 25 * The sample is a vanadium and the analyzer is a single plate. 26 26 * 27 * %Example: PHM=-37.077 Detector: sng_I= 2.97461e-1027 * %Example: PHM=-37.077 Detector: sng_I=1.11099e-09 28 28 * 29 29 * %Parameters -
branches/mcxtrace-1.0/nlib/examples/templateDIFF.instr
r3074 r3249 88 88 if (L1<1.1) L = L2; 89 89 else L = 1/(1/L1+1/L2); 90 if (RV < 0) RV=2* fabs(L*sin(DEG2RAD*THETA_M));90 if (RV < 0) RV=2*L*sin(DEG2RAD*THETA_M); 91 91 KI=2*PI/lambda; 92 92 Vi = K2V*fabs(KI); -
branches/mcxtrace-1.0/nlib/examples/templateTAS.instr
r3109 r3249 518 518 double L; 519 519 L = 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));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); 522 522 L = 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; 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); 530 525 531 526 if (verbose) {
