ЛР2: замагниченная плазма
Квадрат плазмы с подмагничиванием в волноводе
| Параметр | Значение |
|---|---|
| Раздел библиотеки | Учебные задания |
| Ядро | PlanarRT X (planarrt_x.exe) |
| Источник | TMC Suite, samples/LR2_plasma.tpl |
| Сетка | 240 × 80 узлов, шаг 1 мм |
| Время счёта задания | 115 нс модельного времени, шагов: 31 |
| Длительность прогона | около 151 с на шестиядерном ПК, без вывода поля |
Постановка задачи
Лабораторная работа 2. Небольшой квадрат плазмы в центре волновода вместе с магнитным полем в той же области — гиротропная среда. Считается ядром X-моды.
Теоретические сведения
Холодная бесстолкновительная плазма задаётся концентрацией электронов , которая определяет плазменную частоту, и полем подмагничивания , которое определяет электронную циклотронную частоту:
В ядре PlanarRT X (X-мода) ток плазмы считается прямо во временной области, поэтому дисперсия среды учитывается сама: один и тот же блок плазмы верен на любой частоте.
Лабораторная работа 2. Небольшой квадрат плазмы в центре волновода находится в магнитном поле той же области: это гиротропная среда. Задача считается ядром X-моды с 31 шагом по частоте от 3 до 6 ГГц. На низких частотах плазма непрозрачна и работает почти как запирающая вставка.
Паспорт образца. Значения, которые TPL Designer вычисляет по формулам для параметров по умолчанию.
| Величина | Значение |
|---|---|
| Шагов расчёта | 31 |
| Фигур / входов | 3 / 2 |
Создание файла задания
Образец уже встроен в TPL Designer: скачивать ничего не нужно. Выполните шаги по порядку.
- Запустите TPL Designer. На стартовом экране в карточке «Взять образец» нажмите «Открыть библиотеку».
- Слева выберите раздел «Учебные задания» и щёлкните в галерее плитку «ЛР2: замагниченная плазма». Справа откроется карточка образца с паспортом и параметрами.

- Параметров у этого образца нет: это авторское задание, оно открывается как есть.
- Нажмите «Открыть в редакторе». Задание откроется в мастере из пяти разделов, список которых находится слева.
- Откройте раздел «Геометрия». На холсте показано то, что посчитает ядро: металлические стенки, порты, диэлектрик или плазма. Зелёный значок отмечает активный порт, красный — пассивный. Двойной щелчок по объекту откроет его свойства.

- Если хотите посмотреть поле в FieldView, откройте раздел «Вывод данных» и отметьте «Выгружать топологию (файл .tt)» и «Выгружать поля (файлы .ex, .ey, .hz)», вариант «только на первом шаге». Запись поля замедляет счёт в разы, поэтому в образцах она выключена, если задание не требует её само.
- Откройте раздел «Проверка». Слева показана сводка расчёта, справа текст файла задания, а полоса внизу сообщает, что замечаний нет.

- Нажмите «Создать файл задания» и выберите пустую папку. В ней появятся файлы:
LR2_plasma.tpl,LR2_plasma_step.h.
Запуск расчёта
- Запустите программу PlanarRT X (
planarrt_x.exe). - Нажмите
Открыть или Ctrl+Oи выберите файлLR2_plasma.tplв созданной папке. Если в строке состояния появилосьШаг:1;Error:no, задание прочитано верно. - Нажмите
Запуск или F5. Ядро посчитает все шаги задания (31), на шестиядерном ПК это занимает около 151 с. - Дождитесь надписи «Готово» в строке состояния.
Ядро дописывает файл
.s, а не перезаписывает его. Перед повторным запуском удалите старый файл.s, иначе старые точки смешаются с новыми.
Просмотр результатов
Матрица рассеяния. Нажмите
Показать S-матрицу: откроется TMCGROUT с кривой первого элемента. Он показывает КСВН; чтобы увидеть модули, нажмите Ctrl+H и выберите «Шкала Y» → «|S|», а другие элементы добавьте через Ctrl+D.

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

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




