Changeset 2904 for branches/mcstas-1.x
- Timestamp:
- 07/15/10 10:15:18 (23 months ago)
- Files:
-
- 1 modified
-
branches/mcstas-1.x/lib/sources/Source_gen.comp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/mcstas-1.x/lib/sources/Source_gen.comp
r2699 r2904 9 9 * 10 10 * %I 11 * Written by: Emmanuel Farhi, Kim Lefmann 11 * Written by: Emmanuel Farhi, Kim Lefmann, edits Jonas O Birk 12 12 * Date: Aug 27, 2001 13 13 * Version: $Revision: 1.41 $ … … 18 18 * Modified by: EF, Oct 30, 2001 ; minor changes. mccompcurname replaced 19 19 * 20 * Circular/squared neutron source with flat or Maxwellian energy/wavelength21 * spectrum20 * Circular/squared or spatially gaussian neutron source with flat or 21 * Maxwellian energy/wavelength spectrum. 22 22 * 23 23 * %D … … 30 30 * be either arbitrary (I1=0), or specified in neutrons per steradian per 31 31 * square cm per Angstrom. A Maxwellian spectra may be selected if you give 32 * the source temperatures (up to 3). Finally, a file with the flux as a 32 * the source temperatures (up to 3). A high-energy tail of shape 33 * A/(lambda0-lambda) is added by setting the HEtailA and HEtailL0 parameters. 34 * Finally, a file with the flux as a 33 35 * function of the wavelength [lambda(AA) flux(n/s/cm^2/st/AA)] may be used 34 36 * with the 'flux_file' parameter. Format is 2 columns free text. … … 103 105 * T3: [K] Third Maxwellian source Temperature, 0=none 104 106 * I3: [1/(cm**2*st*AA)] Third Maxwellian Source flux 105 * flux_file:[str] Name of a two columns [lambda flux] text file that contains 107 * HEtailA: [1/(cm**2*st*AA**2)] Amplitude of heigh energy tail 108 * HEtailL0 [AA] Offset of heigh energy tail 109 flux_file:[str] Name of a two columns [lambda flux] text file that contains 106 110 * the wavelength distribution of the flux in [1/(s*cm**2*st*AA)]. 107 111 * Comments (#) and further columns are ignored. Format is … … 133 137 h=0, w=0, verbose=0, T1=0, 134 138 flux_file_perAA=0, flux_file_log=0, 135 Lmin=0,Lmax=0,Emin=0,Emax=0,T2=0,I2=0,T3=0,I3=0,length=0) 139 Lmin=0,Lmax=0,Emin=0,Emax=0,T2=0,I2=0,T3=0,I3=0,length=0, 140 HEtailA=0,HEtailL0=0) 136 141 OUTPUT PARAMETERS (p_in, lambda0, lambda02, L2P, lambda0b, lambda02b, L2Pb,lambda0c, lambda02c, L2Pc, pTable, pTable_x, pTable_y,pTable_xmin, pTable_xmax, pTable_xsum, pTable_ymin, pTable_ymax, pTable_ysum, pTable_dxmin, pTable_dxmax, pTable_dymin, pTable_dymax) 137 142 STATE PARAMETERS (x,y,z,vx,vy,vz,t,s1,s2,p) … … 526 531 Maxwell += I3 * L2Pc/lambda5 * exp(-lambda02c/lambda2); 527 532 } 533 if (HEtailA>0) 534 { 535 Maxwell+=HEtailA/(lambda-HEtailL0)/(lambda-HEtailL0); 536 } 528 537 p *= Maxwell; 529 538 }
