Волны E-поляризации (X)

Ядро PlanarRT_X (в диссертации — Tamic Rt-X) рассчитывает во временной области волны E-поляризации в области с неоднородным диэлектриком и неоднородной подмагниченной плазмой. На этой странице показано, как для такой среды строится эквивалентная схема элемента пространства, почему задачу удаётся свести к одной функции — компоненте Hz — и какой формулой ядро пересчитывает узлы сетки на каждом такте. Свойства самой плазмы (частоты, отсечки, единицы) — на странице Модель плазмы. Общие сведения о Rτ-сетке — Метод Rt-сетки, двухслойная схема для волн H — Волны H-поляризации. Как это устроено в программе — Счётное ядро X.

Постановка

Рассматривается двумерная задача: геометрия и поля не зависят от координаты z. Внешнее магнитостатическое поле направлено вдоль оси z [Климов, 2025, (3.1)]:

B→=(0, 0, Bz).(1)

У волн E-поляризации равны нулю компоненты [Климов, 2025, (3.3)]

Ez=0,Hx=Hy=0,(2)

т. е. магнитное поле Hz перпендикулярно плоскости расчёта (параллельно B→), а электрическое Ex, Ey лежит в ней. Для такой волны в подмагниченной плазме работает поперечный блок тензора проницаемости с недиагональными элементами (тензор ε^), и собственными решениями даже в однородной плазме являются продольно-поперечные волны — необыкновенные [Климов, 2025, гл. 3]. В этом основная трудность задачи по сравнению с волнами H-поляризации.

Модель среды — холодная бесстолкновительная плазма электронов без учёта движения ионов [Климов, 2025, разд. 3.1]. Тензор удельной электрической проводимости G^(p) задан выражением (2.35), а тензор удельного магнитного сопротивления вырождается в скаляр [Климов, 2025, (3.2)]:

Z^(p)=pμ0,(3)

где p=∂/∂t — оператор дифференцирования по времени. Уравнения Максвелла (2.33) без сторонних источников в декартовых координатах принимают вид [Климов, 2025, (3.4)]:

∂Hz∂y=(pε0+pε0ωp2p2+Ω2)Ex−ε0ωp2Ωp2+Ω2Ey,−∂Hz∂x=ε0ωp2Ωp2+Ω2Ex+(pε0+pε0ωp2p2+Ω2)Ey,(4)
∂Ey∂x−∂Ex∂y=−pμ0Hz,(5)

где ωp — плазменная частота, Ω — циклотронная частота (плазменная частота, циклотронная частота).

Задача ядра: по заданным сигналам на портах найти во времени значения U=HzΔz во всех узлах сетки и сигналы на портах. Среда задаётся распределениями добавки Δε, концентрации электронов N, индукции B и потерь (единицы). Поскольку узел сетки хранит Hz, граничные условия блоков в физическом смысле меняются местами: блок METAL действует как магнитная стенка, блок MAGNETIC — как металл (двойственность стенок). Возбуждение — через порты (порты).

Схема из сосредоточенных элементов

Как и для волн H, роторные уравнения Максвелла и материальные уравнения среды объединяются и записываются в виде телеграфных уравнений, в которых роль погонных тока и напряжения играют напряжённости магнитного и электрического полей [Климов, 2025, разд. 3.1]. В конечных разностях система (3.4) с обозначениями [Климов, 2025, (3.6)]

U=HzΔz,Ix=−EyΔy,Iy=ExΔx(6)

записывается как система (3.7), которой соответствует RLC-схема элемента пространства (рис. 3.1 в [Климов, 2025]). В рёбрах этой схемы, кроме индуктивностей 2Lx0, 2Ly0, стоят параллельные колебательные контуры (2Lx, Cx/2 и 2Ly, Cy/2) и источники напряжения, управляемые токами контура соседнего, перпендикулярного ребра — так в схеме проявляются недиагональные элементы тензора: «падение напряжения вдоль, например, координаты x зависит от тока вдоль координаты y» [Климов, 2025, разд. 3.1]. Номиналы элементов [Климов, 2025, (3.9)]:

Lx0=ε0ΔzΔxΔy,Ly0=ε0ΔzΔyΔx,C0=μ0ΔxΔyΔz,(7)
Cx=ΔyΔzΔxε0ωp2,Cy=ΔxΔzΔyε0ωp2,Lx=ΔzΔxε0ωp2ΔyΩ2,Ly=ΔzΔyε0ωp2ΔxΩ2,R=ωp2Ωε0Δz.(8)

Схема дуальна реальной физической: величины, соответствующие по размерности напряжениям, обозначены как токи и наоборот, поэтому размерности индуктивностей, ёмкостей и сопротивлений в (3.9) совпадают с размерностями дуальных элементов [Климов, 2025, разд. 3.1]. Отсюда и двойственность стенок в ядре X: узловое «напряжение» — это магнитное поле Hz.

Для расчёта по такой схеме пришлось бы хранить и вычислять напряжения в узлах и токи вдоль рёбер. Чтобы хранить только напряжения узлов, ребро должно содержать одну индуктивность — тогда его можно заменить линией задержки, как в главе 2. Для этого систему (3.4) сводят к потенциальной задаче [Климов, 2025, разд. 3.1].

Переход к потенциальной задаче

Введём операторы [Климов, 2025, (3.10)]

A(p)=pε0+pε0ωp2p2+Ω2,B(p)=ε0ωp2Ωp2+Ω2.(9)

Из первых двух уравнений (3.4) компоненты электрического поля выражаются через Hz [Климов, 2025, (3.12)]:

Ex=(A2(p)+B2(p))−1(A(p)∂Hz∂y−B(p)∂Hz∂x),Ey=−(A2(p)+B2(p))−1(B(p)∂Hz∂y+A(p)∂Hz∂x).(10)

Подстановка в третье уравнение даёт уравнение для одной функции Hz [Климов, 2025, (3.13)–(3.16)]. При выводе используется перестановочность операторов среды A(p), B(p) с операторами пространственного дифференцирования (∂/∂xC(p)=C(p)∂/∂x), т. е. вывод выполнен для среды, параметры которой не зависят от координат. В результате смешанные производные пропадают, и после сокращения числителя и знаменателя на (p2+Ω2)

∂2Hz∂x2+∂2Hz∂y2=p4+p2(Ω2+2ωp2)+ωp4p(p2+Ω2+ωp2)pε0μ0Hz.(11)

Сокращение на (p2+Ω2) важно по двум причинам [Климов, 2025, разд. 3.2]:

  • исходная немодифицированная схема была шестого порядка, после сокращения — четвёртого; это уменьшает и объём памяти, и число операций;
  • исходное уравнение (3.15) имеет особенность на частоте, равной циклотронной Ω; в (3.16) её нет — «устраняется особенность в районе циклотронного резонанса». У компонент Ex, Ey особенности на частоте Ω тоже нет (3.17), (3.18); она остаётся только у вектора электрической индукции D→.

В инвариантной форме (3.16) записывается как (Δ−k2(p))Hz=0 (3.19), а в частотной области — как уравнение Гельмгольца [Климов, 2025, (3.20), (3.21)]:

(∂2∂x2+∂2∂y2+k2(ω))Hz=0,k2(ω)=ω4−ω2(Ω2+2ωp2)+ωp4ω2−(Ω2+ωp2)ε0μ0.(12)

Найдя Hz, компоненты Ex, Ey определяют по (3.12): исходная задача сведена к потенциальной, потенциал — значение Hz [Климов, 2025, разд. 3.2].

Модифицированная схема

Для построения импедансной модели вместо (3.16) используют эквивалентную систему из трёх уравнений с фиктивными электрическими полями Ex′, Ey′ [Климов, 2025, (3.22)]:

∂Hz∂y=pε0Ex′,−∂Hz∂x=pε0Ey′,∂Ey′∂x−∂Ex′∂y=−p4+p2(Ω2+2ωp2)+ωp4p(p2+Ω2+ωp2)μ0Hz.(13)

