Отрезок прямоугольного волновода
Стандартное сечение, свип по рабочей полосе
| Параметр | Значение |
|---|---|
| Раздел библиотеки | Волноводы и узлы |
| Ядро | PlanarRT H (planarrt_h.exe) |
| Источник | EIA RS-261, IEC 60153-2, ГОСТ 20900-75 |
| Сетка | 198 × 46 узлов, шаг 0,5715 мм |
| Время счёта задания | 15 нс модельного времени, шагов: 21 |
| Длительность прогона | около 13 с на шестиядерном ПК, без вывода поля |
Постановка задачи
Отрезок регулярного волновода с волной H10 на входе и выходе. Это «нулевой» образец: на нём проверяют постановку — |S11| должен быть около нуля, а |S21| — единица во всей полосе. Фаза S21 показывает длину волны в волноводе: чем ближе к отсечке, тем длиннее λв.
Заполнение диэлектриком опускает отсечку в sqrt(eps) раз, и программа сама сдвигает полосу свипа. Проницаемость в сечении входа ставится той же — иначе вход окажется рассогласован.
- Стенки — металл толщиной в шаг сетки, как в авторских заданиях. Шаг сетки a/40 = 0.5715 мм.
Теоретические сведения
В прямоугольном волноводе шириной основная волна не зависит от координаты вдоль узкой стенки, поэтому задача двумерна и решается в плоскости H ядром PlanarRT H. Поле существует выше критической частоты, а длина волны в волноводе и волновое сопротивление зависят от частоты:
Результат расчёта — матрица рассеяния , где и — амплитуды падающей и отражённой волн на входах. Для устройства без потерь столбец матрицы нормирован: . Это первая проверка любого волноводного расчёта.
Отрезок регулярного волновода не содержит неоднородностей, и теория даёт , при фазе . Поэтому образец проверяет не устройство, а саму постановку: порты, окно снятия и шаг сетки .
Паспорт образца. Значения, которые TPL Designer вычисляет по формулам для параметров по умолчанию.
| Величина | Значение |
|---|---|
| Стандарт | WR-90 / R100 (EIA / IEC) |
| Сечение a x b | 22.86 x 10.16 мм |
| Рабочая полоса | 8.2 - 12.4 ГГц |
| Отсечка H10 / H20 | 6.557 / 13.11 ГГц |
| λв на 8.2 / 10.3 / 12.4 ГГц | 60.89 мм / 37.74 мм / 28.49 мм |
| Длина отрезка | 113.2 мм (3 λв на 10.3 ГГц) |
| Ожидаемо | |S11| = 0, |S21| = 1 во всей полосе |
Создание файла задания
Образец уже встроен в TPL Designer: скачивать ничего не нужно. Выполните шаги по порядку.
- Запустите TPL Designer. На стартовом экране в карточке «Взять образец» нажмите «Открыть библиотеку».
- Слева выберите раздел «Волноводы и узлы» и щёлкните в галерее плитку «Отрезок прямоугольного волновода». Справа откроется карточка образца с паспортом и параметрами.

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

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

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

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

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




