Changeset 1717 for branches/newmole/source
- Timestamp:
- 12/23/07 06:39:42 (11 months ago)
- Location:
- branches/newmole/source
- Files:
-
- 3 modified
-
mole.h (modified) (1 diff)
-
mole_reactions.cpp (modified) (1 diff)
-
mole_species.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/newmole/source/mole.h
r1714 r1717 107 107 int num_total, num_calc, num_compacted; 108 108 109 realnum eden_f, grain_area , grain_avg_area;109 realnum eden_f, grain_area; 110 110 111 111 /** total charge in molecules */ -
branches/newmole/source/mole_reactions.cpp
r1714 r1717 997 997 * (cf the d'Hendercourt reference in Bergin et al) */ 998 998 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); 1001 1005 } 1002 1006 -
branches/newmole/source/mole_species.cpp
r1714 r1717 596 596 int i; 597 597 int nd; 598 double den_times_area , dengrains;598 double den_times_area; 599 599 600 600 DEBUG_ENTRY("mole_update_species_cache()"); … … 613 613 if(gv.lgDustOn) 614 614 { 615 den_times_area = dengrains =0.0;615 den_times_area = 0.0; 616 616 for( nd=0; nd < gv.nBin; nd++ ) 617 617 { 618 618 /* >>chng 06 mar 04, update expression for projected grain surface area, PvH */ 619 619 den_times_area += gv.bin[nd]->IntArea/4.*gv.bin[nd]->cnv_H_pCM3; 620 dengrains += gv.bin[nd]->cnv_GR_pCM3;621 620 } 622 621 623 622 mole.grain_area = den_times_area; 624 mole.grain_avg_area = den_times_area/dengrains;625 623 } 626 624 else 627 625 { 628 mole.grain_area = mole.grain_avg_area =0.0;626 mole.grain_area = 0.0; 629 627 } 630 628