Фиктивные поля отличаются от настоящих Ex, Ey, но в таких обозначениях рёбра сетки содержат только индуктивности, и их можно заменить линиями задержки. С обозначениями U=HzΔz, Ix′=−Ey′Δy, Iy′=Ex′Δx (3.24) системе соответствует модифицированная RLC-схема (рис. 3.3 в [Климов, 2025]): индуктивности Lx0′, Ly0′ в рёбрах и проводимости Y(p)/4 в узлах [Климов, 2025, (3.27), (3.28)]:

Lx0′=ε0ΔzΔxΔy,Ly0′=ε0ΔzΔyΔx,Y(p)=(p+1pωp4Ω2+ωp2+pp2+Ω2+ωp2Ω2ωp2Ω2+ωp2)μ0ΔyΔxΔz.(14)

С обозначениями [Климов, 2025, (3.29)]

C0=μ0ΔyΔxΔz,Lp=Ω2+ωp2C0ωp4,LΩ=Ω2+ωp2C0Ω2ωp2,CΩ=C0Ω2ωp2(Ω2+ωp2)2(15)

проводимость узла — параллельное соединение ёмкости C0, индуктивности Lp и последовательного контура LΩCΩ (рис. 3.4) [Климов, 2025, (3.30)]:

Y(p)=pC0+1pLp+p/LΩp2+1/(LΩCΩ).(16)

Смысл элементов [Климов, 2025, разд. 3.3]:

Элемент От чего зависит Смысл
C0 μ0 и шаги сетки вакуум
Lp ωp и шаги сетки; конечна и при Ω=0 свободные электроны плазмы
LΩ, CΩ ωp и Ω одновременное наличие внешнего поля и свободных электронов

Модифицированная схема, как и исходная, дуальна физической и состоит только из реактивных элементов. В ней тоже устранена особенность в районе циклотронного резонанса. Частоты, на которых проводимость узла имеет ёмкостный характер и волна распространяется, разобраны на странице отсечки и окна прозрачности.

Граничные условия меняются. Поскольку рёбра несут фиктивное поле E′, условие на металле (Ex=0 или Ey=0) в модифицированной схеме превращается в связь Ex′ и Ey′ [Климов, 2025, (3.31)–(3.33)]; условие магнитной стенки Hz=0 (3.34) остаётся без изменений, потому что магнитное поле в модифицированной сетке тождественно исходному. Как это реализовано в программе — двойственность стенок.

Схема из распределённых элементов

Для расчёта во временной области от схемы из сосредоточенных элементов переходят к Rτ-схеме [Климов, 2025, разд. 3.8]. Сетка квадратная, Δx=Δy=Δ (3.53); тогда L0′=ε0Δz (3.54), C0=μ0Δ2/Δz (3.55). По модели информационного многополюсника элементы, зависящие только от вакуума и шагов сетки (L0′ и C0), выделяются и заменяются отрезками линий с волновой проводимостью Y0/2 и задержкой τ0 (рис. 3.9) [Климов, 2025, (3.56), (3.57)]:

τ0=2L0′C04=Δε0μ02,Y0=ΔΔzμ02ε0.(17)

Задержка та же, что у сетки для волн H (шаг по времени); размерность Y0 совпадает с размерностью сопротивления — схема дуальна физической.

Двухполюсники узла — элементы плазмы — заменяются шлейфами длиной, соответствующей задержке τ0/2 (рис. 3.10, 3.11): индуктивности 4Lp и 4LΩ — короткозамкнутыми шлейфами с адмитансами Yp/4 и YLΩ/4, ёмкость CΩ/4 — шлейфом холостого хода YCΩ/4. Номиналы находятся из равенства проводимостей шлейфа и элемента на частоте ω (3.58), а при ωτ0≪1 [Климов, 2025, (3.59), (3.60)]:

YCΩ=2CΩτ0=Y04Ω2ωp2(Ω2+ωp2)2,YLΩ=τ02LΩ=Y0τ02ωp2Ω2+ωp2Ω2,Yp=τ02Lp=Y0τ02ωp2Ω2+ωp2ωp2.(18)

Построенная Rτ-схема состоит из реактивных элементов, поэтому сетка, собранная из таких элементов, консервативна, «что позволяет строить вычислительно устойчивые процедуры электродинамического анализа подмагниченной плазмы для E-поляризации» [Климов, 2025, разд. 3.8] (устойчивость).

Узел X-ядра и его компоненты

Ассемблированная схема. Область разбивается на элементарные объёмы, каждому сопоставляется Rτ-схема (схема-дескриптор), и схемы объединяются в сетку всей области (рис. 5.1, 5.2 в [Климов, 2025]). В каждой ячейке ωp и Ω могут быть своими; к каждому узлу подходят восемь шлейфов четырёх соседних ячеек. Для уменьшения числа операций и памяти их заменяют одним шлейфом КЗ Y5 и последовательным соединением шлейфов КЗ Y6 и ХХ Y7, все длиной τ0/2 (рис. 5.3). Параметры плазмы при этом усредняются по четырём ячейкам вокруг узла [Климов, 2025, (5.1), (5.2)]:

ω¯p2=ωp62+ωp72+ωp102+ωp1124=e2ε0m·N6+N7+N10+N114,Ω¯=Ω6+Ω7+Ω10+Ω114=em·Bz6+Bz7+Bz10+Bz114,(19)

а проводимости шлейфов узла — по формулам главы 3 [Климов, 2025, (5.3)]:

Y5=Yp=Y0τ02ω¯p2Ω¯2+ω¯p2ω¯p2,Y6=YLΩ=Y0τ02ω¯p2Ω¯2+ω¯p2Ω¯2,Y7=YCΩ=Y04Ω¯2ω¯p2(Ω¯2+ω¯p2)2.(20)

Получается редуцированная сетка (рис. 5.4): узлы соединены линиями Y0 с задержкой τ0. Для общности к узлу добавляется активная проводимость Y — потери; она нужна и для граничных условий согласования (рис. 5.5) [Климов, 2025, разд. 5.2]:

                       2  (сосед сверху)
                       │ Y2, τ0
                       │
   1 ───────── Y1, τ0 ─●─ Y3, τ0 ───────── 3
  (сосед слева)        │                   (сосед справа)
                       ├── шлейф КЗ  y5, τ0/2                — L_p: электроны
                       ├── шлейф КЗ  y6 ── шлейф ХХ y7, τ0/2  — L_Ω и C_Ω последовательно
                       ├── y  (потери)
                       │ Y4, τ0
                       4  (сосед снизу)

Здесь Y1…Y4 — волновые проводимости линий к соседям (на квадратной сетке все равны Y0), yk=Yk/Y0 — нормированные проводимости. Если знать напряжения узлов в каждый момент времени, то можно определить все не равные нулю компоненты поля, поэтому задача сводится к определению узловых напряжений [Климов, 2025, разд. 5.1].

В программе вклады блоков в узел накапливаются с весом — долей окружающих узел ячеек, лежащих в блоке, как в ядре H (диэлектрик H). Концентрация N и индукция B накапливаются отдельно, линейно — это и есть средние (5.1), (5.2), так как ωp2∝N и Ω∝B. Затем по ним вычисляются коэффициенты узла (ниже). На узел хранятся 12 вещественных чисел — 6 ячеек значений и 6 коэффициентов (96 байт при double):

Ячейка Содержимое
prUNode1[6n+0..3] четыре последних значения U узла по кругу (подтакты)
prUNode1[6n+4], [6n+5] суммы R двух предыдущих подтактов (коэффициенты)
prYNode[6n+0] Y0=2/(4+y5+y67+y) — множитель формулы узла (не путать с волновой проводимостью линий Y0)
prYNode[6n+1] Y1 — шлейф узла со знаком: −y5 у плазмы (КЗ), +4Δε у диэлектрика (ХХ)
prYNode[6n+2] Y2=y — потери
prYNode[6n+3] Y3=2y67
prYNode[6n+4] Y4=2(y7−y6)/(y6+y7)
prYNode[6n+5] Y5=Y3Y4/4

