Changeset 3258
- Timestamp:
- 01/26/12 21:06:40 (4 months ago)
- Location:
- branches/mcxtrace-1.0/nlib/examples
- Files:
-
- 13 modified
-
ILL_BRISP.instr (modified) (2 diffs)
-
ILL_D2B.instr (modified) (2 diffs)
-
ILL_D4.instr (modified) (2 diffs)
-
ILL_H10_IN8.instr (modified) (3 diffs)
-
ILL_H13_IN20.instr (modified) (3 diffs)
-
ILL_H142_IN12.instr (modified) (1 diff)
-
ILL_H15_IN6.instr (modified) (1 diff)
-
ILL_H22_D1A.instr (modified) (2 diffs)
-
ILL_H25_IN22.instr (modified) (1 diff)
-
ILL_H8_IN1.instr (modified) (2 diffs)
-
Test_Lens.instr (modified) (1 diff)
-
templateDIFF.instr (modified) (2 diffs)
-
templateTAS.instr (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/mcxtrace-1.0/nlib/examples/ILL_BRISP.instr
r3249 r3258 75 75 * Al or Nb container, inside an Al shield (phi=10 cm). 76 76 * 77 * %Example: coh="V.laz" Detector: Detector_I= 1.7699577 * %Example: coh="V.laz" Detector: Detector_I=29.8614 78 78 * 79 79 * %Parameters … … 175 175 COMPONENT ThermalSource = Source_gen( 176 176 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) 178 179 AT (0, 0, 0) RELATIVE Origin 179 180 -
branches/mcxtrace-1.0/nlib/examples/ILL_D2B.instr
r3249 r3258 152 152 } 153 153 154 RV = fabs(RV)*SM; 155 154 156 155 157 %} … … 163 165 164 166 /* 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,167 COMPONENT Source = Source_gen(dist = 11, focus_xw = fabs(0.05*fabs(sin(DEG2RAD*THETA_M))), focus_yh = 0.3, radius=0.11, 166 168 lambda0 = lambda, dlambda = lambda*0.01, 167 169 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 82 82 DM, RV, (!RV ? "flat" : "curved"), A1); 83 83 } 84 RV = -fabs(RV);; 84 85 %} 85 86 … … 93 94 /* Hot source at the ILL */ 94 95 COMPONENT 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, 96 97 lambda0 = lambda, dlambda = lambda*0.03, 97 98 T1=1695,I1=1.74e13,T2=708,I2=3.9e12) -
branches/mcxtrace-1.0/nlib/examples/ILL_H10_IN8.instr
r3249 r3258 6 6 * Institut Laue Langevin, Grenoble, France 7 7 * 8 * Instrument: Template TAS instrument8 * Instrument: ILL_H10_IN8 9 9 * 10 10 * %Identification … … 45 45 * analyser, with a single type detector. 46 46 * 47 * %Example: QM=1 EN=0 Sqw_coh=V.laz Detector: D7_SC3_1D_I= 3.93806e-0548 * %Example: QM=1 EN=0 Sqw_coh=V.laz Detector: He3H_I=1.9e-1147 * %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 49 49 * 50 50 * %Parameters … … 140 140 AT (0,0,0) ABSOLUTE 141 141 142 /* a flat constant source */142 /* a flat constant source: tube H10 is twice as brilliant as H12 */ 143 143 REMOVABLE COMPONENT Source = Source_gen( 144 144 radius = 0.10, 145 145 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, 147 148 E0 = machine_hkl.ei, 148 149 dE = machine_hkl.ei*0.03) -
branches/mcxtrace-1.0/nlib/examples/ILL_H13_IN20.instr
r3249 r3258 6 6 * Institut Laue Langevin, Grenoble, France 7 7 * 8 * Instrument: Template TAS instrument8 * Instrument: ILL_H13_IN20 9 9 * 10 10 * %Identification … … 43 43 * configuration). 44 44 * 45 * %Example: QM=1 EN=0 Sqw_coh=V.laz Detector: D7_SC3_1D_I= 6.0819e-0546 * %Example: QM=1 EN=0 Sqw_coh=V.laz Detector: He3H_I= 3.0e-1145 * %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 47 47 * 48 48 * %Parameters … … 142 142 radius = 0.10, 143 143 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, 145 146 E0 = machine_hkl.ei, 146 147 dE = machine_hkl.ei*0.03) -
branches/mcxtrace-1.0/nlib/examples/ILL_H142_IN12.instr
r3074 r3258 18 18 * the IN12 TAS spectrometer (classical configuration). 19 19 * 20 * %Example: KI=2.662 QM=1 Sqw_coh=V.laz Detector: Sample_Cradle_I=2.2e+0621 * %Example: KI=2.662 QM=1 Sqw_coh=V.laz Detector: He3H_I=13.520 * %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 22 22 * 23 23 * %Parameters -
branches/mcxtrace-1.0/nlib/examples/ILL_H15_IN6.instr
r3249 r3258 98 98 END 99 99 100 101 102 103 104 -
branches/mcxtrace-1.0/nlib/examples/ILL_H22_D1A.instr
r3249 r3258 42 42 * Al environment (e.g. cryostat/furnace shield). 43 43 * 44 * This instrument is installed on the H22 guide.45 * 46 * %Example: lambda=1.911 Detector: BananaPSD_I= 6300244 * This instrument was installed on the H22 guide. 45 * 46 * %Example: lambda=1.911 Detector: BananaPSD_I=436746 47 47 * 48 48 * %Parameters … … 103 103 printf("* Sample: %s in %s cylinder container\n", powder, container); 104 104 } 105 106 RV = -fabs(RV); 105 107 %} 106 108 -
branches/mcxtrace-1.0/nlib/examples/ILL_H25_IN22.instr
r3249 r3258 23 23 * 24 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.86325 * %Example: KI=3.84 QM=1 Sqw_coh=V.laz -n 1e6 Detector: He3H_I=550 26 26 * 27 27 * %Parameters -
branches/mcxtrace-1.0/nlib/examples/ILL_H8_IN1.instr
r3249 r3258 47 47 * with a single type detector. 48 48 * 49 * %Example: QM=1 Sqw_coh=V.laz Detector: D7_SC3_1D_I= 3.39e-0550 * %Example: QM=1 Sqw_coh=V.laz Detector: He3H_I= 4.02e-1149 * %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 51 51 * 52 52 * %Parameters … … 146 146 radius = 0.10, 147 147 dist = machine_hkl.l1, 148 focus_xw = WM, focus_yh = HM,148 focus_xw = fabs(WM*sin(machine_real.a1*DEG2RAD)), focus_yh = HM, 149 149 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) 151 152 AT (0,0,0) ABSOLUTE 152 153 -
branches/mcxtrace-1.0/nlib/examples/Test_Lens.instr
r3249 r3258 19 19 * non diverging beam (ideal case). A set of PSD monitors is positioned 20 20 * around the focusing point to show the beam spot. 21 *22 * %Example: lambda=10 Detector: PSD_mon_41_I=4.2e-1923 21 * 24 22 * %Parameters -
branches/mcxtrace-1.0/nlib/examples/templateDIFF.instr
r3249 r3258 88 88 if (L1<1.1) L = L2; 89 89 else L = 1/(1/L1+1/L2); 90 if (RV < 0) RV= 2*L*sin(DEG2RAD*THETA_M);90 if (RV < 0) RV=fabs(2*L*sin(DEG2RAD*THETA_M)); 91 91 KI=2*PI/lambda; 92 92 Vi = K2V*fabs(KI); … … 105 105 DM, RV, (!RV ? "flat" : "curved"), THETA_M*2); 106 106 } 107 108 RV = fabs(RV)*SM; 109 107 110 %} 108 111 -
branches/mcxtrace-1.0/nlib/examples/templateTAS.instr
r3249 r3258 58 58 * L1=2.33 59 59 * 60 * %Example: QM=1 Sqw_coh=V.laz Detector: D7_SC3_1D_I= 5.07236e-0561 * %Example: QM=1 Sqw_coh=V.laz Detector: He3H_I= 5.00081e-1160 * %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 62 62 * 63 63 * %Parameters … … 518 518 double L; 519 519 L = 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);520 if (RMV < 0) machine_real.rmv = fabs(2*L*sin(DEG2RAD*machine_real.a1)); 521 if (RMH < 0) machine_real.rmh = fabs(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*machine_real.a5);524 if (RAH < 0) machine_real.rah = 2*L/sin(DEG2RAD*machine_real.a5);523 if (RAV < 0) machine_real.rav = fabs(2*L*sin(DEG2RAD*machine_real.a5)); 524 if (RAH < 0) machine_real.rah = fabs(2*L/sin(DEG2RAD*machine_real.a5)); 525 525 526 526 if (verbose) { … … 545 545 printf("Powder %s\n", Sqw_coh); 546 546 } 547 548 machine_real.rmv = fabs(machine_real.rmv)*machine_hkl.sm; 549 machine_real.rmh = fabs(machine_real.rmh)*machine_hkl.sm; 550 machine_real.rav = fabs(machine_real.rav)*machine_hkl.sa; 551 machine_real.rah = fabs(machine_real.rah)*machine_hkl.sa; 552 547 553 %} 548 554 /* end of INITIALIZE */ … … 558 564 radius = 0.10, 559 565 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, 561 568 E0 = machine_hkl.ei, 562 569 dE = machine_hkl.ei*0.03)
