Плазменный столб с профилем

Концентрация задана формулой от координат

Параметр Значение
Раздел библиотеки Среды, плазма, ЭПР
Ядро PlanarRT X (planarrt_x.exe)
Источник параболический профиль плотности
Сетка 428 × 46 узлов, шаг 1,8035 мм
Время счёта задания 45 нс модельного времени, шагов: 21
Длительность прогона около 47 с на шестиядерном ПК, без вывода поля

Постановка задачи

Плазменный столб в волноводе с плотностью, спадающей к краю по параболе. Концентрация задана не числом, а формулой от расстояния до центра — ядро считает её в каждом узле. Так заданы профили плотности в авторских заданиях по токамакам.

  • Концентрация задана формулой от координат — ядро считает её в каждом узле. Так же заданы профили плотности в авторских токамаковых заданиях.

Теоретические сведения

Холодная бесстолкновительная плазма задаётся концентрацией электронов N, которая определяет плазменную частоту, и полем подмагничивания B, которое определяет электронную циклотронную частоту:

fp=12πNe2ε0me,fce=eB2πme,ε(f)=1−fp2f2

В ядре PlanarRT X (X-мода) ток плазмы считается прямо во временной области, поэтому дисперсия среды учитывается сама: один и тот же блок плазмы верен на любой частоте.

Плазменный столб радиуса R=14,43 мм имеет параболический профиль концентрации

N(r)=N0(1−r2(1,1R)2)

и плазменную частоту 4 ГГц в центре. Концентрация задана формулой от координат, и ядро считает её в каждом узле, поэтому на краю она остаётся ненулевой: нулевую концентрацию ядро не принимает. На частотах ниже fp середина столба непрозрачна.

Паспорт образца. Значения, которые TPL Designer вычисляет по формулам для параметров по умолчанию.

Величина Значение
Столб радиус 14.43 мм (0.2 a)
Профиль N = N0 (1 - (r/1.1R)²), N0 = 198464752488286080 м⁻³; на краю N = 0.17 N0 — нулевую концентрацию ядро не принимает
fp в центре 4 ГГц
Ожидаемо столб отражает сильнее на частотах ниже fp: там его середина непрозрачна

Создание файла задания

Образец уже встроен в TPL Designer: скачивать ничего не нужно. Выполните шаги по порядку.

  1. Запустите TPL Designer. На стартовом экране в карточке «Взять образец» нажмите «Открыть библиотеку».
  2. Слева выберите раздел «Среды, плазма, ЭПР» и щёлкните в галерее плитку «Плазменный столб с профилем». Справа откроется карточка образца с паспортом и параметрами.
Карточка образца в библиотеке TPL Designer
Карточка образца в библиотеке TPL Designer
  1. Параметры оставьте по умолчанию: все числа на этой странице получены именно для них. Изменённые значения можно сбросить кнопкой «Вернуть умолчания».
  2. Нажмите «Открыть в редакторе». Задание откроется в мастере из пяти разделов, список которых находится слева.
  3. Откройте раздел «Геометрия». На холсте показано то, что посчитает ядро: металлические стенки, порты, диэлектрик или плазма. Зелёный значок отмечает активный порт, красный — пассивный. Двойной щелчок по объекту откроет его свойства.
Раздел «Геометрия» мастера TPL Designer
Раздел «Геометрия» мастера TPL Designer
  1. Если хотите посмотреть поле в FieldView, откройте раздел «Вывод данных» и отметьте «Выгружать топологию (файл .tt)» и «Выгружать поля (файлы .ex, .ey, .hz)», вариант «только на первом шаге». Запись поля замедляет счёт в разы, поэтому в образцах она выключена, если задание не требует её само.
  2. Откройте раздел «Проверка». Слева показана сводка расчёта, справа текст файла задания, а полоса внизу сообщает, что замечаний нет.
Раздел «Проверка» мастера TPL Designer
Раздел «Проверка» мастера TPL Designer
  1. Нажмите «Создать файл задания» и выберите пустую папку. В ней появятся файлы: plcol.tpl, plcol_step.h.

