Subsections

29.1 Thomson Scattering including Ray Tracing and Deflection

The Thomson scattering unit including ray tracing and deflection is a detector driven unit, meaning that the outer loop is over all Thomson detectors specified. Since for each detector there is only one associated laser, the code checks whether the associated laser is currently active and if it is, this laser/detector pair is being processed. The inclusion of ray deflection in a Thomson scattering code presents some computational challenges. The main difficulty that arises is that the Thomson scattering interaction region (IR) from where the spectra will be accumulated, is not known beforehand, but must be established in a first pass through the ray tracing procedure. For each laser/detector pair, the ray tracing Thomson scattering code consists of two main sections during each time step of the simulation: 1) determination of the interaction region and 2) assembling the Thomson spectra. Both sections require a complete laser/detector ray tracing procedure over the entire set of both laser and detector rays. In what follows we will describe each section separately.

29.1.1 Identifying the Interaction Region

Per definition, the interaction region (IR) consists of those cells of the domain that will have both: 1) incoming laser (I, from incident) rays and 2) emerging detector (S, from scattered) rays. Each of these so called IR cells contribute to the final spectrum. In order to find all the IR cells for a specific laser/detector pair, the complete set of rays for both the laser and the detector are launched towards the domain and the cells on which both sets intersect will be identified as IR cells. Both laser and detector rays are launched statistically from their corresponding lenses and towards their target areas. Ray creation, specification and storage follow much the same way as presented for the EnergyDeposition unit in chapter 17.4.7. Setup of laser/detector beams and pulses are also done as presented in chapters 17.4.6 and 17.4.5. If no Ray deflection is specified and both laser and detector beams are cylindrical in shape, the resulting set of IR cells are contained in a region resembling a Steiner solid, i.e. the space obtained from two intersecting cylinders. Ray deflection usually broadens up the IR region and there can be even cases in which the set of IR cells within the IR region is not connected, for example if the number of rays used for the laser and the detector is very low. The user must therefore make sure that the resulting IR region is dense by launching enough rays from the laser and the detector. On the other hand, as we will see below, assembling the Thomson spectrum from the set of each IR cell's laser (I) and detector (S) rays is a multiplicative task in which each I-ray is allowed to scatter into all S-rays. There is hence a delicate balance as to how many rays are lauched and the size of the intended IR region for computations to remain manageable.

The identification of each IR cell is done by introducing extra two counting cell variables ICNT (for laser) and SCNT (for detector) into the UNK array (see chapter 6.1). ICNT and SCNT are incremented by +1 whenever a laser or detector ray hits the cell. After the complete sets of laser and detector rays have been processed through the domain, the IR cells are those for which both ICNT and SCNT are $ >$ 0. Once an IR cell has been identified, its ICNT value is overwritten by its unique tag, which will serve both as a counting index as well as identifying this cell as an IR cell (for example, for visualization purposes) in the domain.

During identification of the IR cells, the laser rays will not be allowed to deposit energy in the domain, as this will change subsequent ray tracing for the same laser/detector pair as well as other still to be processed laser/detector pairs. Also power loss by both laser and detector rays is not done at this stage.

29.1.2 Assembling the Thomson Scattering Spectra

Using maximum sized array dimension information from the interaction region finding step, storage arrays are allocated that will hold detailed info about each I-ray and S-ray for each IR cell. The complete set of laser and detector rays for the current laser/detector pair is retraced through the domain, this time all the laser and detector ray info (like direction components of each ray, current power and distance travelled inside each IR cell) as well each IR cell info (like number electron density, electron and ion temperature, etc.) is stored for subsequent assembly of the spectra. This time each ray is allowed to lose power: a laser ray loses absolute power, a detector ray loses relative power starting from an initial power of 1. The total power loss a ray experiences when travelling from the laser lens to the detector lens is given by the absolute power loss times the relative power loss, since power is lost exponentially depending on the time the ray spends in each cell (see Eq.(17.47)).