Числа расчёта: значения на краях диапазона, в середине и в точке наилучшего согласования.
| Частота, ГГц | |S11|, дБ | |S21|, дБ |
|---|---|---|
| 3 | -0 | -30,7 |
| 4,5 | -0,1 | -16,27 |
| 6 | -5,06 | -1,62 |
Анимация поля
Разбор результатов
Запирание получилось сильным: на 3 ГГц дБ при дБ, на 4,5 ГГц −16,3 дБ, а к 6 ГГц устройство открывается ( дБ, дБ). Рост прохождения монотонен, а баланс 1,0004 подтверждает отсутствие потерь. На анимации на средней частоте волна почти останавливается перед плазмой.
Файл задания
Этот текст TPL Designer показывает в разделе «Проверка». Файл записан в кодировке CP1251.
LR2_plasma.tpl
#TMC_RT_H
! Задание сгенерировано TPL Designer.
! ЛР2: волновод с квадратиком замагниченной плазмы (X-мода, ядро tmc_rtx.exe)
! Небольшой квадрат плазмы (сторона s) в центре волновода + магнитное поле B0
! в той же области = замагниченная (гиротропная) плазма. Смотрим прохождение
! волны. Порт 1 активный, порт 2 пассивный. Один шаг на частоте F.
! ВАЖНО (по опыту отладки):
! * Начинайте с режима fp < F (плазма "разрежённая", волна ПРОХОДИТ, счёт
! устойчив). Здесь Ne=1.1e+17 даёт fp~3 ГГц при F=5 ГГц.
! * Режим fp = F (напр. Ne=3.1e+17 при F=5) — плазменный резонанс (эффективная
! eps -> 0), счёт на грани устойчивости; включайте его только после того, как
! убедились, что разрежённый случай считается.
! * Квадрат (RECT_STAT_N) надёжнее круга. Круг: CIRCLE_STAT_N Ne; 0; Rp; 0; 6.28;
! (НЕ ставьте ровно 2*PI — из-за округления сектор может "схлопнуться").
! Ядро: tmc_rtx (X-мода)
! Перед прогоном удалить plasma.s -- дописывается, а не перезаписывается.
#include LR2_plasma_step.h
! ===== Шаг записан явно: поля выгружаются только здесь =====
#STEP
#PARM
ANGLE_UNIT radian;
FREQ_UNIT GHz;
LONG_UNIT mm;
TIME_UNIT ns;
DELTA 1.0;
TIME 0.; 115.0;
X_MIN 0.0;
X_MAX 240.0;
Y_MIN 0.0;
Y_MAX 80.0;
FREQ 3.0;
#END_PARM
#TOPOLOGY
BLOCK 1; ! фигура 1
RECT_STAT METAL; 0.0; 240.0; 9.0; 10.0;
END_B
BLOCK 2; ! фигура 2
RECT_STAT METAL; 0.0; 240.0; 70.0; 71.0;
END_B
BLOCK 20; ! фигура 20 — концентрация N = 310000000000000000 м^-3
RECT_STAT_N 310000000000000000.0; 100.0; 140.0; 20.0; 60.0;
END_B
BLOCK 7; ! вход 1 — АКТИВНЫЙ
INPUT_X ; 10.0; 70.0; 0; 115; 1; 0;
END_B
BLOCK 12; ! вход 2 — пассивный
INPUT_X ; 10.0; 70.0; 230; 345; 0; 0;
END_B
#END_TOPOLOGY
#LINK_LIST
T 1; 0.0; 0.0;
T 2; 0.0; 0.0;
T 20; 0.0; 0.0;
T 7; 0.0; 0.0;
T 12; 240.0; 0.0;
#END_LINK
#OUTPUT
FILE plasma_f3;
TOPOLOGY;
FIELDS;
SMATRIX plasma; 3.0; 100.0; 110.0;
#END_OUTPUT
#END_STEP
lr2_plasmastep 3.1; plasma_f3p1; plasma;
lr2_plasmastep 3.2; plasma_f3p2; plasma;
lr2_plasmastep 3.3; plasma_f3p3; plasma;
lr2_plasmastep 3.4; plasma_f3p4; plasma;
lr2_plasmastep 3.5; plasma_f3p5; plasma;
lr2_plasmastep 3.6; plasma_f3p6; plasma;
lr2_plasmastep 3.7; plasma_f3p7; plasma;
lr2_plasmastep 3.8; plasma_f3p8; plasma;
lr2_plasmastep 3.9; plasma_f3p9; plasma;
lr2_plasmastep 4.0; plasma_f4; plasma;
lr2_plasmastep 4.1; plasma_f4p1; plasma;
lr2_plasmastep 4.2; plasma_f4p2; plasma;
lr2_plasmastep 4.3; plasma_f4p3; plasma;
lr2_plasmastep 4.4; plasma_f4p4; plasma;
lr2_plasmastep 4.5; plasma_f4p5; plasma;
lr2_plasmastep 4.6; plasma_f4p6; plasma;
lr2_plasmastep 4.7; plasma_f4p7; plasma;
lr2_plasmastep 4.8; plasma_f4p8; plasma;
lr2_plasmastep 4.9; plasma_f4p9; plasma;
lr2_plasmastep 5.0; plasma_f5; plasma;
lr2_plasmastep 5.1; plasma_f5p1; plasma;
lr2_plasmastep 5.2; plasma_f5p2; plasma;
lr2_plasmastep 5.3; plasma_f5p3; plasma;
lr2_plasmastep 5.4; plasma_f5p4; plasma;
lr2_plasmastep 5.5; plasma_f5p5; plasma;
lr2_plasmastep 5.6; plasma_f5p6; plasma;
lr2_plasmastep 5.7; plasma_f5p7; plasma;
lr2_plasmastep 5.8; plasma_f5p8; plasma;
lr2_plasmastep 5.9; plasma_f5p9; plasma;
lr2_plasmastep 6.0; plasma_f6; plasma;
#EOFLR2_plasma_step.h
! ==========================================================================
! LR2_plasma_step.h — макроопределения шагов расчёта.
! Подключается строкой #include LR2_plasma_step.h и должен лежать РЯДОМ с .tpl
!
! ДВА бэкслеша в конце строки = "текст макроса продолжается ниже".
! У ПОСЛЕДНЕЙ строки макроса переноса НЕТ — это признак конца.
! ==========================================================================
#define lr2_plasmastep Freq__; Tfile__; Sfile__; @\\
#STEP\\
#PARM\\
ANGLE_UNIT radian;\\
FREQ_UNIT GHz;\\
LONG_UNIT mm;\\
TIME_UNIT ns;\\
DELTA 1.0;\\
TIME 0.; 115.0;\\
X_MIN 0.0;\\
X_MAX 240.0;\\
Y_MIN 0.0;\\
Y_MAX 80.0;\\
FREQ Freq__;\\
#END_PARM\\
#TOPOLOGY\\
BLOCK 1;\\ ! фигура 1
RECT_STAT METAL; 0.0; 240.0; 9.0; 10.0;\\
END_B\\
BLOCK 2;\\ ! фигура 2
RECT_STAT METAL; 0.0; 240.0; 70.0; 71.0;\\
END_B\\
BLOCK 20;\\ ! фигура 20 — концентрация N = 310000000000000000 м^-3
RECT_STAT_N 310000000000000000.0; 100.0; 140.0; 20.0; 60.0;\\
END_B\\
BLOCK 7;\\ ! вход 1 — АКТИВНЫЙ
INPUT_X ; 10.0; 70.0; 0; 115; 1; 0;\\
END_B\\
BLOCK 12;\\ ! вход 2 — пассивный
INPUT_X ; 10.0; 70.0; 230; 345; 0; 0;\\
END_B\\
#END_TOPOLOGY\\
#LINK_LIST\\
T 1; 0.0; 0.0;\\
T 2; 0.0; 0.0;\\
T 20; 0.0; 0.0;\\
T 7; 0.0; 0.0;\\
T 12; 240.0; 0.0;\\
#END_LINK\\
#OUTPUT\\
FILE Tfile__;\\
TOPOLOGY;\\
SMATRIX Sfile__; Freq__; 100.0; 110.0;\\
#END_OUTPUT\\
#END_STEPLab 2: magnetized plasma
Square of magnetized plasma in a waveguide
| Parameter | Value |
|---|---|
| Library section | Training tasks |
| Kernel | PlanarRT X (planarrt_x.exe) |
| Source | TMC Suite, samples/LR2_plasma.tpl |
| Mesh | 240 × 80 nodes, step 1 mm |
| Task time | 115 ns of model time, steps: 31 |
| Run duration | about 151 s on a six-core PC, without field output |
Problem statement
Laboratory work 2. A small square of plasma in the center of the waveguide together with a magnetic field in the same region, i.e. a gyrotropic medium. Computed by the X-mode kernel.
Theoretical background
A cold collisionless plasma is defined by the electron density , which sets the plasma frequency, and by the magnetising field , which sets the electron cyclotron frequency:
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.
Laboratory work 2. A small plasma square at the centre of the waveguide sits in a magnetic field in the same region: this is a gyrotropic medium. The problem is computed by the X-mode kernel in 31 frequency steps from 3 to 6 GHz. At low frequencies the plasma is opaque and acts almost as a blocking insert.
Sample datasheet. The values that TPL Designer computes by formulas for the default parameters.
| Quantity | Value |
|---|---|
| Calculation steps | 31 |
| Shapes / ports | 3 / 2 |
Creating the task file
The sample is built into TPL Designer, so there is nothing to download. Follow the steps in order.
- Start TPL Designer. On the start screen, in the Take a sample card, click Open library.
- Choose the Training tasks section on the left and click the Lab 2: magnetized plasma tile in the gallery. The sample card with its datasheet and parameters opens on the right.