Запуск расчёта

  1. Запустите программу PlanarRT X (planarrt_x.exe).
  2. Нажмите Открыть Открыть или Ctrl+O и выберите файл plcol.tpl в созданной папке. Если в строке состояния появилось Шаг:1;Error:no, задание прочитано верно.
  3. Нажмите Запуск Запуск или F5. Ядро посчитает все шаги задания (21), на шестиядерном ПК это занимает около 47 с.
  4. Дождитесь надписи «Готово» в строке состояния.

Ядро дописывает файл .s, а не перезаписывает его. Перед повторным запуском удалите старый файл .s, иначе старые точки смешаются с новыми.

Просмотр результатов

Матрица рассеяния. Нажмите Показать S-матрицу Показать S-матрицу: откроется TMCGROUT с кривой первого элемента. Он показывает КСВН; чтобы увидеть модули, нажмите Ctrl+H и выберите «Шкала Y» → «|S|», а другие элементы добавьте через Ctrl+D.

Окно TMCGROUT сразу после открытия файла .s
Окно TMCGROUT сразу после открытия файла .s

Сигналы на портах. Нажмите Показать выходной сигнал Показать выходной сигнал: откроется TMCROS с файлом .t.

Окно TMCROS с сигналом на порту
Окно TMCROS с сигналом на порту

Поле. Если вы включили вывод поля на шаге 6, нажмите Показать поле и топологию Показать поле и топологию: откроется FieldView. Анимацию он сохраняет командой экспорта.

Результаты

Частотная характеристика: модули элементов матрицы рассеяния, рассчитанные ядром
Частотная характеристика: модули элементов матрицы рассеяния, рассчитанные ядром
Развёрнутая фаза прохождения S21
Развёрнутая фаза прохождения S21
Баланс мощности: сумма квадратов модулей первого столбца матрицы
Баланс мощности: сумма квадратов модулей первого столбца матрицы
Сигналы на портах во времени
Сигналы на портах во времени

Числа расчёта: значения на краях диапазона, в середине и в точке наилучшего согласования.

Частота, ГГц |S11|, дБ |S21|, дБ
2,6 -3,38 -2,67
3,275 -7,01 -0,97
3,95 -10,4 -0,41

Анимация поля

Поле, рассчитанное ядром на частоте 3,275 ГГц: 320 кадров через 5 тактов, до 6,83 нс. Шкала «Волна», как в FieldView

Разбор результатов

Отражение убывает с частотой: |S11| от −3,3 дБ на 2,6 ГГц до −10,4 дБ на 3,95 ГГц, а |S21| растёт от −2,7 до −0,4 дБ. Столб занимает лишь 40 % ширины волновода, поэтому даже непрозрачная середина не запирает канал: волна обходит её у стенок, что хорошо видно на анимации. Для сравнения, слой во всю ширину (образец «Плазменный слой в волноводе») на тех же частотах отражает сильнее.

Файл задания

Этот текст TPL Designer показывает в разделе «Проверка». Файл записан в кодировке CP1251.

plcol.tpl
#TMC_RT_H
! Задание сгенерировано TPL Designer.
! Плазменный столб с параболическим профилем в волноводе WR-284 / R32: fp в центре 4 ГГц.
! Ядро: tmc_rtx (X-мода)
! Перед прогоном удалить plcol.s -- дописывается, а не перезаписывается.

#include plcol_step.h

plcolstep 2.6; plcol_f2p6; plcol;
plcolstep 2.668; plcol_f2p668; plcol;
plcolstep 2.735; plcol_f2p735; plcol;
plcolstep 2.803; plcol_f2p803; plcol;
plcolstep 2.87; plcol_f2p87; plcol;
plcolstep 2.938; plcol_f2p938; plcol;
plcolstep 3.005; plcol_f3p005; plcol;
plcolstep 3.073; plcol_f3p073; plcol;
plcolstep 3.14; plcol_f3p14; plcol;
plcolstep 3.208; plcol_f3p208; plcol;
plcolstep 3.275; plcol_f3p275; plcol;
plcolstep 3.343; plcol_f3p343; plcol;
plcolstep 3.41; plcol_f3p41; plcol;
plcolstep 3.478; plcol_f3p478; plcol;
plcolstep 3.545; plcol_f3p545; plcol;
plcolstep 3.613; plcol_f3p613; plcol;
plcolstep 3.68; plcol_f3p68; plcol;
plcolstep 3.748; plcol_f3p748; plcol;
plcolstep 3.815; plcol_f3p815; plcol;
plcolstep 3.883; plcol_f3p883; plcol;
plcolstep 3.95; plcol_f3p95; plcol;