Это совпадает с организацией данных, предложенной в [Климов, 2025, разд. 5.3, табл. 5.1]: «12 вещественных чисел на один узел сетки»; при 2 ГБ памяти это 44 739 242 узла в одинарной точности или 22 369 621 — в двойной. Вариант с минимальной памятью (табл. 5.2) хранит 9 чисел (Uτ…Uτ−4, y, y5, y6, y7), но требует 30 сложений и 20 умножений на узел; по [Климов, 2025] «увеличение требуемой памяти на 25 % позволяет более чем в два раза увеличить скорость вычислений». У ядра H на узел — 4 числа (узел H).

Узел диэлектрика. Если в узле нет плазмы (N=0, Δε≥0), программа ставит, как в ядре H, шлейф холостого хода y5=4Δε без плазменных шлейфов. Узел с Δε<0 программа считает узлом плазмы (при заданном B — подмагниченной) с эквивалентной плазменной частотой (ε < 1).

Алгоритм для необыкновенной волны

Вывод повторяет построение двухслойного алгоритма для волн H (рассеяние H), но у узла X есть ветвь из двух последовательных шлейфов, напряжения на которых U6, U7 надо исключить [Климов, 2025, разд. 5.2].

Напряжение узла через падающие волны. Узел — параллельное соединение линий, шлейфа Y5, проводимости Y и последовательной цепочки Y6, Y7 (рис. 5.7) [Климов, 2025, (5.4)–(5.6)]:

Uτ=2YΣ(Y1UP1τ+Y2UP2τ+Y3UP3τ+Y4UP4τ+Y5UP5τ+Y67UP6τ+Y67UP7τ),(21)
Y67=Y6Y7Y6+Y7,YΣ=Y1+Y2+Y3+Y4+Y5+Y67+Y.(22)

Обмен волнами. Волна от соседа приходит через τ0 (5.10); волна в шлейфе длиной τ0/2 возвращается через τ0 — от короткого замыкания с изменением знака, от холостого хода без него [Климов, 2025, (5.10)–(5.13)]:

UPiτ=Uiτ−1−UOiτ−2 (i=1…4),UP5τ=−Uτ−1−UO5τ−2,UP6τ=−U6τ−1−UO6τ−2,UP7τ=U7τ−1−UO7τ−2.(23)

Исключив отражённые волны так же, как для узла H, получают [Климов, 2025, (5.16)]

Uτ=2YΣ(Y1U1τ−1+Y2U2τ−1+Y3U3τ−1+Y4U4τ−1−Y5Uτ−1+Y67(U7τ−1−U6τ−1)+YUτ−2)−Uτ−2.(24)

Исключение напряжений шлейфов. Неизвестна разность U7τ−1−U6τ−1. Из соотношений для токов и напряжений на входах шлейфов (5.17)–(5.19) и формирования падающих волн в шлейфах (рис. 5.8, 5.9) она выражается через свои значения на двух предыдущих тактах и напряжения узла [Климов, 2025, (5.43)]:

U7τ−1−U6τ−1=2Uτ−2−Y7−Y6Y6+Y7(Uτ−1+Uτ−3)+2Y7−Y6Y6+Y7(U7τ−2−U6τ−2)−(U7τ−3−U6τ−3),(25)

а разности на тактах τ−2, τ−3 — из (5.16), записанной для этих тактов (5.44)–(5.47). Подстановка в (5.16) даёт алгоритм электродинамического анализа для необыкновенной волны [Климов, 2025, (5.49)]; [Климов, 2007, (5.49)]:

Uτ=&2YΣ(∑i=14YiUiτ−1−Y5Uτ−1+YUτ−2)−Uτ−2+2Y67YΣ(2Uτ−2−Y7−Y6Y6+Y7(Uτ−1+Uτ−3))&−(Uτ−2+Uτ−4)+2Y7−Y6Y6+Y7(Uτ−1+Uτ−3)−2Y7−Y6Y6+Y72YΣ(∑i=14YiUiτ−2−Y5Uτ−2+YUτ−3)&+2YΣ(∑i=14YiUiτ−3−Y5Uτ−3+YUτ−4).(26)

Для нового значения нужны напряжения узла за четыре предыдущих такта и соседей — за три; алгоритм назван четырёхпараметрическим [Климов, 2025, разд. 5.3]. Формула обобщается на узел с произвольным числом N линий (элементарные объёмы произвольной формы, (5.50), рис. 5.10, 5.11): суммы по четырём соседям заменяются суммами по N.

При y=0 выражения (5.49)–(5.51) соответствуют консервативной сетке, при y>0 — диссипативной; «поэтому алгоритмы, основанные на данных выражениях, обладают вычислительной устойчивостью» [Климов, 2025, разд. 5.3].

Подтакты одного шага

Формула (5.49) связывает пять временных слоёв узла: Uτ и Uτ−1…Uτ−4. Новое Uτ записывается на место Uτ−4, которое после этого не нужно, поэтому на значения узла отводятся четыре ячейки, и их роли сдвигаются по кругу. Кроме того, скобка 2YΣ(…) на такте τ повторяет такие же скобки на тактах τ−1 и τ−2, и их выгодно не пересчитывать, а хранить ([Климов, 2025, табл. 5.1]; в программе — суммы R, см. коэффициенты). Отсюда четыре подтакта на один проход цикла:

Подтакт Пишется Uτ Uτ−1 Uτ−2 Uτ−3 Rτ−1 / Rτ−2 → Rτ Функции
0 ячейка 0 3 2 1 4 / 5 → 5 RunExciteInputs, RunScatteringNode, RunBlockNode
1 ячейка 1 0 3 2 5 / 4 → 4 RunExciteInputs1, RunScatteringNode1, RunBlockNode1
2 ячейка 2 1 0 3 4 / 5 → 5 RunExciteInputs2, RunScatteringNode2, RunBlockNode2
3 ячейка 3 2 1 0 5 / 4 → 4 RunExciteInputs3, RunScatteringNode3, RunBlockNode3

Каждый подтакт продвигает расчёт на один такт τ0. На подтакте по порядку выполняются: возбуждение портов и запись строки файла .t (порты); сохранение ячеек узлов портов; рассеяние во всех внутренних узлах по (5.49); восстановление узлов портов; граничные условия блоков (граничные условия); кадр поля и накопление поля для ДН (ДН). Подробно — четыре подтакта в коде.

Внутри подтакта узлы независимы: каждый пишет только свою ячейку текущего подтакта и свою ячейку R, а у соседей читает ячейку предыдущего такта. Порядок обхода узлов на результат не влияет — это используется при расчёте на видеокарте (GPU). У ядра H слоёв три, и подтактов два (подтакты H).

Коэффициенты узла

Квадратная сетка. При Y1=Y2=Y3=Y4=Y0 формула (5.49) записывается через нормированные величины y=Y/Y0, y5=Y5/Y0, y6=Y6/Y0, y7=Y7/Y0, y67=Y67/Y0 [Климов, 2025, (5.51), (5.52)]:

Uτ=&24+y5+y67+y(∑i=14Uiτ−1−y5Uτ−1+yUτ−2)−Uτ−2+2y674+y5+y67+y(2Uτ−2−y7−y6y6+y7(Uτ−1+Uτ−3))&−(Uτ−2+Uτ−4)+2y7−y6y6+y7(Uτ−1+Uτ−3)−2y7−y6y6+y724+y5+y67+y(∑i=14Uiτ−2−y5Uτ−2+yUτ−3)&+24+y5+y67+y(∑i=14Uiτ−3−y5Uτ−3+yUτ−4).(27)

Формула в программе. Обозначим сумму, которую программа вычисляет на каждом подтакте и хранит:

Rτ=∑i=14Uiτ−1+Y1Uτ−1+Y2Uτ−2,(28)

тогда (5.52) принимает вид, который вычисляет функция RunScatteringNode1line*:

Uτ=−Uτ−4−2Uτ−2+Y4(Uτ−1+Uτ−3)+Y0(Rτ+Rτ−2−Y4Rτ−1+Y3Uτ−2−Y5(Uτ−1+Uτ−3)),(29)

с коэффициентами, обозначенными, как на странице кода, Y0…Y5 (здесь Y0 — множитель формулы, а не волновая проводимость линий):

