Changeset 291:bd90dccb5ad4
- Timestamp:
- Sep 14, 2011, 7:50:17 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- source/class/pf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/class/pf/Plasma.js
r289 r291 53 53 var Z_core = this.r.getQ() + 1; 54 54 55 return Math.pow(Z_core, 4)*56 (pf.base.Bohr.LymanA(n_u) + pf.base.Bohr.LymanA(n_l));55 return pf.base.Bohr.LymanA(Z_core, n_u) + 56 pf.base.Bohr.LymanA(Z_core, n_l); 57 57 }, 58 58 … … 278 278 var level_pop = Math.exp(-photon_en/this.e.getT()); 279 279 280 return level_pop* Math.pow(Z_core, 4)*pf.base.Bohr.LymanA(2)*280 return level_pop*pf.base.Bohr.LymanA(Z_core, 2)* 281 281 photon_en*this.r.getN(); 282 282 }, -
source/class/pf/base/Bohr.js
r290 r291 74 74 75 75 /* Einstein A coefficient of Lyman series of H */ 76 LymanA : function( n)76 LymanA : function(Z_core, n) 77 77 { 78 78 if (n <= 1) { 79 79 return 0; 80 80 } else { 81 return Math.pow( this.alpha, 3)*81 return Math.pow(Z_core, 4)*Math.pow(this.alpha, 3)* 82 82 128/9*n*Math.pow((n - 1)/(n + 1), 2*n)/((n*n - 1)*(n*n - 1)); 83 83 } … … 118 118 oscillatorStrength : function(n_u, n_l) 119 119 { 120 if (n_l >= n_u || n_l <= 1) { 121 return 0; 122 } else 120 123 if (n_l == 1) { 121 124 return 256/3*Math.pow((n_u - 1)/(n_u + 1), 2*n_u)/
Note: See TracChangeset
for help on using the changeset viewer.