#EOF
plcol_step.h
! ==========================================================================
! plcol_step.h — макроопределения шагов расчёта.
! Подключается строкой  #include plcol_step.h  и должен лежать РЯДОМ с .tpl
!
! ДВА бэкслеша в конце строки = "текст макроса продолжается ниже".
! У ПОСЛЕДНЕЙ строки макроса переноса НЕТ — это признак конца.
! ==========================================================================
#define plcolstep Freq__; Tfile__; Sfile__; @\\
#STEP\\
#PARM\\
 ANGLE_UNIT radian;\\
 FREQ_UNIT  GHz;\\
 LONG_UNIT  mm;\\
 TIME_UNIT  ns;\\
 DELTA  1.8035;\\
 TIME   0.; 45.0;\\
 X_MIN  0.0;\\
 X_MAX  771.898;\\
 Y_MIN  0.0;\\
 Y_MAX  82.961;\\
 FREQ   Freq__;\\
#END_PARM\\
#TOPOLOGY\\
 BLOCK 1;\\   ! волновод: нижняя стенка
  RECT_STAT METAL; 0.0; 771.898; 3.607; 5.4105;\\
 END_B\\
 BLOCK 2;\\   ! волновод: верхняя стенка
  RECT_STAT METAL; 0.0; 771.898; 77.5505; 79.354;\\
 END_B\\
 BLOCK 3;\\   ! плазменный столб — концентрация N задана формулой от координат
  CIRCLE_STAT_N 198464752500000000.0*(1-(r/15.8708)*(r/15.8708)); 0.0; 14.428; 0.0; 6.283185307;\\
 END_B\\
 BLOCK 4;\\   ! вход 1 — АКТИВНЫЙ
  INPUT_X ; 5.4105; 77.5505; 0; 45; 1; 0;\\
 END_B\\
 BLOCK 5;\\   ! вход 2 — пассивный
  INPUT_X ; 5.4105; 77.5505; 90; 135; 0; 0;\\
 END_B\\
#END_TOPOLOGY\\
#LINK_LIST\\
 T 1; 0.0; 0.0;\\
 T 2; 0.0; 0.0;\\
 T 3; 385.949; 41.4805;\\
 T 4; 0.0; 0.0;\\
 T 5; 771.898; 0.0;\\
#END_LINK\\
#OUTPUT\\
 FILE Tfile__;\\
 SMATRIX Sfile__; Freq__; 33.75; 45.0;\\
#END_OUTPUT\\
#END_STEP

Plasma column with a profile

Density given by a formula of the coordinates

Parameter Value
Library section Media, plasma, RCS
Kernel PlanarRT X (planarrt_x.exe)
Source parabolic density profile
Mesh 428 × 46 nodes, step 1.8035 mm
Task time 45 ns of model time, steps: 21
Run duration about 47 s on a six-core PC, without field output

Problem statement

A plasma column in a waveguide with density falling parabolically towards the edge. The density is given not by a number but by a formula of the distance to the center: the kernel computes it at each node. Density profiles in the author's tokamak tasks are given this way.

  • The density is given by a formula of the coordinates: the kernel computes it at each node. Density profiles in the author's tokamak tasks are given the same way.

Theoretical background

A cold collisionless plasma is defined by the electron density N, which sets the plasma frequency, and by the magnetising field B, which sets the electron cyclotron frequency:

fp=12πNe2ε0me,fce=eB2πme,ε(f)=1−fp2f2

In the PlanarRT X kernel (X-mode) the plasma current is computed directly in the time domain, so the dispersion of the medium is accounted for automatically: the same plasma block is valid at any frequency.

A plasma column of radius R=14.43 mm has a parabolic density profile

N(r)=N0(1−r2(1.1R)2)