Коэффициент программы Через величины (5.52) Ячейка
Y0 24+y5+y67+y prYNode[6n+0]
Y1 −y5 (шлейф КЗ со знаком «−», как в (5.16)) prYNode[6n+1]
Y2 y prYNode[6n+2]
Y3 2y67 prYNode[6n+3]
Y4 2y7−y6y6+y7 prYNode[6n+4]
Y5 Y3Y44=y67y7−y6y6+y7 prYNode[6n+5]

Проверка: подставив коэффициенты, раскрыв R и собрав члены, получим (5.52) член в член (−Uτ−2 из первой строки и −(Uτ−2+Uτ−4) дают −2Uτ−2−Uτ−4, слагаемое 2y67…·2Uτ−2 — это Y0Y3Uτ−2). На узел и подтакт — одна сумма R (5 сложений, 2 умножения) и одна строка формулы; ср. [Климов, 2025, табл. 5.1]: 13 сложений-вычитаний и 9 умножений при хранении 12 чисел.

Коэффициенты через параметры плазмы. Подставив (5.3) и обозначив x=τ02(Ω2+ωp2), получаем

y7−y6=Ω2ωp2(4−x)(Ω2+ωp2)2,y6+y7=Ω2ωp2(4+x)(Ω2+ωp2)2,(30)

и программа (SetDielInNodeList) вычисляет коэффициенты узла плазмы в замкнутом виде:

Y1=−τ02ωp4Ω2+ωp2,Y3=8τ02Ω2ωp2(Ω2+ωp2)(4+x),Y4=2(4−x)4+x,Y5=Y3Y44,Y0=24+|Y1|+Y2+Y3/2.(31)

Здесь ωp2 — эквивалентная плазменная частота узла, в которую сведены концентрация N и отрицательная добавка Δε (ε < 1), Ω2=(eB/m)2, τ0 — шаг по времени, Y2=y — потери (с пересчитанной проводимостью σ, столкновения и проводимость). Замкнутая форма конечна и при B=0, когда y6=y7=0 и отношение (y7−y6)/(y6+y7) формально не определено: тогда Y3=Y5=0, Y1=−τ02ωp2, Y4=2(4−τ02ωp2)/(4+τ02ωp2).

Знак Y4 соответствует формуле (5.49): Y4=2(y7−y6)/(y6+y7)=2(4−x)/(4+x). В программе знак приведён к (5.49) в октябре 2026 г.; прежняя строка с обратным знаком сохранена в исходнике комментарием (код). В исходнике промежуточные переменные d_y6 и d_y7 названы наоборот по отношению к y6, y7 книги (d_y6 =y7, d_y7 =y6); на результат это не влияет, так как Y3 и Y4 вычисляются в замкнутом виде.

Узел диэлектрика (Δε≥0, N=0): Y1=4Δε (значения в пределах 0,004 от 4 сдвигаются до 3,996 или 4,004, как в ядре H), Y3=Y5=0, Y4=−2, Y0=2/(4+|Y1|+Y2). Индукция B в таком узле не используется.

Связь со схемой ядра H. Если Y3=Y5=0 (диэлектрик или плазма без внешнего поля), формула программы приводится к виду

(1−Y4z−1+z−2)(Uτ+Uτ−2)=(1−Y4z−1+z−2)Y0Rτ,(32)

где z−1 — сдвиг на один такт. Это двухслойная схема ядра H Uτ=Y0Rτ−Uτ−2 (рассеяние H), к обеим частям которой применён один и тот же множитель; в узле диэлектрика (Y4=−2) множитель равен (1+z−1)2. При B=0 шлейф Y1=−τ02ωp2 совпадает со шлейфом КЗ узла H с Δε=−ωp2/ω2 (среды с дисперсией): неподмагниченная плазма в ядрах H и X описывается одним и тем же шлейфом.

Проверки при пересчёте. Как в ядре H, ωτ0/2≤π/3 на частоте FREQ (иначе ошибка «very big Delta*Frequence»). Перед пересчётом выдаются предупреждения об узлах, где Δε>0 сочетается с N или с B (ε < 1). В учебной версии программы узлы с ε<1 запрещены.

Вычисление полей

Величины схемы связаны с полем соотношениями (3.24): U=HzΔz, Ix′=−Ey′Δy, Iy′=Ex′Δx. Токи рёбер модифицированной схемы описывают фиктивное поле E′; реальные компоненты электрического поля получают из Hz по (3.12), во временной области — по (3.17), в частотной — по [Климов, 2025, (3.18)]:

Ex=iω(Ω2+ωp2−ω2)∂Hz/∂y−Ωωp2∂Hz/∂xε0(ω4−ω2(Ω2+2ωp2)+ωp4),Ey=−Ωωp2∂Hz/∂y+iω(Ω2+ωp2−ω2)∂Hz/∂xε0(ω4−ω2(Ω2+2ωp2)+ωp4).(33)

Для собственных решений фиктивное поле даёт поперечные волны, а реальное — продольно-поперечные [Климов, 2025, разд. 3.7]; поведение реального поля разобрано на странице модель плазмы.

В программе ядро X выводит значения узлов U, т. е. величину, пропорциональную Hz:

  • кадры поля — значения ячейки текущего подтакта всех узлов; их показывает FieldView (вывод ядра);
  • накопление для диаграммы направленности — по тем же значениям U, с шагом узла 6 (контур в ближней зоне);
  • топология — четыре таблицы: ε, N, Y, B каждого узла, восстановленные из коэффициентов (единицы).

Компоненты Ex, Ey ядро X не вычисляет и не записывает.

Соответствие в коде

Символ / действие Переменная, функция Файл (src/kernels/planarrt_x/)
Uτ−1…Uτ−4 узла n prUNode1[6n+0..3] (роли сдвигаются по подтактам) tmcrthrectnode.h
Rτ−1, Rτ−2 prUNode1[6n+4], prUNode1[6n+5] tmcrthrectnode.h
Y0=2/(4+y5+y67+y) prYNode[6n+0] tmcrthrectnode.h
Y1=−y5 или 4Δε prYNode[6n+1] tmcrthrectnode.h
Y2=y prYNode[6n+2] tmcrthrectnode.h
Y3=2y67, Y4, Y5 prYNode[6n+3], [6n+4], [6n+5] tmcrthrectnode.h
накопители до пересчёта: Δε, N, y, σ, B prYNode[6n+0..4] tmcrthnodediel.cpp (SetYLineForDiel, SetStatEpsFast, EpsFastTypeOffset)
средние (5.1), (5.2) — вклад блока с весом вес sTmcRTHNodeDielOne::rY, CTmcRTHNodeDiel::CalcEps tmcrthnodediel.cpp
коэффициенты (5.3) → Y0…Y5 CTmcRTHRectNode::SetDielInNodeList: d_wp2 =ωp2, d_WC2 =Ω2, d_y5 =y5, d_y6 =y7, d_y7 =y6 tmcrthrectnode.cpp
τ0 dT (cIndan.dGetdT()) tmcrthrectnode.cpp
e, m ELECTRON_Q___, ELECTRON_M___ src/Include/typerth.h
формула узла (5.49)/(5.52) RunScatteringNode1line, …line1, …line2, …line3 (подтакты 0–3); обход строк — RunScatteringNode…RunScatteringNode3 tmcrthrectnode.cpp
четыре подтакта, порядок операций RunKernel, RunKernel1T; nTCurrent, dTCurrent tmcrthrectnode.cpp
кадр поля (U=HzΔz всех узлов) PutField tmcrthrectnode.cpp
топология ε, N, Y, B PutTopology tmcrthrectnode.cpp
граничные условия блоков RunBlockNode…RunBlockNode3 tmcrthnodediel.cpp

Подробное описание кода — Счётное ядро X: структура узла (node-data), подтакты (subcycles), рассеяние (scattering), коэффициенты (coefficients), блоки плазмы (plasma-blocks). Точность схемы — точность X-ядра.

