Changeset 381:b2b6638e3ca7


Ignore:
Timestamp:
May 31, 2023, 7:40:07 PM (14 months ago)
Author:
Evgeny Stambulchik <Evgeny.Stambulchik@…>
Branch:
default
Phase:
public
Tags:
tip
Message:

Add a simple calculation of PPS

Location:
source
Files:
2 edited

Legend:

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

    r368 r381  
    184184            var d_hwhm = this.r.getDopplerHwhm();
    185185            return 2*Math.sqrt(s_hwhm*s_hwhm + z_hwhm*z_hwhm + d_hwhm*d_hwhm);
     186        },
     187
     188        getPPS: function()
     189        {
     190            var n_u = this.r.getN_u();
     191            var n_l = this.r.getN_l();
     192            var Z_core = this.r.getZcore();
     193            var ld = this.e.getDebyeLength();
     194            return -(Z_core - 1)/(2*Z_core)*(n_u*n_u - n_l*n_l)/(ld*ld);
    186195        },
    187196
  • source/entities.js

    r375 r381  
    250250        formula   : "return 2*this.plasma.getQsHwhm(s1)"
    251251    },
     252    {
     253        id        : "qs_stark_fwhm0",
     254        name      : "QS Stark FWHM0",
     255        dimension : "energy",
     256        nspecies  : 1,
     257        prepos    : "due to",
     258        section   : "spectroscopy",
     259        formula   : "return 2*1.4385*this.plasma.getDelta0(s1)"
     260    },
    252261
    253262    {
     
    268277        formula   : "return this.plasma.r.getMinEnergyDistance()"
    269278    },
     279
     280    {
     281        id        : "plasma_polarization_shift",
     282        name      : "Plasma polarization shift",
     283        dimension : "energy",
     284        nspecies  : 0,
     285        section   : "spectroscopy",
     286        formula   : "return this.plasma.getPPS()"
     287    },
     288    {
     289        id        : "plasma_polarization_shift_wl",
     290        name      : "Plasma polarization shift (wl)",
     291        dimension : "length",
     292        nspecies  : 0,
     293        section   : "spectroscopy",
     294        formula   : "return -this.plasma.dE2dWl(this.plasma.getPPS())"
     295    },
     296
    270297    {
    271298        id        : "plasmon_energy",
Note: See TracChangeset for help on using the changeset viewer.