and a plasma frequency of 4 GHz at the centre. The density is given by a formula in the coordinates and the kernel evaluates it at every node, so it stays non-zero at the edge: the kernel does not accept zero density. Below fp the middle of the column is opaque.

Sample datasheet. The values that TPL Designer computes by formulas for the default parameters.

Quantity Value
Column radius 14.43 mm (0.2 a)
Profile N = N0 (1 - (r/1.1R)^2), N0 = 198464752488286080 m^-3; at the edge N = 0.17 N0: the kernel does not accept zero density
fp at the center 4 GHz
Expected the column reflects more strongly at frequencies below fp: there its middle is opaque

Creating the task file

The sample is built into TPL Designer, so there is nothing to download. Follow the steps in order.

  1. Start TPL Designer. On the start screen, in the Take a sample card, click Open library.
  2. Choose the Media, plasma, RCS section on the left and click the Plasma column with a profile tile in the gallery. The sample card with its datasheet and parameters opens on the right.
The sample card in the TPL Designer library
The sample card in the TPL Designer library
  1. Keep the default parameters: all the numbers on this page were obtained for them. Changed values can be reset with Restore defaults.
  2. Click Open in editor. The task opens in the five-section wizard; the section list is on the left.
  3. Open the Geometry section. The canvas shows what the kernel will compute: metal walls, ports, dielectric or plasma. A green icon marks the active port and a red one the passive port. Double-click an object to open its properties.
The Geometry section of the TPL Designer wizard
The Geometry section of the TPL Designer wizard
  1. If you want to view the field in FieldView, open the Output section and tick Export topology (.tt file) and Export fields (.ex, .ey, .hz files), option only at the first step. Field output slows the calculation several times, so it is off in the samples unless a task requires it.
  2. Open the Check section. The left side shows the summary, the right side shows the task file text, and the strip at the bottom reports that there are no issues.
The Check section of the TPL Designer wizard
The Check section of the TPL Designer wizard
  1. Click Create task file and choose an empty folder. It will contain these files: plcol.tpl, plcol_step.h.

Running the calculation

  1. Start PlanarRT X (planarrt_x.exe).
  2. Click Open Open or press Ctrl+O and choose plcol.tpl in the folder you created. If the status bar shows Step:1;Error:no, the task was read correctly.
  3. Click Run Run or press F5. The kernel computes all task steps (21); on a six-core PC this takes about 47 s.
  4. Wait for "Done" in the status bar.

The kernel appends to the .s file instead of overwriting it. Delete the old .s file before a repeated run, or old points will mix with new ones.

Viewing the results

Scattering matrix. Click View S-matrix View S-matrix: TMCGROUT opens with the curve of the first element. It shows VSWR; to see magnitudes press Ctrl+H and choose "Y-scale" → "|S|", and add other elements with Ctrl+D.

The TMCGROUT window right after opening the .s file
The TMCGROUT window right after opening the .s file

Port signals. Click View output View output: TMCROS opens with the .t file.

The TMCROS window with a port signal
The TMCROS window with a port signal

Field. If you enabled field output in step 6, click View field and topology View field and topology: FieldView opens. It saves animations with the export command.

Results

Frequency response: magnitudes of the scattering-matrix elements computed by the kernel
Frequency response: magnitudes of the scattering-matrix elements computed by the kernel
Unwrapped transmission phase S21
Unwrapped transmission phase S21
Power balance: sum of squared magnitudes of the first matrix column
Power balance: sum of squared magnitudes of the first matrix column
Port signals over time
Port signals over time

Computed numbers: values at the range edges, mid-range and at the best match.

Frequency, GHz |S11|, dB |S21|, dB
2.6 -3.38 -2.67
3.275 -7.01 -0.97
3.95 -10.4 -0.41

Field animation

Field computed by the kernel at 3.275 GHz: 320 frames every 5 ticks, up to 6.83 ns. The Wave scale, as in FieldView

Discussion

Reflection falls with frequency: |S11| goes from −3.3 dB at 2.6 GHz to −10.4 dB at 3.95 GHz, and |S21| rises from −2.7 to −0.4 dB. The column occupies only 40 % of the guide width, so even an opaque middle does not block the channel: the wave goes around it near the walls, as the animation shows. For comparison, a full-width slab (the "Plasma slab in a waveguide" sample) reflects more at the same frequencies.