Источники

  • [Климов, 2025] — гл. 3: разд. 3.1 ((3.1)–(3.9), рис. 3.1, 3.2), 3.2 ((3.10)–(3.21)), 3.3 ((3.22)–(3.30), рис. 3.3, 3.4), 3.4 ((3.31)–(3.34)), 3.8 ((3.53)–(3.60), рис. 3.9–3.11); гл. 5: разд. 5.1 ((5.1)–(5.3), рис. 5.1–5.4), 5.2 ((5.4)–(5.49), рис. 5.5–5.9), 5.3 ((5.50)–(5.53), рис. 5.10, 5.11, табл. 5.1, 5.2); гл. 2: (2.33)–(2.35).
  • [Климов, 2007] — гл. 3 (разд. 3.1–3.4, 3.8), гл. 5 (разд. 5.1–5.3, алгоритм узла (5.49)), гл. 9 (разд. 9.3).

E-polarized waves (X)

The PlanarRT_X kernel (Tamic Rt-X in the dissertation) computes, in the time domain, E-polarized waves in a region with an inhomogeneous dielectric and inhomogeneous magnetized plasma. This page shows how the equivalent circuit of a space element is constructed for such a medium, why the problem can be reduced to a single function — the Hz component — and by which formula the kernel updates the grid nodes at every time step. The properties of the plasma itself (frequencies, cutoffs, units) are covered on the Plasma model page. General information on the Rτ-grid is given in The Rt-grid method, and the two-layer scheme for H waves in H-polarized waves. How this is implemented in the program is described in X compute kernel.

Problem statement

A two-dimensional problem is considered: the geometry and fields do not depend on the z coordinate. The external magnetostatic field is directed along the z axis [Klimov, 2025, (3.1)]:

B→=(0, 0, Bz).(1)

For E-polarized waves the following components are zero [Klimov, 2025, (3.3)]

Ez=0,Hx=Hy=0,(2)

i.e. the magnetic field Hz is perpendicular to the computation plane (parallel to B→), and the electric field Ex, Ey lies in it. For such a wave in magnetized plasma, the transverse block of the permittivity tensor with off-diagonal elements is involved (tensor ε^), and even in homogeneous plasma the eigensolutions are longitudinal–transverse waves — extraordinary waves [Klimov, 2025, Ch. 3]. This is the main difficulty of the problem compared with H-polarized waves.

The medium model is a cold collisionless electron plasma, with ion motion neglected [Klimov, 2025, Sec. 3.1]. The tensor of specific electric conductivity G^(p) is given by expression (2.35), and the tensor of specific magnetic resistance degenerates into a scalar [Klimov, 2025, (3.2)]:

Z^(p)=pμ0,(3)

where p=∂/∂t is the time-differentiation operator. Maxwell's equations (2.33) without impressed sources in Cartesian coordinates take the form [Klimov, 2025, (3.4)]:

∂Hz∂y=(pε0+pε0ωp2p2+Ω2)Ex−ε0ωp2Ωp2+Ω2Ey,−∂Hz∂x=ε0ωp2Ωp2+Ω2Ex+(pε0+pε0ωp2p2+Ω2)Ey,(4)
∂Ey∂x−∂Ex∂y=−pμ0Hz,(5)

where ωp is the plasma frequency and Ω is the cyclotron frequency (plasma frequency, cyclotron frequency).

The task of the kernel: given the signals at the ports, find the time evolution of U=HzΔz at all grid nodes and the signals at the ports. The medium is specified by distributions of the increment Δε, the electron density N, the flux density B and the losses (units). Since a grid node stores Hz, the physical meaning of the block boundary conditions is swapped: the METAL block acts as a magnetic wall, and the MAGNETIC block as metal (wall duality). Excitation is through ports (ports).

Lumped-element circuit

As for H waves, the curl Maxwell equations and the constitutive equations of the medium are combined and written as telegraph equations in which the role of the per-unit-length current and voltage is played by the magnetic and electric field strengths [Klimov, 2025, Sec. 3.1]. In finite differences, system (3.4) with the notation [Klimov, 2025, (3.6)]

U=HzΔz,Ix=−EyΔy,Iy=ExΔx(6)

is written as system (3.7), to which an RLC circuit of a space element corresponds (Fig. 3.1 in [Klimov, 2025]). In the edges of this circuit, in addition to the inductances 2Lx0, 2Ly0, there are parallel resonant circuits (2Lx, Cx/2 and 2Ly, Cy/2) and voltage sources controlled by the currents of the circuit of the adjacent perpendicular edge — this is how the off-diagonal elements of the tensor manifest themselves in the circuit: "the voltage drop along, for example, the x coordinate depends on the current along the y coordinate" [Klimov, 2025, Sec. 3.1]. The element values are [Klimov, 2025, (3.9)]:

Lx0=ε0ΔzΔxΔy,Ly0=ε0ΔzΔyΔx,C0=μ0ΔxΔyΔz,(7)
Cx=ΔyΔzΔxε0ωp2,Cy=ΔxΔzΔyε0ωp2,Lx=ΔzΔxε0ωp2ΔyΩ2,Ly=ΔzΔyε0ωp2ΔxΩ2,R=ωp2Ωε0Δz.(8)

The circuit is dual to the real physical one: quantities whose dimensions correspond to voltages are denoted as currents and vice versa, so the dimensions of the inductances, capacitances and resistances in (3.9) coincide with the dimensions of the dual elements [Klimov, 2025, Sec. 3.1]. Hence the wall duality in the X kernel: the nodal "voltage" is the magnetic field Hz.

Computation with such a circuit would require storing and computing voltages at the nodes and currents along the edges. To store only node voltages, an edge must contain a single inductance — then it can be replaced by a delay line, as in Chapter 2. For this purpose system (3.4) is reduced to a potential problem [Klimov, 2025, Sec. 3.1].

Transition to a potential problem

We introduce the operators [Klimov, 2025, (3.10)]

A(p)=pε0+pε0ωp2p2+Ω2,B(p)=ε0ωp2Ωp2+Ω2.(9)

From the first two equations of (3.4), the electric field components are expressed through Hz [Klimov, 2025, (3.12)]:

Ex=(A2(p)+B2(p))−1(A(p)∂Hz∂y−B(p)∂Hz∂x),Ey=−(A2(p)+B2(p))−1(B(p)∂Hz∂y+A(p)∂Hz∂x).(10)

Substitution into the third equation gives an equation for the single function Hz [Klimov, 2025, (3.13)–(3.16)]. The derivation uses the commutativity of the medium operators A(p), B(p) with the spatial differentiation operators (∂/∂xC(p)=C(p)∂/∂x), i.e. the derivation is performed for a medium whose parameters do not depend on the coordinates. As a result, the mixed derivatives vanish, and after cancelling (p2+Ω2) in the numerator and denominator

∂2Hz∂x2+∂2Hz∂y2=p4+p2(Ω2+2ωp2)+ωp4p(p2+Ω2+ωp2)pε0μ0Hz.(11)

The cancellation of (p2+Ω2) is important for two reasons [Klimov, 2025, Sec. 3.2]:

  • the original unmodified scheme was of sixth order, and after the cancellation it is of fourth order; this reduces both the amount of memory and the number of operations;
  • the original equation (3.15) has a singularity at the frequency equal to the cyclotron frequency Ω; in (3.16) it is absent — "the singularity in the vicinity of the cyclotron resonance is eliminated". The components Ex, Ey also have no singularity at the frequency Ω (3.17), (3.18); it remains only in the electric displacement vector D→.

In invariant form, (3.16) is written as (Δ−k2(p))Hz=0 (3.19), and in the frequency domain as the Helmholtz equation [Klimov, 2025, (3.20), (3.21)]:

(∂2∂x2+∂2∂y2+k2(ω))Hz=0,k2(ω)=ω4−ω2(Ω2+2ωp2)+ωp4ω2−(Ω2+ωp2)ε0μ0.(12)

Once Hz is found, the components Ex, Ey are determined from (3.12): the original problem has been reduced to a potential one, the potential being the value of Hz [Klimov, 2025, Sec. 3.2].

Modified circuit

To construct the impedance model, instead of (3.16) one uses an equivalent system of three equations with fictitious electric fields Ex′, Ey′ [Klimov, 2025, (3.22)]:

