Show
Ignore:
Timestamp:
12/23/07 06:39:42 (11 months ago)
Author:
rjrw
Message:

Code consensus view on the implementation of photodesorption rates.

Location:
branches/newmole/source
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/newmole/source/mole.h

    r1714 r1717  
    107107        int num_total, num_calc, num_compacted; 
    108108         
    109         realnum eden_f, grain_area, grain_avg_area; 
     109        realnum eden_f, grain_area; 
    110110 
    111111        /** total charge in molecules */ 
  • branches/newmole/source/mole_reactions.cpp

    r1714 r1717  
    997997         * (cf the d'Hendercourt reference in Bergin et al) */ 
    998998 
    999         fixit(); // Should this be 4* (i.e. the total not the cs area)?  Depends on definition of radiation field. 
    1000         return mole.grain_avg_area * hmi.UV_Cont_rel2_Draine_DB96_depth *(1.232e7f * 1.71f); 
     999        fixit();  
     1000        // 2e-15 is mean adsorbed species cross section, from 
     1001  // >>refer Greenberg, L. T., 1973, IAUS, 52, 413 
     1002        // 1.232e7f * 1.71f is from DB96 referred to below  
     1003        // will be multiplied by yield factor (~1e-4) to get overall photodesorption rate 
     1004        return 2e-15 * hmi.UV_Cont_rel2_Draine_DB96_depth *(1.232e7f * 1.71f); 
    10011005} 
    10021006 
  • branches/newmole/source/mole_species.cpp

    r1714 r1717  
    596596        int i; 
    597597        int nd; 
    598         double den_times_area, dengrains; 
     598        double den_times_area; 
    599599 
    600600        DEBUG_ENTRY("mole_update_species_cache()"); 
     
    613613        if(gv.lgDustOn) 
    614614        { 
    615                 den_times_area = dengrains = 0.0; 
     615                den_times_area = 0.0; 
    616616                for( nd=0; nd < gv.nBin; nd++ ) 
    617617                { 
    618618                        /* >>chng 06 mar 04, update expression for projected grain surface area, PvH */ 
    619619                        den_times_area += gv.bin[nd]->IntArea/4.*gv.bin[nd]->cnv_H_pCM3; 
    620                         dengrains += gv.bin[nd]->cnv_GR_pCM3; 
    621620                } 
    622621                 
    623622                mole.grain_area = den_times_area; 
    624                 mole.grain_avg_area = den_times_area/dengrains; 
    625623        } 
    626624        else 
    627625        { 
    628                 mole.grain_area = mole.grain_avg_area = 0.0; 
     626                mole.grain_area = 0.0; 
    629627        } 
    630628