Changeset 302:a6d1f859b52e
- Timestamp:
- Sep 19, 2011, 7:20:22 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/class/pf/Plasma.js
r301 r302 167 167 var v_e = this.e.getThermalVelocity(); 168 168 169 return 8*Math.PI /(3*Math.pow(pf.base.Bohr.c, 3))*v_e*this.e.getN()*169 return 8*Math.PI*pf.base.Bohr.alpha3/3*v_e*this.e.getN()* 170 170 (this.i.getN()*z_i*z_i + this.r.getN()*z_r*z_r); 171 171 }, … … 180 180 getFreeBoundLosses: function() 181 181 { 182 var z_i = this.i.getQ();183 var m_i = this.i.getM();184 var z_r = this.r.getQ();185 var m_r = this.r.getM();186 var v_e = this.e.getThermalVelocity();187 188 return -8*Math.PI/(3*Math.pow(pf.base.Bohr.c, 3))*v_e*this.e.getN()*189 (this.i.getN()*z_i*z_i*pf.base.Bohr.bindingEnergy(z_i, m_i, 1) +190 this.r.getN()*z_r*z_r*pf.base.Bohr.bindingEnergy(z_r, m_r, 1))/191 this.e.getT();192 },193 194 getFreeBoundSpectralDensity: function()195 {196 var photon_en = this.r.getTransitionEnergy();197 182 var T_e = this.e.getT(); 198 183 var v_e = this.e.getThermalVelocity(); 199 184 var N_e = this.e.getN(); 200 185 201 186 var sum = 0; 202 187 … … 214 199 var Eb = -pf.base.Bohr.bindingEnergy(z_s, m_s, 1); 215 200 201 sum += N_s*z_s*z_s*(Eb/T_e); 202 } 203 204 return 8*Math.PI*pf.base.Bohr.alpha3/3*N_e*v_e*sum; 205 }, 206 207 getFreeBoundSpectralDensity: function() 208 { 209 var photon_en = this.r.getTransitionEnergy(); 210 var T_e = this.e.getT(); 211 var v_e = this.e.getThermalVelocity(); 212 var N_e = this.e.getN(); 213 214 var sum = 0; 215 216 var sa = [this.i, this.r]; 217 for (var i =0; i < sa.length; i++) { 218 var s = sa[i]; 219 var N_s = s.getN(); 220 if (!N_s) { 221 continue; 222 } 223 224 var z_s = s.getQ(); 225 var m_s = s.getM(); 226 227 var Eb = -pf.base.Bohr.bindingEnergy(z_s, m_s, 1); 228 216 229 if (photon_en < Eb) { 217 230 continue; … … 221 234 } 222 235 223 return 8*Math.PI /(3*Math.pow(pf.base.Bohr.c, 3))*v_e*N_e/T_e*sum;236 return 8*Math.PI*pf.base.Bohr.alpha3/3*N_e/v_e*sum; 224 237 }, 225 238
Note: See TracChangeset
for help on using the changeset viewer.