∂Hz∂y=pε0Ex′,−∂Hz∂x=pε0Ey′,∂Ey′∂x−∂Ex′∂y=−p4+p2(Ω2+2ωp2)+ωp4p(p2+Ω2+ωp2)μ0Hz.(13)

The fictitious fields differ from the real Ex, Ey, but with this notation the grid edges contain only inductances, and they can be replaced by delay lines. With the notation U=HzΔz, Ix′=−Ey′Δy, Iy′=Ex′Δx (3.24), the system corresponds to a modified RLC circuit (Fig. 3.3 in [Klimov, 2025]): inductances Lx0′, Ly0′ in the edges and admittances Y(p)/4 at the nodes [Klimov, 2025, (3.27), (3.28)]:

Lx0′=ε0ΔzΔxΔy,Ly0′=ε0ΔzΔyΔx,Y(p)=(p+1pωp4Ω2+ωp2+pp2+Ω2+ωp2Ω2ωp2Ω2+ωp2)μ0ΔyΔxΔz.(14)

With the notation [Klimov, 2025, (3.29)]

C0=μ0ΔyΔxΔz,Lp=Ω2+ωp2C0ωp4,LΩ=Ω2+ωp2C0Ω2ωp2,CΩ=C0Ω2ωp2(Ω2+ωp2)2(15)

the node admittance is a parallel connection of the capacitance C0, the inductance Lp and the series circuit LΩCΩ (Fig. 3.4) [Klimov, 2025, (3.30)]:

Y(p)=pC0+1pLp+p/LΩp2+1/(LΩCΩ).(16)

Meaning of the elements [Klimov, 2025, Sec. 3.3]:

Element Depends on Meaning
C0 μ0 and the grid steps vacuum
Lp ωp and the grid steps; finite also for Ω=0 free electrons of the plasma
LΩ, CΩ ωp and Ω simultaneous presence of an external field and free electrons

The modified circuit, like the original one, is dual to the physical circuit and consists only of reactive elements. The singularity in the vicinity of the cyclotron resonance is also eliminated in it. The frequencies at which the node admittance is capacitive and the wave propagates are analysed on the cutoffs and transparency windows page.

Boundary conditions change. Since the edges carry the fictitious field E′, the condition on metal (Ex=0 or Ey=0) in the modified circuit turns into a relation between Ex′ and Ey′ [Klimov, 2025, (3.31)–(3.33)]; the magnetic-wall condition Hz=0 (3.34) remains unchanged, because the magnetic field in the modified grid is identical to the original one. How this is implemented in the program is described in wall duality.

Distributed-element circuit

For time-domain computation, one passes from the lumped-element circuit to an Rτ circuit [Klimov, 2025, Sec. 3.8]. The grid is square, Δx=Δy=Δ (3.53); then L0′=ε0Δz (3.54), C0=μ0Δ2/Δz (3.55). Following the information multiport model, the elements that depend only on vacuum and the grid steps (L0′ and C0) are separated out and replaced by line sections with characteristic admittance Y0/2 and delay τ0 (Fig. 3.9) [Klimov, 2025, (3.56), (3.57)]:

τ0=2L0′C04=Δε0μ02,Y0=ΔΔzμ02ε0.(17)

The delay is the same as for the H-wave grid (time step); the dimension of Y0 coincides with that of resistance — the circuit is dual to the physical one.

The two-terminal elements of a node — the plasma elements — are replaced by stubs whose length corresponds to a delay of τ0/2 (Figs. 3.10, 3.11): the inductances 4Lp and 4LΩ by short-circuited stubs with admittances Yp/4 and YLΩ/4, and the capacitance CΩ/4 by an open-circuited stub YCΩ/4. The values are found by equating the admittances of the stub and of the element at the frequency ω (3.58), and for ωτ0≪1 [Klimov, 2025, (3.59), (3.60)]:

YCΩ=2CΩτ0=Y04Ω2ωp2(Ω2+ωp2)2,YLΩ=τ02LΩ=Y0τ02ωp2Ω2+ωp2Ω2,Yp=τ02Lp=Y0τ02ωp2Ω2+ωp2ωp2.(18)

The resulting Rτ circuit consists of reactive elements, so a grid assembled from such elements is conservative, "which makes it possible to construct computationally stable procedures of electrodynamic analysis of magnetized plasma for E-polarization" [Klimov, 2025, Sec. 3.8] (stability).

The X-kernel node and its components

Assembled circuit. The region is divided into elementary volumes, each of which is associated with an Rτ circuit (a descriptor circuit), and the circuits are joined into a grid of the entire region (Figs. 5.1, 5.2 in [Klimov, 2025]). In each cell, ωp and Ω may have their own values; eight stubs of the four adjacent cells are connected to each node. To reduce the number of operations and the memory, they are replaced by one SC stub Y5 and a series connection of an SC stub Y6 and an OC stub Y7, all of length τ0/2 (Fig. 5.3). The plasma parameters are then averaged over the four cells around the node [Klimov, 2025, (5.1), (5.2)]:

ω¯p2=ωp62+ωp72+ωp102+ωp1124=e2ε0m·N6+N7+N10+N114,Ω¯=Ω6+Ω7+Ω10+Ω114=em·Bz6+Bz7+Bz10+Bz114,(19)

and the stub admittances of the node are given by the formulas of Chapter 3 [Klimov, 2025, (5.3)]:

Y5=Yp=Y0τ02ω¯p2Ω¯2+ω¯p2ω¯p2,Y6=YLΩ=Y0τ02ω¯p2Ω¯2+ω¯p2Ω¯2,Y7=YCΩ=Y04Ω¯2ω¯p2(Ω¯2+ω¯p2)2.(20)

The result is a reduced grid (Fig. 5.4): the nodes are connected by lines Y0 with delay τ0. For generality, an active conductance Y — losses — is added to the node; it is also needed for matching boundary conditions (Fig. 5.5) [Klimov, 2025, Sec. 5.2]:

                       2  (neighbour above)
                       │ Y2, τ0
                       │
   1 ───────── Y1, τ0 ─●─ Y3, τ0 ───────── 3
  (neighbour left)     │                   (neighbour right)
                       ├── SC stub  y5, τ0/2                 — L_p: electrons
                       ├── SC stub  y6 ── OC stub y7, τ0/2   — L_Ω and C_Ω in series
                       ├── y  (losses)
                       │ Y4, τ0
                       4  (neighbour below)

Here Y1…Y4 are the characteristic admittances of the lines to the neighbours (on a square grid they are all equal to Y0), and yk=Yk/Y0 are the normalized admittances. If the node voltages are known at every instant, all non-zero field components can be determined, so the problem reduces to determining the nodal voltages [Klimov, 2025, Sec. 5.1].

In the program, the contributions of blocks to a node are accumulated with a weight — the fraction of the cells surrounding the node that lie in the block, as in the H kernel (H dielectric). The electron density N and the flux density B are accumulated separately and linearly — these are precisely the averages (5.1), (5.2), since ωp2∝N and Ω∝B. The node coefficients are then computed from them (below). 12 real numbers are stored per node — 6 value cells and 6 coefficients (96 bytes with double):

Cell Contents
prUNode1[6n+0..3] the four most recent values of node U, in a circular buffer (sub-steps)
prUNode1[6n+4], [6n+5] the sums R of the two previous sub-steps (coefficients)
prYNode[6n+0] Y0=2/(4+y5+y67+y) — factor of the node formula (not to be confused with the characteristic admittance of the lines Y0)
prYNode[6n+1] Y1 — signed node stub: −y5 for plasma (SC), +4Δε for a dielectric (OC)
prYNode[6n+2] Y2=y — losses
prYNode[6n+3] Y3=2y67
prYNode[6n+4] Y4=2(y7−y6)/(y6+y7)
prYNode[6n+5] Y5=Y3Y4/4