On each node the local Thomson spectra are assembled by looping over all local IR cells. Each IR cell contains per definition a set $ nI$ of incoming laser rays and a set $ nS$ of scattered detector rays. Each laser/detector ray pair (total of $ nI*nS$) info is now used to determine its contribution to the local spectrum. Each such pair defines a local IR cell scattering angle as well as a scattering direction. Together with the info of the local IR cell, a spectrum contribution to all recording frequencies is calculated using the time-averaged scattered power equation for a collection of charges in the low-velocity charge ($ v/c\ll 1$) limit:

$\displaystyle \frac{dP_s}{d\omega_s}$ $\displaystyle =$ $\displaystyle P_ir_e^2Ln_ed\Omega\vert{\hat s}\times ({\hat s}\times {\hat E}_i)\vert^2
S({\bf k},\omega),$ (29.1)

where $ P_s$ is the time-averaged scattered power, $ \omega_s$ the scattered frequency, $ \omega=\omega_s-\omega_i$ the frequency shift between the laser and scattered frequency, $ P_i$ the incident laser ray power, $ r_e$ the classical electron radius, $ L$ the distance travelled by the ray inside the IR cell, $ n_e$ the electron number density in the IR cell, $ d\Omega$ the detector lens area in steradians, $ {\hat s}$ the scattering direction unit vector, $ {\hat E}_i$ the unit vector along the incident laser electric field, $ {\bf k}={\bf k}_s-{\bf k}_i$ the shift in wavenumber between the laser and scattering wave vectors and $ S({\bf k},\omega)$ the spectral density function. For an unpolarized laser, the unitless scattering direction factor $ \vert{\hat s}\times ({\hat s}\times {\hat E}_i\vert^2$ is averaged over all possible $ {\hat E}_i$ orientations:
$\displaystyle \vert{\hat s}\times ({\hat s}\times {\hat E}_i)\vert^2$ $\displaystyle =$ $\displaystyle 1 - \frac{1}{2}\sin^2\theta,$ (29.2)

where $ \theta $ is the angle between the laser direction and the scattering direction (zero in case of same direction). If a polarized laser is used, an additional angle $ \phi$ between the polarization plane and the scattering plane is needed, giving:
$\displaystyle \vert{\hat s}\times ({\hat s}\times {\hat E}_i)\vert^2$ $\displaystyle =$ $\displaystyle 1 - \sin^2\theta * \cos^2\phi.$ (29.3)

The spectral density function describes how the spectrum varies in terms of velocity distributions and correlations of the ions with the scattering electrons and thus contains all the plasma information of the IR cell. Currently only the spectral density function for an unmagnetized, collisionless, low-temperature plasma containing possibly several ions is implemented:
$\displaystyle S({\bf k},\omega)$ $\displaystyle =$ $\displaystyle \frac{1}{k}\left\vert\frac{1+\sum_i\chi_i}{1+\chi_e+\sum_i\chi_i}...
...hi_i}\right\vert^2
\sum_i\frac{n_{ei}}{n_e}Z_if_i\left(\frac{\omega}{k}\right),$ (29.4)

where $ \chi_e$ and $ \chi_i$ are the electron and individual ion susceptibilities and $ n_{ei}$ and $ n_e$ the number of electrons from the i-th ion and the total number of electrons, respectively. $ f_e(\omega/k)$ and $ f_i(\omega/k)$ are the electron and i-th ion one-dimensional Maxwellian velocity distributions for the phase velocity $ \omega/k$:
$\displaystyle f_q(\omega/k)$ $\displaystyle =$ $\displaystyle \sqrt{\frac{m_q}{2\pi k_BT_q}} * \exp(-\frac{m_q(\omega/k)^2}{2k_BT_q}),$ (29.5)

