Changeset 291:bd90dccb5ad4


Ignore:
Timestamp:
Sep 14, 2011, 7:50:17 PM (13 years ago)
Author:
Evgeny Stambulchik <Evgeny.Stambulchik@…>
Branch:
default
Phase:
public
Message:

LymanA() gets Z_core parameter.

Location:
source/class/pf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/class/pf/Plasma.js

    r289 r291  
    5353            var Z_core = this.r.getQ() + 1;
    5454           
    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);
    5757        },
    5858       
     
    278278            var level_pop = Math.exp(-photon_en/this.e.getT());
    279279           
    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)*
    281281                photon_en*this.r.getN();
    282282        },
  • source/class/pf/base/Bohr.js

    r290 r291  
    7474
    7575        /* Einstein A coefficient of Lyman series of H */
    76         LymanA : function(n)
     76        LymanA : function(Z_core, n)
    7777        {
    7878            if (n <= 1) {
    7979                return 0;
    8080            } else {
    81                 return Math.pow(this.alpha, 3)*
     81                return Math.pow(Z_core, 4)*Math.pow(this.alpha, 3)*
    8282                   128/9*n*Math.pow((n - 1)/(n + 1), 2*n)/((n*n - 1)*(n*n - 1));
    8383            }
     
    118118        oscillatorStrength : function(n_u, n_l)
    119119        {
     120            if (n_l >= n_u || n_l <= 1) {
     121                return 0;
     122            } else
    120123            if (n_l == 1) {
    121124                return 256/3*Math.pow((n_u - 1)/(n_u + 1), 2*n_u)/
Note: See TracChangeset for help on using the changeset viewer.