This matches the data organization proposed in [Klimov, 2025, Sec. 5.3, Table 5.1]: "12 real numbers per grid node"; with 2 GB of memory this is 44 739 242 nodes in single precision or 22 369 621 in double precision. The minimum-memory variant (Table 5.2) stores 9 numbers (Uτ…Uτ−4, y, y5, y6, y7), but requires 30 additions and 20 multiplications per node; according to [Klimov, 2025], "increasing the required memory by 25 % makes it possible to more than double the computation speed". The H kernel stores 4 numbers per node (H node).

Dielectric node. If there is no plasma at a node (N=0, Δε≥0), the program places, as in the H kernel, an open-circuited stub y5=4Δε without plasma stubs. The program treats a node with Δε<0 as a plasma node (magnetized if B is specified) with an equivalent plasma frequency (ε < 1).

Algorithm for the extraordinary wave

The derivation repeats the construction of the two-layer algorithm for H waves (H scattering), but the X node has a branch of two series stubs whose voltages U6, U7 must be eliminated [Klimov, 2025, Sec. 5.2].

Node voltage in terms of incident waves. The node is a parallel connection of the lines, the stub Y5, the conductance Y and the series chain Y6, Y7 (Fig. 5.7) [Klimov, 2025, (5.4)–(5.6)]:

Uτ=2YΣ(Y1UP1τ+Y2UP2τ+Y3UP3τ+Y4UP4τ+Y5UP5τ+Y67UP6τ+Y67UP7τ),(21)
Y67=Y6Y7Y6+Y7,YΣ=Y1+Y2+Y3+Y4+Y5+Y67+Y.(22)

Wave exchange. A wave from a neighbour arrives after τ0 (5.10); a wave in a stub of length τ0/2 returns after τ0 — from a short circuit with a change of sign, from an open circuit without it [Klimov, 2025, (5.10)–(5.13)]:

UPiτ=Uiτ−1−UOiτ−2 (i=1…4),UP5τ=−Uτ−1−UO5τ−2,UP6τ=−U6τ−1−UO6τ−2,UP7τ=U7τ−1−UO7τ−2.(23)

Eliminating the reflected waves in the same way as for the H node, one obtains [Klimov, 2025, (5.16)]

Uτ=2YΣ(Y1U1τ−1+Y2U2τ−1+Y3U3τ−1+Y4U4τ−1−Y5Uτ−1+Y67(U7τ−1−U6τ−1)+YUτ−2)−Uτ−2.(24)

Elimination of the stub voltages. The difference U7τ−1−U6τ−1 is unknown. From the relations for the currents and voltages at the stub inputs (5.17)–(5.19) and the formation of the incident waves in the stubs (Figs. 5.8, 5.9), it is expressed through its own values at the two previous time steps and the node voltages [Klimov, 2025, (5.43)]:

U7τ−1−U6τ−1=2Uτ−2−Y7−Y6Y6+Y7(Uτ−1+Uτ−3)+2Y7−Y6Y6+Y7(U7τ−2−U6τ−2)−(U7τ−3−U6τ−3),(25)

and the differences at time steps τ−2, τ−3 are obtained from (5.16) written for these time steps (5.44)–(5.47). Substitution into (5.16) gives the algorithm of electrodynamic analysis for the extraordinary wave [Klimov, 2025, (5.49)]; [Klimov, 2007, (5.49)]:

Uτ=&2YΣ(∑i=14YiUiτ−1−Y5Uτ−1+YUτ−2)−Uτ−2+2Y67YΣ(2Uτ−2−Y7−Y6Y6+Y7(Uτ−1+Uτ−3))&−(Uτ−2+Uτ−4)+2Y7−Y6Y6+Y7(Uτ−1+Uτ−3)−2Y7−Y6Y6+Y72YΣ(∑i=14YiUiτ−2−Y5Uτ−2+YUτ−3)&+2YΣ(∑i=14YiUiτ−3−Y5Uτ−3+YUτ−4).(26)

The new value requires the node voltages at the four previous time steps and those of the neighbours at three; the algorithm is called four-parameter [Klimov, 2025, Sec. 5.3]. The formula generalizes to a node with an arbitrary number N of lines (elementary volumes of arbitrary shape, (5.50), Figs. 5.10, 5.11): the sums over the four neighbours are replaced by sums over N.

For y=0, expressions (5.49)–(5.51) correspond to a conservative grid, and for y>0 to a dissipative one; "therefore the algorithms based on these expressions possess computational stability" [Klimov, 2025, Sec. 5.3].

Sub-steps of one step

Formula (5.49) links five time layers of a node: Uτ and Uτ−1…Uτ−4. The new Uτ is written in place of Uτ−4, which is no longer needed afterwards, so four cells are allocated for the node values, and their roles rotate cyclically. In addition, the bracket 2YΣ(…) at time step τ repeats the same brackets at time steps τ−1 and τ−2, and it is advantageous to store them rather than recompute them ([Klimov, 2025, Table 5.1]; in the program these are the sums R, see coefficients). Hence there are four sub-steps per pass of the loop:

Sub-step Uτ written to Uτ−1 Uτ−2 Uτ−3 Rτ−1 / Rτ−2 → Rτ Functions
0 cell 0 3 2 1 4 / 5 → 5 RunExciteInputs, RunScatteringNode, RunBlockNode
1 cell 1 0 3 2 5 / 4 → 4 RunExciteInputs1, RunScatteringNode1, RunBlockNode1
2 cell 2 1 0 3 4 / 5 → 5 RunExciteInputs2, RunScatteringNode2, RunBlockNode2
3 cell 3 2 1 0 5 / 4 → 4 RunExciteInputs3, RunScatteringNode3, RunBlockNode3

Each sub-step advances the computation by one time step τ0. Within a sub-step, the following are performed in order: port excitation and writing of a line of the .t file (ports); saving of the port node cells; scattering at all interior nodes according to (5.49); restoration of the port nodes; block boundary conditions (boundary conditions); field frame and field accumulation for the RP (RP). In detail: four sub-steps in the code.

Within a sub-step the nodes are independent: each writes only its own cell of the current sub-step and its own R cell, and reads the neighbours' cells of the previous time step. The order of node traversal does not affect the result — this is exploited in GPU computing (GPU). The H kernel has three layers and two sub-steps (H sub-steps).

Node coefficients

Square grid. For Y1=Y2=Y3=Y4=Y0, formula (5.49) is written in terms of the normalized quantities y=Y/Y0, y5=Y5/Y0, y6=Y6/Y0, y7=Y7/Y0, y67=Y67/Y0 [Klimov, 2025, (5.51), (5.52)]:

Uτ=&24+y5+y67+y(∑i=14Uiτ−1−y5Uτ−1+yUτ−2)−Uτ−2+2y674+y5+y67+y(2Uτ−2−y7−y6y6+y7(Uτ−1+Uτ−3))&−(Uτ−2+Uτ−4)+2y7−y6y6+y7(Uτ−1+Uτ−3)−2y7−y6y6+y724+y5+y67+y(∑i=14Uiτ−2−y5Uτ−2+yUτ−3)&+24+y5+y67+y(∑i=14Uiτ−3−y5Uτ−3+yUτ−4).(27)

Formula in the program. Let us denote the sum that the program computes at every sub-step and stores:

Rτ=∑i=14Uiτ−1+Y1Uτ−1+Y2Uτ−2,(28)

then (5.52) takes the form computed by the RunScatteringNode1line* function:

Uτ=−Uτ−4−2Uτ−2+Y4(Uτ−1+Uτ−3)+Y0(Rτ+Rτ−2−Y4Rτ−1+Y3Uτ−2−Y5(Uτ−1+Uτ−3)),(29)

with the coefficients denoted, as on the code page, Y0…Y5 (here Y0 is the factor of the formula, not the characteristic admittance of the lines):

Program coefficient In terms of the quantities of (5.52) Cell
Y0 24+y5+y67+y prYNode[6n+0]
Y1 −y5 (SC stub with the "−" sign, as in (5.16)) prYNode[6n+1]
Y2 y prYNode[6n+2]
Y3 2y67 prYNode[6n+3]
Y4 2y7−y6y6+y7 prYNode[6n+4]
Y5 Y3Y44=y67y7−y6y6+y7 prYNode[6n+5]