Числа расчёта: значения на краях диапазона, в середине и в точке наилучшего согласования.
| Частота, ГГц | |S11|, дБ | |S21|, дБ |
|---|---|---|
| 8,2 | -91,09 | 0 |
| 10,3 | -100,26 | 0 |
| 11,77 | -111,54 | 0 |
| 12,4 | -107,06 | 0 |
Анимация поля
Разбор результатов
Ядро подтверждает теорию с большим запасом: равен 0,0 дБ во всей полосе, а лежит между −91 и −112 дБ, то есть на уровне численного шума. Сумма равна 1,0000–1,0001. Фаза почти линейна, но наклон её меняется с частотой: ближе к отсечке волна длиннее, и на 8,2 ГГц в отрезке 113,2 мм укладывается меньше длин волн, чем на 12,4 ГГц. На анимации видна стоячая картина в поперечном сечении и бегущая вдоль оси волна без отражения.
Файл задания
Этот текст TPL Designer показывает в разделе «Проверка». Файл записан в кодировке CP1251.
wg.tpl
#TMC_RT_H
! Задание сгенерировано TPL Designer.
! Отрезок волновода. Волновод WR-90 / R100, a = 22.86 мм, H10.
! Ядро: tmc_rth (H-мода)
! Перед прогоном удалить wg.s -- дописывается, а не перезаписывается.
#include wg_step.h
wgstep 8.2; wg_f8p2; wg;
wgstep 8.41; wg_f8p41; wg;
wgstep 8.62; wg_f8p62; wg;
wgstep 8.83; wg_f8p83; wg;
wgstep 9.04; wg_f9p04; wg;
wgstep 9.25; wg_f9p25; wg;
wgstep 9.46; wg_f9p46; wg;
wgstep 9.67; wg_f9p67; wg;
wgstep 9.88; wg_f9p88; wg;
wgstep 10.09; wg_f10p09; wg;
wgstep 10.3; wg_f10p3; wg;
wgstep 10.51; wg_f10p51; wg;
wgstep 10.72; wg_f10p72; wg;
wgstep 10.93; wg_f10p93; wg;
wgstep 11.14; wg_f11p14; wg;
wgstep 11.35; wg_f11p35; wg;
wgstep 11.56; wg_f11p56; wg;
wgstep 11.77; wg_f11p77; wg;
wgstep 11.98; wg_f11p98; wg;
wgstep 12.19; wg_f12p19; wg;
wgstep 12.4; wg_f12p4; wg;
#EOFwg_step.h
! ==========================================================================
! wg_step.h — макроопределения шагов расчёта.
! Подключается строкой #include wg_step.h и должен лежать РЯДОМ с .tpl
!
! ДВА бэкслеша в конце строки = "текст макроса продолжается ниже".
! У ПОСЛЕДНЕЙ строки макроса переноса НЕТ — это признак конца.
! ==========================================================================
#define wgstep Freq__; Tfile__; Sfile__; @\\
#STEP\\
#PARM\\
ANGLE_UNIT radian;\\
FREQ_UNIT GHz;\\
LONG_UNIT mm;\\
TIME_UNIT ns;\\
DELTA 0.5715;\\
TIME 0.; 15.0;\\
X_MIN 0.0;\\
X_MAX 113.157;\\
Y_MIN 0.0;\\
Y_MAX 26.289;\\
FREQ Freq__;\\
#END_PARM\\
#TOPOLOGY\\
BLOCK 1;\\ ! волновод: нижняя стенка
RECT_STAT METAL; 0.0; 113.157; 1.143; 1.7145;\\
END_B\\
BLOCK 2;\\ ! волновод: верхняя стенка
RECT_STAT METAL; 0.0; 113.157; 24.5745; 25.146;\\
END_B\\
BLOCK 3;\\ ! вход 1 — АКТИВНЫЙ
INPUT_X ; 1.7145; 24.5745; 0; 15; 1; 0;\\
END_B\\
BLOCK 4;\\ ! вход 2 — пассивный
INPUT_X ; 1.7145; 24.5745; 30; 45; 0; 0;\\
END_B\\
#END_TOPOLOGY\\
#LINK_LIST\\
T 1; 0.0; 0.0;\\
T 2; 0.0; 0.0;\\
T 3; 0.0; 0.0;\\
T 4; 113.157; 0.0;\\
#END_LINK\\
#OUTPUT\\
FILE Tfile__;\\
SMATRIX Sfile__; Freq__; 11.25; 15.0;\\
#END_OUTPUT\\
#END_STEPRectangular waveguide section
Standard cross-section, sweep over the operating band
| Parameter | Value |
|---|---|
| Library section | Waveguides and components |
| Kernel | PlanarRT H (planarrt_h.exe) |
| Source | EIA RS-261, IEC 60153-2, GOST 20900-75 |
| Mesh | 198 × 46 nodes, step 0.5715 mm |
| Task time | 15 ns of model time, steps: 21 |
| Run duration | about 13 s on a six-core PC, without field output |
Problem statement
A section of a regular waveguide with the H10 wave at the input and output. This is the "zero" sample used to check the setup: |S11| must be close to zero and |S21| close to one over the whole band. The phase of S21 shows the guide wavelength: the closer to cutoff, the longer lambda_g.
A dielectric filling lowers the cutoff by a factor of sqrt(eps), and the program shifts the sweep band itself. The permittivity in the port cross-section is set to the same value; otherwise the port would be mismatched.
- The walls are metal one grid step thick, as in the author's tasks. Grid step a/40 = 0.5715 mm.
Theoretical background
In a rectangular waveguide of width the dominant wave does not vary along the narrow wall, so the problem is two-dimensional and is solved in the H-plane by the PlanarRT H kernel. The field propagates above the cutoff frequency, and the guide wavelength and the wave impedance depend on frequency:
The result of the calculation is the scattering matrix , where and are the amplitudes of the incident and outgoing waves at the ports. For a lossless device each column is normalised: . This is the first check of any waveguide calculation.
A straight waveguide section has no discontinuities, and theory gives , with phase . The sample therefore tests not a device but the setup itself: the ports, the sampling window and the mesh step .
Sample datasheet. The values that TPL Designer computes by formulas for the default parameters.
| Quantity | Value |
|---|---|
| Standard | WR-90 / R100 (EIA / IEC) |
| Cross-section a x b | 22.86 x 10.16 mm |
| Operating band | 8.2 - 12.4 GHz |
| Cutoff H10 / H20 | 6.557 / 13.11 GHz |
| lambda_g at 8.2 / 10.3 / 12.4 GHz | 60.89 mm / 37.74 mm / 28.49 mm |
| Section length | 113.2 mm (3 lambda_g at 10.3 GHz) |
| Expected | |S11| = 0, |S21| = 1 over the whole band |
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 Waveguides and components section on the left and click the Rectangular waveguide section tile in the gallery. The sample card with its datasheet and parameters opens on the right.

