원시데이터 수집 시스템
선정목록으로

Conservative finite-difference scheme for the problem of THz pulse interaction with multilevel layer covered by disordered structure based on the density matrix formalism and 1D Maxwell’s equation

관련 필름·전자재료 · (11) 배리어 필름

기본 정보

저자
  1. Vyacheslav A. Trofimov — Faculty of Computational Mathematics and Cybernetics, Lomonosov Moscow State University, Moscow, Russia
  2. Svetlana A. Varentsova — Faculty of Computational Mathematics and Cybernetics, Lomonosov Moscow State University, Moscow, Russia
  3. Irina G. Zakharova — Faculty of Physics, Lomonosov Moscow State University, Moscow, Russia
  4. D.Y. Zagursky — Faculty of Physics, Lomonosov Moscow State University, Moscow, Russia
DOI
10.1371/journal.pone.0201572
저널
PLoS ONE
발행년도
2018
발행기관
Public Library of Science
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1371/journal.pone.0201572
토픽
Semiconductor Quantum Structures and Devices
OpenAlex ID
W2885109013

평가 내용

관련도
관련
사업분야
필름·전자재료 · (11) 배리어 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 배리어 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

On the basis of the Crank-Nicolson method, we develop a conservative finite-difference scheme for investigation of the THz pulse interaction with a multilevel medium, covered by a disordered layered structure, in the framework of the Maxwell-Bloch equations, describing the substance evolution and the electromagnetic field evolution. For this set of the partial differential equations, the conservation laws are derived and proved. We generalize the Bloch invariant with respect to the multilevel medium. The approximation order of the developed finite-difference scheme is investigated and its conservatism property is also proved. To solve the difference equations, which are nonlinear with respect to the electric field strength, we propose an iteration method and its convergence is proved. To increase the computer simulation efficiency, we use the well-known solution of Maxwell's equations in 1D case as artificial boundary condition. It is approximated using Cabaret scheme with the second order of an accuracy. On the basis of developed finite-difference scheme, we investigate the broadband THz pulse interaction with a medium covered by a disordered structure. This problem is of interest for the substance detection and identification. We show that the disordered structure dramatically induces an appearance of the substance false absorption frequencies. We demonstrate also that the spectrum for the transmitted and reflected pulses becomes broader due to the cascade mechanism of the high energy levels excitation of molecules. It leads to the substance emission at the frequencies, which are far from the frequency range for the incident pulse spectrum. Time-dependent spectral intensities at these frequencies are weakly disturbed by the disordered cover and, hence, they can be used for the substance identification.

본문 106,147자