Task file

TPL Designer shows this text in the Check section. The file is written in the CP1251 encoding.

plcol.tpl
#TMC_RT_H
! Task generated by TPL Designer.
! Plasma column with a parabolic profile in waveguide WR-284 / R32: fp at the center 4 GHz.
! Kernel: tmc_rtx (X-mode)
! Delete plcol.s before the run -- it is appended to, not overwritten.

#include plcol_step.h

plcolstep 2.6; plcol_f2p6; plcol;
plcolstep 2.668; plcol_f2p668; plcol;
plcolstep 2.735; plcol_f2p735; plcol;
plcolstep 2.803; plcol_f2p803; plcol;
plcolstep 2.87; plcol_f2p87; plcol;
plcolstep 2.938; plcol_f2p938; plcol;
plcolstep 3.005; plcol_f3p005; plcol;
plcolstep 3.073; plcol_f3p073; plcol;
plcolstep 3.14; plcol_f3p14; plcol;
plcolstep 3.208; plcol_f3p208; plcol;
plcolstep 3.275; plcol_f3p275; plcol;
plcolstep 3.343; plcol_f3p343; plcol;
plcolstep 3.41; plcol_f3p41; plcol;
plcolstep 3.478; plcol_f3p478; plcol;
plcolstep 3.545; plcol_f3p545; plcol;
plcolstep 3.613; plcol_f3p613; plcol;
plcolstep 3.68; plcol_f3p68; plcol;
plcolstep 3.748; plcol_f3p748; plcol;
plcolstep 3.815; plcol_f3p815; plcol;
plcolstep 3.883; plcol_f3p883; plcol;
plcolstep 3.95; plcol_f3p95; plcol;

#EOF
plcol_step.h
! ==========================================================================
! plcol_step.h -- macro definitions of the computation steps.
! Included with the line  #include plcol_step.h  and must lie NEXT TO the .tpl
!
! TWO backslashes at the end of a line = "the macro text continues below".
! The LAST line of the macro has NO continuation -- that marks the end.
! ==========================================================================
#define plcolstep Freq__; Tfile__; Sfile__; @\\
#STEP\\
#PARM\\
 ANGLE_UNIT radian;\\
 FREQ_UNIT  GHz;\\
 LONG_UNIT  mm;\\
 TIME_UNIT  ns;\\
 DELTA  1.8035;\\
 TIME   0.; 45.0;\\
 X_MIN  0.0;\\
 X_MAX  771.898;\\
 Y_MIN  0.0;\\
 Y_MAX  82.961;\\
 FREQ   Freq__;\\
#END_PARM\\
#TOPOLOGY\\
 BLOCK 1;\\   ! waveguide: bottom wall
  RECT_STAT METAL; 0.0; 771.898; 3.607; 5.4105;\\
 END_B\\
 BLOCK 2;\\   ! waveguide: top wall
  RECT_STAT METAL; 0.0; 771.898; 77.5505; 79.354;\\
 END_B\\
 BLOCK 3;\\   ! plasma column -- density N is given by a formula of the coordinates
  CIRCLE_STAT_N 198464752500000000.0*(1-(r/15.8708)*(r/15.8708)); 0.0; 14.428; 0.0; 6.283185307;\\
 END_B\\
 BLOCK 4;\\   ! port 1 -- ACTIVE
  INPUT_X ; 5.4105; 77.5505; 0; 45; 1; 0;\\
 END_B\\
 BLOCK 5;\\   ! port 2 -- passive
  INPUT_X ; 5.4105; 77.5505; 90; 135; 0; 0;\\
 END_B\\
#END_TOPOLOGY\\
#LINK_LIST\\
 T 1; 0.0; 0.0;\\
 T 2; 0.0; 0.0;\\
 T 3; 385.949; 41.4805;\\
 T 4; 0.0; 0.0;\\
 T 5; 771.898; 0.0;\\
#END_LINK\\
#OUTPUT\\
 FILE Tfile__;\\
 SMATRIX Sfile__; Freq__; 33.75; 45.0;\\
#END_OUTPUT\\
#END_STEP