- This sample has no parameters: it is an author's task and opens as it is.
- Click Open in editor. The task opens in the five-section wizard; the section list is on the left.
- 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.

- 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.
- 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.

- Click Create task file and choose an empty folder. It will contain these files:
LR2_plasma.tpl,LR2_plasma_step.h.
Running the calculation
- Start PlanarRT X (
planarrt_x.exe). - Click
Open or press Ctrl+Oand chooseLR2_plasma.tplin the folder you created. If the status bar showsStep:1;Error:no, the task was read correctly. - Click
Run or press F5. The kernel computes all task steps (31); on a six-core PC this takes about 151 s. - Wait for "Done" in the status bar.
The kernel appends to the
.sfile instead of overwriting it. Delete the old.sfile before a repeated run, or old points will mix with new ones.
Viewing the results
Scattering matrix. Click
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.

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

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




Computed numbers: values at the range edges, mid-range and at the best match.
| Frequency, GHz | |S11|, dB | |S21|, dB |
|---|---|---|
| 3 | -0 | -30.7 |
| 4.5 | -0.1 | -16.27 |
| 6 | -5.06 | -1.62 |
Field animation
Discussion
The blocking is strong: at 3 GHz dB with dB, at 4.5 GHz −16.3 dB, and by 6 GHz the device opens up ( dB, dB). The rise in transmission is monotonic, and the balance of 1.0004 confirms the absence of loss. In the animation at the middle frequency the wave almost stops in front of the plasma.
Task file
TPL Designer shows this text in the Check section. The file is written in the CP1251 encoding.
LR2_plasma.tpl
#TMC_RT_H
! Task generated by TPL Designer.
! ЛР2: волновод с квадратиком замагниченной плазмы (X-мода, ядро tmc_rtx.exe)
! Небольшой квадрат плазмы (сторона s) в центре волновода + магнитное поле B0
! в той же области = замагниченная (гиротропная) плазма. Смотрим прохождение
! волны. Порт 1 активный, порт 2 пассивный. Один шаг на частоте F.
! ВАЖНО (по опыту отладки):
! * Начинайте с режима fp < F (плазма "разрежённая", волна ПРОХОДИТ, счёт
! устойчив). Здесь Ne=1.1e+17 даёт fp~3 ГГц при F=5 ГГц.
! * Режим fp = F (напр. Ne=3.1e+17 при F=5) — плазменный резонанс (эффективная
! eps -> 0), счёт на грани устойчивости; включайте его только после того, как
! убедились, что разрежённый случай считается.
! * Квадрат (RECT_STAT_N) надёжнее круга. Круг: CIRCLE_STAT_N Ne; 0; Rp; 0; 6.28;
! (НЕ ставьте ровно 2*PI — из-за округления сектор может "схлопнуться").
! Kernel: tmc_rtx (X-mode)
! Delete plasma.s before the run -- it is appended to, not overwritten.
#include LR2_plasma_step.h
! ===== Step written explicitly: fields are exported only here =====
#STEP
#PARM
ANGLE_UNIT radian;
FREQ_UNIT GHz;
LONG_UNIT mm;
TIME_UNIT ns;
DELTA 1.0;
TIME 0.; 115.0;
X_MIN 0.0;
X_MAX 240.0;
Y_MIN 0.0;
Y_MAX 80.0;
FREQ 3.0;
#END_PARM
#TOPOLOGY
BLOCK 1; ! shape 1
RECT_STAT METAL; 0.0; 240.0; 9.0; 10.0;
END_B
BLOCK 2; ! shape 2
RECT_STAT METAL; 0.0; 240.0; 70.0; 71.0;
END_B
BLOCK 20; ! shape 20 -- density N = 310000000000000000 m^-3
RECT_STAT_N 310000000000000000.0; 100.0; 140.0; 20.0; 60.0;
END_B
BLOCK 7; ! port 1 -- ACTIVE
INPUT_X ; 10.0; 70.0; 0; 115; 1; 0;
END_B
BLOCK 12; ! port 2 -- passive
INPUT_X ; 10.0; 70.0; 230; 345; 0; 0;
END_B
#END_TOPOLOGY
#LINK_LIST
T 1; 0.0; 0.0;
T 2; 0.0; 0.0;
T 20; 0.0; 0.0;
T 7; 0.0; 0.0;
T 12; 240.0; 0.0;
#END_LINK
#OUTPUT
FILE plasma_f3;
TOPOLOGY;
FIELDS;
SMATRIX plasma; 3.0; 100.0; 110.0;
#END_OUTPUT
#END_STEP
lr2_plasmastep 3.1; plasma_f3p1; plasma;
lr2_plasmastep 3.2; plasma_f3p2; plasma;
lr2_plasmastep 3.3; plasma_f3p3; plasma;
lr2_plasmastep 3.4; plasma_f3p4; plasma;
lr2_plasmastep 3.5; plasma_f3p5; plasma;
lr2_plasmastep 3.6; plasma_f3p6; plasma;
lr2_plasmastep 3.7; plasma_f3p7; plasma;
lr2_plasmastep 3.8; plasma_f3p8; plasma;
lr2_plasmastep 3.9; plasma_f3p9; plasma;
lr2_plasmastep 4.0; plasma_f4; plasma;
lr2_plasmastep 4.1; plasma_f4p1; plasma;
lr2_plasmastep 4.2; plasma_f4p2; plasma;
lr2_plasmastep 4.3; plasma_f4p3; plasma;
lr2_plasmastep 4.4; plasma_f4p4; plasma;
lr2_plasmastep 4.5; plasma_f4p5; plasma;
lr2_plasmastep 4.6; plasma_f4p6; plasma;
lr2_plasmastep 4.7; plasma_f4p7; plasma;
lr2_plasmastep 4.8; plasma_f4p8; plasma;
lr2_plasmastep 4.9; plasma_f4p9; plasma;
lr2_plasmastep 5.0; plasma_f5; plasma;
lr2_plasmastep 5.1; plasma_f5p1; plasma;
lr2_plasmastep 5.2; plasma_f5p2; plasma;
lr2_plasmastep 5.3; plasma_f5p3; plasma;
lr2_plasmastep 5.4; plasma_f5p4; plasma;
lr2_plasmastep 5.5; plasma_f5p5; plasma;
lr2_plasmastep 5.6; plasma_f5p6; plasma;
lr2_plasmastep 5.7; plasma_f5p7; plasma;
lr2_plasmastep 5.8; plasma_f5p8; plasma;
lr2_plasmastep 5.9; plasma_f5p9; plasma;
lr2_plasmastep 6.0; plasma_f6; plasma;
#EOFLR2_plasma_step.h
! ==========================================================================
! LR2_plasma_step.h -- macro definitions of the computation steps.
! Included with the line #include LR2_plasma_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 lr2_plasmastep Freq__; Tfile__; Sfile__; @\\
#STEP\\
#PARM\\
ANGLE_UNIT radian;\\
FREQ_UNIT GHz;\\
LONG_UNIT mm;\\
TIME_UNIT ns;\\
DELTA 1.0;\\
TIME 0.; 115.0;\\
X_MIN 0.0;\\
X_MAX 240.0;\\
Y_MIN 0.0;\\
Y_MAX 80.0;\\
FREQ Freq__;\\
#END_PARM\\
#TOPOLOGY\\
BLOCK 1;\\ ! shape 1
RECT_STAT METAL; 0.0; 240.0; 9.0; 10.0;\\
END_B\\
BLOCK 2;\\ ! shape 2
RECT_STAT METAL; 0.0; 240.0; 70.0; 71.0;\\
END_B\\
BLOCK 20;\\ ! shape 20 -- density N = 310000000000000000 m^-3
RECT_STAT_N 310000000000000000.0; 100.0; 140.0; 20.0; 60.0;\\
END_B\\
BLOCK 7;\\ ! port 1 -- ACTIVE
INPUT_X ; 10.0; 70.0; 0; 115; 1; 0;\\
END_B\\
BLOCK 12;\\ ! port 2 -- passive
INPUT_X ; 10.0; 70.0; 230; 345; 0; 0;\\
END_B\\
#END_TOPOLOGY\\
#LINK_LIST\\
T 1; 0.0; 0.0;\\
T 2; 0.0; 0.0;\\
T 20; 0.0; 0.0;\\
T 7; 0.0; 0.0;\\
T 12; 240.0; 0.0;\\
#END_LINK\\
#OUTPUT\\
FILE Tfile__;\\
TOPOLOGY;\\
SMATRIX Sfile__; Freq__; 100.0; 110.0;\\
#END_OUTPUT\\
#END_STEP