Ignore:
Timestamp:
Oct 28, 2008, 5:29:36 PM (16 years ago)
Author:
fnevgeny
Branch:
default
Phase:
public
Message:

Moved LymanA to the base.Bohr class.

Location:
source/class/pf
Files:
2 edited

Legend:

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

    r75 r78  
    1515
    1616************************************************************************ */
    17 
    18 
    19 function LymanA(n)
    20 {
    21     if (n <= 1) {
    22         return 0;
    23     } else {
    24         return 8e9*256/9*n*Math.pow((n - 1)/(n + 1), 2*n)/((n*n - 1)*(n*n - 1));
    25     }
    26 }
    2717
    2818
     
    469459           
    470460            return Math.pow(Z_core, 4)*
    471                 (LymanA(n_u) + LymanA(n_l))/3e10/(2*Math.PI);
     461                (pf.base.Bohr.LymanA(n_u) + pf.base.Bohr.LymanA(n_l))/3e10/(2*Math.PI);
    472462        },
    473463       
     
    646636            var level_pop = Math.exp(-photon_eV/this.e.getT());
    647637           
    648             return level_pop*Math.pow(Z_core, 4)*LymanA(2)*
     638            return level_pop*Math.pow(Z_core, 4)*pf.base.Bohr.LymanA(2)*
    649639                1.6022e-19*photon_eV*this.r.getN();
    650640        },
  • source/class/pf/base/Bohr.js

    r8 r78  
    1212            return this.bindingEnergy(Z_core, n_u) -
    1313                   this.bindingEnergy(Z_core, n_l);
     14        },
     15
     16        LymanA : function(n)
     17        {
     18            if (n <= 1) {
     19                return 0;
     20            } else {
     21                return 8e9*256/9*n*Math.pow((n - 1)/(n + 1), 2*n)/((n*n - 1)*(n*n - 1));
     22            }
    1423        }
    1524    }
Note: See TracChangeset for help on using the changeset viewer.