with $ k_B$ the Boltzmann constant and $ m_q$ and $ T_q$ the electron ($ q=e$) and ion ($ q=i$) mass and temperature. Note the two kind of electron-ion correlation parts in the above $ S({\bf k},\omega)$ expression: 1) the first term represents the ion influence on the electron velocity distribution and 2) the second term is the electron influence on the ions velocity distribution. Derivation of the $ S({\bf k},\omega)$ expression is involved and the reader is referred to the literature (Froula et al. 2011, chapters 3 and 5). Since the units of the lhs of Eq.(29.1) are power per radial frequency (i.e. power per rad/s), we see that the units for $ S({\bf k},\omega)$ must be s/rad, which is also seen from Eq.(29.4), where the units of $ k$ are rad/cm and the units for the velocity distribution functions is s/cm and the other quantities are dimensionless. The electron and ion susceptibilites are calculated using derivatives of the plasma dispersion function $ W$:
$\displaystyle \chi_q(k,\omega)$ $\displaystyle =$ $\displaystyle - \frac{1}{2}\left(\frac{\omega_{Pq}}{v_{T_q}k}\right)^2
\frac{\partial W(\xi)}{\partial \xi},$ (29.6)

where again $ q=e,i$ represent the electrons or ions, $ \omega_{Pq}$ is the charge plasma frequency and $ v_{T_q}=\sqrt{k_BT_q/m_q}$ is the RMS thermal velocity of the charge. $ \xi=(\omega/k)/{\bar v}_{T_q}$ is the mean thermal velocity normalized phase velocity of the charge, with $ {\bar v}_{T_q}=\sqrt{2}v_{T_q}$. Details about how to evaluate $ \partial W(\xi)/\partial \xi$ efficiently can again be inferred from Froula et al. 2011.

For higher temperature plasmas, relativistic effects start to get important, but their inclusion into the scattering equation becomes much more involved. In specific cases it is possible to include relativistic effects up to first order in $ v/c$. For example, if the incident Thomson laser is polarized such that its electrical field $ {\bf E}_i$ is perpendicular to the scattering plane and if a polarizer is placed before the detector that only detects scattered fields with electrical field parallel to $ {\bf E}_i$, then it can be shown that Eq.(29.1) needs only be augmented multiplicatively by the relativistic term:

rel.Term $\displaystyle =$ $\displaystyle \left(1 + \frac{2\omega}{\omega_s}\right).$ (29.7)

This option has been added to the Thomson scattering code, with a default of setting this term equal to 1 when no relativistic treatment is wanted. The user must however remember that this relativistic correction applies only under very specific Thomson scattering setups.

After all local spectra contributions have been evaluated, the global contribution to the spectrum for the current laser/detector pair is calculated and added to the overall Thomson spectrum for the detector. Writeout to the Thomson detector file is done after the laser for each detector is no longer active.


29.1.3 Usage

To include the use of the ThomsonScattering unit with ray tracing, the following should be included into the setup line command:  

+ThomsonScatteringWrt thsc_maxPulses=<number> thsc_maxPulseSections=<number> 
thsc_maxLaserBeams=<number> thsc_maxDetectors=<number>
The +ThomsonScatteringWrt is a shortcut that handles all the logistics for properly including the Thomson scattering unit in its ray tracing version. The next four setup variables override default values and it is always recommended to give appropriate values corresponding to the intended application. The ThomsonScattering unit reads all the information it needs to construct the Thomson scattering environment from runtime parameters specified in the flash.par file. Below is the list of runtime parameters that is needed to properly set up the Thomson scattering unit. As the Thomson pulse, laser and detector setup resembles the EnergyDeposition unit pulse and laser setup, it is encouraged to consult Figures 17.5, 17.6 and 17.7. Both the Thomson laser and the Thomson detector rays are created statistically on their respective lens and target areas. Regular grids, as for the lasers of the EnergyDeposition unit, are not supported.

29.1.3.1 Thomson Laser Pulses Runtime Parameters

29.1.3.2 Thomson Laser Beams Runtime Parameters

29.1.3.3 Thomson Detectors Runtime Parameters

29.1.3.4 Thomson Scattering General Runtime Parameters

Figure 29.2: The simple ThomsonScattering unit with no ray tracing directory tree.