본문 펼치기
~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0201572&domain=pdf&date_stamp=2018-08-02)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0201572&domain=pdf&date_stamp=2018-08-02)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0201572&domain=pdf&date_stamp=2018-08-02)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0201572&domain=pdf&date_stamp=2018-08-02)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0201572&domain=pdf&date_stamp=2018-08-02)</u>~~ OPEN ACCESS Citation: Trofimov VA, Varentsova SA, Zakharova IG, Zagursky DY. (2018) Conservative finite difference scheme for the problem of THz pulse interaction with multilevel layer covered by disordered structure based on the density matrix formalism and 1D Maxwell’s equation. PLoS ONE [13(8): e0201572. https://doi.org/10.1371/journal.](https://doi.org/10.1371/journal.pone.0201572) [pone.0201572](https://doi.org/10.1371/journal.pone.0201572) Editor: Luis Carretero, Universidad Miguel Hernandez de Elche, SPAIN Received: April 25, 2018 Accepted: July 17, 2018 Published: August 2, 2018 Copyright: © 2018 Trofimov et al. This is an open access article distributed under the terms of the [Creative Commons Attribution License, which](http://creativecommons.org/licenses/by/4.0/) permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Data Availability Statement: All relevant data are within the paper. Funding: The investigation was made using support of the Russian Science Foundation (Grant No 14-21-00081) to VAT. Competing interests: The authors have declared that no competing interests exist. RESEARCH ARTICLE # Conservative finite-difference scheme for the problem of THz pulse interaction with multilevel layer covered by disordered structure based on the density matrix formalism and 1D Maxwell’s equation Vyacheslav A. Trofimov <sup>1</sup> *, Svetlana A. Varentsova <sup>1</sup> , Irina G. Zakharova <sup>2</sup> , Dmitry Yu. Zagursky <sup>2</sup> 1 Faculty of Computational Mathematics and Cybernetics, Lomonosov Moscow State University, Moscow, Russia, 2 Faculty of Physics, Lomonosov Moscow State University, Moscow, Russia - vatro@cs.msu.ru ## Abstract On the basis of the Crank-Nicolson method, we develop a conservative finite-difference scheme for investigation of the THz pulse interaction with a multilevel medium, covered by a disordered layered structure, in the framework of the Maxwell-Bloch equations, describing the substance evolution and the electromagnetic field evolution. For this set of the partial dif ferential equations, the conservation laws are derived and proved. We generalize the Bloch invariant with respect to the multilevel medium. The approximation order of the developed finite-difference scheme is investigated and its conservatism property is also proved. To solve the difference equations, which are nonlinear with respect to the electric field strength, we propose an iteration method and its convergence is proved. To increase the computer simulation efficiency, we use the well-known solution of Maxwell’s equations in 1D case as artificial boundary condition. It is approximated using Cabaret scheme with the second order of an accuracy. On the basis of developed finite-difference scheme, we investigate the broadband THz pulse interaction with a medium covered by a disordered structure. This problem is of interest for the substance detection and identification. We show that the disor dered structure dramatically induces an appearance of the substance false absorption fre quencies. We demonstrate also that the spectrum for the transmitted and reflected pulses becomes broader due to the cascade mechanism of the high energy levels excitation of molecules. It leads to the substance emission at the frequencies, which are far from the fre quency range for the incident pulse spectrum. Time-dependent spectral intensities at these frequencies are weakly disturbed by the disordered cover and, hence, they can be used for the substance identification. [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 1 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure 1. Introduction The detection and identification of hazardous chemical, biological and other substances by using the remote sensing is in research focus. One of the ways to achieve this aim is THz TDS because the THz radiation is non-ionizing and most common substances are transparent to it. Moreover, many hazardous substances have spectral fingerprints in the THz range of frequencies [1–10]. As a rule, the substance identification is based on a comparison of the absorption frequencies for a substance under investigation with the corresponding frequencies from a database. This method is used not only for security applications but also for a molecular structure investigation [11–15], nondestructive inspection [16–18], medical application [19], food quality inspection [20]. Currently, nanoscale terahertz spectroscopy is being actively developed as well [21]. Despite the obvious advantages of THz TDS using for the substance detection and identification, there is some shortcoming of its application [22]. Apparently, under real conditions, the factors like opaque packaging, inhomogeneity of the substance surface, atmospheric humidity and others affect the THz spectroscopy results [23–27]. In addition, a substance is usually covered by ordinary materials (paper, clothes or some packaging) [28]. Being made from materials transparent for a THz radiation these covers often possess a microscopic mechanical structure in the sub-millimeter scale of lengths. This leads to cover density fluctuations and also to its thickness variations. Therefore, the dielectric permittivity of such covers is not homogeneous and can be considered as a disordered photonic structure in the THz frequency range. Thus, observing a THz pulse reflected from a neutral material, we can reveal the false absorption frequencies, which are not inherent to this material, and the material may be wrong considered as dangerous one [29–32]. The overcoming of this serious drawback of the THz TDS method mentioned above and its physical mechanism understanding are the challenging problems for developing the real detection systems. Another significant feature of the pulsed THz TDS is the THz pulse broadening after its interaction with a substance. Usually, the spectrum of the THz pulse transmitted through or reflected from a medium contains frequencies, which are, for example, greater than the maximal frequency of the incident pulse spectrum. This effect cannot be explained by multi-photon absorption of the THz radiation, because the THz pulse intensity is usually insufficient for its appearance. Using the computer simulation we have demonstrated a new spectral harmonic generation mechanism due to the absorption of a photon sequence (cascade mechanism), which results in the molecule higher energy levels excitation [32]. This mechanism may be observed in a great number of materials, possessing of vibration or rotation energy levels. We note that a photon sequence absorption belonging to visible frequency range was observed at studying the two-photon luminescence in a semiconductor [33]. It is well-known that the excited molecules relax to the equilibrium states. Therefore, the emission frequencies in the reflected or transmitted signal spectrum appear. The substance emission at high frequencies can be used for the substance identification because a radiation with a shorter wavelength is less affected by the cover material. The computer simulation is based on the Maxwell-Bloch equations [34], [35]. We emphasize that in our knowledge a problem statement under consideration is novel one and has not been investigated earlier. There are, at least, three features, which allow to state this. The first of them is an analysis of the interaction of the THz pulse containing a few cycles with disordered (or ordered) structure. The well-known Transfer Matrix Method for the description of the electromagnetic radiation interaction with the periodic structure is inapplicable in the case under consideration. [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 2 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure The second one is the following. An active medium (i.e. the medium capable of absorbing and emitting the THz waves), which is placed inside the disordered structure, can be considered as an impurity of the periodical structure. In optics, the sizes of such impurities are much less than the sizes of the photonic crystal elements. In our case, the active medium length is comparable with or greater than a length of the disordered structure layers. The third of the mentioned features is the description of the active medium response to the THz pulse action. We describe its characteristics evolution in the framework of a matrix density formalism. Usually, computer simulation of the electromagnetic field interaction with a substance describing in the framework of the Maxwell-Bloch equations is based on a combination of the FDTD method [36] with the step-split method [34], [37]. As we believe, for the first time, the Crank-Nicolson scheme for the time discretization of the Bloch equations was applied for a two-level medium in [38]. However, the Crank-Nicholson scheme does not possess the positiveness property of the density matrix diagonal elements for three and more energy levels. In [39] it was shown that negative values of the energy levels populations may even occur in numerical simulation. In the same paper [39] and later in [40] a step-split method was used for solution of the matrix density elements equations with respect to the multilevel medium. This approach guarantees the positiveness of the density matrix diagonal elements but it leads to the decoupling of the Maxwell-Bloch equations. The latter feature leads to non- preserving the integrals of motion (invariants). Below we derive a conservation law, which is a generalization of the Bloch invariant with respect to the multilevel medium. For computer simulation, we use a finite-difference scheme based on the Crank-Nicolson scheme supplemented by artificial boundary conditions, which approximate the well-known solution of the 1D wave equation [41]. Using the Cabaret scheme [42], we achieve the second order of accuracy for its approximation. Essentially that the proposed finite-difference scheme also possesses the conservativeness property with respect to the derived Bloch invariant and the invariants of the Maxwell’s equations. To realize the finite-difference scheme we apply an iteration process and prove its convergence. Computer simulations show that the positiveness property of the density matrix diagonal elements is satisfied by choosing a mesh time step, which is defined by the problem parameters. This article is organized in the following way. In the Section 2, we state the problem and derive its invariants. In the Section 3, we develop the conservative finite-difference scheme for the MaxwellBloch equations formulated in the previous Section. Since the finite-difference scheme is a nonlinear one, we solve it by using an iterative method. We prove the theorem of the iteration convergence. Finally, in the Section 4 we discuss the computer simulation results for the THz pulses transmitted through (or reflected from) an uncovered medium or a medium covered by disordered structure. Then we discuss the differences in spectra of these pulses and a physical mechanism, which causes such differences. 2. Problem statement Initially, a THz pulse with a few cycles is located in vacuum and falls on an optically active medium (i.e. a medium, capable of electromagnetic field energy absorbing or emitting at specific frequencies). This medium is placed inside a disordered layered structure. Each of layers is characterized by its inherent dielectric permittivity and all layers are transparent for the THz radiation. The latter means that the layers do not possess any absorption frequencies in the [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 3 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure Fig 1. The scheme of the THz pulse interaction with covered substance. The left coordinate axis shows the electric field strength in dimensionless units. The dielectric permittivity of layers is shown on the right axis. The crossed rectangle depicts the active medium. Lines marked <u>as</u> _<u>Erefl</u>_ <u>,</u> _<u>Etrans</u>_ <u>denote coordinates at which the reflected and transmitted THz pulses are measured.</u> [https://doi.org/10.1371/journal.pone.0201572.g001](https://doi.org/10.1371/journal.pone.0201572.g001) THz frequency range. Below, the term “medium” will denote the active medium and the term “cover” or “covering” will denote a disordered layered structure. A scheme of the laser pulse propagation is shown in Fig 1. Several important coordinates are marked in the figure, namely: positions of electric field detectors _Erefl_ and _Etrans_ ; coordinates of the active substance faces _zL_ and _zR_, and coordinates of the cover faces _zc1_ and _zc2_ . The pulse propagates in vacuum, then transmits through the left cover, a medium, and finally, through the right cover, and exits into vacuum to the right. The pulse is partly reflected from various boundaries between layers and from the medium faces too. A certain part of the pulse energy is absorbed by the active medium. Generally speaking, a part of the absorbed energy can be emitted by the medium due to radiative transitions (emission) between excited energy levels. Reflected and transmitted pulses are detected near the left and right boundaries of the computational domain at the sections _Erefl_ and _Etrans_ . As a rule, these pulses may consist of a sequence of the THz sub-pulses. 2.1 Maxwell-Bloch equations We use the Maxwell’s set of equations describing the THz pulse propagation in 1D case: <sup>_@_</sup> _@_ <sup>_<u>E</u>_</sup> _z_ <sup>ðCGSÞ</sup> <sup>_;_</sup> <sup>�</sup> <sup>_@_</sup> _@_ <sup>_<u>B</u>_</sup> _t_ <sup>_@_</sup> _@_ <sup>_<u>B</u>_</sup> _t_ <sup>¼</sup> <sup>_@_</sup> _@_ <sup>_<u>E</u>_</sup> _z_ ð1Þ _@_ <sup>_<u>E</u>_</sup> _z_ <sup>ðSIÞ</sup> <sup>_;_</sup> - <sup>1</sup> _c_ _@B_ _@@Bt_ <sup>¼</sup> <sup>_@_</sup> _@_ <sup>_<u>E</u>_</sup> _z_ _@_ <sup>_<u>H</u>_</sup> _z_ <sup>ðCGSÞ</sup> <sup>_;_</sup> <sup>�</sup> <sup>_@_</sup> _@_ <sup>_<u>D</u>_</sup> _t_ <sup>_@_</sup> _@_ <sup>_<u>D</u>_</sup> _t_ <sup>¼</sup> <sup>_@_</sup> _@_ <sup>_<u>H</u>_</sup> _z_ ð2Þ <sup>_@_</sup> _@_ <sup>_<u>H</u>_</sup> _z_ <sup>ðSIÞ</sup> <sup>_;_</sup> - <sup>1</sup> _c_ _@D_ _@@Dt_ <sup>¼</sup> <sup>_@_</sup> _@_ <sup>_<u>H</u>_</sup> _z_ _D_ ¼ _E_ þ 4p _P_ ðCGSÞ _;_ _D_ ¼ _ε_ 0 _E_ þ _P_ ðSIÞ _;_ _B_ ¼ m _H_ ðCGSÞ _;_ _B_ ¼ m0m _H_ ðSIÞ _;_ ð3Þ [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 4 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure 0 _< t_ - _Lt;_ _Ll_ _< z_ - _Lr;_ ð4Þ together with equations with respect to the matrix density elements (see below). For convenience, we write above the set of equations in both systems of physical units. Here _H_, _E_ are the magnetic field strength and the electric field strength, correspondingly. _B_, _D_ are the magnetic field and electric field induction strength, correspondingly, _z_ and _t_ are the spatial coordinate and time, _c_ = 3�10 <sup>8</sup> m�s <sup>-1</sup> is the light velocity in a vacuum. Parameters _ε0_ and _μ0_ in Eqs (1)–(3) are the permittivity of free space and the magnetic permeability of free space and their values are equal to _ε0 =_ 8.85�10 <sup>−12</sup> F�m <sup>-1</sup>, and _μ0 =_ 4 _π_ �10 <sup>−7</sup> H�m <sup>-1</sup> = 4 _π_ �10 <sup>−7</sup> T�m A <sup>-1</sup>, correspondingly [43]. Below we consider the case of a non-magnetic medium, thus, in Eq (3) the magnetic permeability is equal to _μ =_ 1. _P_ describes the medium polarization, _Lt_ is a time interval during which the electromagnetic field propagation is analyzed. Parameters _Ll_ and _Lr_ (see Fig 1) denote spatial coordinates of the domain beginning and its ending. The total length of the domain is equal to _Lz_ . = _Lr—Ll_ . Coordinates _zR_ and _zL_ mark the positions of the medium boundaries, _Ls_ . = _zR—zL_ is used to denote its length. We consider a TE mode of the THz pulse propagation. The THz pulses reflected from and transmitted through the medium with covering are computed for a number of random realizations for the dielectric permittivities and then the result is averaged. This procedure is usually applied in physical experiments also to suppress a random fluctuation influence on the measured THz pulse characteristics. Let us notice that, each of two covering structures contains _Nl_ layers with the layer thickness _hl_ (see Fig 1). Dielectric permittivities at each of the layers we denote as _εj_, _εj_ <sup>0</sup>, _j_ = [1, _Nl_ ], for left and right covering, correspondingly. Obviously, in vacuum (z 2 [ _Ll_, _zc_ 1] [ [ _zc_ 2, _LR_ ]) the electric field induction is equal to the electric field strength: _D = E_ . In the cover layers (z 2 [ _zc_ 1, _zL_ ] [ [ _zR_, _zc_ 2]) the polarization is assumed to be proportional to the electric field strength and the Eq (3) is replaced by the following formula: _D_ ð _z; t_ Þ ¼ _ε_ ð _z_ Þ _E_ ð _z; t_ Þ _;_ ð5Þ where the dielectric permittivity _ε_ ( _z_ ) for each of the layers varies randomly in the range _εl_ = [ _ε_ min, _ε_ max] and it is uniformly distributed. To describe the medium polarization (z 2 [ _zL_, _zR_ ]) we use the matrix density formalism. In this case the medium is described by the following set of equations: <u>r</u> _<u>mn</u>_ ¼ �ðg _mn_ þ _i_ - _mn_ Þr _mn_ þ <sup>_<u>i</u>_</sup> _@t_ ℏ _<u>@</u>_ <u>r</u> _<u>mn</u>_ <sup>_<u>i</u>_</sup> ℏ <sup>_E_</sup> X _N_ ð _dmq_ r _qn_ - r _mqdqn_ Þ _;_ ð6Þ _q_ ¼1 _<u>@</u>_ <u>r</u> _<u>mm</u>_ ¼ � _@t_ X _N_ _q_ ¼1 ð _Wmq_ r _mm_ - _Wqm_ r _qq_ Þ þ <sup>_<u>i</u>_</sup> ℏ X _N_ ð _dmq_ r _qm_ - r _mqdqm_ Þ _;_ ð7Þ _q_ ¼1 <sup>_<u>i</u>_</sup> ℏ <sup>_E_</sup> X _N_ ð _dmn_ r _nm_ Þ þ w _E;_ _zL_ _< z_ _< zR;_ 0 _< t_ - _Lt;_ _n; m_ ¼ 1 _; N_ _:_ ð8Þ _m_ ¼1 _P_ ¼ _M_ X _N_ _n_ ¼1 Here, _ρmn_ = _ρmn_ ( _z_, _t_ ) is the element of the density matrix describing the state of a molecule, which possesses _N_ energy levels, in a time moment _t_ and at the medium section _z_ . Diagonal elements of the matrix _ρmn_ describe the number of molecules at the energy level _m_ . These [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 5 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure X _N_ elements obey the condition r _mm_ ¼ 1 and obviously they are non-negative. The off-diago _m_ ¼1 nal elements _ρmn_ are related to the medium polarization corresponding to a transition between _n_ and _m_ energy levels. _γmn_, _ωmn_ and _dmn_ are the relaxation rate of non-diagonal elements, the transition frequency, and the dipole moment. They are associated with a transition from energy level _m_ to _n_, correspondingly, _Wmn_ is the population decay rate. Parameter _M_ is the density of “active” molecules in the medium, _χ_ corresponds to the non-resonant linear electric susceptibility of the substance, _ћ_ is the reduced Plank constant. It should be noted that the Eqs (6)–(8) describe both linear and nonlinear interaction of the electromagnetic field with the multilevel medium in the dipole approximation. The term X _N_ _P_ ¼ _M_ X _N_ _n_ ¼1 _m_ ¼1 <sup>ð</sup> <sup>_dmn_</sup> <sup>r</sup> <sup>_nm_</sup> <sup>Þ in the expression for the medium polarization (8) corresponds</sup> to a resonant or near-resonant response of the medium to the THz pulse action and causes the electromagnetic field energy absorption and emission of the medium. The second term _χE_ in the same equation describes a linear non-resonant polarization of the medium arising because of the pulse interaction with the medium which has transition frequencies distant from the pulse carrier frequency. This term is responsible for the Fresnel reflection from the medium boundaries and plays the key role in the formation of reflected pulses. The initial condition for the electromagnetic field is as follows: ! 2 _E_ ð _z; t_ ¼ 0Þ ¼ _E_ 0 � exp <sup>�ð</sup> <sup>_<u>z</u>_</sup> <sup>�</sup> <sup>_<u>zp</u>_</sup> <sup>Þ</sup> _a_ <sup>2</sup> _z_ _z_ - cos ~~ð~~ <sup>2pn</sup> <sup>_<u>p</u>_</sup> �ð _z_ - _zp_ ÞÞ _;_ _c_ - cos ~~ð~~ <sup>2pn</sup> <sup>_<u>p</u>_</sup> �ð _z_ - _zp_ ÞÞ _:_ _c_ ð9Þ 2 ! _H_ ð _z; t_ ¼ 0Þ ¼ _H_ 0 � exp <sup>�ð</sup> <sup>_<u>z</u>_</sup> <sup>�</sup> <sup>_<u>zp</u>_</sup> <sup>Þ</sup> _a_ <sup>2</sup> _z_ _z_ Here _E0_ is the incident electric field strength amplitude, _H0_ is the incident magnetic field strength amplitude, _zp_ the incident pulse center position, _νp_ and _ωp_ = 2 _πνp_ are the carrier and angular pulse frequency, _az_ is the pulse length in space, _τp = az/c_ is the pulse duration. The amplitudes for _E_ and _H_ are connected by well-known formulas (see below) at the electromagnetic wave propagation in a linear medium. We suppose that the medium is in the ground state until an action of the THz pulse: r11 ¼ 1 _;_ r _mn_ ¼ 0 _;_ _m_ 6¼ 1 _;_ _n_ 6¼ 1 _:_ ð10Þ Obviously, this condition corresponds to the absolute zero value of temperature. Nevertheless, for the investigation of the cascade mechanism manifestation we consider “pure conditions”. Under room temperature, the effect will be still pronounced but its interpretation is difficult because a number of possible energy level transitions take place at the electromagnetic pulse action on the medium. 2.2 Dimensionless equations For computer simulation, it is useful to transform the Eqs (1)–(10) to a dimensionless form. We use the following normalization, where the index “dim” means dimensionless variables: _z_ <sup>dim</sup> ¼ _z_ - t0 � _c;_ _t_ <sup>dim</sup> ¼ _t_ - t0 _;_ t <sup>dim</sup> _p_ <sup>dim</sup> _p_ ¼ <sup><u>1</u></sup> <sup>dim</sup> _p_ ¼ t0 � t _p;_ - <sup>dim</sup> _p_ t0 - 2pn _p;_ ð11Þ <u>ℏ</u> _dmn_ <sup>dim</sup> <sup>¼</sup> _E_ 0t0 - _dmn;_ - <sup>dim</sup> _mn_ <sup>¼</sup> <sup><u>1</u></sup> t0 - - _mn;_ g <sup>dim</sup> _mn_ <sup>¼</sup> <sup><u>1</u></sup> t0 - g _mn;_ _Wmn_ <sup>dim</sup> <sup>¼</sup> <sup><u>1</u></sup> t0 - _Wmn;_ ð12Þ [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 6 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure _L_ <sup>dim</sup> _l_ <sup>dim</sup> _l_ ¼ _Ll=c_ t0 _;_ _L_ <sup>dim</sup> _r_ <sup>dim</sup> _r_ ¼ _Lr=c_ t0 _;_ _L_ <sup>dim</sup> _t_ <sup>dim</sup> _t_ ¼ _Lt=c_ t0 _:_ ð13Þ Here _τ0_ is chosen to be equal to 10 <sup>−12</sup> s as a unit of time measurement. This value corresponds approximately to 0.3 mm. We also introduce the following dimensionless coefficient: <sup>_<u>M</u>_</sup> <sup><u>ℏ</u></sup> ¼ <sup><u>½</u></sup> <sup>_<u>cm</u>_</sup> <sup>�</sup> <sup>3�½</sup> <sup>_<u>cm</u>_</sup> <sup>2</sup> <sup>_<u>g</u>_</sup> <sup>1</sup> <sup>_<u>s</u>_</sup> <sup>�</sup> <sup>1�</sup> 0 <sup>2t</sup> 0 ½ _s_ <sup>1</sup> �½ _cm_ <sup>�</sup> <sup>0</sup> <sup>_:_</sup> <sup>5</sup> _g_ <sup>0</sup> <sup>_:_</sup> <sup>5</sup> _s_ <sup>�</sup> <sup>1</sup> k ¼ <sup>_<u>M</u>_</sup> <sup><u>ℏ</u></sup> ½ _s_ <sup>1</sup> �½ _cm_ <sup>�</sup> <sup>0</sup> <sup>_:_</sup> <sup>5</sup> _g_ <sup>0</sup> <sup>_:_</sup> <sup>5</sup> _s_ <sup>�</sup> <sup>1</sup> 2 <sup>ðCGSÞ</sup> <sup>_:_</sup> ð14Þ _E_ 0 <sup>2</sup> Note that in the SI base units, this coefficient has the form [44]: <u>ℏ</u> ½ _<u>m</u>_ <sup>�</sup> <sup>3</sup> �½ _<u>m</u>_ <sup>2</sup> _<u>kg</u>_ <sup>1</sup> _<u>s</u>_ <sup>�</sup> <sup>1</sup> ¼ 0 <sup>2t</sup> 0 ½ _m_ <sup>�</sup> <sup>3</sup> _kg_ <sup>�</sup> <sup>1</sup> _s_ <sup>4</sup> _A_ <sup>2</sup> �½ _m_ <sup>1</sup> _kg_ <sup>1</sup> _s_ <sup>�</sup> <sup>3</sup> _A_ <sup>�</sup> <sup>1</sup> _<u>M</u>_ <u>ℏ</u> k ¼ _ε_ 0 _E_ 0 <sup>2t</sup> _:_ For the dimensionless values of _E_, _H_ and _P_ 2½ _s_ 1� we write the following relations: _E_ <sup>dim</sup> ¼ _E_ - _E_ 0 _;_ _H_ <sup>dim</sup> ¼ _H_ - _H_ 0 _;_ _P_ <sup>dim</sup> ¼ _P_ - _E_ 0 _:_ ð15Þ Using Eqs (11)–(15), Eqs (1)–(10) can be rewritten in the dimensionless form: _<u>@H</u>_ _<u>@@Ht</u>_ <sup>¼ �</sup> <sup>_<u>@</u>_</sup> _@_ <sup>_<u>E</u>_</sup> _z_ ð16Þ <sup>_<u>@</u>_</sup> _@_ <sup>_<u>E</u>_</sup> _z_ <sup>_;_</sup> <sup>_Ll_</sup> <sup>_< z_</sup> <sup>�</sup> <sup>_Lr;_</sup> _<u>@D</u>_ _<u>@@Dt</u>_ <sup>¼ �</sup> <sup>_<u>@</u>_</sup> _@_ <sup>_<u>H</u>_</sup> _z_ ð17Þ <sup>_<u>@</u>_</sup> _@_ <sup>_<u>H</u>_</sup> _z_ <sup>_;_</sup> <sup>_Ll_</sup> <sup>_< z_</sup> <sup>�</sup> <sup>_Lr;_</sup> _D_ ¼ _E;_ _z_ 2 ½ _Ll; zc_ 1�[ ½ _zc_ 2 _; LR_ - _;_ ð18Þ _D_ ð _z; t_ Þ ¼ _ε_ ð _z; t_ Þ � _E_ ð _z; t_ Þ _;_ _z_ 2 ½ _zc_ 1 _; zL_ �[ ½ _zR; zc_ 2� _;_ ð19Þ _D_ ¼ _E_ þ 4p _P;_ ð20Þ _<u>@</u>_ <u>r</u> _<u>mn</u>_ ¼ �ðg _mn_ þ _i_ - _mn_ Þr _mn_ þ _iE_ _@t_ X _N_ ð _dmq_ r _qn_ - r _mqdqn_ Þ _;_ ð21Þ _q_ ¼1 X _N_ _<u>@</u>_ <u>r</u> _<u>mm</u>_ ¼ � _@t_ X _N_ ð _Wmq_ r _mm_ - _Wqm_ r _qq_ Þ þ _iE_ _q_ ¼1 _q_ ¼1 ð _dmq_ r _qm_ - r _mqdqm_ Þ _;_ ð22Þ X _N_ _P_ ¼ k _n_ ¼1 X _N_ ð _dmn_ r _nm_ Þ þ w _E;_ ð23Þ _m_ ¼1 _zL_ - _z_ _< zR;_ 0 _< t_ - _Lt;_ _n; m_ ¼ 1 _; N_ _;_ ð24Þ _E_ ð _z; t_ ¼ 0Þ ¼ expð�ðð _z_ - _zp_ Þ _=_ t _p_ Þ2Þ � cosðo �ð _z_ - _zp_ ÞÞ _;_ ð25Þ _H_ ð _z; t_ ¼ 0Þ ¼ expð�ðð _z_ - _zp_ Þ _=_ t _p_ Þ2Þ � cosðo �ð _z_ - _zp_ ÞÞ _;_ ð26Þ r11ð _z; t_ ¼ 0Þ ¼ 1 _;_ r _mn_ ð _z; t_ ¼ 0Þ ¼ 0 _;_ _m_ 6¼ 1 _;_ _n_ 6¼ 1 _;_ _zL_ - _z_ _< zR:_ ð27Þ For brevity, an index "dim" is omitted below. [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 7 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure 2.3 Invariants 2.3.1 Maxwell’s equations invariants. To verify the computer simulation accuracy we follow the problem invariants, which can be easily obtained by integrating Eqs (16) and (17) along _z_ and _t_ coordinates. After the integration, the following invariants can be written: ð <sup>_Lr_</sup> _D_ ð _z; t_ Þ _dz_ ¼ _I_ 1 � _Ll_ ð <sup>_Lr_</sup> _H_ ð _z; t_ Þ _dz_ ¼ _I_ 2 � _Ll_ ð <sup>_t_</sup> ð _H_ ð _Lr; t_ <sup>0</sup> Þ � _H_ ð _Ll; t_ <sup>0</sup> ÞÞ _dt_ <sup>0</sup> _;_ ð28Þ 0 ð <sup>_t_</sup> ð _E_ ð _Ll; t_ <sup>0</sup> Þ � _E_ ð _Lr; t_ <sup>0</sup> ÞÞ _dt_ <sup>0</sup> _:_ ð29Þ 0 Here, _I1_ and _I2_ are the constants determined by the incident pulse parameters. If the electromagnetic field does not reach the computational domain boundaries, the invariants (28) and (29) are transformed: ð <sup>_Lr_</sup> _D_ ð _z; t_ Þ _dz_ ¼ _I_ 1 ¼ _const;_ ð30Þ _Ll_ ð <sup>_Lr_</sup> _H_ ð _z; t_ Þ _dz_ ¼ _I_ 2 ¼ _const:_ ð31Þ _Ll_ 2.3.2 Bloch invariant. Theorem 2.1. _Provided relaxation rates Wmm and γmn are negligible_, _the density matrix evolution described by_ Eqs (21) and (22) _obeys the following invariant_ : X _N_ _m_ ¼2 X _m_ - 1 _n_ ¼1 X _N_ ðr _mm_ ð _z; t_ Þ � r _nn_ ð _z; t_ ÞÞ2 þ 2 _N_ _m_ ¼2 X _m_ - 1 _n_ ¼1 jr _mn_ ð _z; t_ Þj 2 ¼ _const_ ð _z_ Þ _:_ ð32Þ Proof. Firstly, let us introduce auxiliary definitions: O _mn_ ¼ �ðg _mn_ þ _i_ - _mn_ Þ _;_ _m; n_ ¼ 1 _; N_ _;_ ð33Þ the purpose of which is to reduce the complexity of the forthcoming operations. Although we derive the invariant supposing the influence of relaxation determined by _γmn_ negligible, it is still present in our consideration in order to demonstrate its role in invariant deterioration. Secondly, let us remind that the matrices _d_, _ρ_ and and O are Hermitian ones: _dmn_ ¼ _d_ <sup>�</sup> _nm_ <sup>�</sup> <sup>_;_</sup> <sup>r</sup> _mn_ <sup>¼ r�</sup> <sup>�</sup> _nm_ <sup>_;_</sup> <sup>O</sup> _mn_ <sup>¼ O�</sup> <sup>�</sup> _nm_ <sup>_;_</sup> <sup>_m; n_</sup> <sup>¼ 1</sup> <sup>_; N_</sup> <sup>_:_</sup> ð34Þ Note here, that O _mm_ = 0, O _mn_ + O _nm_ = 2 _γmn_, because the matrices _ω_ and _γ_ are antisymmetric and symmetric real-valued matrices correspondingly, and the main diagonal elements of matrix _γ_ is equal to zero: - _mn_ ¼ � - _nm;_ g _mn_ ¼ g _nm;_ g _mm_ ¼ 0 _;_ _m; n_ ¼ 1 _; N_ _:_ ð35Þ [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 8 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure Using theses notations, Eqs (6) and (7) can be re-written in the following form: _@_ r _<u>mn</u>_ ¼ O _mn_ r _mn_ þ _iE_ _@t_ X _N_ ð _dmq_ r _qn_ - _dqn_ r _mq_ Þ _;_ _m; n_ ¼ 1 _; N_ _:_ ð36Þ _q_ ¼1 Let us further transform Eq (36) separating the terms in the sum, which contain diagonal and off-diagonal elements: _<u>@</u>_ <u>r</u> _<u>mn</u>_ ¼ O _mn_ r _mn_ þ c _mn_ þ _iE_ ðð _dmm_ - _dnn_ Þr _mn_ - _dmn_ d _mn_ Þ _;_ _m; n_ ¼ 1 _; N_ _:_ ð37Þ _@t_ For brevity, we introduced above additional notations: X _N_ c _mn_ ¼ _iE_ ð _dmq_ r _qn_ - _dqm_ r _nq_ Þ _;_ d _mn_ ¼ r _mm_ - r _nn;_ _m; n_ ¼ 1 _; N_ _;_ ð38Þ _q_ ¼1 _q_ 6¼ _m;n_ where _δmn = -δnm_ is the difference of the energy levels populations. Now, we use well-known formula and Eq (35) to obtain the time derivative for the squared matrix elements, which are complex values: _<u>mn</u>_ <sup>�</sup> <sup><u>r</u></sup> _<u>mn</u>_ <sup><u>Þ</u></sup> <u>r</u> _<u>mn</u>_ <u>j2</u> ¼ <sup>_<u>@</u>_</sup> <sup><u>ðr�</u></sup> _@t_ _<u>@</u>_ <u>jr</u> _<u>mn</u>_ <u>j</u> 2 _<u>mn</u>_ <sup><u>r</u></sup> _<u>mn</u>_ <sup><u>Þ</u></sup> <sup>�</sup> ¼ r <sup>�</sup> _@t_ <sup>�</sup> _mn_ <sup>r_</sup> _mn_ <sup>þ</sup> <sup>r_</sup> <sup>�</sup> _mn_ <sup>�</sup> <sup>r</sup> _mn_ <sup>¼ r</sup> _nm_ <sup>r_</sup> _mn_ <sup>þ</sup> <sup>r_</sup> _nm_ <sup>r</sup> _mn_ <sup>_;_</sup> <sup>_m; n_</sup> <sup>¼ 1</sup> <sup>_; N_</sup> <sup>_:_</sup> ð39Þ Thus, multiplying Eq (37) by r <sup>�</sup> _mn_ <sup>and summing the result with its complex conjugate, and</sup> taking into account Eq (39), we obtain the following expression: _<u>@</u>_ <u>jr</u> _<u>mn</u>_ <u>j</u> 2 ¼ ðO _mn_ þ O _nm_ Þr _mn_ r _nm_ þ c _mn_ r _nm_ þ c _nm_ r _mn_ þ _iE_ ðð _dmm_ - _dnn_ Þþ _@t_ ð40Þ þð _dnn_ - _dmm_ ÞÞr _mn_ r _nm_ - _iE_ ð _dmn_ d _mn_ r _nm_ þ _dnm_ d _nm_ r _mn_ Þ ¼ ¼ � 2g _mn_ jr _mn_ j 2 þ c _mn_ r _nm_ þ c _nm_ r _mn_ þ _φmn;_ _m; n_ ¼ 1 _; N_ _;_ Where _φmn_ ¼ � _iE_ ð _dmn_ d _mn_ r _nm_ þ _dnm_ d _nm_ r _mn_ Þ _;_ _m; n_ ¼ 1 _; N_ _:_ ð41Þ It is now seen from Eq (40) that the non-zero relaxation ( _γmn_ 6¼0) causes exponential decay of each of terms in the second sum in the formula (32). Therefore, to derive the invariant, we assume below that _γmn =_ 0. In general case, one can write a law of density matrix elements decaying. Next, let us construct evolution equations for the squared population differences between two energy levels _δmn_ . After trivial transformations, it can be obtained from Eq (39) in the following form: _<u>@</u>_ <u>d</u> _<u>mn</u>_ 2d _mn_ <u>d</u> _<u>mn</u>_ ¼ <sup>_<u>@</u>_</sup> <sup><u>d</u></sup> <sup>_<u>mn</u>_</sup> _@t_ _@t_ <sup>_<u>mn</u>_</sup> ¼ 2d _mn_ _@t_ 2 X _N_ _q_ ¼1 _q_ 6¼ _m;n_ ð _dmq_ r _qm_ - _dqm_ r _mq_ - _dnq_ r _qn_ þ _dqn_ r _nq_ Þ � 4 _φmn;_ _m; n_ ¼ 1 _; N_ _:_ ð42Þ [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 9 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure Now, let us perform the summation of Eqs (40) at zero relaxation ( _γmn =_ 0) using Eq (38) and also the summation of Eq (42) for all the pairs of indices _m_ and _n_ such that 1� _n<m_ - _N_ : X _N_ _m_ ¼2 X _m_ - 1 _n_ ¼1 ð _dmq_ r _qn_ r _nm_ - _dqn_ r _mq_ r _nm_ þ _dnq_ r _qm_ r _mn_ - _dqm_ r _nq_ r _mn_ Þ þ _φmn_ Þ _;_ ð43Þ 1 2 _@_ jr _<u>mn</u>_ j2 ¼ _@t_ X _N_ _m_ ¼2 0 X _m_ - 1 ð _iE_ _n_ ¼1 X _N_ _q_ 6¼ _m;n_ _q_ ¼1 X _N_ _m_ ¼2 X _m_ - 1 _n_ ¼1 X _N_ 2d _mn_ _q_ 6¼ _m;n_ _q_ ¼1 ð _dmq_ r _qm_ - _dqm_ r _mq_ - _dnq_ r _qn_ þ _dqn_ r _nq_ Þ � 4 _φmn_ X _N_ B @2d _mn_ 2 _@_ d _<u>mn</u>_ C A _;_ _m; n_ ¼ 1 _; N_ _:_ ð44Þ ¼ _@t_ X _N_ _m_ ¼2 X _m_ - 1 _n_ ¼1 We chose such summation limits using the analogy with the derivation of the Bloch invariant in the case of two energy levels medium and keep the time derivatives as separate sum for clearness of further transformations. X _N_ X _m_ - 1 Let us notice that the sum contains all combinations of three distinct integer _m_ ¼2 _n_ ¼1 X _N_ _q_ 6¼ _m;n_ _q_ ¼1 numbers in the range 1 _; N_ . In combinatorics, the term “combination” means “a way to choose _k_ distinct elements from a set of _l_ elements without regard to the order of selection. And word “triple” below will be used to denote “a combination of three elements from the range 1 _; N_ ”. For each trio of distinct numbers, we can assign names _a_, _b_, _c_ to them in such a way so that _a<b<c_ . Let us now examine one such trios that is spanned according to the sum limits. There exists only three possible ways to assign numbers _a_, _b_, _c_ to indices _m_, _n_, _q_ . The possible assignments are listed in the Table 1. Now let us examine the terms in Eq (43) related to the specific trio _a_, _b_, _c_ : X _N_ X _m_ - 1 _@_ jr _<u>mn</u>_ j 2 X _N_ X _m_ - 1 _φmn_ þ _m_ ¼2 _m_ ¼2 _n_ ¼1 X _N_ ¼ _@t_ _n_ ¼1 þ X _m_ - 1 X _N_ X _m_ - 1 _dmq_ r _qn_ r _nm_ - _dqn_ r _mq_ r _nm_ þ _dnq_ r _qm_ r _mn_ - _dqm_ r _nq_ r _mn_ þ _iE_ _m_ ¼2 _n_ ¼1 _q_ 6¼ _m;n_ _q_ ¼1 ð45Þ _m; n; q_ 6¼ _b; a; c_ ; _m; n; q_ 6¼ _c; a; b_ ; _m; n; q_ 6¼ _c; b; a_ þ _iE_ ð _dbc_ r _ca_ r _ab_ - _dca_ r _bc_ r _ab_ þ _dac_ r _cb_ r _ba_ - _dcb_ r _ac_ r _ba_ Þþ þ _iE_ ð _dcb_ r _ba_ r _ac_ - _dba_ r _cb_ r _ac_ þ _dab_ r _bc_ r _ca_ - _dbc_ r _ab_ r _ca_ Þþ þ _iE_ ð _dca_ r _ab_ r _bc_ - _dab_ r _ca_ r _bc_ þ _dba_ r _ac_ r _cb_ - _dac_ r _ba_ r _cb_ Þ _;_ _m; n_ ¼ 1 _; N_ _:_ The last three terms form the only possible set described by a particular combination of three numbers. These three terms cancel out each other for any arbitrary combination of numbers and the second sum in Eq (45) contains all such combinations. Thus, the second term in Eq (45) is equal to zero as well. Hence, the all-pairs sum of the squared off-diagonal elements is equal to: X _N_ _m_ ¼2 X _m_ - 1 _n_ ¼1 X _m_ - 1 _n_ ¼1 _@_ jr _<u>mn</u>_ j 2 ¼ _@t_ X _N_ _m_ ¼2 _φmn:_ ð46Þ [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 10 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure Table 1. Possible assignments of specific values _a_ , _b_ , _c_ to indices _m_ , _n_ , _q_ . _<u>m</u>_ _<u>n</u>_ _<u>q</u>_ _<u>b</u>_ _<u>a</u>_ _<u>c</u>_ _<u>c</u>_ _<u>a</u>_ _<u>b</u>_ _<u>c</u>_ _<u>b</u>_ _<u>a</u>_ [https://doi.org/10.1371/journal.pone.0201572.t001](https://doi.org/10.1371/journal.pone.0201572.t001) Now, let us perform the same analysis for the population differences: X _N_ X _m_ - 1 _@_ d _<u>mn</u>_ 2 2 X _N_ X _m_ - 1 _m_ ¼2 _n_ ¼1 ¼ � 4 _@t_ _m_ ¼2 _φmn_ þ _n_ ¼1 X _N_ X _N_ X _m_ - 1 þ2 _iE_ ð _dmq_ r _qm_ d _mn_ - _dqm_ r _mq_ d _mn_ þ _dnq_ r _qn_ d _mn_ - _dqn_ r _nq_ d _mn_ Þþ _m_ ¼2 _n_ ¼1 _q_ 6¼ _m;n_ _q_ ¼1 _m; n; q_ 6¼ _b; a; c_ ; _m; n; q_ 6¼ _c; a; b_ ; _m; n; q_ 6¼ _c; b; a_ þ2 _iE_ ð _dbc_ r _cb_ d _ba_ - _dcb_ r _bc_ d _ba_ þ _dac_ r _ca_ d _ba_ - _dca_ r _ac_ d _ba_ Þþ þ2 _iE_ ð _dcb_ r _bc_ d _ca_ - _dbc_ r _cb_ d _ca_ þ _dab_ r _ba_ d _ca_ - _dba_ r _ab_ d _ca_ Þþ þ2 _iE_ ð _dca_ r _ac_ d _cb_ - _dac_ r _ca_ d _cb_ þ _dba_ r _ab_ d _cb_ - _dab_ r _ba_ d _cb_ Þ _:_ Here it is important that definition of _δmn_ . Eq (38) provides that: ð47Þ d _ab_ þ d _bc_ ¼ d _ac:_ ð48Þ Taking into account Eq (48) along with the definition (41), the Eq (47) can be transformed into: X _N_ X _m_ - 1 _<u>@</u>_ <u>d</u> _<u>mn</u>_ 2 2 X _N_ _m_ ¼2 _n_ ¼1 ¼ � 4 _@t_ _m_ ¼2 X _m_ - 1 _φmn_ þ _n_ ¼1 X _m_ - 1 X _N_ X _m_ - 1 þ2 _iE_ X _N_ _m_ ¼2 ð _dmq_ r _qm_ d _mn_ - _dqm_ r _mq_ d _mn_ þ _dnq_ r _qn_ d _mn_ - _dqn_ r _nq_ d _mn_ Þ � 2ð _φba_ þ _φca_ þ _φcb_ Þ _:_ ð49Þ _n_ ¼1 _q_ 6¼ _m;n_ _q_ ¼1 _m; n; q_ 6¼ _b; a; c_ ; _m; n; q_ 6¼ _c; a; b_ ; _m; n; q_ 6¼ _c; b; a_ We see that our analysis demonstrates the appearance of an additional term −2( _φba_ + _φca_ + _φcb_ ) in Eq (49), which contains _φmn_ indexed by all three possible two number combinations in - - _N_ of various triples that the second term contains, in these com _N_ the triple _a_, _b_, _c_ . There are 3 binations of three elements each possible combination of two elements is repeated _N-_ 2 times in total. So, _φmn_ associated with each particular pair of indices appears in the sum _N-_ 2 times as well and Eq (49) can be transformed into: X _N_ _m_ ¼2 X _m_ - 1 _n_ ¼1 _m_ ¼2 X _N_ _φmn_ - 2ð _N_ - 2Þ _m_ ¼2 X _m_ - 1 _n_ ¼1 2 X _N_ _<u>@</u>_ <u>d</u> _<u>mn</u>_ ¼ � 4 _@t_ _φmn;_ ð50Þ X _m_ - 1 _n_ ¼1 [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 11 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure which is simplified further: X _N_ _m_ ¼2 X _m_ - 1 _n_ ¼1 X _m_ - 1 _n_ ¼1 _@_ d _<u>mn</u>_ 2 ¼ � 2 _N_ _@t_ X _N_ _m_ ¼2 _φmn:_ ð51Þ Now it is evident, that we can obtain the required invariant in time (32) by multiplying Eq (46) by 2 _N_ and summing it with Eq (51). 3. Finite-difference scheme To solve Eqs (16)–(27), we use a combination of the well-known Yee’s scheme [36], [45] for Maxwell’s equations and a Crank-Nicolson scheme for the equations with respect to the density matrix with an iteration process. Therefore, to realize the positiveness property of the density matrix diagonal elements we use a sufficiently small mesh steps in computer simulation. 3.1 Approximation of the equations The model (16)–(27) is approximated on two offset grids O = _ωz_ × _ωt_ and O <sup>~</sup> ¼ o~ _z_ - o~ _t_ in the domain _G_ = [0, _Lt_ ] × [ _Ll_, _Lr_ ]. - _tl_ ¼ _l_ - t _;_ _l_ ¼ 0 _; Nt_ _;_ t ¼ <sup>_<u>Lt</u>_</sup> _;_ ð52Þ - _t_ ¼ _tl_ ¼ _l_ - t _;_ _l_ ¼ 0 _; Nt_ _;_ t ¼ <sup>_<u>Lt</u>_</sup> _Nt_ - _tl_ þ0 _:_ 5 ¼ ð _l_ þ 0 _:_ 5Þ � t _;_ _l_ ¼ 0 _; Nt_ - 1 _;_ t ¼ <sup>_<u>Lt</u>_</sup> _;_ ð53Þ o~ _t_ ¼ _tl_ þ0 _:_ 5 ¼ ð _l_ þ 0 _:_ 5Þ � t _;_ _l_ ¼ 0 _; Nt_ - 1 _;_ t ¼ <sup>_<u>Lt</u>_</sup> _Nt_ - _zj_ ¼ _j_ - _h_ - _Ll;_ _j_ ¼ 0 _; Nz_ _;_ _h_ ¼ <sup>_<u>Lz</u>_</sup> _;_ ð54Þ - _z_ ¼ _zj_ ¼ _j_ - _h_ - _Ll;_ _j_ ¼ 0 _; Nz_ _;_ _h_ ¼ <sup>_<u>Lz</u>_</sup> _Nz_ - _zj_ þ0 _:_ 5 ¼ ð _j_ þ 0 _:_ 5Þ � _h_ - _Ll;_ _j_ ¼ 0 _; Nz_ - 1 _;_ _h_ ¼ <sup>_<u>Lz</u>_</sup> _:_ ð55Þ o~ _z_ ¼ _zj_ þ0 _:_ 5 ¼ ð _j_ þ 0 _:_ 5Þ � _h_ - _Ll;_ _j_ ¼ 0 _; Nz_ - 1 _;_ _h_ ¼ <sup>_<u>Lz</u>_</sup> _Nz_ Here _Nz_ and _Nt_ are numbers of nodes along spatial coordinate and time, correspondingly. Let us also introduce the following notations for nodes: _jp_ ¼ ½ð _zp_ - _Ll_ Þ _=h_ - _;_ _jc_ 1 ¼ ½ð _zc_ 1 � _Ll_ Þ _=h_ - _;_ _jc_ 2 ¼ ½ð _zc_ 2 � _Ll_ Þ _=h_ - _:_ ð56Þ _jL_ ¼ ½ð _zL_ - _Ll_ Þ _=h_ - _;_ _jR_ ¼ ½ð _zR_ - _Ll_ Þ _=h_ - _;_ _nl_ ¼ ½ _hl=hz_ - _;_ ð57Þ which correspond to the incident pulse centre coordinate; the coordinates of the disordered structure beginning and ending and coordinates of the medium beginning and ending and the number of nodes inside single cover layer, correspondingly (see Fig 1). The square brackets in Eqs (56) and (57) mean the integer part of the fraction. (We always use parameters such that these indices are integer without rounding.) [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 12 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure The mesh function _ε_ ( _zj_ ) for the dielectric permittivity is defined on the grid _ωz_ : _ε_ ð _zj_ Þ ¼ 8 >>>>>>>>>>>>>>>< _εε_ ~ _J;J;_ _j_ ¼ ð _j_ ¼ ð _jcj_ 1 _R_ þ ð þ ð _JJ_ - � ð111ÞÞ þ _nnll_ þ þ _εJc_ 1 11ÞÞÞ _=;;_ 2ð _;_ ð _jjRcj_ 1 þ ¼ þ _J j J_ - _c_ �1 _;nnl_ - _l_ - 11ÞÞ _;;_ _JJ_ ¼¼ 1 1 _;; N Nl_ _l;;_ >>>>>>>>>>>>>>>: ðð _ε_ ~ _εJJ_ þþ ~ _εεJJ_ þþ11ÞÞÞ _==_ 22 _;;_ _j_ ¼ _j_ ¼ _j jc_ 1 _R_ þ þ _J J_ - � _nnll;;_ _JJ_ ¼¼ 1 1 _;; N Nl_ - _l_ - 11 _;;_ ð _ε_ ~ _Jc_ 2 þ 1Þ _=_ 2 _;_ _j_ ¼ _jc_ 2 _:_ ð58Þ We note that the dielectric permittivity is defined in the same nodes as the electric field induction and electric field strength. Mesh function for the magnetic field strength is defined on the grid O <sup>~</sup> : _H_ ð _zj_ þ0 _:_ 5 _; tl_ þ0 _:_ 5Þ. The mesh functions for the electric field strength and its induction as well as for the mesh functions for density matrix elements and medium polarization are defined on the grid O: _D_ ( _zj_, _tl_ ), _E_ ( _zj_, _tl_ ), _ρmn_ ( _zj_, _ti_ ), _P_ ( _zj_, _tl_ ), correspondingly. For brevity, we save the same notations for the mesh functions as for the differential functions introduced above. Eqs (16) and (17) are approximated using the Yee’s method. Therefore, in our notations the corresponding finite-difference scheme is written as _<u>H</u>_ ð _<u>zj</u>_ þ0 _:_ 5 _; tl_ þ0 _:_ 5Þ � _<u>H</u>_ ð _<u>zj</u>_ þ0 _:_ 5 _; tl_ - 0 _:_ 5Þ _<u>H</u>_ ð _<u>zj</u>_ þ0 _:_ 5 _; tl_ - 0 _:_ 5Þ ¼ � <sup>_<u>E</u>_</sup> <sup>ð</sup> <sup>_<u>zj</u>_</sup> <sup>þ1</sup> <sup>_; tl_</sup> <sup>Þ �</sup> <sup>_<u>E</u>_</sup> <sup>ð</sup> <sup>_<u>zj; tl</u>_</sup> <sup>Þ</sup> t _h_ <sup>_<u>E</u>_</sup> <sup>ð</sup> <sup>_<u>zj; tl</u>_</sup> <sup>Þ</sup> _;_ ð59Þ _h_ _<u>D</u>_ ð _<u>zj; tl</u>_ þ1Þ � _<u>D</u>_ ð _<u>zj; tl</u>_ Þ Þ � _<u>D</u>_ ð _<u>zj; tl</u>_ Þ ¼ � <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>zj</u>_</sup> <sup>þ0</sup> <sup>_:_</sup> <sup>5</sup> <sup>_; tl_</sup> <sup>þ0</sup> <sup>_:_</sup> <sup>5Þ �</sup> <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>zj</u>_</sup> <sup>�</sup> <sup>0</sup> <sup>_:_</sup> <sup>5</sup> <sup>_; tl_</sup> <sup>þ0</sup> <sup>_:_</sup> <sup>5Þ</sup> t _h_ <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>zj</u>_</sup> <sup>�</sup> <sup>0</sup> <sup>_:_</sup> <sup>5</sup> <sup>_; tl_</sup> <sup>þ0</sup> <sup>_:_</sup> <sup>5Þ</sup> _;_ _l_ ¼ 0 _; Nt_ - 1 _;_ _j_ ¼ 1 _; Nz_ - 1 _:_ ð60Þ _h_ In vacuum, the electric field strength is equal to its induction: _D_ ð _zj; tl_ Þ ¼ _E_ ð _zj; tl_ Þ _;_ _l_ ¼ 0 _; Nt_ _;_ _j_ ¼ 1 _; jc_ 1 � 1 [ _jc_ 2 þ 1 _; Nz_ - 1 _;_ ð61Þ and in the cover layers their relation is defined as: _E_ ð _zj; tl_ Þ ¼ _D_ ð _zj; tl_ Þ _=ε_ ð _zj_ Þ _;_ _l_ ¼ 0 _; Nt_ _;_ _j_ ¼ _jc_ 1 _; jL_ - 1 [ _jR_ þ 1 _; jc_ 2 _:_ ð62Þ A relation between the mesh functions for the electric field strength and its induction for the medium is written below after writing the finite-difference scheme for the density matrix. The novel feature of this well-known finite-difference scheme consists of the multilevel Maxwell-Bloch equations approximation for a medium response description. So, the [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 13 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure approximation of Eqs (20)–(23), based on the Crank-Nicolson scheme, is made in the following form: r _<u>mn</u>_ ð _<u>zj; tl</u>_ þ1Þ � r _<u>mn</u>_ ð _<u>zj; tl</u>_ Þ þ ðg _mn_ þ _i_ - _mn_ Þr~ _mn_ ¼ _iE_ <sup>~</sup> t X _N_ ð _dmq_ r~ _qn_ - r~ _mqdqn_ Þ _;_ ð63Þ _q_ ¼1 X _N_ ð _dmq_ r~ _qm_ - r~ _mqdqm_ Þ _;_ ð64Þ _q_ ¼1 r _<u>mm</u>_ ð _<u>zj; tl</u>_ þ1Þ � r _<u>mm</u>_ ð _<u>zj; tl</u>_ Þ ¼ � t X _N_ ð _Wmq_ r~ _mm_ - r~ _qqWqm_ Þ þ _iE_ <sup>~</sup> _q_ ¼1 _E_ ~ ¼ 0 _:_ 5ð _E_ ð _zj; tl_ þ1Þ þ _E_ ð _zj; tl_ ÞÞ _;_ r~ _mn_ ¼ 0 _:_ 5ðr _mn_ ð _zj; tl_ þ1Þ þ r _mn_ ð _zj; tl_ ÞÞ _;_ ð65Þ X _N_ _P_ ð _zj; tl_ þ1Þ ¼ w _E_ ð _zj; tl_ þ1Þ þ k _q_ ¼1 X _N_ _r_ ¼1 _dqr_ r _rq_ ð _zj; tl_ þ1Þ _;_ _j_ ¼ _jL; jR;_ ð66Þ _E_ ð _zj; tl_ þ1Þ ¼ _D_ ð _zj; tl_ þ1Þ � 4p _P_ ð _zj; tl_ þ1Þ _;_ _j_ ¼ _jL_ þ 1 _; jR_ - 1 _;_ _l_ ¼ 0 _; Nt_ - 1 _;_ ð67Þ _D_ ð _zjL_ _; tl_ Þ ¼ ð _εNl_ _E_ ð _zjL_ - 1 _; tl_ Þ þ _E_ ð _zjL_ þ1 _; tl_ Þ þ k _P_ ð _zjL_ þ1 _; tl_ ÞÞ _=_ 2 _;_ ð68Þ _D_ ð _zjR; tl_ Þ ¼ ð _ε_ ~ _Nl_ _E_ ð _zjR_ þ1 _; tl_ Þ þ _E_ ð _zjR_ - 1 _; tl_ Þ þ k _P_ ð _zjR_ - 1 _; tl_ ÞÞ _=_ 2 _:_ ð69Þ 3.2 Boundary conditions approximation At the edges of the computational domain, Eqs (1) and (2) are replaced with equations supplying a one-directional propagation, which makes boundaries transparent and reflectionless. In the boundary node _j = Nz_ we use the Cabaret approximation [42] for the translation operator: - _<u>H</u>_ ð _<u>zNz</u>_ - 0 _:_ 5 _; tl_ þ0 _:_ 5Þ � _<u>H</u>_ ð _<u>zNz</u>_ - 0 _:_ 5 _; tl_ - 0 _:_ 5Þ þ <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>1</sup> <sup>_:_</sup> <sup>5</sup> <sup>_; tl_</sup> <sup>�</sup> <sup>0</sup> <sup>_:_</sup> <sup>5Þ �</sup> <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>1</sup> <sup>_:_</sup> <sup>5</sup> <sup>_; tl_</sup> <sup>�</sup> <sup>1</sup> <sup>_:_</sup> <sup>5Þ</sup> þ <u>1</u> _<u>H</u>_ ð _<u>zNz</u>_ - 0 _:_ 5 _; tl_ þ0 _:_ 5Þ � _<u>H</u>_ ð _<u>zNz</u>_ - 0 _:_ 5 _; tl_ - 0 _:_ 5Þ 2 t _<u>H</u>_ ð _<u>zNz</u>_ - 0 _:_ 5 _; tl_ - 0 _:_ 5Þ þ <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>1</sup> <sup>_:_</sup> <sup>5</sup> <sup>_; tl_</sup> <sup>�</sup> <sup>0</sup> <sup>_:_</sup> <sup>5Þ �</sup> <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>1</sup> <sup>_:_</sup> <sup>5</sup> <sup>_; tl_</sup> <sup>�</sup> <sup>1</sup> <sup>_:_</sup> <sup>5Þ</sup> t t t ð70Þ - <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>0</sup> <sup>_:_</sup> <sup>5</sup> <sup>_; tl_</sup> <sup>�</sup> <sup>0</sup> <sup>_:_</sup> <sup>5Þ �</sup> <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>1</sup> <sup>_:_</sup> <sup>5</sup> <sup>_; tl_</sup> <sup>�</sup> <sup>0</sup> <sup>_:_</sup> <sup>5Þ</sup> ¼ 0 _;_ _l_ ¼ 2 _;_ _Nt_ - 1 _;_ þ <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>0</sup> <sup>_:_</sup> <sup>5</sup> <sup>_; tl_</sup> <sup>�</sup> <sup>0</sup> <sup>_:_</sup> <sup>5Þ �</sup> <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>1</sup> <sup>_:_</sup> <sup>5</sup> <sup>_; tl_</sup> <sup>�</sup> <sup>0</sup> <sup>_:_</sup> <sup>5Þ</sup> _h_ - _<u>D</u>_ ð _<u>z</u>_ <u>Nz</u> _; tl_ þ1Þ � _<u>D</u>_ ð _<u>zNz</u>_ _; tl_ Þ þ <sup>_<u>D</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>1</sup> <sup>_; tl_</sup> <sup>Þ �</sup> <sup>_<u>D</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>1</sup> <sup>_; tl_</sup> <sup>�</sup> <sup>1Þ</sup> þ <sup>_<u>D</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>_; tl_</sup> <sup>Þ �</sup> <sup>_<u>D</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>1</sup> <sup>_; tl_</sup> <sup>Þ</sup> 1 _<u>D</u>_ ð _<u>z</u>_ <u>Nz</u> _; tl_ þ1Þ � _<u>D</u>_ ð _<u>zNz</u>_ _; tl_ Þ 2 t Þ � _<u>D</u>_ ð _<u>zNz</u>_ _; tl_ Þ þ <sup>_<u>D</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>1</sup> <sup>_; tl_</sup> <sup>Þ �</sup> <sup>_<u>D</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>1</sup> <sup>_; tl_</sup> <sup>�</sup> <sup>1Þ</sup> t t t <sup>_<u>D</u>_</sup> <sup>ð</sup> <sup>_<u>zNz</u>_</sup> <sup>�</sup> <sup>1</sup> <sup>_; tl_</sup> <sup>Þ</sup> ¼ 0 _:_ ð71Þ _h_ The corresponding difference equation for the first node on the spatial mesh is written in the following form: - _<u>H</u>_ ð _<u>z</u>_ <u>0</u> _<u>:</u>_ <u>5</u> _; tl_ <u>þ0</u> _<u>:</u>_ <u>5Þ �</u> _<u>H</u>_ ð _<u>z</u>_ <u>0</u> _<u>:</u>_ <u>5</u> _; tl_ <u>�</u> <u>0</u> _<u>:</u>_ <u>5Þ</u> þ <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>z</u>_</sup> <sup><u>1</u></sup> <sup>_<u>:</u>_</sup> <sup><u>5</u></sup> <sup>_; tl_</sup> <sup><u>�</u></sup> <sup><u>0</u></sup> <sup>_<u>:</u>_</sup> <sup><u>5Þ �</u></sup> <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>z</u>_</sup> <sup><u>1</u></sup> <sup>_<u>:</u>_</sup> <sup><u>5</u></sup> <sup>_; tl_</sup> <sup><u>�</u></sup> <sup><u>1</u></sup> <sup>_<u>:</u>_</sup> <sup><u>5Þ</u></sup> - <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>z</u>_</sup> <sup><u>1</u></sup> <sup>_<u>:</u>_</sup> <sup><u>5</u></sup> <sup>_; tl_</sup> <sup><u>�</u></sup> <sup><u>0</u></sup> <sup>_<u>:</u>_</sup> <sup><u>5Þ �</u></sup> <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>z</u>_</sup> <sup><u>0</u></sup> <sup>_<u>:</u>_</sup> <sup><u>5</u></sup> <sup>_; tl_</sup> <sup><u>�</u></sup> <sup><u>0</u></sup> <sup>_<u>:</u>_</sup> <sup><u>5Þ</u></sup> ¼ 0 _;_ ð72Þ t t _h_ 1 _<u>H</u>_ ð _<u>z</u>_ <u>0</u> _<u>:</u>_ <u>5</u> _; tl_ <u>þ0</u> _<u>:</u>_ <u>5Þ �</u> _<u>H</u>_ ð _<u>z</u>_ <u>0</u> _<u>:</u>_ <u>5</u> _; tl_ <u>�</u> <u>0</u> _<u>:</u>_ <u>5Þ</u> 2 t _<u>H</u>_ ð _<u>z</u>_ <u>0</u> _<u>:</u>_ <u>5</u> _; tl_ <u>�</u> <u>0</u> _<u>:</u>_ <u>5Þ</u> þ <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>z</u>_</sup> <sup><u>1</u></sup> <sup>_<u>:</u>_</sup> <sup><u>5</u></sup> <sup>_; tl_</sup> <sup><u>�</u></sup> <sup><u>0</u></sup> <sup>_<u>:</u>_</sup> <sup><u>5Þ �</u></sup> <sup>_<u>H</u>_</sup> <sup>ð</sup> <sup>_<u>z</u>_</sup> <sup><u>1</u></sup> <sup>_<u>:</u>_</sup> <sup><u>5</u></sup> <sup>_; tl_</sup> <sup><u>�</u></sup> <sup><u>1</u></sup> <sup>_<u>:</u>_</sup> <sup><u>5Þ</u></sup> t t t - _<u>D</u>_ ð _<u>z</u>_ <u>0</u> _; tl_ <u>þ1Þ �</u> _<u>D</u>_ ð _<u>z</u>_ <u>0</u> _; tl_ Þ þ <sup>_<u>D</u>_</sup> <sup>ð</sup> <sup>_<u>z</u>_</sup> <sup><u>1</u></sup> <sup>_; tl_</sup> <sup>Þ �</sup> <sup>_<u>D</u>_</sup> <sup>ð</sup> <sup>_<u>z</u>_</sup> <sup><u>1</u></sup> <sup>_; tl_</sup> <sup><u>�</u></sup> <sup><u>1Þ</u></sup> - <sup>_<u>D</u>_</sup> <sup>ð</sup> <sup>_<u>z</u>_</sup> <sup><u>1</u></sup> <sup>_; tl_</sup> <sup>Þ �</sup> <sup>_<u>D</u>_</sup> <sup>ð</sup> <sup>_<u>z</u>_</sup> <sup><u>0</u></sup> <sup>_; tl_</sup> <sup>Þ</sup> ¼ 0 _;_ _l_ ¼ 2 _;_ _Nt_ - 1 _:_ ð73Þ t t _h_ 1 _<u>D</u>_ ð _<u>z</u>_ <u>0</u> _; tl_ <u>þ1Þ �</u> _<u>D</u>_ ð _<u>z</u>_ <u>0</u> _; tl_ Þ 2 t Þ � _<u>D</u>_ ð _<u>z</u>_ <u>0</u> _; tl_ Þ þ <sup>_<u>D</u>_</sup> <sup>ð</sup> <sup>_<u>z</u>_</sup> <sup><u>1</u></sup> <sup>_; tl_</sup> <sup>Þ �</sup> <sup>_<u>D</u>_</sup> <sup>ð</sup> <sup>_<u>z</u>_</sup> <sup><u>1</u></sup> <sup>_; tl_</sup> <sup><u>�</u></sup> <sup><u>1Þ</u></sup> t t t [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 14 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure 3.3 Initial condition approximation We see that these Eqs (70)–(73) are not applicable on the first time step _l_ = 1. Since we consider the finite incident electromagnetic pulse, therefore we can define the initial mesh functions for the electromagnetic field distribution in the following way: _E_ ð _zj; t_ 0Þ ¼ _E_ 0 � expð�ð _zj_ - _hjp_ Þ 2 _=_ t2 _p_ <sup>Þ �</sup> <sup>cosðo</sup> _p_ <sup>�ð</sup> <sup>_z_</sup> _j_ <sup>�</sup> <sup>_hj_</sup> _p_ <sup>ÞÞ</sup> <sup>_;_</sup> <sup>_j_</sup> <sup>¼ 2</sup> <sup>_; N_</sup> _z_ <sup>�</sup> <sup>2</sup> <sup>_;_</sup> ð74Þ _H_ ð _zj_ þ0 _:_ 5 _; t_ 0 _:_ 5Þ ¼ _E_ 0 � expð�ð _zj_ þ05 � _hjp_ Þ 2 _=_ t2 _p_ <sup>Þ �</sup> <sup>cosðo</sup> _p_ <sup>�ð</sup> <sup>_z_</sup> _j_ þ0 _:_ 5 <sup>�</sup> <sup>_hj_</sup> _p_ <sup>ÞÞ</sup> <sup>_;_</sup> <sup>_j_</sup> <sup>¼ 2</sup> <sup>_; N_</sup> _z_ <sup>�</sup> <sup>3</sup> <sup>_;_</sup> ð75Þ _E_ ð _zj; t_ 0Þ ¼ 0 _;_ _j_ ¼ 0 _;_ 1 _; Nz_ - 1 _; Nz;_ ð76Þ _H_ ð _zj_ þ0 _:_ 5 _; t_ 0 _:_ 5Þ ¼ 0 _;_ _j_ ¼ 0 _;_ 1 _; Nz_ - 2 _; Nz_ - 1 _:_ Here _jp_ is the mesh node index corresponding to the position of the initial pulse center: _jp_ ¼ ð _zp_ - _Ll_ Þ _=h:_ ð77Þ Note that the initial values of _H_ are defined at _t_ 0.5 node, which corresponds to the propagation of a wave packet in positive direction of _z_ -coordinate. Therefore, taking into account the wave equation we can define the zero-value mesh functions in the boundary nodes on the second time layer ( _l_ = 1): _E_ ð _z_ 1 _; t_ 1Þ ¼ _E_ ð _zNz_ _; t_ 1Þ ¼ _H_ ð _zNz_ - 0 _:_ 5 _; t_ 1 _:_ 5Þ ¼ _H_ ð _z_ 0 _:_ 5 _; t_ 1 _:_ 5Þ ¼ 0 _:_ ð78Þ The initial state of the medium is approximated in the following way: r11ð _zj; t_ 0Þ ¼ 1 _;_ ð79Þ r _mn_ ð _zj; t_ 0Þ ¼ 0 _;_ 8 _m_ 6¼ 1 _;_ 8 _n_ 6¼ 1 _;_ _j_ ¼ _jL; jR:_ ð80Þ 3.4 Proof of finite-difference scheme conservativeness Theorem 3.1. _The finite-difference scheme_ (58)–(80) _is conservative one and preserves difference_ _analogues of the invariants_ (28)–(31). Proof. The invariants can be obtained by performing the summation of Eqs (59) and (60) with taking into account the boundary conditions (70)–(73). After that, we get the conservation law in the form: _N_ X _z_ - 1 _j_ ¼0 ð _H_ ð _zj_ þ0 _:_ 5 _; tNt_ - 0 _:_ 5Þ � _H_ ð _zj_ þ0 _:_ 5 _; t_ 1 _:_ 5ÞÞ ¼ � <sup>t</sup> _h_ X _Nt_ - 1 ð _E_ ð _zNz_ - 1 _; tl_ Þ � _E_ ð _z_ 1 _; tl_ ÞÞþ _l_ ¼2 þ2 <sup><u>t</u></sup> _h_ - 2 <sup><u>t</u></sup> _h_ X _Nt_ - 1 ð _H_ ð _z_ 1 _:_ 5 _; tl_ - 0 _:_ 5Þ � _H_ ð _z_ 0 _:_ 5 _; tl_ - 0 _:_ 5ÞÞ �ð _H_ ð _z_ 1 _:_ 5 _; tNt_ - 1 _:_ 5Þ � _H_ ð _z_ 1 _:_ 5 _; t_ 0 _:_ 5ÞÞ� _l_ ¼2 X _Nt_ - 1 ð _H_ ð _zNz_ - 0 _:_ 5 _; tl_ - 0 _:_ 5Þ � _H_ ð _zNz_ - 1 _:_ 5 _; tl_ - 0 _:_ 5ÞÞ �ð _H_ ð _zNz_ - 0 _:_ 5 _; tNt_ - 1 _:_ 5Þ � _H_ ð _zNz_ - 1 _:_ 5 _; t_ 0 _:_ 5ÞÞ _:_ _l_ ¼2 ð81Þ [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 15 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure Applying a similar procedure to the Eq (60), we obtain: _N_ X _z_ - 1 _j_ ¼0 X _Nt_ - 1 ð _H_ ð _zNz_ - 0 _:_ 5 _; tl_ þ0 _:_ 5Þ � _H_ ð _z_ 0 _:_ 5 _; tl_ þ0 _:_ 5ÞÞþ _l_ ¼2 ð _D_ ð _zj; tNt_ Þ � _D_ ð _zj; t_ 0ÞÞ ¼ � <sup><u>t</u></sup> _h_ ð _D_ ð _zj; tNt_ Þ � _D_ ð _zj; t_ 0ÞÞ ¼ � <sup><u>t</u></sup> _h_ þ2 <sup><u>t</u></sup> _h_ - 2 <sup><u>t</u></sup> _h_ X _Nt_ - 1 ð _D_ ð _z_ 1 _; tl_ - 1Þ � _D_ ð _z_ 0 _; tl_ - 1ÞÞ �ð _D_ ð _z_ 1 _; tNt_ - 2Þ � _D_ ð _z_ 1 _; t_ 0ÞÞ� _l_ ¼2 X _Nt_ - 1 ð _D_ ð _zNz_ - 1 _; tl_ - 1Þ � _D_ ð _zNz_ - 2 _; tl_ - 1ÞÞ �ð _D_ ð _zNz_ - 1 _; tNt_ - 2Þ � _D_ ð _zNz_ - 2 _; t_ 0ÞÞ _:_ _l_ ¼2 ð82Þ If there are the zero-value boundary conditions for the electromagnetic field then Eqs (81) and (82) transform into the equalities: X _Nz_ _j_ ¼0 _D_ ð _zj; tl_ þ1Þ ¼ X _Nz_ _j_ ¼0 _N_ X _z_ - 1 _j_ ¼0 _D_ ð _zj; t_ 0Þ ¼ _const;_ _l_ ¼ 0 _; Nt_ - 1 _;_ ð83Þ _H_ ð _zj_ þ0 _:_ 5 _; t_ 0 _:_ 5Þ ¼ _const;_ _l_ ¼ 0 _; Nt_ - 1 _:_ ð84Þ _N_ X _z_ - 1 _H_ ð _zj_ þ0 _:_ 5 _; tl_ þ0 _:_ 5Þ ¼ _j_ ¼0 Theorem 3.2. _A difference analogue of the density matrix evolution invariant_ (32) _holds in_ _each node of the grid_ O: X _N_ _m_ ¼2 X _m_ - 1 _n_ ¼1 X _N_ 2 þ 2 _N_ _m_ ¼2 X _m_ - 1 _n_ ¼1 ðr _mm_ ð _zj; tl_ Þ � r _nn_ ð _zj; tl_ ÞÞ jr _mn_ ð _zj; tl_ Þj2 ¼ _const_ ð _zj_ Þ _:_ ð85Þ _j_ ¼ _jL; jR;_ _l_ ¼ 0 _; Nt_ - 1 _:_ Proof. The proof repeats most steps from the same invariant derivation in the differential form (see Theorem 2.1). It starts from the Eqs (63) and (64). Similar to Eqs (33), (38) and (41) we introduce the following notations: ð _dmq_ r~ _qn_ - _dqn_ r~ _mq_ Þ _;_ d <sup>~</sup> _mn_ ¼ r~ _mm_ - r~ _nn;_ c~ _mn_ ¼ _iE_ ~ X _N_ _q_ ¼1 _q_ 6¼ _m;n_ _φ_ ~ _mn_ ¼ � _iE_ <sup>~</sup> ð _dmn_ d <sup>~</sup> _mn_ r~ _nm_ þ _dnm_ d <sup>~</sup> _nm_ r~ _mn_ Þ _:_ ð86Þ Definitions of _E_ <sup>~</sup> and ~r are the same as in Eq (65). With these notations, the Eqs (63) and (64) are written as: r _<u>mn</u>_ ð _<u>zj; tl</u>_ þ1Þ � r _<u>mn</u>_ ð _<u>zj; tl</u>_ Þ ¼ O _mn_ r~ _mn_ þ _iE_ <sup>~</sup> t X _N_ ð _dmq_ r~ _qn_ - r~ _mqdqn_ Þ _:_ ð87Þ _q_ ¼1 Next, we write the squared derivatives of the non-diagonal elements in the following way: jr _<u>mn</u>_ ð _<u>zj; tl</u>_ þ1Þj 2 �jr _<u>mn</u>_ ð _<u>zj; tl</u>_ Þj2 ¼ t <sup>Þ �</sup> <sup>r�</sup> _<u>mn</u>_ <sup>ð</sup> <sup>_<u>z</u>_</sup> _<u>j</u>_ <sup>_; t_</sup> _<u>l</u>_ <sup>Þ</sup> r~ _mn:_ t _<u>mn</u>_ <sup>�</sup> <sup>ð</sup> <sup>_<u>z</u>_</sup> _<u>j</u>_ <sup>_; t_</sup> _<u>l</u>_ þ1 <sup>Þ �</sup> <sup>r�</sup> ð88Þ ¼ r~ <sup>�</sup> _mn_ r _<u>mn</u>_ ð _<u>zj; tl</u>_ þ1Þ � r _<u>mn</u>_ ð _<u>zj; tl</u>_ Þ Þ � r _<u>mn</u>_ ð _<u>zj; tl</u>_ Þ þ <sup>r�</sup> t [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 16 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure Using this definition, we repeat steps (34) and (40) of the analytical derivation and obtain an analogue of Eq (43): 2 �jr _<u>mn</u>_ ð _<u>zj; tl</u>_ Þj2 jr _<u>mn</u>_ ð _<u>zj; tl</u>_ þ1Þj ¼ 2g _mn_ jr~ _mn_ j t 2 þ c~ _mn_ r~ _nm_ þ c~ _nm_ r~ _mn_ þ _φmn:_ ð89Þ Similarly, we obtain the analog of the Eq (42) for the d <sup>~</sup> _mn_ : X ð _dmq_ r~ _qm_ - _dqm_ r~ _mq_ - _dnq_ r~ _qn_ þ _dqn_ r~ _nq_ Þ � 4~ _φmn:_ ð90Þ _q_ 6¼ _m;n_ jd _<u>mn</u>_ ð _<u>zj; tl</u>_ þ1Þj 2 �jd _<u>mn</u>_ ð _<u>zj; tl</u>_ Þj2 ¼ 2d <sup>~</sup> _mn_ t Next, repeating the steps (42)–(51) of the analytical derivation one can easily obtain an analogue of the invariant (32): X _N_ _m_ ¼2 X _m_ - 1 _n_ ¼1 X _m_ - 1 _n_ ¼1 ðr _mm_ ð _zj; tl_ Þ � r _nn_ ð _zj; tl_ ÞÞ X _N_ 2 þ 2 _N_ _m_ ¼2 jr _mn_ ð _zj; tl_ Þj2 ¼ _const_ ð _zj_ Þ _:_ ð91Þ 3.5 Approximation order investigation Theorem 3.3. _The finite-difference scheme_ (59)–(73) _approximates_ _the set of differential_ Eqs (16)–(23) _with the second order in the inner nodes of the mesh_ . _Namely_, _the_ Eq (59) _approxi-_ _mates the_ Eq (16) _with respect to the point_ ( _zj+0_ . _5_, _tl_ ). _The_ Eq (60) _approximates_ _the_ Eq (17) _with_ _respect to the point_ ( _zj_, _tl+0_ . _5_ ). _The density matrix_ Eqs (21)–(23) _are approximated_ _by_ (63)–(67) _with the second order with respect to the point_ ( _zj_, _tl+0_ . _5_ ). The theorem 3.3 is proved in a standard way with the help of the Taylor series representation. The boundary conditions are approximated by the Cabaret finite-difference scheme (70)– (73) with the second order in the points ð _z_ 1 _; tl_ - 0 _:_ 5Þ _;_ ð _z_ 0 _:_ 5 _; tl_ Þ _;_ ð _zNz_ - 0 _:_ 5 _; tl_ Þ _;_ ð _zNz_ - 1 _; tl_ - 0 _:_ 5Þ _;_ _l_ ¼ 2 _; Nt_ - 1 _:_ . We stress that the difference analogues of the invariants (82), (83) and (86) preserve their values during the computation time with the accuracy not worse than 10 <sup>−6</sup> for the mesh steps being equal to 0.01 (the full set of parameters are shown in the next section). Invariant (86) takes place only in the case of zero relaxation rate of off-diagonal elements. In our simulation, relaxation is non-negligible and therefore, the invariant value decreases over time as expected. In current paper, we have to introduce this invariant to explain peculiarities in population dynamics (section 2.3.2). 3.6 Iterations convergence proving The difference Eqs (59)–(69) are nonlinear ones in respect to the electric field strength _E_ and the density matrix elements _ρmn_ . To solve the equations, the following iteration method is [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 17 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure used: <sup>_s_</sup> _qn_ <sup>�</sup> <sup>r~</sup> <sup>_s_</sup> r <sup>_s_</sup> _<u>mn</u>_ <sup>þ1</sup> ¼ �ðg _mn_ þ _i_ - _mn_ Þr~ <sup>_s_</sup> t <sup>_s_</sup> _<u>mn</u>_ <sup>þ1ð</sup> <sup>_<u>z</u>_</sup> _<u>j</u>_ <sup>_; t_</sup> _<u>l</u>_ þ1 <sup>Þ �</sup> <sup>r</sup> _<u>mn</u>_ <sup>ð</sup> <sup>_<u>z</u>_</sup> _<u>j</u>_ <sup>_; t_</sup> _<u>l</u>_ <sup>Þ</sup> <sup>_s_</sup> _mn_ <sup>þ</sup> <sup>_iE_</sup> <sup>~</sup> <sup>_s_</sup> <sup>�</sup> X _N_ _q_ ¼1 ð _dmq_ r~ <sup>_s_</sup> _mq_ <sup>_s_</sup> <sup>_d_</sup> _qn_ <sup>Þ</sup> <sup>_;_</sup> ð92Þ <sup>_s_</sup> _mm_ <sup>�</sup> <sup>r~</sup> <sup>_s_</sup> r <sup>_s_</sup> _<u>mm</u>_ <sup>þ1</sup> ¼ � t <sup>_s_</sup> _<u>mm</u>_ <sup>þ1ð</sup> <sup>_<u>z</u>_</sup> _<u>j</u>_ <sup>_; t_</sup> _<u>l</u>_ þ1 <sup>Þ �</sup> <sup>r</sup> _<u>mm</u>_ <sup>ð</sup> <sup>_<u>z</u>_</sup> _<u>j</u>_ <sup>_; t_</sup> _<u>l</u>_ <sup>Þ</sup> X _N_ <sup>_s_</sup> _qm_ <sup>�</sup> <sup>r~</sup> <sup>_s_</sup> _qq_ <sup>_s_</sup> <sup>_W_</sup> _qm_ <sup>Þ þ</sup> <sup>_iE_</sup> <sup>~</sup> <sup>_s_</sup> <sup>�</sup> ð _dmq_ r~ <sup>_s_</sup> _mq_ <sup>_s_</sup> <sup>_d_</sup> _qm_ <sup>Þ</sup> <sup>_;_</sup> ð93Þ _q_ ¼1 X _N_ _D_ ð _zj; tl_ þ1Þ � 4pk ð _Wmq_ r~ <sup>_s_</sup> X _N_ _q_ ¼1 X _N_ _dmn_ r <sup>_s_</sup> _nm_ <sup>ð</sup> <sup>_z_</sup> _j_ <sup>_; t_</sup> _l_ þ1 <sup>Þ</sup> _<u>n</u>_ <u>¼1</u> _E_ <sup>_s_</sup> <sup>þ1</sup> ð _zj; tl_ þ1Þ ¼ _<u>m</u>_ <u>¼1</u> _<u>n</u>_ <u>¼1</u> _;_ ð94Þ 4pw þ 1 _<u>m</u>_ <u>¼1</u> _E_ ~ <sup>_s_</sup> ¼ 0 _:_ 5ð _E_ <sup>_s_</sup> ð _zj; tl_ þ1Þ þ _E_ ð _zj; tl_ ÞÞ _;_ r~ <sup>_s_</sup> _mn_ <sup>_s_</sup> <sup>ð</sup> <sup>_z_</sup> _j_ <sup>_; t_</sup> _l_ þ1 <sup>Þ þ r</sup> _mn_ <sup>ð</sup> <sup>_z_</sup> _j_ <sup>_; t_</sup> _l_ <sup>ÞÞ</sup> <sup>_;_</sup> <sup>_s_</sup> <sup>¼ 1</sup> <sup>_;_</sup> <sup>2</sup> <sup>_;_</sup> <sup>. . .</sup> <sup>_;_</sup> ð95Þ <sup>_s_</sup> _mn_ <sup>¼ 0</sup> <sup>_:_</sup> <sup>5ðr</sup> <sup>_s_</sup> _j_ ¼ _jL; jR;_ _l_ ¼ 0 _; Nt_ - 1 _:_ The functions on zero-iteration are chosen equal to their values on the previous time layer: _E_ <sup>0</sup> ð _zj; tl_ þ1Þ ¼ _E_ ð _zj; tl_ Þ _;_ r <sup>0</sup> _qm_ <sup>ð</sup> <sup>_z_</sup> _j_ <sup>_; t_</sup> _l_ þ1 <sup>Þ ¼ r</sup> _qm_ <sup>ð</sup> <sup>_z_</sup> _j_ <sup>_; t_</sup> _l_ <sup>Þ</sup> <sup>_;_</sup> <sup>_j_</sup> <sup>¼</sup> <sup>_j_</sup> _L_ <sup>_; j_</sup> _R_ <sup>_;_</sup> <sup>_l_</sup> <sup>¼ 0</sup> <sup>_; N_</sup> _t_ <sup>�</sup> <sup>1</sup> <sup>_:_</sup> ð96Þ The iteration process is stopped if both of the following conditions are satisfied: j _E_ <sup>_s_</sup> <sup>þ1</sup> ð _zj; tl_ þ1Þ � _E_ <sup>_s_</sup> ð _zj; tl_ þ1Þj _< e_ 1j _E_ <sup>_s_</sup> ð _zj; tl_ þ1Þj þ _e_ 2 _;_ ð97Þ jr <sup>_s_</sup> _mn_ <sup>þ1</sup> <sup>_s_</sup> _mn_ <sup>þ1ð</sup> <sup>_z_</sup> _j_ <sup>_; t_</sup> _l_ þ1 <sup>Þ �</sup> <sup>r</sup> <sup>_s_</sup> _mn_ <sup>_s_</sup> <sup>ð</sup> <sup>_z_</sup> _j_ <sup>_; t_</sup> _l_ þ1 <sup>Þj</sup> <sup>_< e_</sup> 1 <sup>jr</sup> <sup>_s_</sup> <sup>_s_</sup> _mn_ <sup>ð</sup> <sup>_z_</sup> _j_ <sup>_; t_</sup> _l_ þ1 <sup>Þj þ</sup> <sup>_e_</sup> 2 <sup>_;_</sup> ð98Þ _j_ ¼ _jL; jR;_ _l_ ¼ 0 _; Nt_ - 1 _:_ ð99Þ where _e_ 1 and _e_ 2 are positive constants, characterizing the maximal absolute and relative accuracy of the iteration process. In our computer simulations, their values were chosen as 10 <sup>−8</sup> and 10 <sup>−10</sup> correspondingly. The procedure for the solution of the system (59)–(62) and (92)–(95) is the following. First, from Eq (59) we obtain the value of _H_ ( _zj_ +0.5, _tl_ +0.5) on the next time layer, then we have _D_ ( _tl_ +1, _zj_ +1) from Eq (60) and _E_ <sup>_s+_</sup> <sup>1</sup> ( _zj_, _tl_ +1) from Eq (94). We substitute the last value in the Eqs (92) and (93) at the next iteration step, etc. Theorem 3.4 . _Provided that h<const and zero-iterations are chosen as_ (96), _the process of_ _iterations_ (92)–(95) _converges to the unique solution of the finite-difference scheme_ (59)–(69), _which exists in a vicinity of the mesh functions defined by the zero iteration_ (96). _Convergence_ _rate is as a geometric progression with the denominator q_ - _h_ . Proof. To prove this theorem, we have to demonstrate that (92)–(95) is a contraction, i.e. that all iterations are uniformly limited in a certain difference norm k�k _h_ : jj _E_ <sup>_s_</sup> jj _h_ - _CE;_ jjr <sup>_s_</sup> jj _h_ - _C_ r _;_ ð100Þ where _CE_ and _Cρ_ are constants, and that the following inequalities: jj _E_ <sup>_s_</sup> <sup>þ1</sup> - _E_ <sup>_s_</sup> jj _h_ - _q_ jj _E_ <sup>_s_</sup> - _E_ <sup>_s_</sup> <sup>�</sup> <sup>1</sup> jj _h;_ jjr <sup>_s_</sup> <sup>þ1</sup> - r <sup>_s_</sup> jj _h_ - _q_ jjr <sup>_s_</sup> - r <sup>_s_</sup> <sup>�</sup> <sup>1</sup> jj _h;_ _q <_ 1 ð101Þ [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 18 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure are valid. We use the difference norm _C_ : jj _f_ jj _C_ ¼ max _zj_ <sup>ðj</sup> <sup>_f_</sup> <sup>ð</sup> <sup>_zj_</sup> <sup>ÞjÞ</sup> <sup>_:_</sup> ð102Þ In Eq (102) the letter " _f_ " denotes mesh function defined on the mesh. We estimate the function modules on different iteration steps and show that they are uniformly bounded in the norm (102). Then considering the iteration differences k _E_ <sup>_s_</sup> <sup>+1</sup> - _E_ <sup>_s_</sup> k _C_ and k _ρ_ <sup>_s_</sup> <sup>+1</sup> - _ρ_ <sup>_s_</sup> k _C_, and using estimations similar to those applied for the iteration modules we get the inequalities (102) in the norm (102). 3.7 Numerical stability of the finite-difference scheme A stability condition for the finite-difference scheme (59)–(69) is the Courant-Friedrichs-Levy (CFL) condition [46], because the developed scheme involves the Yee’s one. When the Maxwell’s equations are solved, the CFL condition is well-known for the linear wave equation and has the form _u_ - _h/τ_, where _u_ is the wave propagation velocity [46]. In Eqs (59) and (60) the wave velocity _u_ for a linear medium with _ε_ = 1 (vacuum) is equal to unity ( _u =_ 1), the mesh steps are chosen to be equal: _h = τ_, and the CFL condition reduces to the inequality _u_ - 1. Thus, for the wave propagation in a vacuum the CFL condition is valid: _u =_ 1. In the active medium as well as in the disordered structure, the wave velocity is less than unity because the dielectric permittivity is greater than unity and _u_ ¼ 1 _=_ pf _ε_ f i in the dimensionless units. Therefore, the CFL condition is also fulfilled. It should be stressed that the preservation of the invariants (Theorem 3.1) is an additional confirmation of the solution correctness. 4. Computer simulation results The aim of investigation provided below consists in an analysis of the pulses reflected from and transmitted through a three energy-level medium covered by disordered structure. We analyze the pulse structure (it consists from several sub-pulses) and its spectrum, and the spectra of sub-pulses. We pay attention to the substance emission at the transition 3–1 (high frequency), which appears due to the cascade mechanism of high energy level excitation and we demonstrate the evidence of its manifestation. 4.1 Computer simulation parameters The computer simulation results for substance with covering are averaged over 32 random realizations for the cover dielectric permittivity random distribution. Usually, in physical experiments [29] we made also 16 or 32 realizations at the measurements of THz signals with duration about 100 ps. If we use more random realizations, then the measurement time increases up to 1 min, which is not acceptable in practice. The electric field strength unit _E_ 0 was chosen to be 1.05�10 <sup>6</sup> V/m. Using the well-known formula, we can estimate the peak intensity of the pulse in SI units as _I_ ¼ _cε_ 0 _E_ 0 <sup>2</sup> <sup>_:_</sup> ð103Þ This formula yields the maximal intensity of the pulse equal to 3�10 <sup>5</sup> W/cm <sup>2</sup> . Another wellknown formula [46] gives the value of the magnetic field induction and the magnetic field strength: fm f i f _<u>o</u>_ f i _ε_ 0 j _B_ 0j ¼ <sup>_<u>n</u>_</sup> _c_ <sup>j</sup> <sup>_E_</sup> <sup>0j</sup> <sup>_;_</sup> r ~~j~~ _H_ 0j ¼ _n_ j _E_ 0j _;_ ð104Þ [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 19 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure Table 2. The dimensionless coordinates used in the computations. _<u>Ll</u>_ <u>= −14</u> _<u>Lr</u>_ <u>= 34</u> _<u>zc</u>_ <u>1 = 0</u> _<u>zL</u>_ <u>= 5</u> _<u>zR</u>_ <u>= 11</u> _<u>zc</u>_ <u>2 = 16</u> _<u>zrefl</u>_ <u>= −13.9</u> _<u>ztran</u>_ <u>= 17</u> _<u>zp</u>_ <u>= −7</u> _<u>Lt</u>_ <u>= 100</u> [https://doi.org/10.1371/journal.pone.0201572.t002](https://doi.org/10.1371/journal.pone.0201572.t002) pf f i f f i f where _n_ ¼ _ε_ m is the refractive index. Taking into account that in a vacuum _ε = μ =_ 1, we obtain: _B_ 0 _=_ 3.5�10 <sup>−3</sup> T, _H_ 0 _=_ 2785 A/m (or 27.85 A/cm). Evidently, for practice the intensity less than 10 <sup>6</sup> W/cm <sup>2</sup> is more reasonable but in computer simulation, the effect of second harmonic generation is better pronounced for greater than this value of the pulse intensity. The dipole moment unit _d_ 0 is equal [47] to 1.47�10 <sup>−18</sup> cm <sup>2.5</sup> g <sup>0.5</sup> s <sup>-1</sup> or 4.58�10 <sup>−30</sup> C�m. The density of the molecules in the medium is equal to _M_ = 5.67�10 <sup>21</sup> cm <sup>-3</sup> = 5.67�10 <sup>27</sup> m <sup>-3</sup> . In this case the coefficient _κ_ = 12.5 in the Eq (15). We chose the mesh steps as _h = τ =_ 0.01. Iteration process parameters are chosen as _e_ 1 = 10 <sup>−8</sup> and _e_ 1 = 10 <sup>−10</sup>, their decreasing does not result in notable changes of the computer simulation results at chosen mesh steps. Other dimensionless coordinates are given in the Table 2. The parameters of the medium and the pulse are provided in the Table 3. 4.2 Transmitted and reflected pulse structure The computer simulation is made for two cases: with the cover presence and without it to clarify its influence on the reflected and transmitted pulse spectra. The typical signals are depicted in Fig 2. One can see that in both cases the spatial pulse length is comparable with the length of a medium. The pulse splitting into a few sub-pulses is clearly seen for both covered and uncovered media. However, if the cover is absent then there are only three noticeable sub-pulses, which are caused by THz radiation multi-reflections from the left and right medium layer faces and interference pattern induced by these reflected signals. The first reflected sub-pulse in Fig 2A is usually named as the main sub-pulse and it occurs directly due to the THz pulse reflection from a medium layer face. Then, we observe much more sub-pulses in the reflected signal. They can usually be exploited with success for the substance detection and identification. 4.3 Fourier spectra The Fig 2 demonstrates the comparison of the signal spectra, which are calculated as the absolute value of the Fourier transform using the well-known formula: X _N_ <sup>0</sup> _k_ ¼1 _E_ ð _zrefl_ n _tran; tk_ Þexpð� <sup>2p</sup> <sup>_<u>itk</u>_</sup> _n_ Þ _L_ ð105Þ ����� _;_ - _n_ ¼ 2 _N_ p <sup>0</sup> <sup>_n;_</sup> <sup>_tk_</sup> <sup>¼</sup> _N_ <sup>_<u>L</u>_</sup> <sup>0</sup> <sup>_k:_</sup> _Erefl_ n _tran_ ðo _n_ Þ ¼ ����� Here _L_ is the time interval (in this case, _L_ = _Lt_, _N_ <sup>0</sup> = _Nt_ = 10 <sup>4</sup> ) or the spatial computational domain length ( _L_ = _Lz_, _N_ <sup>0</sup> = _Nz_ = 3200). This transform is applied to the measured signals _Erefl_, _Etran_ and similar Fourier transform is also applied to the incident pulse electric field strength distribution _E_ ( _z_, _t =_ 0). Note that in physical experiments the frequency _ν = ω_ /2 _π_ is usually measured, that is why in the figures below we use this ordinary frequency instead of the frequency _ω_ . As follows from the Fig 3A and 3B, the spectra are significantly disturbed because they possesses a strong modulation and it is even more powerful if a cover is absent. This is a consequence of the interference of different sub-pulses depicted in Fig 2. Obviously, the spectrum minima can be considered as the absorption frequencies and, thus, they may be treated as the false absorption frequencies [31]. To eliminate these mistakes, the sub-pulses should be analyzed separately. [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 20 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure Table 3. The dimensionless parameters of the medium and the pulse. 0 1 9 1 0 9 <u>1</u> <u>9</u> <u>0</u> ~~0~~ B B @ 0 2 2 2 0 1 <u>2</u> <u>18</u> <u>0</u> ~~0~~ B B @ 0 - 5 - 11 5 0 - 6 <u>11</u> <u>6</u> <u>0</u> ~~1~~ C CA <sup>�</sup> <sup>3</sup> <sup>_:_</sup> <sup>4 �</sup> <sup>10�</sup> <sup>3</sup> g _mn_ ¼ ~~1~~ C C A _dmn_ ¼ ~~0~~ B B @ 8 ~~1~~ C CA - _mn_ ¼ _<u>Wmn</u>_ <u>= 0</u> _<u>Ls</u>_ <u>= 6</u> _<u>κ</u>_ <u>= 12.5</u> _<u>ωp</u>_ <u>= 5</u> _<u>az</u>_ <u>= 1.5</u> _<u>χ</u>_ <u>= 3</u> _<u>hl</u>_ <u>= 0.25</u> _<u>Nl</u>_ <u>= 20</u> _<u>εl</u>_ <u>= [1, 3]</u> [https://doi.org/10.1371/journal.pone.0201572.t003](https://doi.org/10.1371/journal.pone.0201572.t003) At the same time, if covering of the medium is present, the THz pulse spectrum is not so much periodically modulated because the reflected signal is averaged over 32 random realizations. However, they exhibit irregular minima of various depth, which could be also interpreted as the absorption spectral lines of some substances while they are simply caused by the pulse multiple reflections from the faces of various layers and, consequently, an interference of appeared sub-pulses produces this spectrum modulation. Other way for the substance identification may be achieved at using the substance emission frequency analysis. For the substance under consideration, a medium emission is present due to the energy level transition 3–1. We see that this frequency is absent in the incident pulse spectrum. Its appearance in the reflected pulse spectrum is due to the cascade mechanism of high energy level excitation of substance molecules. Because the spectrum shape near the frequency 1.75 (Fig 3C and 3D) is not distorted despite the presence of covering it is possible to use it for the substance identification. In Fig 4 the energy level population evolutions in the chosen section ( _z_ = 0) is shown. We stress that in our computer simulation, the parameters correspond to optically thin layer. Thus, the general behavior of the energy level populations in any medium sections is qualitatively similar to each of them. Hence, we depict a time evolution of the density matrix elements for a single section only. In these figures, it may be not evident that the third energy level is populated as a result of the 2–3 energy-level transition. Indeed, in Fig 4A, we see notable Fig 2. Pulses _Erefl_ and _Etran_ reflected from (solid line) and transmitted through (dashed line) the medium without cover (a), and with <u>cover (b) under averaging over 32 random realizations of disordered structure (dimensionless units).</u> <u>[https://doi.org/10.1371/journal.pone.0201572.g002](https://doi.org/10.1371/journal.pone.0201572.g002)</u> [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 21 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure Fig 3. Comparison of the incident pulse spectra ( _Einc_ ) with the spectra reflected from (solid line) or transmitted through (dashed line) the medium without cover (a) and spectra averaged over 32 random realizations for the dielectric permittivity in layers of a disordered structure (b). The spectra near the frequency, corresponding to 3–1 energy level transition, for uncovered and covered medium correspondingly (c, d) <u>(dimensionless units).</u> [https://doi.org/10.1371/journal.pone.0201572.g003](https://doi.org/10.1371/journal.pone.0201572.g003) oscillations of the third energy level population and these oscillations are not synchronous to the second energy level population changing. Let us notice that in [32] we have presented results corresponding to strong electric field strength amplitude ( _E_ 0 = 2) at studying the transmitted signal only. In that case, the third energy level population increases after the second energy level population becomes high enough. At significantly lower electric field strength, it is necessary to use the correlation coefficient between a pair of the energy level populations as an estimation of the cascade mechanism presence for the high energy level excitation. The correlation coefficient between two series of measurements containing _N_ ’ numbers of data is given by the following formula: ð _ai_ - _amean_ Þ ð _bi_ - _bmean_ Þ v f f f f f f f f f f f f f f f u u t f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f X _N_ <sup>0</sup> ð106Þ ,0 @ _i_ ¼1 v f f f f f f f f f f f f f f f u u t f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f X _N_ <sup>0</sup> 1 A _;_ _corr_ ð _a; b_ Þ ¼ X _N_ <sup>0</sup> ð _ai_ - _amean_ Þð _bi_ - _bmean_ Þ _i_ ¼1 2 2 _i_ ¼1 [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 22 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure Fig 4. Time evolution of the energy level populations (a) in a section corresponding to the beginning of the medium z = 0. The detailed view of <u>the initial stage for the second and third energy level populations normalized to their maximum values (b) (dimensionless units).</u> [https://doi.org/10.1371/journal.pone.0201572.g004](https://doi.org/10.1371/journal.pone.0201572.g004) _amean_ ¼ <sup>1</sup> _N_ <sup>0</sup> X _N_ <sup>0</sup> _i_ ¼1 _ai;_ _bmean_ ¼ <sup>1</sup> _N_ <sup>0</sup> _ai;_ _bmean_ ¼ <sup>1</sup> X _N_ <sup>0</sup> _i_ ¼1 _bi;_ ð107Þ where, _amean_, _bmean_ are the mean values of the measured variables. This formula application to the energy level populations in the time interval [10, 35] with _N_ ’ = 2500 yields the following correlation magnitudes: _corr_ ðr11 _;_ r22Þ ¼ � 1 _;_ _corr_ ðr22 _;_ r33Þ ¼ 0 _:_ 781 _;_ _corr_ ðr33 _;_ r11Þ ¼ � 0 _:_ 71 _:_ ð108Þ The correlation of the energy level populations with the instantaneous electric field strength in this section of the medium gives us the following values: _corr_ ðr11 _; E_ j _z_ ¼0Þ ¼ 0 _:_ 001 _;_ _corr_ ðr33 _; E_ j _z_ ¼0Þ ¼ � 0 _:_ 14 _:_ ð109Þ Thus, from Eq (106) it can be seen that the populations of the first and second energy levels are tightly connected and are uninfluenced by the instantaneous value of the electric field strength (107). On the other hand, the third level population is significantly correlated with the electromagnetic field due to non-resonant interaction. That means, when the electromagnetic pulse propagates in a medium, the electric field causes its polarization, related to nondiagonal elements of the density matrix _ρ_ . In accordance with invariants of Maxwell-Bloch equations (32), the appearance of the polarization induces temporary shifts in the energy level populations. In the case of three level medium, the invariant is written as follows: X3 _m_ ¼2 X _m_ - 1 _n_ ¼1 X3 ðr _mm_ ð _z; t_ Þ � r _nn_ ð _z; t_ ÞÞ2 þ 6 _m_ ¼2 X _m_ - 1 _n_ ¼1 jr _mn_ ð _z; t_ Þj 2 ¼ _const_ ð _z_ Þ _:_ ð110Þ [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 23 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure As soon as external electric field strength decreases, the substance polarization decreases also, and consequently the populations return to their initial values. This is non-resonant process unrelated with the medium emission. Nevertheless, the medium polarization is not only the process influencing the third energy level population evolution. High correlation between the second and third level _corr_ ( _ρ_ 22, _ρ_ 33) is more notable. That means that the second energy level population is significant factor governing the third energy level population evolution and the third energy level excitation takes place due to the cascade mechanism. Thus, there are three processes that influence the population of the third level. One of them is the medium non-resonant polarization. Other two of them are resonant transitions between the second and third energy levels and between the third and first energy levels. The first process can cause the first growth of the third energy-level population _ρ_ 33 before of the second level population _ρ_ 22 growth. This process is not accompanied by electromagnetic field energy absorption and does not result in non-zero value of the third energy level population changes after the pulse action ending. Therefore, as soon as the field strength decreases, the population returns to the initial state without any medium emission. Other two processes are responsible the population relaxation process, which is several orders of magnitude slower than the energy level excitation processes. 4.4 Spectra of sub-pulses In our previous papers [29], [30] we have shown that the detection and identification of a substance using the THz radiation measured in the reflection mode can be effective at analyzing the sub-pulses following the main pulse reflected from the substance face. In this case, we get information about the substance absorption frequencies. Below we provide a similar analysis for a medium covered by disordered structure. However, another our purpose is to observe also a substance emission at the frequencies corresponding to transitions from the high energy levels excited due to the cascade mechanism. To obtain the sub-pulse spectra, the Fourier-Gabor transform [48] is applied to the signal _E_ ( _Zrefl_ \ _tran_, _tk_ ) in the corresponding time intervals. It should be noted that if the signal amplitudes at the left and right ends of the time interval differ then the effect, which is known as the spectrum spreading [49], occurs. As a result, false frequencies appear in the signal spectrum. They can be suppressed by using the window weight function that tends to zero toward the ends of the time interval. For this purpose, at each time interval, which contains the corresponding sub-pulse, we use the Fourier-Gabor transform [48] with window function _G_ ð _t_ Þ ¼ expð�ðð _t_ - _tI;II;III_ ...Þ _=_ y _I;II;III_ ...Þ which is a near-rectangular window. Therefore, we obtain: _KG_ Þ _;_ ð111Þ <sup><u>2</u></sup> _N_ <sup><u>p0</u></sup> <sup>_n;_</sup> <sup>_tk_</sup> <sup>¼</sup> _N_ <sup>_<u>L</u>_</sup> ð112Þ _N_ <sup>_<u>L</u>_</sup> <sup>0</sup> <sup>_k;_</sup> _Erefl_ <sup>_I;II_</sup> n <sup>_;III_</sup> _tran_ <sup>_;_</sup> <sup>...ðo</sup> _n_ <sup>Þ ¼ j</sup> X _N_ <sup>0</sup> _k_ ¼1 _G_ ð _tk_ Þ � _E_ ð _zrefl_ n _tran; tk_ Þ � expð� <sup><u>2p</u></sup> <sup>_<u>itk</u>_</sup> <sup><u>p</u></sup> _L_ <sup>_<u>itk</u>_</sup> _n_ Þj _;_ - _n_ ¼ <sup><u>2</u></sup> _N_ <sup><u>p0</u></sup> where _EI_, _II_, _III_ . . .( _ωn_ ) is the spectrum of the sub-pulse located in the corresponding time interval marked in Fig 2. Time _tI_, _II_, _III_ . . . denotes a centre the corresponding time interval and _θI_, _II_, _III_ . . . denotes the window half-length. As before, _L_ is the time interval, where the signal is analyzed, and _N_ ’ is the number of time nodes in this time interval ( _L_ = _Lt_, _N_ ’ = 10 <sup>4</sup> ). The parameter _KG_ in Eq (111) is even and characterizes the steepness of the window function at the ends of a [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 24 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure Fig 5. The first sub-pulse (area I in Fig 2) spectrum (a, c) and the second sub-pulse (area II in Fig 2) spectrum for the signal reflected from and <u>transmitted through a medium without covering. The spectra (c, d) are shown in the higher frequency range (dimensionless units).</u> [https://doi.org/10.1371/journal.pone.0201572.g005](https://doi.org/10.1371/journal.pone.0201572.g005) time interval. In our simulation, this parameter was taken to be equal to 20 for the window function _G_ ( _t_ ) to fall off sharply. Fig 5 shows the sub-pulse spectra for the signals reflected from and transmitted through an uncovered medium. The transform window edges and the signal partitioning can be seen in the Fig 2A. In Fig 5A the spectrum modulation is absent at all. Apparently, the first reflected sub-pulse depicted in the Fig 5A is formed due to the reflection by the left face of the medium and thus, does not propagate inside the medium and, therefore, does not interact with it. This reflected pulse spectrum contains no information about the medium absorption frequencies, and the spectrum shape is the same as that for the incident pulse (Fig 3A). The second sub-pulse (Fig 5B) appears due to multi-reflections from the right and left faces of the medium before being detected at the left section _Erefl_ . The absorption frequency corresponding to the transition 1–2 (the frequency 0.8) is noticeable in its spectrum as well as weak spectral intensity maximum at the frequency 1.75 corresponding to the cascade mechanism of high energy level excitation. The absorption frequency corresponding to the energy level transition 2–3 is not seen (Fig 5B) because of weak increasing of the second energy level population. As follows from Fig 4A, the latter remains quite low: thousand times less than the [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 25 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure Fig 6. Spectrum of sub-pulses reflected from and transmitted through the covered medium and belonging to the time interval I (a), II (b), III (c), IV (d) in Fig 2B. The reflected sub-pulse spectra in the vicinity of the frequency 1.75 (emission frequency) corresponding to the energy level <u>transition 3–1 (e).</u> [https://doi.org/10.1371/journal.pone.0201572.g006](https://doi.org/10.1371/journal.pone.0201572.g006) population of the first energy level. Therefore, the spectrum dip, corresponding to this energy level transition, is quite small. In opposite, both transmitted sub-pulses exhibit notable spectrum peculiarities. The first one contains the absorption frequency 0.8. The second sub-pulse spectrum (Fig 5B and 5D) exhibits a substance emission at the frequencies 0.8 and 1.5. Hence, we observe the spectral maximum instead of spectral minimum at the frequency corresponding to the 1–2 energy level transition. The frequencies corresponding to the energy level transition 2–3 or 3–2 is not observable at all here. It should be stressed that in the spectrum of the second sub-pulse transmitted through a medium, some additional false absorption frequencies occur. Let us discuss the corresponding spectra of the sub-pulses reflected from or transmitted through the medium covered by disordered structure. The temporal partitioning of the subpulses can be seen in the Fig 2B. In Fig 6 the corresponding sub-pulse spectra are depicted. We see that the main reflected pulse spectrum in Fig 6A is slightly different from the incident pulse spectrum. The main transmitted pulse, located in the time region II (Fig 2B), exhibits the absorption frequency 0.8 presence in the spectrum (Fig 6B). Nevertheless, the pulse spectrum contains the false absorption frequency, which is equal to 0.7. The second reflected sub-pulse spectrum (Fig 6B) contains only the false absorption frequencies, which do not belong to a medium, and they are a result of superposition of the pulses caused by electromagnetic field multi-reflections from the layered structure. In the time area III (Fig 2B), the second transmitted and the third reflected pulses are located (Fig 6C). The electric field strengths of these pulses are 10 times less than the ones for previous sub-pulses. Nevertheless, the emission at the frequency 0.8 related to 2–1 energy [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 26 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure level transition can be observed in the transmitted sub-pulse spectrum. At the same time, the absorption frequency corresponding to 2–3 energy level transition is noticed together with several absorption frequencies. We stress that the third reflected sub-pulse is the first reflected one that contains the absorption frequencies related to the medium. However, it contains also the false frequencies about of 0.5 and 0.6 dimensionless units, and there is a spectrum minimum at the frequency 1.01, which is shifted away from the 2–3 transition resonance frequency. The spectrum of the third transmitted sub-pulse, located in time interval IV, contains maximum at the frequency about of 0.8 (this means a substance emission presence (Fig 6D)) and it contains also a number of false absorption frequencies. The fourth reflected sub-pulse is distorted as well. In the frequency range _ν<_ 0.7 the spectrum shape is similar to that of the third reflected sub-pulse. Thus, the same mechanism of the spectrum distortions exists. However, the other part of the spectrum is quite different: the spectrum minimum at the frequency 0.8 is still present but it is shifted to the range of lower frequencies, and the spectrum minimum at the frequency 0.9 is observed, unlike the third sub-pulse in which the spectrum minimum is located at the frequency 1.01. Fig 6E demonstrates comparison of reflected sub-pulses spectra near the frequency 1.75 corresponding to 3–1 energy level transition. For the first and second sub-pulse, the spectral intensity maximum at this frequency is absent. The third and fourth sub-pulse spectra have the maximum near the frequency 1.75. It means that those sub-pulses can be used for the substance identification. However, the fourth sub-pulse is very weak and is significantly distorted even in this frequency range. Thus, we have demonstrated the cascade mechanism of high energy level excitation and the emission frequency observation corresponding to the transition 3–1 in the spectra of both pulses reflected from or transmitted through the substance. Since this frequency is observed in the case of the covered medium, it may be used with success for the detection and identification of the substance. 5. Conclusions We develop the conservative finite-difference scheme for the problem describing an interaction of the THz pulse, containing a few cycles, with the multilevel medium in the framework of the Maxwell-Bloch equations. This finite-difference scheme is based on the Crank-Nicolson scheme with using a new approximation of the artificial boundary conditions on the basis of the Cabaret scheme. For a solution of the corresponding nonlinear difference equations, the iterative process is proposed and its convergence condition is written. We generalize the Bloch invariant for a multilevel medium and the conservativeness of the developed finite-difference scheme with respect to this invariant as well as to the invariants of the Maxwell’s equations were proved. The proposed finite-difference scheme allows to control the positiveness property of the energy level populations at computer simulation by choosing the mesh step in appropriate way. We have demonstrated that the disordered structure covering of a medium results in appearing of the false absorption frequencies. This effect arises from complicated interference of the multiple sub-pulses reflected from various faces between layers of the disordered structure. We showed the appearing of the emission frequencies belonging to the range of high frequencies in the sub-pulses spectra due to the cascade mechanism of high energy level excitation for both transmitted and reflected THz signals. The disordered cover less distorts the [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 27 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure spectral intensities of these frequencies. Therefore, they can be used with success for the substance detection and identification. Author Contributions Conceptualization: Vyacheslav A. Trofimov. Funding acquisition: Vyacheslav A. Trofimov. Investigation: Svetlana A. Varentsova, Irina G. Zakharova, Dmitry Yu. Zagursky. Methodology: Vyacheslav A. Trofimov. Software: Dmitry Yu. Zagursky. Supervision: Vyacheslav A. Trofimov. Visualization: Svetlana A. Varentsova, Dmitry Yu. Zagursky. Writing – original draft: Irina G. Zakharova, Dmitry Yu. Zagursky. Writing – review & editing: Svetlana A. Varentsova, Irina G. Zakharova. References 1. Federici JF, Schulkin B, Huang F, Gary D, Barat R, Oliveira F, et al. THz imaging and sensing for security applications—explosives, weapons and drugs. Semiconductor Science and Technology. 2005; 20: S266–S280. 2. Lu M, Shen J, Li N, Zhang Y, Zhang C, Liang L, et al. Detection and identification of illicit drugs using terahertz imaging. Journal of Applied Physics. 2006; 100(10): 10310. 3. Chen J, Chen Yu, Zhao H, Bastiaans GJ, Zhang X-C. Absorption coefficients of selected explosives and related compounds in the range of 0.1–2.8 THz. Optics. Express. 2007; 15(19): 12060. PMID: [19547570](http://www.ncbi.nlm.nih.gov/pubmed/19547570) 4. Leahy-Hoppa MR, Fitch MJ, Zheng X, Hayden LM, Osiander R. Wideband terahertz spectroscopy of explosives. Chemical Physics Letters. 2007; 434: 227–230. 5. Choi K, Hong T, Sim KI, Ha T, Park BC, Chung JH, et al. Reflection terahertz time-domain spectroscopy of RDX and HMX explosives. Journal of Applied Physics. 2014; 115(2): 023105. 6. Nickel DV, Ruggiero MT, Korter TM, Mittleman DM. Terahertz disorder-localized rotational modes and lattice vibrational modes in the orientationally-disordered and ordered phases of camphor. Physical Chemistry Chemical Physics. 2015; 17(10): 6671–7078. 7. Van Rheenen AD, Haakestad MW. Detection and identification of explosives hidden under barrier materials—what are the THz-technology challenges? Proc. SPIE. 2011; 8017: 801719. 8. Ergu¨n S, So¨nmez S. Terahertz technology for military applications. Journal of Military and Information Science. 2015; 3(1): 13–16. 9. Davies AG, Burnett A D, Fan W, Linfield EH, Cunningham JE. Terahertz spectroscopy of explosives and drugs. Materials Today. 2008; 11(3): 18–26. 10. Katz G, Zybin S, Goddard WA, Zeiri Y, Kosloff R. Direct MD simulations of terahertz absorption and 2D spectroscopy applied to explosive crystals. _J_ . Phys. Chem. Lett. 2014; [5(5): 772–776. https://doi.org/](https://doi.org/10.1021/jz402801m) [10.1021/jz402801m PMID: 26274066](https://doi.org/10.1021/jz402801m) 11. Tanno T, Umeno K, Ide E, Katsumata I, Fujiwara K Ogawa N. Terahertz spectra of 1-cyanoadamantane in the orientationally ordered and disordered phases. Philosophical Magazine Letters. 2014; 94(1): 25– 29. 12. McIntosh AI, Yang B, Goldup SM, Watkinson M, Donnan RS. Terahertz spectroscopy: a powerful new tool for the chemical sciences? Chem. Soc. Rev. 2012; [41: 2072–2082. https://doi.org/10.1039/](https://doi.org/10.1039/c1cs15277g) [c1cs15277g PMID: 22143259](https://doi.org/10.1039/c1cs15277g) 13. Parrott E, Zeitler JA, Friscic T, Pepper M, Jones W, Day GM, Gladden LF. Testing the sensitivity of terahertz spectroscopy to changes in molecular and supramolecular structure: a study of structurally similar cocrystals. Crystal Growth and Design. 2009; 9(3): 1452–1460. 14. Li R, Zeitler JA, Tomerini D, Parrott E, Gladden L, Day G. A study into the effect of subtle structural details and disorder on the terahertz spectrum f crystalline benzoic acid. Phys. Chem. Chem. Phys. 2010; [12: 5329–5340. PMID: 21491656](http://www.ncbi.nlm.nih.gov/pubmed/21491656) [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 28 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure 15. Kojima S, Shibata T, Igawa H, Mori T. Broadband terahertz time-domain spectroscopy: crystalline and glassy drug materials. IOP Conf. Series: Materials Science and Engineering. 2014; 54: 012001. 16. Duling I, Zimdars D. Terahertz imaging: Revealing hidden defects. Nature Photonics. 2009; 3(11): 630–632. 17. Kawase K, Shibuya T, Hayashi SI, Suizu K. THz imaging techniques for nondestructive inspections. Comptes Rendus Physique. 2010; 11(7): 510–518. 18. Kraus E, Kremling S, Baudrit B, Heidemeyer P, Bastian M, Stoyanov OV, Starostina IA. Reflection time domain terahertz system for testing polymeric connections. Polymers Research Journal. 2015; 9(3): 345. 19. Ouchi T, Kajiki K, Koizumi T, Itsuji T, Koyama Y, Sekiguchi R. et al. Terahertz imaging system for medical applications and related high efficiency terahertz devices. Journal of Infrared, Millimeter, and Terahertz Waves. 2014; 35(1): 118–130. 20. Ok G, Park K, Kim HJ, Chun HS, Choi SW. High-speed terahertz imaging toward food quality inspection. Applied optics. 2014; [53(7): 1406–1412. https://doi.org/10.1364/AO.53.001406 PMID: 24663370](https://doi.org/10.1364/AO.53.001406) 21. Shigekawa H, Yoshida S, Takeuchi O. Spectroscopy: Nanoscale terahertz spectroscopy. Nature Photon. 2014; 8: 815–817. 22. Kemp MC. Explosives detection by terahertz spectroscopy—a bridge too far? Terahertz Science and Technology, IEEE Transactions on. 2011; 1(1): 282–292. 23. Palka N. Identification of concealed materials, including explosives, by terahertz reflection spectroscopy. Opt. Eng. 2013; 53(3): 031202. 24. Ortolani M, Lee JS, Schade U, Hu¨bers HW. Surface roughness effects on the terahertz reflectance of pure explosive materials. Appl. Phys. Lett. 2008; 93(8): 08190. 25. Schecklman S, Zurk LM, Henry S, Kniffin GP. Terahertz material detection from diffuse surface scattering. J. Appl. Phys. 2011; 109(9): 094902. 26. Choi J, Ryu SY, Kwon WS, Kim KS, Kim S. Compound explosives detection and component analysis via terahertz time-domain spectroscopy. Journal of the Optical Society of Korea. 2013; 17(5): 454–460. 27. Withayachumnankul W, Fischer BM, Abbott D. Numerical removal of water vapor effects from terahertz time-domain spectroscopy measurements. Proceedings of the Royal Society of London A: Mathematical, Physical and Engineering Sciences. 2008; 464: 2435–2456. 28. Puc U, Abina A, Rutar M, Zidansˇek A, Jeglič A, Valusˇis G. Terahertz spectroscopic identification of explosive and drug simulants concealed by various hiding techniques. Applied optics. 2015; 54(14): [4495–4502. https://doi.org/10.1364/AO.54.004495 PMID: 25967507](https://doi.org/10.1364/AO.54.004495) 29. Trofimov VA, Varentsova SA. An effective method for substance detection using the broad spectrum THz signal: a «terahertz nose». Sensors. 2015; [15 (6): 12103–12132. https://doi.org/10.3390/](https://doi.org/10.3390/s150612103) [s150612103 PMID: 26020281](https://doi.org/10.3390/s150612103) 30. Trofimov VA, Varentsova SA. Essential limitations of the standard THz TDS method for substance detection and identification and a way of overcoming them. Sensors. 2016; 16(4): 502. 31. Trofimov VA, Varentsova SA. False detection of dangerous and neutral substances in commonly used materials by means of the standard THz time domain spectroscopy. Journal of the European Optical Society. 2016; 11: 16016. 32. Trofimov V, Zagursky D, Zakharova I. Propagation of laser pulse with a few cycle duration in multi-level media. Days on Diffraction (DD), IEEE, 2015; 1–5. 33. Imura K, Nagahara T, Okamoto H. Near-field two-photon-induced photoluminescence from single gold nanorods and imaging of plasmon modes. J. Phys. Chem. B. 2005; [109: 13214–13220. https://doi.org/](https://doi.org/10.1021/jp051631o) [10.1021/jp051631o PMID: 16852648](https://doi.org/10.1021/jp051631o) 34. Marskar R, Osterberg U. Multilevel Maxwell-Bloch simulations in inhomogeneously broadened media. Optics Express. 2011; [19: 16784–16796. https://doi.org/10.1364/OE.19.016784 PMID: 21935040](https://doi.org/10.1364/OE.19.016784) 35. Castin Y, Molmer K. Maxwell-Bloch equations: A unified view of nonlinear optics and nonlinear atom optics. Phys. Review A. 1995; 51(5): 3426–3428. 36. Taflove A., Hagness CS. Computational electrodynamics: the finite-difference time-domain method: Artech house; 2005. 37. Liu Y. Fourier analysis of numerical algorithms for the Maxwell equations. Journal of Computational Physics. 1996; 124: 396–416. 38. Ziolkowski RW. The incorporation of microscopic material models into the FDTD approach for ultrafast optical pulse simulations. IEEE Transactions on Antennas and Propagation. 1997; 45: 375–391. 39. Bidegaray B, Bourgeade A, Reignier D. Introducing Physical Relaxation Terms in Bloch Equations. Journal of Computational Physics. 2001; 170:603–613. [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 29 / 30 Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure 40. Bidegaray B. Time discretizations for Maxwell-Bloch equations. Numerical Methods for Partial Differential Equations. 2003; 19: 284–300. 41. Born M., Wolf E. Principles of optics: electromagnetic theory of propagation, interference and diffraction of light: Elsevier; 2013. 42. Goloviznin VM.; Samarskii AA. Finite approximation of convective transport with a space splitting time derivative. Matematicheskoe Modelirovanie (in Russian). 1998; 10(1): 86–100. 43. Boyd RW. Nonlinear optics: Elsevier; 2003. 44. Thompson A, Taylor BN. (2008). Guide for the Use of the International System of Units (SI). Special Publication (NIST SP)-811: Ambler Thompson and Barry N. Taylor; 2008. 45. Yee K. Numerical solution of initial boundary value problems involving Maxwell’s equations in isotropic media. IEEE Transactions on Antennas and Propagation. 1966; 14: 302–307. 46. Bakhvalov NS. Courant–Friedrichs–Lewy condition, in Hazewinkel M. Encyclopedia of Mathematics: Springer Science+Business Media B.V. Kluwer Academic Publishers; 2001. 47. Frej H, Waclawek W, Kyziol JB. The dipole moments of carbazole derivatives. Chem. Papers. 1988; 42 (2): 213–221. 48. Chui K. Introduction to Wavelets: Academic; New York, 1992. 49. Cohen L. Time-frequency distributions—a review. Proceedings of the IEEE, 1989; 77(7): 941–981. [PLOS ONE | https://doi org/10 1371/journal pone 0201572](https://doi.org/10.1371/journal.pone.0201572) August 2 2018 30 / 30

섹션 본문 159문단 · 52,001자

(제목 없음)

1On the basis of the Crank-Nicolson method, we develop a conservative finite-difference scheme for investigation of the THz pulse interaction with a multilevel medium, covered by a disordered layered structure, in the framework of the Maxwell-Bloch equations, describing the substance evolution and the electromagnetic field evolution. For this set of the partial differential equations, the conservation laws are derived and proved. We generalize the Bloch invariant with respect to the multilevel medium. The approximation order of the developed finite-difference scheme is investigated and its conservatism property is also proved. To solve the difference equations, which are nonlinear with respect to the electric field strength, we propose an iteration method and its convergence is proved. To increase the computer simulation efficiency, we use the well-known solution of Maxwell's equations in 1D case as artificial boundary condition. It is approximated using Cabaret scheme with the second order of an accuracy. On the basis of developed finite-difference scheme, we investigate the broadband THz pulse interaction with a medium covered by a disordered structure. This problem is of interest for the substance detection and identification. We show that the disordered structure dramatically induces an appearance of the substance false absorption frequencies. We demonstrate also that the spectrum for the transmitted and reflected pulses becomes broader due to the cascade mechanism of the high energy levels excitation of molecules. It leads to the substance emission at the frequencies, which are far from the frequency range for the incident pulse spectrum. Time-dependent spectral intensities at these frequencies are weakly disturbed by the disordered cover and, hence, they can be used for the substance identification.

Introduction

2The detection and identification of hazardous chemical, biological and other substances by using the remote sensing is in research focus. One of the ways to achieve this aim is THz TDS because the THz radiation is non-ionizing and most common substances are transparent to it. Moreover, many hazardous substances have spectral fingerprints in the THz range of frequencies [1][2][3][4][5][6][7][8][9][10]. As a rule, the substance identification is based on a comparison of the absorption frequencies for a substance under investigation with the corresponding frequencies from a database. This method is used not only for security applications but also for a molecular structure investigation [11][12][13][14][15], nondestructive inspection [16][17][18], medical application [19], food quality inspection [20]. Currently, nanoscale terahertz spectroscopy is being actively developed as well [21].

3Despite the obvious advantages of THz TDS using for the substance detection and identification, there is some shortcoming of its application [22]. Apparently, under real conditions, the factors like opaque packaging, inhomogeneity of the substance surface, atmospheric humidity and others affect the THz spectroscopy results [23][24][25][26][27]. In addition, a substance is usually covered by ordinary materials (paper, clothes or some packaging) [28]. Being made from materials transparent for a THz radiation these covers often possess a microscopic mechanical structure in the sub-millimeter scale of lengths. This leads to cover density fluctuations and also to its thickness variations. Therefore, the dielectric permittivity of such covers is not homogeneous and can be considered as a disordered photonic structure in the THz frequency range. Thus, observing a THz pulse reflected from a neutral material, we can reveal the false absorption frequencies, which are not inherent to this material, and the material may be wrong considered as dangerous one [29][30][31][32]. The overcoming of this serious drawback of the THz TDS method mentioned above and its physical mechanism understanding are the challenging problems for developing the real detection systems.

4Another significant feature of the pulsed THz TDS is the THz pulse broadening after its interaction with a substance. Usually, the spectrum of the THz pulse transmitted through or reflected from a medium contains frequencies, which are, for example, greater than the maximal frequency of the incident pulse spectrum. This effect cannot be explained by multi-photon absorption of the THz radiation, because the THz pulse intensity is usually insufficient for its appearance. Using the computer simulation we have demonstrated a new spectral harmonic generation mechanism due to the absorption of a photon sequence (cascade mechanism), which results in the molecule higher energy levels excitation [32]. This mechanism may be observed in a great number of materials, possessing of vibration or rotation energy levels. We note that a photon sequence absorption belonging to visible frequency range was observed at studying the two-photon luminescence in a semiconductor [33].

5It is well-known that the excited molecules relax to the equilibrium states. Therefore, the emission frequencies in the reflected or transmitted signal spectrum appear. The substance emission at high frequencies can be used for the substance identification because a radiation with a shorter wavelength is less affected by the cover material. The computer simulation is based on the Maxwell-Bloch equations [34], [35].

6We emphasize that in our knowledge a problem statement under consideration is novel one and has not been investigated earlier. There are, at least, three features, which allow to state this. The first of them is an analysis of the interaction of the THz pulse containing a few cycles with disordered (or ordered) structure. The well-known Transfer Matrix Method for the description of the electromagnetic radiation interaction with the periodic structure is inapplicable in the case under consideration.

7Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure

8The second one is the following. An active medium (i.e. the medium capable of absorbing and emitting the THz waves), which is placed inside the disordered structure, can be considered as an impurity of the periodical structure. In optics, the sizes of such impurities are much less than the sizes of the photonic crystal elements. In our case, the active medium length is comparable with or greater than a length of the disordered structure layers.

9The third of the mentioned features is the description of the active medium response to the THz pulse action. We describe its characteristics evolution in the framework of a matrix density formalism.

10Usually, computer simulation of the electromagnetic field interaction with a substance describing in the framework of the Maxwell-Bloch equations is based on a combination of the FDTD method [36] with the step-split method [34], [37]. As we believe, for the first time, the Crank-Nicolson scheme for the time discretization of the Bloch equations was applied for a two-level medium in [38]. However, the Crank-Nicholson scheme does not possess the positiveness property of the density matrix diagonal elements for three and more energy levels. In [39] it was shown that negative values of the energy levels populations may even occur in numerical simulation. In the same paper [39] and later in [40] a step-split method was used for solution of the matrix density elements equations with respect to the multilevel medium. This approach guarantees the positiveness of the density matrix diagonal elements but it leads to the decoupling of the Maxwell-Bloch equations. The latter feature leads to non-preserving the integrals of motion (invariants).

11Below we derive a conservation law, which is a generalization of the Bloch invariant with respect to the multilevel medium. For computer simulation, we use a finite-difference scheme based on the Crank-Nicolson scheme supplemented by artificial boundary conditions, which approximate the well-known solution of the 1D wave equation [41]. Using the Cabaret scheme [42], we achieve the second order of accuracy for its approximation. Essentially that the proposed finite-difference scheme also possesses the conservativeness property with respect to the derived Bloch invariant and the invariants of the Maxwell's equations. To realize the finite-difference scheme we apply an iteration process and prove its convergence. Computer simulations show that the positiveness property of the density matrix diagonal elements is satisfied by choosing a mesh time step, which is defined by the problem parameters.

12This article is organized in the following way. In the Section 2, we state the problem and derive its invariants.

13In the Section 3, we develop the conservative finite-difference scheme for the Maxwell-Bloch equations formulated in the previous Section. Since the finite-difference scheme is a nonlinear one, we solve it by using an iterative method. We prove the theorem of the iteration convergence.

14Finally, in the Section 4 we discuss the computer simulation results for the THz pulses transmitted through (or reflected from) an uncovered medium or a medium covered by disordered structure. Then we discuss the differences in spectra of these pulses and a physical mechanism, which causes such differences.

Problem statement

15Initially, a THz pulse with a few cycles is located in vacuum and falls on an optically active medium (i.e. a medium, capable of electromagnetic field energy absorbing or emitting at specific frequencies). This medium is placed inside a disordered layered structure. Each of layers is characterized by its inherent dielectric permittivity and all layers are transparent for the THz radiation. The latter means that the layers do not possess any absorption frequencies in the Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure THz frequency range. Below, the term "medium" will denote the active medium and the term "cover" or "covering" will denote a disordered layered structure.

16A scheme of the laser pulse propagation is shown in Fig 1. Several important coordinates are marked in the figure, namely: positions of electric field detectors E refl and E trans ; coordinates of the active substance faces z L and z R , and coordinates of the cover faces z c1 and z c2 . The pulse propagates in vacuum, then transmits through the left cover, a medium, and finally, through the right cover, and exits into vacuum to the right. The pulse is partly reflected from various boundaries between layers and from the medium faces too. A certain part of the pulse energy is absorbed by the active medium. Generally speaking, a part of the absorbed energy can be emitted by the medium due to radiative transitions (emission) between excited energy levels. Reflected and transmitted pulses are detected near the left and right boundaries of the computational domain at the sections E refl and E trans . As a rule, these pulses may consist of a sequence of the THz sub-pulses.

Maxwell-Bloch equations

17We use the Maxwell's set of equations describing the THz pulse propagation in 1D case:

18together with equations with respect to the matrix density elements (see below). For convenience, we write above the set of equations in both systems of physical units. Here H, E are the magnetic field strength and the electric field strength, correspondingly. B, D are the magnetic field and electric field induction strength, correspondingly, z and t are the spatial coordinate and time, c = 3Á10 8 mÁs -1 is the light velocity in a vacuum. Parameters ε 0 and μ 0 in Eqs (1)- (3) are the permittivity of free space and the magnetic permeability of free space and their values are equal to ε 0 = 8.85Á10 −12 FÁm -1 , and μ 0 = 4πÁ10 −7 HÁm -1 = 4πÁ10 −7 TÁm A -1 , correspondingly [43]. Below we consider the case of a non-magnetic medium, thus, in Eq (3) the magnetic permeability is equal to μ = 1. P describes the medium polarization, L t is a time interval during which the electromagnetic field propagation is analyzed. Parameters L l and L r (see Fig 1) denote spatial coordinates of the domain beginning and its ending. The total length of the domain is equal to L z . = L r -L l . Coordinates z R and z L mark the positions of the medium boundaries, L s . = z R -z L is used to denote its length. We consider a TE mode of the THz pulse propagation. The THz pulses reflected from and transmitted through the medium with covering are computed for a number of random realizations for the dielectric permittivities and then the result is averaged. This procedure is usually applied in physical experiments also to suppress a random fluctuation influence on the measured THz pulse characteristics. Let us notice that, each of two covering structures contains N l layers with the layer thickness h l (see Fig 1). Dielectric permittivities at each of the layers we denote as ε j , ε j 0 , j = [1, N l ], for left and right covering, correspondingly.

19Obviously, in vacuum (z 2 [L l , z c1 ] [ [z c2 , L R ]) the electric field induction is equal to the electric field strength: D = E. In the cover layers (z 2 [z c1 , z L ] [ [z R , z c2 ]) the polarization is assumed to be proportional to the electric field strength and the Eq (3) is replaced by the following formula:

20where the dielectric permittivity ε(z) for each of the layers varies randomly in the range ε l = [ε min , ε max ] and it is uniformly distributed.

21To describe the medium polarization (z 2 [z L , z R ]) we use the matrix density formalism. In this case the medium is described by the following set of equations:

22ðd mq r qm À r mq d qm Þ; ð7Þ

23Here, ρ mn = ρ mn (z,t) is the element of the density matrix describing the state of a molecule, which possesses N energy levels, in a time moment t and at the medium section z. Diagonal elements of the matrix ρ mn describe the number of molecules at the energy level m. These Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure elements obey the condition X N m¼1 r mm ¼ 1 and obviously they are non-negative. The off-diagonal elements ρ mn are related to the medium polarization corresponding to a transition between n and m energy levels. γ mn , ω mn and d mn are the relaxation rate of non-diagonal elements, the transition frequency, and the dipole moment. They are associated with a transition from energy level m to n, correspondingly, W mn is the population decay rate. Parameter M is the density of "active" molecules in the medium, χ corresponds to the non-resonant linear electric susceptibility of the substance, ћ is the reduced Plank constant. It should be noted that the Eqs (6)-(8) describe both linear and nonlinear interaction of the electromagnetic field with the multilevel medium in the dipole approximation. The term

24ðd mn r nm Þ in the expression for the medium polarization (8) corresponds to a resonant or near-resonant response of the medium to the THz pulse action and causes the electromagnetic field energy absorption and emission of the medium. The second term χE in the same equation describes a linear non-resonant polarization of the medium arising because of the pulse interaction with the medium which has transition frequencies distant from the pulse carrier frequency. This term is responsible for the Fresnel reflection from the medium boundaries and plays the key role in the formation of reflected pulses.

25The initial condition for the electromagnetic field is as follows:

26Here E 0 is the incident electric field strength amplitude, H 0 is the incident magnetic field strength amplitude, z p the incident pulse center position, ν p and ω p = 2πν p are the carrier and angular pulse frequency, a z is the pulse length in space, τ p = a z /c is the pulse duration. The amplitudes for E and H are connected by well-known formulas (see below) at the electromagnetic wave propagation in a linear medium. We suppose that the medium is in the ground state until an action of the THz pulse:

27Obviously, this condition corresponds to the absolute zero value of temperature. Nevertheless, for the investigation of the cascade mechanism manifestation we consider "pure conditions". Under room temperature, the effect will be still pronounced but its interpretation is difficult because a number of possible energy level transitions take place at the electromagnetic pulse action on the medium.

Dimensionless equations

28For computer simulation, it is useful to transform the Eqs (1)-(10) to a dimensionless form. We use the following normalization, where the index "dim" means dimensionless variables:

29Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure

30Here τ 0 is chosen to be equal to 10 −12 s as a unit of time measurement. This value corresponds approximately to 0.3 mm. We also introduce the following dimensionless coefficient:

31Note that in the SI base units, this coefficient has the form [44]:

32For the dimensionless values of E, H and P we write the following relations:

33Using Eqs (11)-(15), Eqs (1)-(10) can be rewritten in the dimensionless form:

34Dðz; tÞ ¼ εðz; tÞ Á Eðz; tÞ; z 2 ½z c1 ; z L [ ½z R ; z c2 ; ð19Þ

35ðd mq r qm À r mq d qm Þ; ð22Þ

36For brevity, an index "dim" is omitted below.

Maxwell's equations invariants.

37To verify the computer simulation accuracy we follow the problem invariants, which can be easily obtained by integrating Eqs (16) and (17) along z and t coordinates.

38After the integration, the following invariants can be written:

39Here, I 1 and I 2 are the constants determined by the incident pulse parameters. If the electromagnetic field does not reach the computational domain boundaries, the invariants (28) and (29) are transformed:

Bloch invariant. Theorem 2.1.

40Provided relaxation rates W mm and γ mn are negligible, the density matrix evolution described by Eqs (21) and (22) obeys the following invariant:

41Proof. Firstly, let us introduce auxiliary definitions:

42the purpose of which is to reduce the complexity of the forthcoming operations. Although we derive the invariant supposing the influence of relaxation determined by γ mn negligible, it is still present in our consideration in order to demonstrate its role in invariant deterioration. Secondly, let us remind that the matrices d, ρ and and O are Hermitian ones:

43Note here, that O mm = 0, O mn + O nm = 2γ mn , because the matrices ω and γ are antisymmetric and symmetric real-valued matrices correspondingly, and the main diagonal elements of matrix γ is equal to zero:

44Using theses notations, Eqs (6) and (7) can be re-written in the following form:

45Let us further transform Eq (36) separating the terms in the sum, which contain diagonal and off-diagonal elements:

46For brevity, we introduced above additional notations:

47where δ mn = -δ nm is the difference of the energy levels populations. Now, we use well-known formula and Eq (35) to obtain the time derivative for the squared matrix elements, which are complex values:

48Thus, multiplying Eq (37) by r à mn and summing the result with its complex conjugate, and taking into account Eq (39), we obtain the following expression:

49Where

50It is now seen from Eq (40) that the non-zero relaxation (γ mn 6 ¼0) causes exponential decay of each of terms in the second sum in the formula (32). Therefore, to derive the invariant, we assume below that γ mn = 0. In general case, one can write a law of density matrix elements decaying.

51Next, let us construct evolution equations for the squared population differences between two energy levels δ mn . After trivial transformations, it can be obtained from Eq (39) in the following form:

52Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure

53Now, let us perform the summation of Eqs (40) at zero relaxation (γ mn = 0) using Eq (38) and also the summation of Eq (42) for all the pairs of indices m and n such that 1 n<m N:

54ðd mq r qn r nm À d qn r mq r nm þ d nq r qm r mn À d qm r nq r mn Þ þ φ mn Þ; ð43Þ

55We chose such summation limits using the analogy with the derivation of the Bloch invariant in the case of two energy levels medium and keep the time derivatives as separate sum for clearness of further transformations.

56Let us notice that the sum

57contains all combinations of three distinct integer numbers in the range 1; N . In combinatorics, the term "combination" means "a way to choose k distinct elements from a set of l elements without regard to the order of selection. And word "triple" below will be used to denote "a combination of three elements from the range 1; N ".

58For each trio of distinct numbers, we can assign names a, b, c to them in such a way so that a<b<c. Let us now examine one such trios that is spanned according to the sum limits. There exists only three possible ways to assign numbers a, b, c to indices m, n, q. The possible assignments are listed in the Table 1. Now let us examine the terms in Eq (43) related to the specific trio a, b, c:

59¼m;n q¼1 d mq r qn r nm À d qn r mq r nm þ d nq r qm r mn À d qm r nq r mn þ m; n; q 6 ¼ b; a; c; m; n; q 6 ¼ c; a; b ; m; n; q 6 ¼ c; b; a þiEðd bc r ca r ab À d ca r bc r ab þ d ac r cb r ba À d cb r ac r ba Þþ þiEðd cb r ba r ac À d ba r cb r ac þ d ab r bc r ca À d bc r ab r ca Þþ þiEðd ca r ab r bc À d ab r ca r bc þ d ba r ac r cb À d ac r ba r cb Þ; m; n ¼ 1; N :

60The last three terms form the only possible set described by a particular combination of three numbers. These three terms cancel out each other for any arbitrary combination of numbers and the second sum in Eq (45) contains all such combinations. Thus, the second term in Eq (45) is equal to zero as well. Hence, the all-pairs sum of the squared off-diagonal elements is equal to:

61Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure

62Now, let us perform the same analysis for the population differences:

63Here it is important that definition of δ mn . Eq (38) provides that:

64Taking into account Eq (48) along with the definition (41), the Eq (47) can be transformed into:

65We see that our analysis demonstrates the appearance of an additional term −2(φ ba + φ ca + φ cb ) in Eq (49), which contains φ mn indexed by all three possible two number combinations in the triple a, b, c. There are N 3 of various triples that the second term contains, in these combinations of three elements each possible combination of two elements is repeated N-2 times in total. So, φ mn associated with each particular pair of indices appears in the sum N-2 times as well and Eq (49) can be transformed into: Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure which is simplified further:

66Now it is evident, that we can obtain the required invariant in time (32) by multiplying Eq (46) by 2N and summing it with Eq (51).

Finite-difference scheme

67To solve Eqs (16)-(27), we use a combination of the well-known Yee's scheme [36], [45] for Maxwell's equations and a Crank-Nicolson scheme for the equations with respect to the density matrix with an iteration process. Therefore, to realize the positiveness property of the density matrix diagonal elements we use a sufficiently small mesh steps in computer simulation.

Approximation of the equations

68The model (16)

69Here N z and N t are numbers of nodes along spatial coordinate and time, correspondingly. Let us also introduce the following notations for nodes:

70which correspond to the incident pulse centre coordinate; the coordinates of the disordered structure beginning and ending and coordinates of the medium beginning and ending and the number of nodes inside single cover layer, correspondingly (see Fig 1). The square brackets in Eqs (56) and (57) mean the integer part of the fraction. (We always use parameters such that these indices are integer without rounding.)

71Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure

72The mesh function ε(z j ) for the dielectric permittivity is defined on the grid ω z :

73We note that the dielectric permittivity is defined in the same nodes as the electric field induction and electric field strength. Mesh function for the magnetic field strength is defined on the gridÕ : Hðz jþ0:5 ; t lþ0:5 Þ. The mesh functions for the electric field strength and its induction as well as for the mesh functions for density matrix elements and medium polarization are defined on the grid O: D(z j , t l ), E(z j , t l ), ρ mn (z j , t i ), P(z j , t l ), correspondingly. For brevity, we save the same notations for the mesh functions as for the differential functions introduced above.

74Eqs (16) and (17) are approximated using the Yee's method. Therefore, in our notations the corresponding finite-difference scheme is written as Hðz jþ0:5 ; t lþ0:5 Þ À Hðz jþ0:5 ; t lÀ 0:

75Dðz j ; t lþ1 Þ À Dðz j ; t l Þ t ¼ À Hðz jþ0:5 ; t lþ0:5 Þ À Hðz jÀ 0:

76In vacuum, the electric field strength is equal to its induction:

77and in the cover layers their relation is defined as:

78A relation between the mesh functions for the electric field strength and its induction for the medium is written below after writing the finite-difference scheme for the density matrix.

79The novel feature of this well-known finite-difference scheme consists of the multilevel Maxwell-Bloch equations approximation for a medium response description. So, the Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure approximation of Eqs (20)- (23), based on the Crank-Nicolson scheme, is made in the following form:

80ðd mqrqn Àr mq d qn Þ; ð63Þ

81ðd mqrqm Àr mq d qm Þ; ð64Þ

Boundary conditions approximation

82At the edges of the computational domain, Eqs (1) and (2) are replaced with equations supplying a one-directional propagation, which makes boundaries transparent and reflectionless.

83In the boundary node j = N z we use the Cabaret approximation [42] for the translation operator:

2

84Hðz N z À 0:5 ; t lþ0:5 Þ À Hðz N z À 0:5 ; t lÀ 0:5 Þ t þ Hðz N z À 1:5 ; t lÀ 0:5 Þ À Hðz N z À 1:5 ; t lÀ 1:5 Þ t þ þ Hðz N z À 0:5 ; t lÀ 0:5 Þ À Hðz N z À 1:5 ; t lÀ 0:

85The corresponding difference equation for the first node on the spatial mesh is written in the following form:

Initial condition approximation

86We see that these Eqs (70)-(73) are not applicable on the first time step l = 1. Since we consider the finite incident electromagnetic pulse, therefore we can define the initial mesh functions for the electromagnetic field distribution in the following way:

87Hðz jþ0:

88Here j p is the mesh node index corresponding to the position of the initial pulse center:

89Note that the initial values of H are defined at t 0.5 node, which corresponds to the propagation of a wave packet in positive direction of z-coordinate. Therefore, taking into account the wave equation we can define the zero-value mesh functions in the boundary nodes on the second time layer (l = 1):

90The initial state of the medium is approximated in the following way:

Proof of finite-difference scheme conservativeness Theorem 3.1. The finite-difference scheme (58)-(80) is conservative one and preserves difference analogues of the invariants (28)-(31).

91Proof. The invariants can be obtained by performing the summation of Eqs (59) and (60) with taking into account the boundary conditions (70)-(73). After that, we get the conservation law in the form:

92ðHðz jþ0:5 ; t N t À 0:5 Þ À Hðz jþ0:5 ; t 1:5 ÞÞ ¼ À t h

93l¼2 ðHðz 1:5 ; t lÀ 0:5 Þ À Hðz 0:5 ; t lÀ 0:5 ÞÞ À ðHðz 1:5 ; t N t À 1:5 Þ À Hðz 1:5 ; t 0:5 ÞÞÀ

94ðHðz N z À 0:5 ; t lÀ 0:5 Þ À Hðz N z À 1:5 ; t lÀ 0:5 ÞÞ À ðHðz N z À 0:5 ; t N t À 1:5 Þ À Hðz N z À 1:5 ; t 0:5 ÞÞ:

95Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure

96Applying a similar procedure to the Eq (60), we obtain:

97ðHðz N z À 0:5 ; t lþ0:5 Þ À Hðz 0:5 ; t lþ0:5 ÞÞþ þ2 t h

98If there are the zero-value boundary conditions for the electromagnetic field then Eqs (81) and (82) transform into the equalities:

99Proof. The proof repeats most steps from the same invariant derivation in the differential form (see Theorem 2.1). It starts from the Eqs (63) and (64). Similar to Eqs (33), (38) and (41) we introduce the following notations:

100q6 ¼m;n ðd mqrqn À d qnrmq Þ;d mn ¼r mm Àr nn ;

101Definitions ofẼ andr are the same as in Eq (65). With these notations, the Eqs (63) and (64) are written as:

102ðd mqrqn Àr mq d qn Þ: ð87Þ

103Next, we write the squared derivatives of the non-diagonal elements in the following way:

104jr mn ðz j ; t lþ1 Þj 2 À jr mn ðz j ; t l Þj 2 t ¼ ¼r à mn r mn ðz j ; t lþ1 Þ À r mn ðz j ; t l Þ t þ r à mn ðz j ; t lþ1 Þ À r à mn ðz j ; t l Þ tr mn :

105Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure

106Using this definition, we repeat steps (34) and (40) of the analytical derivation and obtain an analogue of Eq (43):

107Similarly, we obtain the analog of the Eq (42) for thed mn :

108Next, repeating the steps (42)-(51) of the analytical derivation one can easily obtain an analogue of the invariant (32): The boundary conditions are approximated by the Cabaret finite-difference scheme (70)-(73) with the second order in the points ðz 1 ; t lÀ 0:5 Þ; ðz 0:5 ; t l Þ; ðz N z À 0:5 ; t l Þ; ðz N z À 1 ; t lÀ 0:5 Þ; l ¼ 2; N t À 1:.

Approximation order investigation

109We stress that the difference analogues of the invariants (82), (83) and (86) preserve their values during the computation time with the accuracy not worse than 10 −6 for the mesh steps being equal to 0.01 (the full set of parameters are shown in the next section). Invariant (86) takes place only in the case of zero relaxation rate of off-diagonal elements. In our simulation, relaxation is non-negligible and therefore, the invariant value decreases over time as expected. In current paper, we have to introduce this invariant to explain peculiarities in population dynamics (section 2.3.2).

Iterations convergence proving

110The difference Eqs (59)-(69) are nonlinear ones in respect to the electric field strength E and the density matrix elements ρ mn . To solve the equations, the following iteration method is

111E s ¼ 0:5ðE s ðz j ; t lþ1 Þ þ Eðz j ; t l ÞÞ;r s mn ¼ 0:5ðr s mn ðz j ; t lþ1 Þ þ r mn ðz j ; t l ÞÞ; s ¼ 1; 2; . . . ; ð95Þ

112The functions on zero-iteration are chosen equal to their values on the previous time layer:

113The iteration process is stopped if both of the following conditions are satisfied:

114jr sþ1 mn ðz j ; t lþ1 Þ À r s mn ðz j ; t lþ1 Þj < e 1 jr s mn ðz j ; t lþ1 Þj þ e 2 ; ð98Þ

115where e 1 and e 2 are positive constants, characterizing the maximal absolute and relative accuracy of the iteration process. In our computer simulations, their values were chosen as 10 −8 and 10 −10 correspondingly. The procedure for the solution of the system (59)-(62) and (92)-(95) is the following. First, from Eq (59) we obtain the value of H(z j+0.5 , t l+0.5 ) on the next time layer, then we have D (t l+1 , z j+1 ) from Eq (60) and E s+1 (z j , t l+1 ) from Eq (94). We substitute the last value in the Eqs (92) and (93) at the next iteration step, etc. Proof. To prove this theorem, we have to demonstrate that (92)-(95) is a contraction, i.e. that all iterations are uniformly limited in a certain difference norm kÁk h :

116where C E and C ρ are constants, and that the following inequalities:

117jjr sþ1 À r s jj h qjjr s À r sÀ 1 jj h ; q < 1 ð101Þ

118Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure are valid. We use the difference norm C:

119In Eq (102) the letter "f" denotes mesh function defined on the mesh. We estimate the function modules on different iteration steps and show that they are uniformly bounded in the norm (102). Then considering the iteration differences kE s+1 − E s k C and kρ s+1 − ρ s k C , and using estimations similar to those applied for the iteration modules we get the inequalities (102) in the norm (102).

Numerical stability of the finite-difference scheme

120A stability condition for the finite-difference scheme (59)-(69) is the Courant-Friedrichs-Levy (CFL) condition [46], because the developed scheme involves the Yee's one. When the Maxwell's equations are solved, the CFL condition is well-known for the linear wave equation and has the form u h/τ, where u is the wave propagation velocity [46]. In Eqs (59) and (60) the wave velocity u for a linear medium with ε = 1 (vacuum) is equal to unity (u = 1), the mesh steps are chosen to be equal: h = τ, and the CFL condition reduces to the inequality u 1. Thus, for the wave propagation in a vacuum the CFL condition is valid: u = 1. In the active medium as well as in the disordered structure, the wave velocity is less than unity because the dielectric permittivity is greater than unity and u ¼ 1= ffiffi ffi ε p in the dimensionless units. Therefore, the CFL condition is also fulfilled.

121It should be stressed that the preservation of the invariants (Theorem 3.1) is an additional confirmation of the solution correctness.

Computer simulation results

122The aim of investigation provided below consists in an analysis of the pulses reflected from and transmitted through a three energy-level medium covered by disordered structure. We analyze the pulse structure (it consists from several sub-pulses) and its spectrum, and the spectra of sub-pulses. We pay attention to the substance emission at the transition 3-1 (high frequency), which appears due to the cascade mechanism of high energy level excitation and we demonstrate the evidence of its manifestation.

Computer simulation parameters

123The computer simulation results for substance with covering are averaged over 32 random realizations for the cover dielectric permittivity random distribution. Usually, in physical experiments [29] we made also 16 or 32 realizations at the measurements of THz signals with duration about 100 ps. If we use more random realizations, then the measurement time increases up to 1 min, which is not acceptable in practice.

124The electric field strength unit E 0 was chosen to be 1.05Á10 6 V/m. Using the well-known formula, we can estimate the peak intensity of the pulse in SI units as

125This formula yields the maximal intensity of the pulse equal to 3Á10 5 W/cm 2 . Another wellknown formula [46] gives the value of the magnetic field induction and the magnetic field strength:

126Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure where n ¼ ffiffiffiffiffi ffi εm p is the refractive index. Taking into account that in a vacuum ε = μ = 1, we obtain: B 0 = 3.5Á10 −3 T, H 0 = 2785 A/m (or 27.85 A/cm). Evidently, for practice the intensity less than 10 6 W/cm 2 is more reasonable but in computer simulation, the effect of second harmonic generation is better pronounced for greater than this value of the pulse intensity.

127The dipole moment unit d 0 is equal [47] to 1.47Á10 −18 cm 2.5 g 0.5 s -1 or 4.58Á10 −30 CÁm. The density of the molecules in the medium is equal to M = 5.67Á10 21 cm -3 = 5.67Á10 27 m -3 . In this case the coefficient κ = 12.5 in the Eq (15).

128We chose the mesh steps as h = τ = 0.01. Iteration process parameters are chosen as e 1 = 10 −8 and e 1 = 10 −10 , their decreasing does not result in notable changes of the computer simulation results at chosen mesh steps. Other dimensionless coordinates are given in the Table 2. The parameters of the medium and the pulse are provided in the Table 3.

Transmitted and reflected pulse structure

129The computer simulation is made for two cases: with the cover presence and without it to clarify its influence on the reflected and transmitted pulse spectra. The typical signals are depicted in Fig 2. One can see that in both cases the spatial pulse length is comparable with the length of a medium. The pulse splitting into a few sub-pulses is clearly seen for both covered and uncovered media. However, if the cover is absent then there are only three noticeable sub-pulses, which are caused by THz radiation multi-reflections from the left and right medium layer faces and interference pattern induced by these reflected signals. The first reflected sub-pulse in Fig 2A is usually named as the main sub-pulse and it occurs directly due to the THz pulse reflection from a medium layer face. Then, we observe much more sub-pulses in the reflected signal. They can usually be exploited with success for the substance detection and identification.

Fourier spectra

130The Fig 2 demonstrates the comparison of the signal spectra, which are calculated as the absolute value of the Fourier transform using the well-known formula:

131Here L is the time interval (in this case, L = L t , N 0 = N t = 10 4 ) or the spatial computational domain length (L = L z , N 0 = N z = 3200). This transform is applied to the measured signals E refl , E tran and similar Fourier transform is also applied to the incident pulse electric field strength distribution E(z, t = 0). Note that in physical experiments the frequency ν = ω/2π is usually measured, that is why in the figures below we use this ordinary frequency instead of the frequency ω.

132As follows from the Fig 3A and 3B, the spectra are significantly disturbed because they possesses a strong modulation and it is even more powerful if a cover is absent. This is a consequence of the interference of different sub-pulses depicted in Fig 2. Obviously, the spectrum minima can be considered as the absorption frequencies and, thus, they may be treated as the false absorption frequencies [31]. To eliminate these mistakes, the sub-pulses should be analyzed separately. Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure

133At the same time, if covering of the medium is present, the THz pulse spectrum is not so much periodically modulated because the reflected signal is averaged over 32 random realizations. However, they exhibit irregular minima of various depth, which could be also interpreted as the absorption spectral lines of some substances while they are simply caused by the pulse multiple reflections from the faces of various layers and, consequently, an interference of appeared sub-pulses produces this spectrum modulation.

134Other way for the substance identification may be achieved at using the substance emission frequency analysis. For the substance under consideration, a medium emission is present due to the energy level transition 3-1. We see that this frequency is absent in the incident pulse spectrum. Its appearance in the reflected pulse spectrum is due to the cascade mechanism of high energy level excitation of substance molecules. Because the spectrum shape near the frequency 1.75 (Fig 3C and 3D) is not distorted despite the presence of covering it is possible to use it for the substance identification. In Fig 4 the energy level population evolutions in the chosen section (z = 0) is shown. We stress that in our computer simulation, the parameters correspond to optically thin layer. Thus, the general behavior of the energy level populations in any medium sections is qualitatively similar to each of them. Hence, we depict a time evolution of the density matrix elements for a single section only. In these figures, it may be not evident that the third energy level is populated as a result of the 2-3 energy-level transition. Indeed, in Fig 4A, we see notable Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure oscillations of the third energy level population and these oscillations are not synchronous to the second energy level population changing. Let us notice that in [32] we have presented results corresponding to strong electric field strength amplitude (E 0 = 2) at studying the transmitted signal only. In that case, the third energy level population increases after the second energy level population becomes high enough. At significantly lower electric field strength, it is necessary to use the correlation coefficient between a pair of the energy level populations as an estimation of the cascade mechanism presence for the high energy level excitation.

135The correlation coefficient between two series of measurements containing N' numbers of data is given by the following formula: Comparison of the incident pulse spectra (E inc ) with the spectra reflected from (solid line) or transmitted through (dashed line) the medium without cover (a) and spectra averaged over 32 random realizations for the dielectric permittivity in layers of a disordered structure (b). The spectra near the frequency, corresponding to 3-1 energy level transition, for uncovered and covered medium correspondingly (c, d) (dimensionless units).

136https://doi.org/10.1371/journal.pone.0201572.g003

137Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure

138where, a mean , b mean are the mean values of the measured variables. This formula application to the energy level populations in the time interval [10,35] with N' = 2500 yields the following correlation magnitudes:

139Thus, from Eq (106) it can be seen that the populations of the first and second energy levels are tightly connected and are uninfluenced by the instantaneous value of the electric field strength (107). On the other hand, the third level population is significantly correlated with the electromagnetic field due to non-resonant interaction. That means, when the electromagnetic pulse propagates in a medium, the electric field causes its polarization, related to nondiagonal elements of the density matrix ρ.

140In accordance with invariants of Maxwell-Bloch equations (32), the appearance of the polarization induces temporary shifts in the energy level populations. In the case of three level medium, the invariant is written as follows: Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure

141As soon as external electric field strength decreases, the substance polarization decreases also, and consequently the populations return to their initial values. This is non-resonant process unrelated with the medium emission.

142Nevertheless, the medium polarization is not only the process influencing the third energy level population evolution. High correlation between the second and third level corr(ρ22, ρ33) is more notable. That means that the second energy level population is significant factor governing the third energy level population evolution and the third energy level excitation takes place due to the cascade mechanism.

143Thus, there are three processes that influence the population of the third level. One of them is the medium non-resonant polarization. Other two of them are resonant transitions between the second and third energy levels and between the third and first energy levels. The first process can cause the first growth of the third energy-level population ρ 33 before of the second level population ρ 22 growth. This process is not accompanied by electromagnetic field energy absorption and does not result in non-zero value of the third energy level population changes after the pulse action ending. Therefore, as soon as the field strength decreases, the population returns to the initial state without any medium emission. Other two processes are responsible the population relaxation process, which is several orders of magnitude slower than the energy level excitation processes.

Spectra of sub-pulses

144In our previous papers [29], [30] we have shown that the detection and identification of a substance using the THz radiation measured in the reflection mode can be effective at analyzing the sub-pulses following the main pulse reflected from the substance face. In this case, we get information about the substance absorption frequencies. Below we provide a similar analysis for a medium covered by disordered structure. However, another our purpose is to observe also a substance emission at the frequencies corresponding to transitions from the high energy levels excited due to the cascade mechanism. To obtain the sub-pulse spectra, the Fourier-Gabor transform [48] is applied to the signal E(Z refl\tran , t k ) in the corresponding time intervals.

145It should be noted that if the signal amplitudes at the left and right ends of the time interval differ then the effect, which is known as the spectrum spreading [49], occurs. As a result, false frequencies appear in the signal spectrum. They can be suppressed by using the window weight function that tends to zero toward the ends of the time interval. For this purpose, at each time interval, which contains the corresponding sub-pulse, we use the Fourier-Gabor transform [48] which is a near-rectangular window. Therefore, we obtain: E I;II;III;... reflntran ðo n Þ ¼ j

146where E I,II,III. . . Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure time interval. In our simulation, this parameter was taken to be equal to 20 for the window function G(t) to fall off sharply. Fig 5 shows the sub-pulse spectra for the signals reflected from and transmitted through an uncovered medium. The transform window edges and the signal partitioning can be seen in the Fig 2A. In Fig 5A the spectrum modulation is absent at all. Apparently, the first reflected sub-pulse depicted in the Fig 5A is formed due to the reflection by the left face of the medium and thus, does not propagate inside the medium and, therefore, does not interact with it. This reflected pulse spectrum contains no information about the medium absorption frequencies, and the spectrum shape is the same as that for the incident pulse (Fig 3A).

147The second sub-pulse ( Fig 5B) appears due to multi-reflections from the right and left faces of the medium before being detected at the left section E refl . The absorption frequency corresponding to the transition 1-2 (the frequency 0.8) is noticeable in its spectrum as well as weak spectral intensity maximum at the frequency 1.75 corresponding to the cascade mechanism of high energy level excitation. The absorption frequency corresponding to the energy level transition 2-3 is not seen (Fig 5B) because of weak increasing of the second energy level population. As follows from Fig 4A, the latter remains quite low: thousand times less than the Fig 2) spectrum (a, c) and the second sub-pulse (area II in Fig 2) spectrum for the signal reflected from and transmitted through a medium without covering. The spectra (c, d) are shown in the higher frequency range (dimensionless units).

148https://doi.org/10.1371/journal.pone.0201572.g005

149Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure population of the first energy level. Therefore, the spectrum dip, corresponding to this energy level transition, is quite small.

150In opposite, both transmitted sub-pulses exhibit notable spectrum peculiarities. The first one contains the absorption frequency 0.8. The second sub-pulse spectrum (Fig 5B and 5D) exhibits a substance emission at the frequencies 0.8 and 1.5. Hence, we observe the spectral maximum instead of spectral minimum at the frequency corresponding to the 1-2 energy level transition. The frequencies corresponding to the energy level transition 2-3 or 3-2 is not observable at all here. It should be stressed that in the spectrum of the second sub-pulse transmitted through a medium, some additional false absorption frequencies occur.

151Let us discuss the corresponding spectra of the sub-pulses reflected from or transmitted through the medium covered by disordered structure. The temporal partitioning of the subpulses can be seen in the Fig 2B. In Fig 6 the corresponding sub-pulse spectra are depicted. We see that the main reflected pulse spectrum in Fig 6A is slightly different from the incident pulse spectrum.

152The main transmitted pulse, located in the time region II (Fig 2B), exhibits the absorption frequency 0.8 presence in the spectrum (Fig 6B). Nevertheless, the pulse spectrum contains the false absorption frequency, which is equal to 0.7. The second reflected sub-pulse spectrum ( Fig 6B) contains only the false absorption frequencies, which do not belong to a medium, and they are a result of superposition of the pulses caused by electromagnetic field multi-reflections from the layered structure.

153In the time area III (Fig 2B), the second transmitted and the third reflected pulses are located (Fig 6C). The electric field strengths of these pulses are 10 times less than the ones for previous sub-pulses. Nevertheless, the emission at the frequency 0.8 related to 2-1 energy Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure level transition can be observed in the transmitted sub-pulse spectrum. At the same time, the absorption frequency corresponding to 2-3 energy level transition is noticed together with several absorption frequencies. We stress that the third reflected sub-pulse is the first reflected one that contains the absorption frequencies related to the medium. However, it contains also the false frequencies about of 0.5 and 0.6 dimensionless units, and there is a spectrum minimum at the frequency 1.01, which is shifted away from the 2-3 transition resonance frequency.

154The spectrum of the third transmitted sub-pulse, located in time interval IV, contains maximum at the frequency about of 0.8 (this means a substance emission presence (Fig 6D)) and it contains also a number of false absorption frequencies. The fourth reflected sub-pulse is distorted as well. In the frequency range ν<0.7 the spectrum shape is similar to that of the third reflected sub-pulse. Thus, the same mechanism of the spectrum distortions exists. However, the other part of the spectrum is quite different: the spectrum minimum at the frequency 0.8 is still present but it is shifted to the range of lower frequencies, and the spectrum minimum at the frequency 0.9 is observed, unlike the third sub-pulse in which the spectrum minimum is located at the frequency 1.01. Fig 6E demonstrates comparison of reflected sub-pulses spectra near the frequency 1.75 corresponding to 3-1 energy level transition. For the first and second sub-pulse, the spectral intensity maximum at this frequency is absent. The third and fourth sub-pulse spectra have the maximum near the frequency 1.75. It means that those sub-pulses can be used for the substance identification. However, the fourth sub-pulse is very weak and is significantly distorted even in this frequency range.

155Thus, we have demonstrated the cascade mechanism of high energy level excitation and the emission frequency observation corresponding to the transition 3-1 in the spectra of both pulses reflected from or transmitted through the substance. Since this frequency is observed in the case of the covered medium, it may be used with success for the detection and identification of the substance.

Conclusions

156We develop the conservative finite-difference scheme for the problem describing an interaction of the THz pulse, containing a few cycles, with the multilevel medium in the framework of the Maxwell-Bloch equations. This finite-difference scheme is based on the Crank-Nicolson scheme with using a new approximation of the artificial boundary conditions on the basis of the Cabaret scheme. For a solution of the corresponding nonlinear difference equations, the iterative process is proposed and its convergence condition is written.

157We generalize the Bloch invariant for a multilevel medium and the conservativeness of the developed finite-difference scheme with respect to this invariant as well as to the invariants of the Maxwell's equations were proved. The proposed finite-difference scheme allows to control the positiveness property of the energy level populations at computer simulation by choosing the mesh step in appropriate way.

158We have demonstrated that the disordered structure covering of a medium results in appearing of the false absorption frequencies. This effect arises from complicated interference of the multiple sub-pulses reflected from various faces between layers of the disordered structure.

159We showed the appearing of the emission frequencies belonging to the range of high frequencies in the sub-pulses spectra due to the cascade mechanism of high energy level excitation for both transmitted and reflected THz signals. The disordered cover less distorts the Finite-difference scheme for the problem of THz pulse interaction with layer covered by disordered structure spectral intensities of these frequencies. Therefore, they can be used with success for the substance detection and identification.

참고문헌 45건

  1. An Effective Method for Substance Detection Using the Broad Spectrum THz Signal: A "Terahertz Nose" Sensors · Multidisciplinary Digital Publishing Institute · 2015 10.3390/s150612103
  2. Near-Field Two-Photon-Induced Photoluminescence from Single Gold Nanorods and Imaging of Plasmon Modes The Journal of Physical Chemistry B · American Chemical Society · 2005 10.1021/jp051631o
  3. Broadband terahertz time-domain spectroscopy : crystalline and glassy drug materials IOP Conference Series Materials Science and Engineering · IOP Publishing · 2014 10.1088/1757-899x/54/1/012001
  4. Nanoscale terahertz spectroscopy Nature Photonics · Nature Portfolio · 2014 10.1038/nphoton.2014.272
  5. Fourier Analysis of Numerical Algorithms for the Maxwell Equations Journal of Computational Physics · Elsevier BV · 1996 10.1006/jcph.1996.0068
  6. Reflection terahertz time-domain spectroscopy of RDX and HMX explosives Journal of Applied Physics · American Institute of Physics · 2014 10.1063/1.4861616
  7. High-speed terahertz imaging toward food quality inspection Applied Optics · Optica Publishing Group · 2014 10.1364/ao.53.001406
  8. Surface roughness effects on the terahertz reflectance of pure explosive materials Applied Physics Letters · American Institute of Physics · 2008 10.1063/1.2973403
  9. Detection and identification of illicit drugs using terahertz imaging Journal of Applied Physics · American Institute of Physics · 2006 10.1063/1.2388041
  10. Detection and identification of explosives hidden under barrier materials: what are the THz-technology challenges? Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2011 10.1117/12.886108
  11. THz imaging and sensing for security applications—explosives, weapons and drugs Semiconductor Science and Technology · IOP Publishing · 2005 10.1088/0268-1242/20/7/018
  12. Absorption coefficients of selected explosives and related compounds in the range of 0.1-2.8 THz Optics Express · Optica Publishing Group · 2007 10.1364/oe.15.012060
  13. Terahertz Imaging System for Medical Applications and Related High Efficiency Terahertz Devices Journal of Infrared Millimeter and Terahertz Waves · Springer Science+Business Media · 2013 10.1007/s10762-013-0004-5
  14. Terahertz spectroscopy of explosives and drugs Materials Today · Elsevier BV · 2008 10.1016/s1369-7021(08)70016-6
  15. Terahertz Technology For Military Applications Journal of Military and Information Science · Sakarya University · 2015 10.17858/jmisci.58124
  16. Testing the Sensitivity of Terahertz Spectroscopy to Changes in Molecular and Supramolecular Structure: A Study of Structurally Similar Cocrystals Crystal Growth & Design · American Chemical Society · 2009 10.1021/cg8008893
  17. Maxwell-Bloch equations: A unified view of nonlinear optics and nonlinear atom optics Physical Review A · American Physical Society · 1995 10.1103/physreva.51.r3426
  18. Introducing Physical Relaxation Terms in Bloch Equations Journal of Computational Physics · Elsevier BV · 2001 10.1006/jcph.2001.6752
  19. Revealing hidden defects Nature Photonics · Nature Portfolio · 2009 10.1038/nphoton.2009.206
  20. Terahertz spectra of 1-cyanoadamantane in the orientationally ordered and disordered phases Philosophical Magazine Letters · Taylor & Francis · 2013 10.1080/09500839.2013.853883
  21. Terahertz material detection from diffuse surface scattering Journal of Applied Physics · American Institute of Physics · 2011 10.1063/1.3561806
  22. Wideband terahertz spectroscopy of explosives Chemical Physics Letters · Elsevier BV · 2006 10.1016/j.cplett.2006.12.015
  23. Computational electrodynamics, the finite-difference time-domain method Journal of Atmospheric and Terrestrial Physics · Elsevier BV · 1996 10.1016/0021-9169(96)80449-1
  24. Numerical removal of water vapour effects from terahertz time-domain spectroscopy measurements Proceedings of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2008 10.1098/rspa.2007.0294
  25. A study into the effect of subtle structural details and disorder on the terahertz spectrum of crystalline benzoic acid Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2010 10.1039/b926536h
  26. Terahertz spectroscopy: a powerful new tool for the chemical sciences? Chemical Society Reviews · Royal Society of Chemistry · 2011 10.1039/c1cs15277g
  27. Direct MD Simulations of Terahertz Absorption and 2D Spectroscopy Applied to Explosive Crystals The Journal of Physical Chemistry Letters · American Chemical Society · 2014 10.1021/jz402801m
  28. Identification of concealed materials, including explosives, by terahertz reflection spectroscopy Optical Engineering · SPIE · 2013 10.1117/1.oe.53.3.031202
  29. Numerical solution of initial boundary value problems involving maxwell's equations in isotropic media IEEE Transactions on Antennas and Propagation · IEEE Antennas & Propagation Society · 1966 10.1109/tap.1966.1138693
  30. THz imaging techniques for nondestructive inspections Comptes Rendus Physique · Elsevier BV · 2010 10.1016/j.crhy.2010.04.003
  31. Explosives Detection by Terahertz Spectroscopy—A Bridge Too Far? IEEE Transactions on Terahertz Science and Technology · IEEE Microwave Theory and Techniques Society · 2011 10.1109/tthz.2011.2159647
  32. Time discretizations for Maxwell‐Bloch equations Numerical Methods for Partial Differential Equations · Wiley · 2003 10.1002/num.10046
  33. Compound Explosives Detection and Component Analysis via Terahertz Time-Domain Spectroscopy Journal of the Optical Society of Korea · Optical Society of Korea · 2013 10.3807/josk.2013.17.5.454
  34. The incorporation of microscopic material models into the FDTD approach for ultrafast optical pulse simulations IEEE Transactions on Antennas and Propagation · IEEE Antennas & Propagation Society · 1997 10.1109/8.558653
  35. Terahertz disorder-localized rotational modes and lattice vibrational modes in the orientationally-disordered and ordered phases of camphor Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2014 10.1039/c4cp04947k
  36. Time-frequency distributions-a review Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 1989 10.1109/5.30749
  37. Multilevel Maxwell-Bloch simulations in inhomogeneously broadened media Optics Express · Optica Publishing Group · 2011 10.1364/oe.19.016784
  38. The dipole moments of carbazole derivatives 1988
  39. Propagation of laser pulse with a few cycle duration in multi-level media 2015 10.1109/dd.2015.7354889
  40. Terahertz spectroscopic identification of explosive and drug simulants concealed by various hiding techniques Applied Optics · Optica Publishing Group · 2015 10.1364/ao.54.004495
  41. Essential Limitations of the Standard THz TDS Method for Substance Detection and Identification and a Way of Overcoming Them Sensors · Multidisciplinary Digital Publishing Institute · 2016 10.3390/s16040502
  42. False detection of dangerous and neutral substances in commonly used materials by means of the standard THz Time Domain Spectroscopy Journal of the European Optical Society Rapid Publications · Springer Nature · 2016 10.2971/jeos.2016.16016
  43. Principles of optics. Electromagnetic theory of propagation, interference and diffraction of light Nuclear Physics · Elsevier BV · 1960 10.1016/0029-5582(60)90353-9
  44. An Introduction to Wavelets Computers in Physics · American Institute of Physics · 1992 10.1063/1.4823126
  45. Encyclopedia of mathematics Choice Reviews Online · Association of College and Research Libraries · 2006 10.5860/choice.43-3144