- Keep the default parameters: all the numbers on this page were obtained for them. Changed values can be reset with Restore defaults.
- 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:
wg.tpl,wg_step.h.
Running the calculation
- Start PlanarRT H (
planarrt_h.exe). - Click
Open or press Ctrl+Oand choosewg.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 (21); on a six-core PC this takes about 13 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 |
|---|---|---|
| 8.2 | -91.09 | 0 |
| 10.3 | -100.26 | 0 |
| 11.77 | -111.54 | 0 |
| 12.4 | -107.06 | 0 |
Field animation
Discussion
The kernel confirms the theory with a wide margin: is 0.0 dB across the whole band and lies between −91 and −112 dB, which is the numerical noise level. The sum equals 1.0000–1.0001. The phase of is almost linear, but its slope changes with frequency: closer to cutoff the wave is longer, so the 113.2 mm section holds fewer wavelengths at 8.2 GHz than at 12.4 GHz. The animation shows the transverse standing pattern and a wave travelling along the axis without reflection.
Task file
TPL Designer shows this text in the Check section. The file is written in the CP1251 encoding.
wg.tpl
#TMC_RT_H
! Task generated by TPL Designer.
! Waveguide section. Waveguide WR-90 / R100, a = 22.86 mm, H10.
! Kernel: tmc_rth (H-mode)
! Delete wg.s before the run -- it is appended to, not overwritten.
#include wg_step.h
wgstep 8.2; wg_f8p2; wg;
wgstep 8.41; wg_f8p41; wg;
wgstep 8.62; wg_f8p62; wg;
wgstep 8.83; wg_f8p83; wg;
wgstep 9.04; wg_f9p04; wg;
wgstep 9.25; wg_f9p25; wg;
wgstep 9.46; wg_f9p46; wg;
wgstep 9.67; wg_f9p67; wg;
wgstep 9.88; wg_f9p88; wg;
wgstep 10.09; wg_f10p09; wg;
wgstep 10.3; wg_f10p3; wg;
wgstep 10.51; wg_f10p51; wg;
wgstep 10.72; wg_f10p72; wg;
wgstep 10.93; wg_f10p93; wg;
wgstep 11.14; wg_f11p14; wg;
wgstep 11.35; wg_f11p35; wg;
wgstep 11.56; wg_f11p56; wg;
wgstep 11.77; wg_f11p77; wg;
wgstep 11.98; wg_f11p98; wg;
wgstep 12.19; wg_f12p19; wg;
wgstep 12.4; wg_f12p4; wg;
#EOFwg_step.h
! ==========================================================================
! wg_step.h -- macro definitions of the computation steps.
! Included with the line #include wg_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 wgstep Freq__; Tfile__; Sfile__; @\\
#STEP\\
#PARM\\
ANGLE_UNIT radian;\\
FREQ_UNIT GHz;\\
LONG_UNIT mm;\\
TIME_UNIT ns;\\
DELTA 0.5715;\\
TIME 0.; 15.0;\\
X_MIN 0.0;\\
X_MAX 113.157;\\
Y_MIN 0.0;\\
Y_MAX 26.289;\\
FREQ Freq__;\\
#END_PARM\\
#TOPOLOGY\\
BLOCK 1;\\ ! waveguide: bottom wall
RECT_STAT METAL; 0.0; 113.157; 1.143; 1.7145;\\
END_B\\
BLOCK 2;\\ ! waveguide: top wall
RECT_STAT METAL; 0.0; 113.157; 24.5745; 25.146;\\
END_B\\
BLOCK 3;\\ ! port 1 -- ACTIVE
INPUT_X ; 1.7145; 24.5745; 0; 15; 1; 0;\\
END_B\\
BLOCK 4;\\ ! port 2 -- passive
INPUT_X ; 1.7145; 24.5745; 30; 45; 0; 0;\\
END_B\\
#END_TOPOLOGY\\
#LINK_LIST\\
T 1; 0.0; 0.0;\\
T 2; 0.0; 0.0;\\
T 3; 0.0; 0.0;\\
T 4; 113.157; 0.0;\\
#END_LINK\\
#OUTPUT\\
FILE Tfile__;\\
SMATRIX Sfile__; Freq__; 11.25; 15.0;\\
#END_OUTPUT\\
#END_STEP