Check: substituting the coefficients, expanding R and collecting terms, we obtain (5.52) term by term (−Uτ−2 from the first line and −(Uτ−2+Uτ−4) give −2Uτ−2−Uτ−4, and the term 2y67…·2Uτ−2 is Y0Y3Uτ−2). Per node and sub-step there is one sum R (5 additions, 2 multiplications) and one line of the formula; cf. [Klimov, 2025, Table 5.1]: 13 additions/subtractions and 9 multiplications with 12 numbers stored.

Coefficients in terms of plasma parameters. Substituting (5.3) and denoting x=τ02(Ω2+ωp2), we obtain

y7−y6=Ω2ωp2(4−x)(Ω2+ωp2)2,y6+y7=Ω2ωp2(4+x)(Ω2+ωp2)2,(30)

and the program (SetDielInNodeList) computes the coefficients of a plasma node in closed form:

Y1=−τ02ωp4Ω2+ωp2,Y3=8τ02Ω2ωp2(Ω2+ωp2)(4+x),Y4=2(4−x)4+x,Y5=Y3Y44,Y0=24+|Y1|+Y2+Y3/2.(31)

Here ωp2 is the equivalent plasma frequency of the node, which combines the electron density N and the negative increment Δε (ε < 1), Ω2=(eB/m)2, τ0 is the time step, and Y2=y are the losses (with the converted conductivity σ, collisions and conductivity). The closed form is finite also for B=0, when y6=y7=0 and the ratio (y7−y6)/(y6+y7) is formally undefined: then Y3=Y5=0, Y1=−τ02ωp2, Y4=2(4−τ02ωp2)/(4+τ02ωp2).

The sign of Y4 corresponds to formula (5.49): Y4=2(y7−y6)/(y6+y7)=2(4−x)/(4+x). In the program, the sign was brought into agreement with (5.49) in October 2026; the former line with the opposite sign is kept in the source as a comment (code). In the source, the intermediate variables d_y6 and d_y7 are named the other way round with respect to y6, y7 of the book (d_y6 =y7, d_y7 =y6); this does not affect the result, since Y3 and Y4 are computed in closed form.

Dielectric node (Δε≥0, N=0): Y1=4Δε (values within 0.004 of 4 are shifted to 3.996 or 4.004, as in the H kernel), Y3=Y5=0, Y4=−2, Y0=2/(4+|Y1|+Y2). The flux density B is not used at such a node.

Relation to the H-kernel scheme. If Y3=Y5=0 (a dielectric or plasma without an external field), the program formula reduces to the form

(1−Y4z−1+z−2)(Uτ+Uτ−2)=(1−Y4z−1+z−2)Y0Rτ,(32)

where z−1 is a shift by one time step. This is the two-layer scheme of the H kernel Uτ=Y0Rτ−Uτ−2 (H scattering), with the same factor applied to both sides; at a dielectric node (Y4=−2) the factor equals (1+z−1)2. For B=0, the stub Y1=−τ02ωp2 coincides with the SC stub of an H node with Δε=−ωp2/ω2 (dispersive media): unmagnetized plasma is described by the same stub in the H and X kernels.

Checks during conversion. As in the H kernel, ωτ0/2≤π/3 at the frequency FREQ (otherwise the error "very big Delta*Frequence" is reported). Before the conversion, warnings are issued about nodes where Δε>0 is combined with N or with B (ε < 1). In the educational version of the program, nodes with ε<1 are prohibited.

Computing the fields

The circuit quantities are related to the field by relations (3.24): U=HzΔz, Ix′=−Ey′Δy, Iy′=Ex′Δx. The edge currents of the modified circuit describe the fictitious field E′; the real electric field components are obtained from Hz by (3.12), in the time domain by (3.17), and in the frequency domain by [Klimov, 2025, (3.18)]:

Ex=iω(Ω2+ωp2−ω2)∂Hz/∂y−Ωωp2∂Hz/∂xε0(ω4−ω2(Ω2+2ωp2)+ωp4),Ey=−Ωωp2∂Hz/∂y+iω(Ω2+ωp2−ω2)∂Hz/∂xε0(ω4−ω2(Ω2+2ωp2)+ωp4).(33)

For eigensolutions, the fictitious field gives transverse waves, while the real field gives longitudinal–transverse waves [Klimov, 2025, Sec. 3.7]; the behaviour of the real field is analysed on the plasma model page.

In the program, the X kernel outputs the node values U, i.e. a quantity proportional to Hz:

  • field frames — the values in the current sub-step cell of all nodes; they are displayed by FieldView (kernel output);
  • accumulation for the radiation pattern — from the same values of U, with a node stride of 6 (near-field contour);
  • topology — four tables: ε, N, Y, B of each node, reconstructed from the coefficients (units).

The X kernel neither computes nor writes the components Ex, Ey.

Mapping to the code

Symbol / action Variable, function File (src/kernels/planarrt_x/)
Uτ−1…Uτ−4 of node n prUNode1[6n+0..3] (roles rotate between sub-steps) tmcrthrectnode.h
Rτ−1, Rτ−2 prUNode1[6n+4], prUNode1[6n+5] tmcrthrectnode.h
Y0=2/(4+y5+y67+y) prYNode[6n+0] tmcrthrectnode.h
Y1=−y5 or 4Δε prYNode[6n+1] tmcrthrectnode.h
Y2=y prYNode[6n+2] tmcrthrectnode.h
Y3=2y67, Y4, Y5 prYNode[6n+3], [6n+4], [6n+5] tmcrthrectnode.h
accumulators before conversion: Δε, N, y, σ, B prYNode[6n+0..4] tmcrthnodediel.cpp (SetYLineForDiel, SetStatEpsFast, EpsFastTypeOffset)
averages (5.1), (5.2) — weighted block contribution weight sTmcRTHNodeDielOne::rY, CTmcRTHNodeDiel::CalcEps tmcrthnodediel.cpp
coefficients (5.3) → Y0…Y5 CTmcRTHRectNode::SetDielInNodeList: d_wp2 =ωp2, d_WC2 =Ω2, d_y5 =y5, d_y6 =y7, d_y7 =y6 tmcrthrectnode.cpp
τ0 dT (cIndan.dGetdT()) tmcrthrectnode.cpp
e, m ELECTRON_Q___, ELECTRON_M___ src/Include/typerth.h
node formula (5.49)/(5.52) RunScatteringNode1line, …line1, …line2, …line3 (sub-steps 0–3); row traversal — RunScatteringNode…RunScatteringNode3 tmcrthrectnode.cpp
four sub-steps, order of operations RunKernel, RunKernel1T; nTCurrent, dTCurrent tmcrthrectnode.cpp
field frame (U=HzΔz of all nodes) PutField tmcrthrectnode.cpp
topology ε, N, Y, B PutTopology tmcrthrectnode.cpp
block boundary conditions RunBlockNode…RunBlockNode3 tmcrthnodediel.cpp

A detailed description of the code is given in X compute kernel: node structure (node-data), sub-steps (subcycles), scattering (scattering), coefficients (coefficients), plasma blocks (plasma-blocks). Accuracy of the scheme: X-kernel accuracy.

Sources

  • [Klimov, 2025] — Ch. 3: Sec. 3.1 ((3.1)–(3.9), Figs. 3.1, 3.2), 3.2 ((3.10)–(3.21)), 3.3 ((3.22)–(3.30), Figs. 3.3, 3.4), 3.4 ((3.31)–(3.34)), 3.8 ((3.53)–(3.60), Figs. 3.9–3.11); Ch. 5: Sec. 5.1 ((5.1)–(5.3), Figs. 5.1–5.4), 5.2 ((5.4)–(5.49), Figs. 5.5–5.9), 5.3 ((5.50)–(5.53), Figs. 5.10, 5.11, Tables 5.1, 5.2); Ch. 2: (2.33)–(2.35).
  • [Klimov, 2007] — Ch. 3 (Sec. 3.1–3.4, 3.8), Ch. 5 (Sec. 5.1–5.3, node algorithm (5.49)), Ch. 9 (Sec. 9.3).