Changeset 1969 for trunk/source/iso.h

Show
Ignore:
Timestamp:
04/26/08 10:59:21 (9 months ago)
Author:
rporter
Message:

trunk/data/compile_helike.in - the compile command has changed, update this file
trunk/data/compile_hlike.in - add this file to compile the hlike recomb data/compile_helike.in
trunk/data/h_iso_recomb.dat - store He+ levels up to 40 (like H) instead of 20 (like rest of sequence)
trunk/source/hydroeinsta.cpp - cache As from collapsed to resolved
trunk/source/iso.h - declare several new routines and variables related to collapsed levels; change number of levels in He+ recomb data file to be same as H and He
trunk/source/iso_collide.cpp - only kill some collisions with "case b hummer" for h-like sequence (i.e., do nothing for he-like)
trunk/source/iso_create.cpp - allocate space for new variables, refactor iso_cascade, define new functions iso_collapsed_Aul_update, iso_collapsed_bnl_print, iso_collapsed_bnl_set, and iso_collapsed_lifetimes_update.
trunk/source/iso_radiative_recomb.cpp - break out effective recomb calculation into its own routine.
trunk/source/iso_solve.cpp - call new routines related to getting collapsed to resolved As correct.
trunk/source/parse_abundances.cpp - remove redundant "CAME" parsing, and non-existant "NLR" option from print statement.
trunk/source/parse_atom_iso.cpp - change to RREC_MAXN
trunk/source/parse_compile.cpp - change to RREC_MAXN and LIKE_RREC_MAXN
trunk/source/prt_lines_helium.cpp - add "TOTL" 10830 as line with regular label as well
trunk/source/rt_line_all.cpp - remove dead code

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/iso.h

    r1948 r1969  
    3535 * atom xx-like levels large command */ 
    3636/* Hydrogen and helium atoms will have precompiled recombination coefficients up to these maximum n.    */ 
    37 #define RREC_MAXN( A_ )         ( A_ == ipH_LIKE ? 40 : 40 ) 
    38  
    39 /** Ions of the sequences will go up to this n. */ 
    40 #define LIKE_RREC_MAXN( A_ )            ( A_ == ipH_LIKE ? 20 : 20 ) 
     37#define RREC_MAXN       40 
     38 
     39/** Ions of the sequences will go up to this n, h-like He will get same as iso roots.   */ 
     40#define LIKE_RREC_MAXN( A_ )            ( A_ == ipHELIUM ? 40 : 20 ) 
    4141 
    4242#define N_ISO_TE_RECOMB         41 
     
    4848#define RECOMBMAGIC             (80405) 
    4949 
     50/**iso_cascade - calculate cascade probabilities, branching ratios, and associated errors 
     51\param ipISO 
     52\param nelem 
     53*/ 
     54void iso_cascade( long ipISO, long nelem ); 
     55 
     56/**iso_collapsed_bnl_print - print departure coefficients for collapsed levels  
     57\param ipISO 
     58\param nelem 
     59*/ 
     60void iso_collapsed_bnl_print( long ipISO, long nelem ); 
     61 
     62/**iso_collapsed_bnl_set - set departure coefficients for collapsed levels  
     63\param ipISO 
     64\param nelem 
     65*/ 
     66void iso_collapsed_bnl_set( long ipISO, long nelem ); 
     67 
     68/**iso_collapsed_Aul_update - update decays from collapsed levels  
     69\param ipISO 
     70\param nelem 
     71*/ 
     72void iso_collapsed_Aul_update( long ipISO, long nelem ); 
     73 
     74/**iso_collapsed_lifetimes_update - update lifetimes of collapsed levels  
     75\param ipISO 
     76\param nelem 
     77*/ 
     78void iso_collapsed_lifetimes_update( long ipISO, long nelem ); 
     79 
    5080/** iso_collide - calculate collision data for ipISO, nelem   
    5181\param ipISO 
     
    136166*/ 
    137167void iso_radiative_recomb( long ipISO, long nelem ); 
     168 
     169 
     170/**iso_radiative_recomb_effective - get effective recomb rate coefficients into each level (including indirect) 
     171\param ipISO 
     172\param nelem 
     173*/ 
     174void iso_radiative_recomb_effective( long ipISO, long nelem ); 
    138175 
    139176/**iso_recomb_check - called by SanityCheck to confirm that recombination coef are ok, 
     
    344381        multi_arr<double,3> PopLTE; 
    345382 
    346         /** collisional ionization rate coefficient from each level */ 
     383        /** collisional ionization rate coefficient from each level (cm3 s-1) */ 
    347384        multi_arr<double,3> ColIoniz; 
    348385 
     
    513550        multi_arr<double,3> RadEffec, SigmaRadEffec; 
    514551 
     552        multi_arr<realnum,5> CachedAs; 
     553        /* the departure coefficients of collapsed levels */ 
     554        multi_arr<double,5> bnl_effective; 
     555 
    515556} iso; 
    516557