Руководство пользователя — TPL Designer (TplDesigner.exe)
Программа строит файл задания
.tplдля счётных ядер пакета TMC Suite: PlanarRT H (H-мода) и PlanarRT X (X-мода с плазмой). Вы рисуете геометрию мышью и заполняете поля; синтаксис задания пишет программа.Знать язык
.tplне нужно. Все его ловушки закрыты кодом генератора: он физически не даёт создать файл, который ядро отвергнет или молча посчитает не то.
Версия руководства: 2 октября 2026 (руководство TPL Designer), адаптировано для пакета TMC Suite 5.0 23 октября 2026. Все снимки в нём сделаны автоматически из настоящих окон программы, а пошаговый пример пройден от начала до конца автопроходом и посчитан ядром.
Имена ядер. В окнах TPL Designer ядра названы по исполняемым файлам прежней версии пакета:
tmc_rth.exe(H-мода) иtmc_rtx.exe(X-мода). В пакете TMC Suite 5.0 с новым интерфейсом те же ядра называютсяplanarrt_h.exeиplanarrt_x.exe; задание.tplдля них одно и то же, результаты совпадают побайтно.
Содержание
- Место TPL Designer в пакете
- Коротко: как это работает
- Стартовый экран
- Раздел 1 — «Расчёт»
- Раздел 2 — «Геометрия»
- Свойства фигуры
- Свойства порта
- Раздел 3 — «Что считать»
- Раздел 4 — «Вывод данных»
- Раздел 5 — «Проверка»
- Библиотека образцов
- Вспомогательные файлы:
.sigи.eps - Калькулятор среды
- Настройки
- Пошаговый пример: волновод с диафрагмой
- Запуск ядра и разбор результата
- Ловушки, которые программа закрывает за вас
- Горячие клавиши и мышь
- Приложение. Как пересобрать это руководство
1. Место TPL Designer в пакете
Расчёт в пакете TMC Suite идёт по цепочке из трёх звеньев:
TPL Designer счётное ядро программы просмотра
(TplDesigner.exe) PlanarRT H / PlanarRT X (вьюверы)
───────────────── → ───────────────────────── → ───────────────────────────────
задание <имя>.tpl расчёт по заданию; TMCROS — сигналы .t
(+ _step.h, .sig, пишет файлы результата TMCGROUT — S-матрица .s
.eps рядом) TMC_DN — ДН .DAT (.AMP/.FAZ)
FieldView — поле .ex и топология .tt
- TPL Designer создаёт задание
.tpl— текстовый файл на языке заданий пакета (описание языка — Файл задания .tpl). Писать его вручную больше не обязательно. - Счётное ядро открывает задание и считает: PlanarRT H (
planarrt_h.exe) — H-поляризация, PlanarRT X (planarrt_x.exe) — X-мода с плазмой и магнитным полем. Работа с ядром — PlanarRT H, PlanarRT X; пакетный запуск из командной строки — Работа без окон. - Вьюверы показывают результаты: временные сигналы — TMCROS, S-матрицу — TMCGROUT, диаграмму направленности — TMC_DN, поле и топологию — FieldView. Их запускают кнопками окна ядра.
Многочастотный расчёт за один проход (падающая волна из файла .sig, гребёнка тонов) —
отдельное руководство Многочастотный расчёт.
1.1. Запуск TPL Designer из ядра
Первая кнопка панели инструментов счётного ядра (PlanarRT H и PlanarRT X) — «Новое задание (TPL Designer)»:

- Нажмите её. Ядро ищет
TplDesigner.exeрядом с собой (в той же папке, в подпапкеTplDesigner, в соседней папке..\TplDesigner) и в папке установки пакета. - Если программа не найдена, ядро один раз спрашивает, где она лежит (системное окно
«Где находится TPL Designer?»). Выберите
TplDesigner.exe— путь запоминается (файл%APPDATA%\TMC_Suite_Qt\Paths.ini), и больше вопрос не задаётся. - TPL Designer открывается отдельным окном со стартовым экраном (раздел 3). Пока он открыт, на кнопке ядра горит зелёный кружок, когда закрыт — красный.
- Создайте задание и запишите его на диск (раздел 10, «Создать файл задания»).
- Вернитесь в окно ядра и откройте записанный
.tpl(Файл → Открыть), затем запустите расчёт.
TPL Designer можно запускать и сам по себе — двойным щелчком по TplDesigner.exe.
1.2. Видеоурок и PDF-версия
Весь путь создания задания показан в видеоуроке (tutorial.mp4, tutorial.gif): видно
курсор, нажатия и то, как фигура растёт под мышью — по нему можно повторять шаг за шагом.
Видеоурок и это же руководство одним файлом PDF (TPL-Designer-rukovodstvo.pdf)
поставляются отдельно, вместе с TPL Designer — в папке его руководства docs\user-guide\
(у разработчика: TPL_Designer\docs\user-guide\).
2. Коротко: как это работает
Задание для ядра — это текстовый файл с препроцессором в духе C. В нём описаны: счётная область и шаг сетки, геометрия (стенки, заполнения, плазма), входы (порты) и то, какие файлы ядро должно записать.
Программа ведёт по пяти разделам слева направо:
| Раздел | Что в нём задаётся |
|---|---|
| 1. Расчёт | имя файла, ядро, счётная область, шаг сетки, время, частоты |
| 2. Геометрия | стенки, заполнения, плазма, порты — мышью на холсте |
| 3. Что считать | какие порты возбуждать, варианты геометрии, свип по углу |
| 4. Вывод данных | какие файлы запишет ядро и в каком временном окне |
| 5. Проверка | текст задания целиком и запись на диск |
Разделы доступны в любом порядке — как дерево проекта в HFSS. Кнопка «Далее» просто ведёт по ним по очереди.
Внизу каждого раздела — полоса замечаний. Ошибка запрещает запись файла (её выдало бы ядро), предупреждение — нет: решает пользователь.
3. Стартовый экран

| № | Карточка | Что делает |
|---|---|---|
| 1 | Создать задание | чистый холст и поля по умолчанию |
| 2 | Открыть готовое | читает существующий .tpl и раскладывает его по тем же разделам — включая макро-версию с _step.h |
| 3 | Взять образец | библиотека из 46 готовых устройств по стандартам |
| 4 | Вспомогательные файлы | сделать файл падающей волны .sig или файл распределения .eps отдельно от задания |
Открытие — это не «режим чтения»: прочитанное задание правится теми же вкладками, что и своё. Если программа чего-то в файле не поняла, она скажет об этом до того, как вы начнёте править и сохранять поверх оригинала.
Единица после величины. Если в секции #PARM строка единицы (LONG_UNIT, TIME_UNIT,
FREQ_UNIT) стоит ниже своей величины, программа спросит: «Здесь единица стоит после
величины — исправить?». «Да» — единица действует на всю секцию, как будто её строка стоит
первой (так обычно и задумано). «Нет» — читается как написано: величина выше — в прежней
единице. Ядра пакета с 29.10.2026 такое задание отвергают; сама программа при сохранении всегда
пишет единицы первыми. Файл на диске при открытии не меняется.
«Создать» поверх начатой работы спросит подтверждение. Молча стирать нарисованное программа не станет.
4. Раздел 1 — «Расчёт»

① Дерево разделов. Щелчок переводит на любой раздел — порядок не навязан.
② Задание.
| Поле | Что это |
|---|---|
| Имя файла (.tpl) | без расширения. Это же имя получат _step.h и файлы результата, если вы не зададите им своих |
| Ядро расчёта | H-мода — tmc_rth.exe или X-мода (с плазмой) — tmc_rtx.exe (в пакете 5.0 — planarrt_h.exe и planarrt_x.exe). В самом файле заголовок всегда #TMC_RT_H — тега #TMC_RT_X не существует, моду определяет то, каким ядром считают. Программа пишет правильный заголовок сама |
| Единицы на линейке холста | миллиметры, сантиметры или метры. Влияет только на то, в чём вы вводите числа; в файл всегда идут миллиметры |
③ Счётная область.
| Поле | Что это |
|---|---|
| X от / X до, Y от / Y до | границы коробки, в которой ядро считает поле. На холсте это пунктирный прямоугольник |
| Шаг сетки DELTA | шаг узлов. Время счёта растёт примерно кубически при его уменьшении. К этому же шагу привязывается мышь на холсте |
| Время счёта | сколько наносекунд модельного времени считать |
Правило выбора шага: не крупнее λ/20 и не крупнее самой мелкой детали, делённой на 4. Длину волны подскажет калькулятор среды.
④ Частота. Переключатель «Одна частота» / «Диапазон частот».
- Одна частота — получится обычный
.tplс одним#STEP. - Диапазон частот (От, До, Шаг) — получится макро-версия:
<имя>.tplплюс<имя>_step.h. Шаг расчёта описан в макросе один раз, а строки вызова задают частоты. Рассинхронизировать их нельзя по построению.
Под полями программа пишет, сколько точек выйдет и какими файлами.
Больше 99 частот в одно задание не задать. Столько пакет не берёт нигде: ни в файл
.s, ни в диаграмму направленности, ни в постобработку — это зашито в ядро. Если
диапазон даёт больше, подпись под полями краснеет, запись задания запрещается, и в
той же подписи две ссылки — два выхода одним щелчком:
- «Взять шаг …» — программа сама поставит самый мелкий шаг, при котором точек не больше 99;
- «разложить по нескольким заданиям» — включает конвейер (ниже).
Галочка «Разложить по нескольким заданиям» — конвейер. При включённой галочке сетка
делится на <имя>_001.tpl, <имя>_002.tpl, …, по сколько угодно частот (но не больше
99) в каждом, у каждого свой .s, и рядом ложатся <имя>_run.bat и <имя>_run.sh,
прогоняющие всё по очереди.
⑤ Вспомогательные файлы — мастерская .sig и .eps (раздел 12). Рядом —
«Калькулятор среды» (раздел 13) и «В начало». Эти кнопки нужны на любой
странице, поэтому стоят под деревом, а не внутри раздела.
Внизу — полоса замечаний: она видна на каждом разделе и обновляется сразу.
5. Раздел 2 — «Геометрия»

① Инструменты — чем рисовать (таблица ниже).
② Панель холста — сетка, привязка, масштаб, отмена, настройки.
③ Холст. Пунктир — счётная область; фигура целиком за ней — ошибка. Внизу холста видны координаты курсора и подсказка по текущему инструменту.
④ Объекты задания — список всех фигур и портов с материалом и параметрами.
Щелчок — выделить, несколько строк — набрать группу, Del — удалить.
⑤ Свойства выбранного — короткая панель: имя, материал, координаты, профиль eps, плазма. Полный набор — кнопка «Все свойства…» (раздел 6). Здесь же ряд команд над набором: «Соединить», «Дублировать», «Удалить».
① Инструменты рисования
| Инструмент | Клавиша | Как рисовать | Во что превращается в задании |
|---|---|---|---|
| Выбор | V |
щелчок — выделить, тянуть — двигать, квадратики — размер, стрелка — поворот | — |
| Линия | L |
клик за кликом, Enter — закончить, Esc — бросить |
POLYGON_STAT — ломаная |
| Прямоугольник | R |
нажать и протянуть | RECT_STAT |
| Контур | C |
замкнутый многоугольник | POLYGON_STAT, замкнутый |
| Круг | O |
из центра протянуть радиус | CIRCLE_STAT |
| Сектор | A |
центр, радиус, затем раскрыв | CIRCLE_STAT с углами |
| Дуга | G |
два клика — концы, третий — выгиб | ломаная с шагом DELTA |
| Порт | P |
протянуть вдоль границы области | INPUT_X / INPUT_Y |
Про дугу. Кривых в языке задания нет вовсе: POLYGON_STAT — это список
вершин. Круглая стенка в авторских заданиях так и записана — полсотни вершин.
Инструмент «Дуга» делает это за вас: три точки однозначно задают окружность, а
разбивается она с шагом сетки — мельче ядру нечего считать.
② Панель холста
| Кнопка | Что делает |
|---|---|
| Отменить / Вернуть | Ctrl+Z / Ctrl+Y, глубина 120 шагов |
| Сетка | показывать узлы расчётной сетки |
| Привязка | прилипание к сетке, вершинам, линиям и углам области |
| Шкала eps | цветная шкала для фигур с неоднородным заполнением |
| Настройки… | см. раздел 14 |
Вписать (Ctrl+0), Приблизить, Отдалить |
масштаб |
Дублировать (Ctrl+D), Удалить (Del) |
над выделенным |
Привязка и порты. Углы счётной области — такая же законная цель привязки, как вершина фигуры. На мелком масштабе конец протяжки прилипает к углу, и апертура порта молча становится во всю границу. Если это не то, что нужно, — приблизьте холст (
Ctrl+0, колесо) либо выключите «Привязку» на время протяжки. Точные числа всегда можно дописать в панели свойств.
③ Работа мышью на холсте
- Колесо — масштаб, средняя кнопка или Alt+ЛКМ — сдвиг холста.
- Ctrl+ЛКМ — набрать несколько фигур (повторный Ctrl-клик снимает).
- Shift при рисовании держит угол кратным 45°.
- Правая кнопка — меню: «Свойства…», «Соединить в одну фигуру», «Дублировать», «Удалить». При нескольких выделенных в скобках стоит их число.
Важно: выделенная фигура забирает мышь. Пока фигура выделена, клик по ней достаётся ей, кто бы ни лежал сверху. Без этого наложенные фигуры были бы неработоспособны: тело внутри прямоугольника распределения иначе не выбрать. Промахнулись мимо — работает обычный разбор сверху вниз.
«Соединить в одну фигуру» сшивает выделенные линии, дуги и контуры по стыкам,
разворачивая куски как надо. Сойдутся концы — получится замкнутый контур. Выбирать
несколько удобнее строками в списке объектов: на холсте выделение одиночное, если не
держать Ctrl.
⑤ Что можно задать в панели свойств
Для фигуры: Название, Материал, Проницаемость eps, Концентрация N, Подмагничивание B, Потери Y, X от/до, Y от/до (прямоугольник), Центр X/Y, Радиус внеш./внутр., Угол от/до (круг и сектор), Радиус скругления.
Прямоугольнику можно задать материал каждой стороне отдельно — щёлкните по
стороне на холсте. Снятая сторона рисуется пунктиром: видно, что там дыра, а не
«забыли нарисовать». В задании такой прямоугольник раскладывается на отдельные
блоки-ломаные: RECT_STAT METAL рисует весь периметр целиком, и «убрать левую
стенку» внутри одного блока нечем.
Дуга в процессе рисования
Два конца поставлены, третья точка под курсором задаёт выгиб:

5а. Импорт геометрии из 3D-модели
Устройство уже нарисовано в CAD — SolidWorks, Компас-3D, FreeCAD, Fusion, Blender? Перерисовывать его мышью не нужно. Ядро двумерное и считает одно сечение, поэтому из модели берётся ровно один срез плоскостью, а его контуры становятся фигурами.
Кнопка «Импорт из 3D…» — под инструментами рисования. Форматы:
| Формат | Откуда | Что в нём кроме формы |
|---|---|---|
STEP (.step, .stp) |
родной обмен любого CAD | имена тел, цвета, материалы, единицы |
STL (.stl, текст и двоичный) |
любой CAD, 3D-печать | у текстового — имя тела (solid …); единиц нет |
OBJ (.obj + .mtl) |
Blender, Fusion и др. | объекты, имена материалов, цвета |
Открывается окно «Срез 3D-модели»:

Через середину детали стоят три полупрозрачных прямоугольника с подписями XY (голубой), YZ (красный), XZ (зелёный). Щёлкните по нужному — или по кнопке с тем же названием внизу.

① Что на экране — переключатель «3D-модель» / «Что вставится в задание». Переключаться можно в любой момент: двинули плоскость, глядя на модель, — переключились и проверили результат.
② 3D-вид. ЛКМ — повернуть, колесо — масштаб, средняя кнопка или Alt+ЛКМ — сдвиг, щелчок по плоскости — выбрать её. Жёлтая линия — срез, ровно то, что будет вставлено.
③ Плоскость среза — XY, YZ или XZ.
④ Положение плоскости — ползунок и поле в миллиметрах вдоль её нормали (для XY это координата Z), от края модели до края. Срез пересчитывается сразу.
⑤ Тела и материалы. Материал узнаётся по имени тела или материала из файла: «Медь», «Copper», «PEC», «AISI 304» — металл; «FR-4», «Rogers 4003», «PTFE», «Фторопласт» — диэлектрик со своей eps; «Absorber», «Поглотитель» — поглотитель; «Air», «Вакуум» — не вставляется. Не узнанное помечено «?» — выберите сами: выбор запомнится, и тело с тем же именем в следующий раз узнается.
⑥ Единицы файла — для STL и OBJ: они единиц не хранят, а модель могла быть и в метрах. У STEP единицы есть, и программа пересчитывает их в миллиметры сама. Ниже — «Поставить срез в центр счётной области», «Отразить зеркально», «Повернуть на 90°» и «Расширить счётную область, если срез не помещается».
⑦ «Применить — вставить в задание». Фигуры появляются на холсте выделенным набором:
их сразу можно двинуть, повернуть, удалить. Это одна правка — Ctrl+Z убирает весь
импорт целиком. В описание задания добавляется строка вида «Геометрия: срез модели
waveguide_iris.step плоскостью XY при Z = 15 мм» — через год будет видно, откуда она.

Предпросмотр рисует тот же холст, что и редактор, поверх текущего задания, — картинка не может разойтись с тем, что вставится.

Что делается со срезом.
- Металл, магнитная стенка, поглотитель вставляются контуром: замкнутый срез — замкнутым контуром, незамкнутый — ломаной. Ядро рисует их по периметру.
- Диэлектрик — заливкой. Ядро умеет заливать только выпуклый многоугольник (оно закрашивает его веером треугольников от первой вершины), поэтому невыпуклое сечение — Г-образная вставка, кольцо, линза с вырезом — режется на выпуклые куски с той же eps. Окно об этом говорит. Проверено прогоном ядра: целая вставка и она же, разрезанная пополам, дают одну и ту же матрицу рассеяния до шестого знака.
- Точки контура прореживаются до половины шага сетки: CAD даёт тысячи точек на окружность, а мельче шага ядру считать нечего.
- Если модель «не герметична» (щели между гранями), контур не замкнётся — окно скажет об этом прямо. Диэлектрик с незамкнутым контуром не вставляется (залить нечего), стенки вставляются ломаными.
Связи с моделью после вставки нет: это обычные фигуры, правятся как нарисованные руками. Поменяли модель — импортируйте срез заново.
Попробовать можно на готовых моделях из папки data/models/ программы TPL Designer:
волновод с диафрагмой и тефлоновой вставкой (STEP и STL), секториальный рупор и
патч-антенна (OBJ), камера токамака с соленоидом и катушками (STEP и STL).
6. Свойства фигуры
Кнопка «Все свойства…» или двойной щелчок по фигуре.

| Поле | Что это |
|---|---|
| Название | уходит в задание комментарием к блоку: при повторном открытии фигура снова называется по-человечески |
| Вид | прямоугольник, ломаная/контур, круг/сектор |
| Материал | Металл, Магнитная стенка, Поглотитель, Среда (заливка) |
| Проницаемость eps | для среды. Вводится сама eps, а не добавка: (eps-1) в файл подставит программа |
| Профиль eps формулой | неоднородная среда: eps(x, y, r, f) считается ядром в каждом узле |
| Взять распределение из файла .eps | готовое распределение, блок FILE |
| Концентрация N, м⁻³ | плазма, только X-мода |
| Профиль N по формуле | концентрация формулой от координат |
| Подмагничивание B, Тл | работает только внутри плазменной ветки, то есть там, где есть N |
| Потери Y | безразмерные, работают везде, в том числе без плазмы |
| Радиус скругления | превращает углы прямоугольника в дуги |
Про материалы. Металл, магнитная стенка и поглотитель — это контур: ядро создаёт только периметр, внутрь поле не проходит. Среда — это область. На холсте так и нарисовано: контурные материалы жирной линией, залитые — заливкой с тонким краем.
Край залитой области — не стенка. Если заполнение собрано из двух прямоугольников (так делают на поворотах канала), их стык проходит внутри канала. Это граница блоков, а не перегородка: волна через неё идёт. Именно поэтому стенки рисуются поверх заливок и жирнее — чтобы одно не путалось с другим.
Про профиль eps формулой. В формулу подставляются x, y (координаты от
анкера фигуры), r (расстояние от анкера) и f.
f — это полярный УГОЛ, а не частота. Частоты в контексте профиля нет вовсе:
файл распределения частотно-независим, частотный множитель ядро применяет само.
Галочка «Координаты x и y от своей точки» позволяет отсчитывать формулу не от центра фигуры: в авторских заданиях ось сосуда сплошь и рядом лежит снаружи самой фигуры, и подставить туда центр значило бы молча сдвинуть среду.

Про распределение из файла. Координаты блока ядро при этом игнорирует —
сетка лежит в самом файле, а на место распределение ставит анкер. Файл должен
лежать в папке задания, а его шаг — совпадать с DELTA (ядро сверяет с точностью
1e-5). Сделать такой файл можно прямо в программе (раздел 12).
7. Свойства порта
Двойной щелчок по порту.

① Размещение
| Поле | Что это |
|---|---|
| Название | уходит комментарием к блоку |
| Сторона | левая, правая, нижняя, верхняя граница |
| Апертура от / до | размер входа поперёк направления |
| Проницаемость на входе | среда в сечении входа. Ядро отвергает файл при eps ≤ 0, поэтому ноль просто нечем ввести |
| Плоскость входа | координата, если вход стоит не на границе области (поле появляется, когда вход сдвинут внутрь) |
Под полями программа пишет, что уйдёт в файл, и считает одномодовый диапазон апертуры с учётом заполнения.
INPUT_X— это вход вдоль оси Y. Название говорит об оси, вдоль которой идёт возбуждение, а не о том, где стоит вход. Программа выбирает нужный тег сама — вам достаточно указать сторону.
Вход не обязан стоять на границе области: ядро ставит узлы ровно по координате анкера. «Левый» или «правый» ядро выводит само — по тому, в какой половине коробки лежит координата. Если направление не совпадёт с половиной, ядро молча развернёт падающую волну; программа держит их в согласии за вас.
Апертуру ядро вдобавок молча поджимает на 2*DELTA от поперечных границ коробки —
программа предупредит, если вы подошли слишком близко к краю.
② Возбуждение
Здесь всё, что определяет излучаемую волну.
Активный или пассивный. Активный (излучает) — порт создаёт падающую волну; Пассивный (только принимает) — в задании это окно времени, целиком лежащее за концом счёта, и нулевая амплитуда.
Тип волны: Волна H10 (волноводная) или Плоская волна.
Первый параметр входа в языке — это мода, а не форма сигнала: MAGNETIC —
плоская волна, METAL или пусто — H₁₀.
Откуда сигнал:
- Формулой ядра — ядро само считает
a = Amp(t)·sin(2π·FREQ·t + Faza). Появляются поля: Форма сигнала (непрерывный, гауссов импульс, прямоугольный импульс), Амплитуда, Фаза, Центр импульса, Длительность. - Файлом сигнала (любая форма) — падающую волну целиком задаёт файл
.sig, который программа напишет рядом с заданием. Так задаются формы, которых в языке нет: гребёнка тонов на всю полосу за один проход, ЛЧМ, пила, видеоимпульс, своя формула, свои точки. Ниже появляется галерея форм и поля выбранной формы. Подробно о многочастотном расчёте — Многочастотный расчёт.
Галерея показывает картинку, а не название: «моноцикл» человеку, который не программист, ничего не говорит, а рисунок говорит сразу. Под галереей — строка о том, чем хороша выбранная форма, а в самом низу группы — Имя файла и напоминание, какой файл ляжет рядом с заданием, сколько в нём точек и с каким шагом.
③ Что придёт на вход
График a(t) и его спектр — ровно по тем числам, которые уйдут в файл. Это не
иллюстрация, а предупреждение: видно, как прямоугольный импульс обрубает несущую на
краях, как посылка кончается задолго до конца счёта и попадает ли полоса в
одномодовый диапазон апертуры. Ниже текстом — что именно встанет в строку входа
(Amp = [имя], окно времени) и какую FREQ программа поставит заданию.
Широкополосный порт и моды. Матрицу рассеяния по такому прогону восстанавливает постобработка, и делает это в предположении одной моды в апертуре. Выше отсечки H₂₀ предположение ложно: прогон пройдёт, файл получится, число выйдет не то. Программа об этом предупреждает — и про верхнюю отсечку, и про нижнюю, и про сигнал, который длиннее времени счёта.
Как меняется окно от формы сигнала
Набор полей зависит от выбранной формы — показываются только те, что имеют смысл.
Сигнал формулой ядра (галереи нет вовсе):

Своя формула a(t) — одно поле вместо частот и длительностей:

Пила — частота повторения вместо полосы:

8. Раздел 3 — «Что считать»

Здесь задаётся то, ради чего #STEP самодостаточен: у каждого шага своя
топология, свои активные порты и свои выходные файлы. Значит в одно задание
укладываются и оба возбуждения, и несколько вариантов геометрии — вместо четырёх
файлов и четырёх запусков.
Возбуждение портов. Отметьте порты, которые надо возбуждать по очереди.
Возбуждение порта j даёт столбец матрицы (S1j, S2j, …), и шаги с разными
возбуждениями пишут в один .s, заполняя его целиком. Для полной матрицы 2×2
отметьте оба входа.
Варианты геометрии. Кнопка «Заготовка: „пустой“ + „с заполнением“» делает
два варианта в один щелчок; «Добавить» и «Удалить» — свои. У каждого
варианта название и тег файлов, а в списке «Что входит в выбранный вариант»
отмечается, какие фигуры в нём участвуют. Разным вариантам — разные файлы .s:
это разные устройства, и мешать их в одном файле нельзя.
Поворот объекта по шагам (ЭПР).
| Поле | Что это |
|---|---|
| Поворачивать объект: на каждом шаге — следующий угол | включает свип по углу |
| Объект — отмеченные фигуры | они поворачиваются вместе |
| Ось поворота | по умолчанию в центре объекта и едет вместе с ним |
| Углы от / до / шаг | сетка углов |
| Первый шаг — та же сцена без объекта | опора для вычитания фона |
Внизу страница пишет, что получится: число шагов и имена файлов.
Повернуть источник язык не позволяет: входов два вида, и плоская волна идёт только вдоль осей. Для рассеяния важен угол «волна — тело», поэтому поворачивается объект. Прямоугольник при повороте становится полигоном; подмагничивание, потери, профиль eps и плазму формулой повернуть нечем — это ошибка валидатора, а не молчаливая порча.
Угол 0 ядро теряет — точка с подписью 0 не попадает в
.s. Программа пишет его как 360.
9. Раздел 4 — «Вывод данных»

① Сигналы на портах (TMCROS). Имя файла — файлы .t с временными сигналами.
Этот файл пишется всегда: строка FILE обязана стоять в #OUTPUT первой.
Расширение ядро добавит само — точку в имени не ставьте. Просмотр — TMCROS.
② Топология для FieldView. Выгружать топологию (файл .tt) — снимок сетки (строка
TOPOLOGY;). Пишется один раз при инициализации и почти ничего не стоит.
Заодно заставляет ядро писать .ex — снимок поля при инициализации.
③ Мгновенные поля для FieldView. Выгружать поля (файлы .ex, .ey, .hz) (строка
FIELDS;), и выбор — только на первом шаге или на всех шагах расчёта. Как смотреть
поля во время и после расчёта, в том числе со слежением за ядром, — FieldView,
раздел 8.
Поля включайте, только если собираетесь на них смотреть. Ядро переписывает всю сетку на каждом такте, и счёт растягивается в разы: антенны с полями считались по 15 минут вместо секунд.
④ Матрица рассеяния (TMCGROUT).
| Поле | Что это |
|---|---|
| Снимать S-матрицу (файл .s) | включает SMATRIX |
| Имя файла | без точки |
| Ограничить окно (вход с файлом сигнала) | есть только в многочастотном задании: брать S-матрицу по окну из полей «от / до» (см. ниже) |
| Окно снятия от / до | временное окно, в котором ядро берёт установившийся сигнал |
Окно по умолчанию — последняя четверть счёта. Если вы поменяете время счёта на странице «Расчёт», окно поедет за ним само: окно за концом счёта дало бы пустой файл, а связь между двумя разными разделами человеку не видна. Просмотр — TMCGROUT.
Окно S-матрицы при входе с файлом сигнала. Флажок «Ограничить окно (вход с файлом
сигнала)» (в английском интерфейсе — «Limit the window (port with a signal file)») появляется
в этой группе, только если в задании есть возбуждаемый вход с сигналом из файла .sig
(многочастотный расчёт за один проход, Многочастотный расчёт). Флажок доступен, когда
отмечено «Снимать S-матрицу». По умолчанию он снят.
| Флажок | Что программа пишет в #OUTPUT |
Поля «Окно снятия от / до» |
|---|---|---|
| снят (по умолчанию) | SMATRIX <имя>; <FREQ>; — без окна: ядро считает S-матрицу по всему счёту, от 0 до TIME |
недоступны |
| отмечен | SMATRIX <имя>; <FREQ>; <от>; <до>; — ядро считает по заданному окну |
доступны |
Ограничивать окно стоит, когда отклик в начале счёта не нужен (так говорит и подсказка флажка). Флажок касается только шагов, где возбуждаемый вход берёт сигнал из файла: у одночастотного шага окно пишется всегда — без него ядро такой шаг отвергает.
Что по этому окну говорит проверка (раздел 10):
- ошибка «окно S-матрицы (до … нс) за концом счёта (… нс) — файл будет пуст» — если
окно записывается в задание (флажок отмечен или в задании есть одночастотный шаг) и
кончается позже времени счёта
TIME. При снятом флажке в многочастотном задании окна в файле нет, и эта ошибка не возникает; - предупреждение «окно S-матрицы начинается на … нс, а поле в области устанавливается не раньше … нс…» выдаётся только для задания без входа с файлом сигнала;
- предупреждение «многочастотный расчёт: входы «…» (… мм) и «…» (… мм) разные. Поправка порта в этом режиме верна для одинаковых входов и симметричного устройства — здесь ответ приближённый; для точного считайте свипом по частотам» — если при входе с файлом сигнала входы задания разной ширины или разной моды. К окну оно не относится, но касается той же S-матрицы многочастотного расчёта (Многочастотный расчёт, п. 4.3).
При открытии готового задания флажок ставится по файлу: строка SMATRIX без окна — флажок
снят, с окном — отмечен, и поля «от / до» берут значения из файла. Строку без окна в задании
без входа с файлом сигнала программа отмечает предупреждением: «SMATRIX без окна T_min;
T_max законен только при входе с файлом сигнала — в одночастотном режиме ядро такой шаг
отвергнет. При сохранении будет записано окно со страницы «Вывод данных»».
.sдописывается, а не перезаписывается. Удаляйте его перед повторным прогоном, иначе к новым данным молча подмешаются старые. Программа напоминает об этом прямо под полями.
⑤ Диаграмма направленности (TMC_DN). Считать диаграмму направленности, имя
файла и окно накопления от / до. Даёт файлы .AMP, .FAZ и .DAT. Просмотр —
TMC_DN.
Под галочкой — сколько памяти займёт расчёт: сетка ядра и накопление диаграммы.
При падающей волне из файла с несколькими тонами (гребёнка) ядро копит диаграмму на
каждом тоне сразу — по краю области, по паре квадратур на тон — и выдаёт по файлу
<имя>_<МГц>MHz.DAT на частоту. Память растёт с числом тонов; от 2 ГБ подпись
желтеет, а проверка предупреждает. Тонов больше 99 пакет не берёт: диаграммы будут по
первым 99, об этом скажет и подпись, и окно при загрузке такого файла.
⑥ Время расчёта. Замерить время расчёта (ключ /Time) — ядро напишет отчёт по
фазам счёта в файл <задание>.timing_*.txt рядом с заданием. В самом задании
этого ключа нет: он добавляется в строку запуска, поэтому файл .tpl от этой
галочки не меняется ни на байт. О ключах запуска — Работа без окон.
10. Раздел 5 — «Проверка»

① Что будет посчитано — сводка: имя и вид файла, область, шаг сетки, время, частоты, перечень фигур с материалами и портов. По ней видно, что программа поняла из нарисованного, — до того, как файл уйдёт на диск.
② Файл задания — ровно тот текст, что ляжет на диск. Для макро-версии показаны оба файла подряд.
③ «Создать файл задания» — выбор папки и запись. Рядом с .tpl ложатся
_step.h, файлы сигналов .sig и файлы распределений .eps — всё, без чего задание
не посчитается. После записи программа показывает строку запуска ядра.
④ «Сохранить как образец» — задание попадает в раздел «Мои образцы» библиотеки
(Документы/TPL Designer/Мои образцы/<название>/).
⑤ Память на этом компьютере — кольцевая диаграмма на всю оперативную память этого ПК. Сплошной голубой сектор — что уже занято системой и программами (обновляется раз в три секунды), заштрихованные — что съест расчёт: бирюзовый — сетка ядра, фиолетовый — диаграмма направленности (если заказана). Справа — те же числа.
| Помещается | Не помещается |
|---|---|
![]() |
![]() |
Если задание в свободную память не влезает, штриховка и подпись краснеют, а снаружи кольца красной дугой показано, сколько не хватит. Это только сведения: сохранить файл можно всё равно — считать его, возможно, будут на сервере, где памяти больше. Расчёту больше 2 ГБ нужно 64-разрядное ядро: 32-разрядное столько не адресует.
Память на узел сетки — замер на сервере: H-ядро около 52 байт, X-ядро около 127. Диаграмма одной частоты копится по всей области (32 байта на узел), но если это больше четверти свободной памяти, ядро само переходит на края — программа считает так же.
Кнопка записи недоступна, пока в задании есть ошибка: полоса замечаний внизу скажет, какая именно. Предупреждения записи не мешают.
11. Библиотека образцов

① Разделы: «Волноводы и узлы» (9), «Антенны» (5), «Микрополосковые» (14), «Среды, плазма, ЭПР» (11), «Учебные задания» (7), «Мои образцы».
② Галерея — картинка каждого образца рисуется тем же холстом, что и редактор: на ней видно ровно то, что посчитает ядро. Поиск вверху ищет по названию, разделу и стандарту: «волновод», «рупор», «плазма», «WR-90».
③ Картинка выбранного образца. Над ней — название, раздел, ядро и стандарт, по которому построено.
④ Параметры. У каждого образца свои: сечение волновода по стандарту, подложка, частота, число точек свипа. Меняете параметр — картинка и паспорт пересчитываются сразу. Кнопка «Вернуть умолчания» возвращает исходные значения.
⑤ «Открыть в редакторе» — продолжить работу с образцом в мастере. Рядом — «Сохранить .tpl…» (записать, не открывая); для своих образцов появляется «Удалить».
Ниже кнопок, прокруткой:
- Задание корректно — результат проверки при текущих параметрах;
- Паспорт: теория — формулы и числа по учебнику;
- Посчитано ядром — числа из
.sнастоящего прогона при умолчаниях. Где ядро расходится с учебниковой формулой, расхождение написано числом; - Постановка и Справка — что это за устройство и на что смотреть.

12. Вспомогательные файлы: .sig и .eps
Кнопка «Вспомогательные файлы» — на стартовом экране и слева внизу в мастере.
Оба файла программа и так пишет рядом с заданием, когда они в нём заданы. Но
готовый файл часто нужен сам по себе: положить рядом с чужим заданием, отдать
коллеге, подставить в уже написанный .tpl. Делать их в блокноте нельзя — у .sig
шаг привязан к шагу сетки, а .eps вообще двоичный.
12.1 Файл падающей волны .sig
Как ядро использует файл падающей волны и как потом получить S-матрицу по многим частотам из одного прогона — Многочастотный расчёт.

① «Открыть готовый .sig…» — начать не с нуля, а с существующего файла. Если файл
писала эта программа, в нём есть служебная строка @TPLD-SIG, и возвращается сама
форма со всеми параметрами: правьте полями и сохраняйте заново. У чужого файла такой
строки нет — тогда из него читаются только точки, и они ложатся в таблицу.
② Галерея форм. Двенадцать форм, каждая со своей картинкой — «моноцикл» человеку, который не программист, ничего не говорит, а рисунок говорит сразу. Под галереей — строка о том, чем выбранная форма хороша.
| Форма | Для чего |
|---|---|
| Гребёнка тонов | вся полоса за ОДИН проход вместо свипа (выигрыш 7.8× на десяти частотах) |
| ЛЧМ (чирп) | несущая едет от f1 до f2 за длительность посылки |
| Посылка синуса | N периодов; при N = 1 это моноимпульс |
| Радиоимпульс | несущая под гауссовой огибающей |
| Видеоимпульс | гауссова шапка без несущей |
| Моноцикл | первая производная гаусса, нулевое среднее |
| Трапеция | фронт, полка, спад |
| Пила, Треугольник, Меандр | периодические формы |
| Своя формула | a(t), переменная одна — t в наносекундах |
| Своя таблица | точки набираются прямо здесь (см. ниже) |
③ Параметры формы — показываются только те, что имеют смысл для выбранной.
У гребёнки это амплитуда, начало, длительность посылки, нижняя и верхняя частоты и
число тонов; у пилы вместо полосы — частота повторения; у своей формулы — одно поле
a(t).
④ «Под какое задание».
| Поле | Что это |
|---|---|
| Шаг сетки DELTA | шаг того задания, с которым файл пойдёт в расчёт |
| Время счёта TIME | им обрезается хвост сигнала |
| Имя файла | без расширения и без точки |
Точки пишутся вдвое чаще шага ядра DELTA/(c·√2) — проверено прогоном: вдвое
крупнее даёт ошибку 7e-3, вдвое мельче 6e-5.
⑤ «Что получится» — график a(t) и его спектр по тем самым числам, что уйдут в
файл, и строка со сводкой: шаг записи, число точек, размер файла, полоса и частота
согласования порта.
⑥ «Сохранить .sig…» — запись на диск.
Важно:
FREQпри сигнале из файла — это частота СОГЛАСОВАНИЯ порта, а не частота расчёта. У гребёнки и ЛЧМ её ставят в центр полосы, у радиоимпульса — на несущую, у пилы и меандра — на частоту повторения. УехавшаяFREQрасчёт не ломает, а молча портит согласование, поэтому программа ставит её сама.
Таблица точек: своя форма без всякого файла
Выберите в галерее «Свою таблицу» — появится редактор точек.

① Группа «Точки сигнала» целиком: сама таблица, кнопки под ней и строка о том, сколько точек набрано и в каком промежутке времени они лежат.
② Таблица «время (нс) — значение a». Ячейки правятся прямо здесь, время сортируется само: ядро читает точки подряд и между соседними интерполирует линейно, ход назад ему дать нельзя.
Кнопки под таблицей.
| Кнопка | Что делает |
|---|---|
| Добавить строку | новая точка после текущей |
| Удалить строку | убрать выделенную |
| Взять из формы | заполнить таблицу точками любой встроенной формы — и дальше править руками. Самый короткий путь к «почти гребёнке» или «почти импульсу» |
| Загрузить из файла… | два столбца чисел: .sig, .txt, .csv, .dat; строки с ! и # — комментарии |
| Очистить | убрать все точки |
Так выглядит нормальный рабочий порядок: взять готовую форму → поправить нужные точки → сохранить. Приносить готовый файл, чтобы сделать файл, не требуется.
Таблица из сотни точек превращается в файл из десятков тысяч: программа пересчитывает её под шаг ядра сама.
Как выглядит готовый файл. Текст, две колонки «время в TIME_UNIT, значение
a», строки с ! и # — комментарии, между точками ядро интерполирует линейно:
! Файл падающей волны для входа «вход 1» задания msbsf.tpl
! Записан TPL Designer. Падающая волна из файла: форма — в нём.
!
! Форма: гребёнка тонов — 41 тон 1.5...4.5 ГГц с шагом 0.075 ГГц, 0...25 нс
!
! @TPLD-SIG kind=0; amp=1; start=0; dur=25; f1=1.5; f2=4.5; tones=41; ...
!
! Строка #FREQ называет тоны, которые ядро кладёт в шапку .t
#FREQ 1.5 1.575 1.65 1.725 1.8 1.875 1.95 2.025 2.1 2.175 2.25 ... 4.5
! t[ns] a
0.000000000 0.000000000e+00
0.000445110 1.284216731e-02
0.000890220 2.567604896e-02
...
24.999598386 7.639277603e-03
Строка @TPLD-SIG — служебная: по ней программа узнаёт форму обратно при открытии
файла или задания. Строка #FREQ обязательна для многотона и вредна импульсу:
искать тоны потом по спектру принципиально неточно — соседние линии смещают пики друг
друга (на проверенном сигнале максимум пришёлся на 2.9973 вместо 3.000 ГГц).
Сглаживать можно только начало посылки, но не конец. Непрерывный многотон постобработка раскладывает подгонкой гармоник на установившемся участке, то есть в последних наносекундах счёта. Спад амплитуды попадает ровно туда: подгонка занижает падающую волну, и
|S21|выходит больше единицы. Проверено прогоном — расхождение 1.9 дБ вместо 0.0004.
Сохранить .sig… записывает файл. Чтобы ядро его нашло, файл должен лежать
рядом с заданием, а в строке входа на месте амплитуды должно стоять [имя] —
без пробела перед скобкой. Расширение .sig ядро дописывает само, но только
если точки в имени нет.
12.1а Разобранный пример: 10 частот от 1 до 100 ГГц одним проходом
Задача: посчитать устройство сразу на десяти частотах от 1 до 100 ГГц — за один прогон ядра, а не десять. Для этого на вход подаётся гребёнка из десяти тонов, и постобработка раскладывает отклик по частотам.
Сначала — шаг сетки. Верхняя частота 100 ГГц: длина волны λ = c/f = 300/100 = 3 мм. На длину волны нужно 10…20 шагов сетки, берём двадцать: DELTA = 0.15 мм. С меньшей частотой сетку не выбирают — её задаёт самая высокая.

① Форма — «Гребёнка тонов».
② Поля формы — что вписать:
| Поле | Что вписать | Почему |
|---|---|---|
| Амплитуда | 1 |
каждый тон идёт с полной амплитудой, как при одночастотном расчёте с Amp = 1; пик суммы — около 10, это нормально |
| Начало сигнала | 0 нс |
сигнал с самого начала счёта |
| Длительность посылки | 20 нс |
равна времени счёта: гребёнка непрерывная, и постобработке нужен установившийся участок в конце |
| Нижняя частота | 1 ГГц |
первый тон |
| Верхняя частота | 100 ГГц |
последний тон |
| Тонов в гребёнке | 10 |
тоны встают равномерно: шаг (100 − 1)/9 = 11 ГГц |
Тоны получаются такие: 1, 12, 23, 34, 45, 56, 67, 78, 89, 100 ГГц. Нужны другие (не равномерные) — см. «Свою таблицу» ниже.
③ «Под какое задание»:
| Поле | Что вписать |
|---|---|
| Шаг сетки DELTA | 0.15 мм — тот же, что будет в задании |
| Время счёта TIME | 20 нс |
| Имя файла | comb_1_100 — без точки и без расширения |
④ «Что получится» — проверьте, прежде чем сохранять:
- на графике a(t) — сумма десяти синусов, пик около 10;
- на спектре — ровно десять линий через равные промежутки, пунктир — частота согласования;
- в строке сводки: шаг записи 0.000177 нс (шаг ядра 0.000354 нс) · точек 113059,
примерно 2.6 МБ · полоса 1…100 ГГц · FREQ согласования 50.5 ГГц. Шаг записи — вдвое
мельче шага ядра
DELTA/(c·√2), его программа считает сама.
⑤ «Сохранить .sig…» — получится comb_1_100.sig. В шапке у него строка, по
которой постобработка узнаёт тоны точно:
#FREQ 1 12 23 34 45 56 67 78 89 100
Где это оказывается в задании. Если гребёнку выбрать прямо в окне порта
(«Откуда сигнал: Файлом сигнала»), отдельный файл делать не нужно — программа
запишет .sig сама, рядом с .tpl:

① Возбуждение — те же поля, что в мастерской. Тип волны «Плоская волна»: у волны H₁₀ в волноводе на такой полосе неизбежно пойдут высшие моды, и программа об этом предупредит.
② «Что придёт на вход» — график и спектр, а под ними — что встанет в файл
задания: Amp = [comb_in1] (имя файла сигнала в квадратных скобках на месте
амплитуды) и частота задания 50.5 ГГц — центр полосы. Её программа ставит сама:
FREQ при сигнале из файла — частота согласования порта, а не частота расчёта.
В строке входа файла задания это выглядит так:
INPUT_X MAGNETIC; 2.0; 28.0; 0; 20; [comb_in1]; 0;
Тот же расчёт свипом. Десять частот можно посчитать и по старинке —
десятью шагами: раздел «Расчёт», «Диапазон частот» от 1 до 100 шагом 11 ГГц.
Это честнее для плазмы (X-ядро считает плазменную добавку один раз, из FREQ, и в
широкой полосе гребёнка для плазмы неверна), но в десять раз дольше.
Своя таблица: неравномерные тоны и чужие файлы
Кнопка «Взять из формы» перекладывает гребёнку в таблицу — и дальше точки можно править руками:

① Таблица точек — время (нс) и значение a. Точек берётся по двадцать на период верхней частоты: для 100 ГГц на 20 нс это 40 001 строка. Больше 50 000 строк таблица не вмещает — тогда она укрупняется, и окно об этом скажет.
② «Взять из формы» — заполнить таблицу точками выбранной формы.
③ Строка под таблицей: сколько точек, в каком промежутке времени и сколько
тонов в строке #FREQ — тоны идут вместе с таблицей, и в файл они попадут.
Не больше 99 тонов
Больше 99 частот пакет не обрабатывает нигде: ни диаграмма направленности, ни
постобработка, ни файл .s — это зашито в ядро (TMC_DN_MAXFREQ, FREQ_MAX_NUM).
Поэтому:
- в поле «Тонов в гребёнке» больше 99 не ввести;
- если принести чужой файл, где строка
#FREQназывает больше 99 тонов, программа сразу скажет об этом окном:

- под таблицей так и останется видно: «Тонов в строке #FREQ 120 — в файл пойдут первые 99»;
- в записанный файл уйдут первые 99 тонов, а в шапке файла будет пометка «ВНИМАНИЕ: тонов в сигнале 120, а пакет берёт не больше 99…». Сам сигнал (точки) не трогается — остальные тоны в нём есть, но не обрабатываются;
- то же скажет полоса замечаний на любом разделе мастера и окно при открытии задания с таким файлом.

Почему обрезает программа, а не ядро. Ядро лишние тоны отбрасывает молча, а строку
#FREQдлиннее 2048 знаков теряет целиком — и диаграмма тогда строится на одной частоте, без единого слова. Программа пишет не больше 99 тонов и говорит об этом сама.
Сколько памяти уйдёт на многочастотную диаграмму — смотрите в разделе «Вывод данных» (подпись под галочкой ДН) и на странице «Проверка» (кольцевая диаграмма памяти, раздел 10).
12.2 Файл распределения .eps

① «Открыть готовый .eps…» — прочитать чужой файл и увидеть, что в нём на самом деле: сетка и значения лягут на карту, шаг и границы — в поля. Так проверяют файл, доставшийся от коллеги или написанный ядром.
У прочитанного файла формулы нет и быть не может: в нём лежат числа по узлам. Поэтому карта показывает прочитанное как есть, а кнопка «Вернуться к формуле» (она появляется рядом) возвращает режим, в котором распределение задают выражением.
② Формула eps(x, y, r, f). Вводится сама eps, добавку (eps-1) считает
программа. Переменные: x, y (от начала сетки), r (расстояние от начала) и f —
полярный УГОЛ в радианах, а не частота.
③ Шаг сетки DELTA. Обязан совпасть с шагом задания — ядро сверяет их с точностью 1e-5 и иначе файл не примет. Ниже — галочка «Начало координат в центре области» и поля X от…до / Y от…до, а также имя файла.
④ Карта среды — ровно те числа, что лягут в файл. Под картой строка: размер сетки, область, диапазон eps и размер файла; ещё ниже — проверка, считается ли формула во всех узлах.
⑤ «Сохранить .eps…» — запись на диск.
Как устроен файл. Текстовая шапка с CRLF, дальше двоичные пары «значение
(double) + линейный номер узла (int)», обход по строкам (j = iY·nX + iX):
#TamicRTH_planar_DistributionDielectricPermeability_File_V2.00 2000
#TopologyPrimitiv RECT_STAT
#dDelta 0.001 ← шаг в МЕТРАХ
#Xmin -0.04 ← начало в МЕТРАХ, локальное
#Ymin -0.04
#nX 81
#nY 81
#nPoint 6561
#nAccuracy 8
#sNodeFormat NULL
#sValueFormat NULL
<далее 6561 пара: double + int32>
В значении лежит добавка eps, умноженная на вес узла: 1 внутри, 0.5 на ребре, 0.25 в углу. Вес не украшение — на нём держится стыковка соседних блоков: на общем ребре 0.5 + 0.5 дают единицу.
Файл частотно-независим. Пересчитывать его под каждую частоту не нужно: частотный коэффициент ядро применяет само и на каждом шаге заново.
Блок
FILEчитается только ядром, собранным после 6 сентября 2026. Старые сборки останавливаются на «Missing separator ;».
13. Калькулятор среды

Справочный инструмент: задание он не меняет. Все пары двусторонние — ввели N,
получили плазменную частоту; ввели частоту, получили нужное N.
① Волновод: одномодовый диапазон. Ширина a и Заполнение eps дают Отсечку H10 и Отсечку H20. Пояснение под полями напоминает: свип держать МЕЖДУ отсечками — ниже H10 волна не пойдёт, выше H20 вход многомодовый и S-матрица теряет смысл. Заполнение диэлектриком опускает обе отсечки в √(εμ) раз.
② Диэлектрик. Проницаемость eps и На частоте дают длину волны в вакууме, в
среде и показатель преломления. Здесь же напоминание, которое чаще всего забывают:
в файл задания уйдёт добавка eps − 1, а не сама eps.
③ Плазма (X-мода). Концентрация N, м⁻³ Плазменная частота; Подмагничивание B Циклотронная частота.
Пример: a = 60 мм, вакуум → одномодовый диапазон 2.498…4.997 ГГц.
14. Настройки

| Группа | Настройка | Что меняет |
|---|---|---|
| Неоднородная eps | Заливать градиентом по формуле | фигура с профилем заливается посчитанным полем, а не ровным цветом |
| Показывать цветовую шкалу значений | шкала eps сбоку холста | |
| Показывать eps под курсором | значение в точке прямо в подсказке | |
| Палитра | расцветка карты | |
| Холст | Сетка | показывать узлы расчётной сетки |
| Привязка к сетке и объектам | то же, что кнопка на панели холста | |
| Размеры выделенной фигуры | подписи длин прямо на холсте | |
| Поведение | Предупреждать перед записью поверх существующего файла | вопрос перед перезаписью |
Изменения применяются сразу, по каждому переключателю: за диалогом виден тот же холст, и смысл настройки виден только тогда, когда результат появляется на глазах. Поэтому «Отмены» здесь нет — есть «Вернуть по умолчанию» и «Закрыть».
14а. Меню окна: язык и «О программе»
Над стартовым экраном и мастером — короткое меню из двух пунктов. Меню «Файл» нет намеренно: создание, открытие и запись задания ведут стартовый экран и мастер.
| Меню (в английском интерфейсе) | Пункт | Что делает |
|---|---|---|
| Настройки (Config) | Language / Язык ► | язык интерфейса: «System / Как в системе», «Русский», «English» |
| Справка (Help) | О программе TPL Designer... (About TPL Designer...) | окно «О программе» |
Не путайте меню «Настройки» с кнопкой «Настройки…» на панели холста (раздел 14): кнопка открывает окно настроек редактора, а в меню — только выбор языка.
Язык интерфейса. Выбор общий для всех программ пакета и хранится в
%APPDATA%\TMC_Suite_Qt\Common.ini (overview.md, раздел 6.2). При смене языка
TPL Designer заново создаёт свои страницы — стартовый экран, мастер и библиотеку образцов —
уже на новом языке. Задание, которое было в работе, переносится в новый мастер, и на экране
остаётся та же страница (стартовый экран, мастер или библиотека), так что набранное не
теряется. Имена фигур и входов — данные задания: при смене языка они не переводятся.
Язык текста задания. Отдельного переключателя у него нет: комментарии и подписи, которые
программа пишет в .tpl (шапка задания, подписи блоков, описания образцов), идут на языке
интерфейса — программа берёт его при запуске и при каждой смене языка в меню. Шапка русского
задания начинается строкой ! Задание сгенерировано TPL Designer., английского —
! Task generated by TPL Designer.. Английский текст в задании — только латиница. Команды
задания (секции, блоки, числа) от языка не зависят, меняются лишь комментарии ! и подписи.
Готовые задания программа читает на обоих языках, какой бы язык ни был выбран.
О программе. Окно — как у других программ пакета (overview.md, раздел 6.6).
Кнопка «Руководство пользователя» ищет рядом с программой руководство TPL Designer — файл
TPL-Designer-rukovodstvo.pdf (раздел 1.2); если его нет, открывается руководство
пользователя на сайте www.tamic.ru/docs/user-manual/index.html.
15. Пошаговый пример: волновод с диафрагмой
Сделаем задание целиком: отрезок прямоугольного волновода с индуктивной диафрагмой посередине, два порта, свип по частоте 8.2…12.4 ГГц.
Весь проход записан в видеоуроке (
tutorial.mp4, раздел 1.2) и проверяется автоматически при сборке руководства TPL Designer. Если шаг инструкции перестанет работать, проход об этом скажет.
Шаг 1. Создать задание

Стартовый экран → «Создать».
Шаг 2–3. Счётная область


| Поле | Значение |
|---|---|
| Имя файла | wg_iris |
| X до | 60 мм |
| Y до | 29 мм |
| Шаг сетки DELTA | 0.5 мм |
| Время счёта | 40 нс |
Волновод будет шириной 23 мм (стандарт WR-90 — 22.86 мм; берём круглое число, чтобы всё легло на сетку 0.5 мм). Отсечка H₁₀ = c/2a ≈ 6.5 ГГц, H₂₀ = c/a ≈ 13 ГГц — диапазон 8.2…12.4 ГГц одномодовый.
Шаг 4. Диапазон частот

Переключатель «Диапазон частот», от 8.2 до 12.4 шагом 0.21 ГГц — 21 точка.
Под полями программа сообщает: получится макро-версия, .tpl + _step.h.
Шаг 5–6. Стенки волновода


Раздел «Геометрия», инструмент «Прямоугольник», две протяжки:
- от (0; 2.5) до (60; 3.0) — нижняя стенка;
- от (0; 26.0) до (60; 26.5) — верхняя стенка.
Толщина стенки — один шаг сетки, как в авторских заданиях. Стенки идут от края до края области: иначе у портов не было бы стенок и волна расползалась бы мимо волновода.
Шаг 7. Диафрагма

Ещё два прямоугольника — выступы навстречу друг другу от верхней и нижней стенки: от (29; 3) до (31; 9) и от (29; 20) до (31; 26). Между ними остаётся щель 11 мм.
Шаг 8. Точные размеры

Мышь кладёт фигуру примерно — точные числа задаются полями. Выделите верхний
выступ и впишите те же X от и X до, что у нижнего: диафрагма обязана быть
симметричной. Заодно дайте фигуре понятное имя — оно уйдёт в задание комментарием.
Шаг 9. Порты

Инструмент «Порт», протяжка вдоль левой границы от (0; 3) до (0; 26) и вдоль правой от (60; 3) до (60; 26). Привязка сама посадит концы на стенки.
Первый порт программа делает активным: пассивные в одиночку не считают ничего.
Шаг 10. Свойства порта

Проверьте: сторона, апертура 3…26 мм, «Активный», «Волна H10». Внизу видно, что придёт на вход.
Шаг 11. Что считать

Для полной матрицы 2×2 отметьте оба порта в очереди возбуждений. Для нашего примера хватит одного — получим столбец S11, S21.
Шаг 12. Вывод данных

Включена S-матрица, окно снятия — последняя четверть счёта (30…40 нс). Поля не включаем: смотреть их мы не собираемся, а счёт они растянут в разы.
Шаг 13. Проверка и запись

Внизу — текст задания целиком. Кнопка «Создать файл задания» пишет
wg_iris.tpl и wg_iris_step.h.
Вот что получилось (фрагмент wg_iris_step.h):
#TOPOLOGY\\
BLOCK 1;\\ ! волновод: нижняя стенка
RECT_STAT METAL; 0.0; 60.0; 2.5; 3.0;\\
END_B\\
BLOCK 2;\\ ! волновод: верхняя стенка
RECT_STAT METAL; 0.0; 60.0; 26.0; 26.5;\\
END_B\\
BLOCK 3;\\ ! диафрагма: нижний выступ
RECT_STAT METAL; 30.0; 31.0; 3.0; 9.0;\\
END_B\\
BLOCK 4;\\ ! диафрагма: верхний выступ
RECT_STAT METAL; 30.0; 31.0; 20.0; 26.0;\\
END_B\\
BLOCK 5;\\ ! вход 1 — активный
INPUT_X ; 3.0; 26.0; 0; 40; 1; 0;\\
END_B\\
BLOCK 6;\\ ! вход 2 — пассивный
INPUT_X ; 3.0; 26.0; 80; 120; 0; 0;\\
END_B\\
#END_TOPOLOGY\\
Обратите внимание: пассивный порт — это окно 80…120 нс при счёте 40 нс, то есть
он просто не возбуждается. Переносы строк в теле макроса — ровно два обратных
слэша: с одним макрос не собирается и ядро падает с abnormal function.
Шаг 14–15. Вспомогательные файлы

Если падающая волна нужна сложнее синуса — сделайте .sig здесь же (раздел 12).
16. Запуск ядра и разбор результата
Из окна ядра. Откройте записанный wg_iris.tpl в PlanarRT H (Файл → Открыть) и
запустите расчёт — см. PlanarRT H (для плазмы —
PlanarRT X).
Из командной строки (пакетный режим):
planarrt_h.exe wg_iris.tpl /Arb # H-мода, пакет TMC Suite 5.0
planarrt_x.exe задание.tpl /Arb # X-мода (плазма), пакет TMC Suite 5.0
tmc_rth.exe wg_iris.tpl /Arb # H-мода, прежняя версия пакета
tmc_rtx.exe задание.tpl /Arb # X-мода, прежняя версия пакета
Флаги: /Ar — автозапуск, /Arb — плюс batch (окно само закрывается), /d — плюс
демонстрация. На macOS ядра называются PlanarRT_H.app / PlanarRT_X.app, на
Linux — planarrt_h / planarrt_x. Подробно о ключах, кодах возврата и прогоне многих
заданий — Работа без окон.
Запускать нужно из папки задания. Включаемый файл
_step.hядро ищет рядом с.tpl— поиска по путям у него нет. Запускtmc_rth.exe wg.tplбез пути заставит его искать include в корне диска.
Развёрнутый текст препроцессор кладёт рядом: <имя>.tpl~$Prepr$~. Именно его
читает ядро, и это первое, что надо смотреть при отладке: раскрылся макрос или нет.
Что получилось у нашего примера (21 частота, прогон занял около полутора минут):
| Частота | |S11| | |S21| | |S11|² + |S21|² |
|---|---|---|---|
| 8.20 ГГц | −0.86 дБ | −7.44 дБ | 1.0000 |
| 10.30 ГГц | −2.20 дБ | −4.01 дБ | 1.0000 |
| 12.40 ГГц | −3.86 дБ | −2.30 дБ | 1.0000 |
Баланс мощности равен единице на всех частотах — стенки металлические, потерь нет, и вся энергия делится между отражением и прохождением. Это первая проверка, которую стоит делать всегда: если сумма не единица, ошибка в геометрии или в окне снятия.
Физика тоже правильная: индуктивная диафрагма отражает тем сильнее, чем ниже частота. По формуле Маркувица нормированная проводимость щели растёт с длиной волны в волноводе — и прохождение растёт от −7.4 дБ на 8.2 ГГц до −2.3 дБ на 12.4 ГГц.
Частотные характеристики S11, S21 из файла .s смотрят в TMCGROUT.
Выходные файлы: .t (сигналы), .s (S-матрица), .tt (топология), .ex,
.ey, .hz (поля), .em, .ef, .q, .ix, .iy, .eps.
Расширения .f не существует — это частая ошибка в старых документах.
17. Ловушки, которые программа закрывает за вас
Этот список — не «что надо помнить», а «о чём можно не думать». Каждый пункт стоил кому-то времени, и каждый закрыт кодом генератора. Подробно о самом языке — Файл задания .tpl.
| Ловушка языка | Что делает программа |
|---|---|
Заголовок всегда #TMC_RT_H, даже для X-моды |
пишет правильный, моду задаёт выбор ядра |
#EOF в конце обязателен |
пишет всегда |
| Кодировка — CP1251, не UTF-8 | своя таблица кодировки; файл получается одинаковым на Windows, macOS и Linux |
В CP1251 нет ε, λ, →, ×, ² |
в комментарии задания идут только eps, lambda, ->, x, ^2 |
| Выражение задаёт добавку ε⁺, а не саму ε | вы вводите eps, (eps−1) считает программа |
INPUT_X — вход вдоль оси Y |
вы выбираете сторону, тег подбирает программа |
| Направление входа должно совпадать с половиной коробки | держит их в согласии; иначе ядро молча развернёт волну |
| Первый параметр входа — мода, а не форма сигнала | отдельное поле «Тип волны» |
POLYGON_STAT не грузится меньше чем с тремя L |
отрезок добивается точкой посередине |
| Полигон под выражением требует обхода по часовой и выпуклости | порядок вершин расставляет генератор, невыпуклость — ошибка |
RECT_STAT METAL рисует весь периметр |
прямоугольник с разными сторонами раскладывается на отдельные блоки |
Перенос в теле макроса — ровно два \\ |
пишет два и проверяет счётчиком |
Скобки в #define обязательны (подстановка текстовая) |
расставляет сам |
До версии 5.1 вычислитель ядра не понимал экспоненту перед операцией (1.24e+17*(…)), а 1e18 без знака порядка не считался числом; с 26.10.2026 оба варианта читаются |
числа пишутся полной записью — это совместимо и со старыми ядрами |
До версии 5.1 CIRCLE_STAT_B/_Y и POLYGON_STAT_B/_Y молча читались как _N; с 26.10.2026 читаются в свои величины |
круг и полигон для B/Y раскладываются в описанный прямоугольник (совместимо со старыми ядрами) |
До версии 5.1 FILE_N/_B/_Y читались как диэлектрик; с 26.10.2026 X-ядро читает их в N, B, Y |
генератор пока их не пишет (запрещает ошибкой) — см. требования TPL_Designer/docs/requirements-2026-10-26.md |
В один .s больше 99 частот не укладывается |
конвейер режет сетку на несколько заданий |
| Точку с подписью 0 ядро теряет | угол 0 пишется как 360 |
| Имя файла сигналов одно, а шагов в свипе много | к имени добавляется метка частоты |
.s дописывается, а не перезаписывается |
программа предупреждает перед прогоном |
Чего программа НЕ делает. Она не рассуждает о физическом смысле вашей задачи. «Волна H₁₀ через такой волновод не пойдёт» считается по пустому волноводу — а генератор существует ровно для того, чтобы волновод заполнить. Замечания выдаются только о том, что ядро отвергнет или молча посчитает не то. Числа (одномодовый диапазон, плазменная и циклотронная частоты) показывает калькулятор среды — там о них спрашивают.
17а. Чему можно верить: проверка библиотеки
Все 46 образцов библиотеки прогнаны настоящими ядрами и проверены двумя способами — результаты лежат в репозитории TPL Designer и пересчитываются командами из приложения.
Проверка физики (tools/check_physics.py) — инварианты, которые обязаны
выполняться независимо от замысла задачи:
- баланс мощности: сумма |Sij|² по столбцу. В закрытом металлическом волноводе
без потерь она равна единице — и равна:
wg_section1.0001,wg_iris1.0000,wg_post1.0000,wg_step1.0000,wg_window1.0000,wg_bend1.0005,wg_tee0.9999,wg_filter0.9995, лабораторная работаles_lr1_wg1.0004; - сумма больше единицы означала бы энергию из ниоткуда — такого нет нигде;
- |Sij| > 1 не бывает ни при каких потерях — нет нигде.
В планарной микрополосковой модели сумма меньше единицы (0.85…0.98): часть энергии теряется на неидеальности входа плоской волны. Это свойство модели, записанное в паспортах, а не ошибка заданий. В плазменных образцах сумма 0.9996…1.0004.
Сверка с теорией (tools/check_theory.py) — формулы написаны заново и
независимо от программы: сверять генератор с его же паспортом бессмысленно.
| Образец | Теория | Наибольшее расхождение | Допуск |
|---|---|---|---|
| Пустой отрезок волновода | |S21| = 0 дБ | 0.00 дБ | 0.1 дБ |
| Диэлектрический слой ε = 4 | трёхслойная задача через импеданс | 1.80 дБ | 2.5 дБ |
| Индуктивная диафрагма WR-90 | главный член Маркувица | 1.40 дБ | 3.0 дБ |
| Плазменный слой fp = 3 ГГц | ε = 1 − (fp/f)² плюс волноводная дисперсия | 0.08 дБ | 6.0 дБ |
| Т-образный делитель | −3 дБ | 0.41 дБ | 1.2 дБ |
| Четвертьволновый трансформатор | теория линий передачи | 0.20 по модулю | 0.22 |
Две оговорки, честные для любого численного метода:
- Глубже −20 дБ сравнивать нечего. У входа плоской волны в ядре есть остаточное отражение около −25 дБ, не зависящее от шага сетки. Идеальный ноль теории (в точке согласования трансформатора, на прозрачной частоте слоя) численный метод не покажет никогда. Такие точки из сверки исключаются явно.
- Учебниковая формула описывает идеальную схему. У четвертьволнового трансформатора ступеньки между полосками разной ширины имеют реактивность, которой в формуле нет; вне полосы согласования это даёт до 0.2 по модулю. На рабочей частоте схема работает: −22.7 дБ, то есть упирается в тот самый предел.
18. Горячие клавиши и мышь
| Клавиша / действие | Что делает |
|---|---|
V L R C O A G P |
инструменты: выбор, линия, прямоугольник, контур, круг, сектор, дуга, порт |
Ctrl+Z / Ctrl+Y |
отменить / вернуть |
Ctrl+D |
дублировать выделенное |
Del |
удалить выделенное (работает и в списке объектов) |
Ctrl+0 |
вписать холст |
Enter |
закончить ломаную |
Esc |
бросить начатую фигуру |
| Колесо | масштаб |
| Средняя кнопка или Alt+ЛКМ | сдвинуть холст |
| Ctrl+ЛКМ | набрать несколько фигур |
| Shift при рисовании | угол кратный 45° |
| Двойной щелчок | свойства фигуры или порта |
| Правая кнопка | контекстное меню |
Приложение. Как пересобрать это руководство
Для разработчиков TPL Designer; команды выполняются в папке проекта TPL Designer.
# снимки всех окон + подписи
python tools/make_guide_shots.py
# кадры пошагового примера (он же — проверка, что инструкция работает)
# «movie» добавляет непрерывную серию кадров с курсором — из неё и собирается видео
build/gui_shot.exe docs/user-guide/images/tutorial 1400 900 tutorial movie
# видео и GIF из этих кадров
python tools/make_guide_video.py
# это же руководство одним файлом PDF (цель make_pdf должна быть собрана)
python tools/make_guide_pdf.py
Снимки делаются из настоящих окон программы, а пошаговый пример выполняется настоящими событиями мыши и клавиатуры. Руководство, картинки в котором собраны руками, устаревает с первой же правкой окна — здесь это исключено по построению.
После пересборки снимки нужно заново скопировать из docs/user-guide/images/ проекта
TPL Designer в папку пакета docs/screenshots/TPL_Designer/ (с подпапкой tutorial/).
User Manual — TPL Designer (TplDesigner.exe)
The program builds the
.tpltask file for the compute kernels of the TMC Suite package: PlanarRT H (H-mode) and PlanarRT X (X-mode with plasma). You draw the geometry with the mouse and fill in the fields; the program writes the task syntax.You do not need to know the
.tpllanguage. All its pitfalls are closed by the generator code: it physically prevents you from creating a file that the kernel would reject or silently compute wrongly.
Manual version: 2 October 2026 (TPL Designer manual), adapted for the TMC Suite 5.0 package on 23 October 2026. All screenshots in it were taken automatically from the real program windows, and the step-by-step example was run from start to finish by an automated pass and computed by the kernel.
Kernel names. In the TPL Designer windows the kernels are named after the executables of the earlier version of the package:
tmc_rth.exe(H-mode) andtmc_rtx.exe(X-mode). In TMC Suite 5.0 with the new interface the same kernels are calledplanarrt_h.exeandplanarrt_x.exe; the.tpltask is the same for them, and the results match byte for byte.
Contents
- TPL Designer in the package
- In brief: how it works
- Start screen
- Section 1: Calculation
- Section 2: Geometry
- Shape properties
- Port properties
- Section 3: What to compute
- Section 4: Output
- Section 5: Check
- Sample library
- Auxiliary files:
.sigand.eps - Medium calculator
- Settings
- Step-by-step example: waveguide with an iris
- Running the kernel and analysing the result
- Pitfalls the program closes for you
- Hotkeys and mouse
- Appendix. How to rebuild this manual
1. TPL Designer in the package
A computation in the TMC Suite package runs along a chain of three links:
TPL Designer compute kernel viewers
(TplDesigner.exe) PlanarRT H / PlanarRT X
───────────────── → ───────────────────────── → ───────────────────────────────
task <name>.tpl computation by the task; TMCROS — signals .t
(+ _step.h, .sig, writes the result files TMCGROUT — S-matrix .s
.eps next to it) TMC_DN — RP .DAT (.AMP/.FAZ)
FieldView — field .ex and topology .tt
- TPL Designer creates the
.tpltask, a text file in the task language of the package (the language is described in Task file .tpl). Writing it by hand is no longer necessary. - The compute kernel opens the task and computes it: PlanarRT H (
planarrt_h.exe) handles H-polarization, PlanarRT X (planarrt_x.exe) handles the X-mode with plasma and a magnetic field. Working with a kernel: PlanarRT H, PlanarRT X; batch runs from the command line: Headless mode. - The viewers show the results: time signals in TMCROS, the S-matrix in TMCGROUT, the radiation pattern in TMC_DN, the field and the topology in FieldView. They are launched with buttons of the kernel window.
Multi-frequency computation in a single pass (incident wave from a .sig file, a tone comb) is
described in a separate manual, Multi-frequency computation.
1.1. Launching TPL Designer from a kernel
The first toolbar button of a compute kernel (PlanarRT H and PlanarRT X) is New task (TPL Designer):

- Click it. The kernel looks for
TplDesigner.exenext to itself (in the same folder, in theTplDesignersubfolder, in the neighbouring folder..\TplDesigner) and in the package installation folder. - If the program is not found, the kernel asks once where it is (the system dialog
Where is TPL Designer?). Select
TplDesigner.exe: the path is remembered (file%APPDATA%\TMC_Suite_Qt\Paths.ini), and the question is not asked again. - TPL Designer opens in a separate window with the start screen (section 3). While it is open, a green dot is lit on the kernel button; when it is closed, the dot is red.
- Create a task and write it to disk (section 10, “Create task file”).
- Return to the kernel window and open the written
.tpl(File → Open...), then start the computation.
TPL Designer can also be run on its own, by double-clicking TplDesigner.exe.
1.2. Video tutorial and PDF version
The whole path of creating a task is shown in the video tutorial (tutorial.mp4, tutorial.gif): you can see
the cursor, the clicks and how a shape grows under the mouse, so you can repeat it step by step.
The video tutorial and this same manual as a single PDF file (TPL-Designer-rukovodstvo.pdf)
are supplied separately, together with TPL Designer, in the folder of its manual docs\user-guide\
(on the developer's machine: TPL_Designer\docs\user-guide\).
2. In brief: how it works
A task for the kernel is a text file with a C-style preprocessor. It describes: the computational domain and the grid step, the geometry (walls, fillings, plasma), the inputs (ports) and which files the kernel must write.
The program guides you through five sections from left to right:
| Section | What is set in it |
|---|---|
| 1. Calculation | file name, kernel, computational domain, grid step, time, frequencies |
| 2. Geometry | walls, fillings, plasma, ports, drawn with the mouse on the canvas |
| 3. What to compute | which ports to excite, geometry variants, angle sweep |
| 4. Output | which files the kernel writes and in which time window |
| 5. Check | the full task text and writing it to disk |
The sections are available in any order, like a project tree in HFSS. The Next button simply takes you through them one by one.
At the bottom of every section there is a message bar. An error forbids writing the file (the kernel would report it), a warning does not: the user decides.
3. Start screen

| No. | Card | What it does |
|---|---|---|
| 1 | Create a task | a clean canvas and default fields |
| 2 | Open existing | reads an existing .tpl and lays it out over the same sections, including the macro version with _step.h |
| 3 | Take a sample | a library of 46 ready-made devices built to standards |
| 4 | Auxiliary files | make an incident-wave file .sig or a distribution file .eps separately from a task |
Opening is not a “read-only mode”: a task that has been read is edited on the same tabs as your own. If the program did not understand something in the file, it tells you so before you start editing and saving over the original.
Unit after the value. If in the #PARM section a unit line (LONG_UNIT, TIME_UNIT,
FREQ_UNIT) stands below its value, the program asks: “Here a unit is written after its
value - fix it?”. “Yes”: the unit acts on the whole section, as if its line came
first (this is what is usually intended). “No”: it is read as written, so the value above stays in the previous
unit. Since 29.10.2026 the package kernels reject such a task; the program itself always
writes the units first when saving. The file on disk is not changed when it is opened.
“Create” over work in progress asks for confirmation. The program will not silently erase what you have drawn.
4. Section 1: Calculation

① Section tree. A click takes you to any section; no order is imposed.
② Task.
| Field | What it is |
|---|---|
| File name (.tpl) | without the extension. The _step.h and the result files get the same name unless you give them their own |
| Kernel | H-mode — tmc_rth.exe or X-mode with plasma — tmc_rtx.exe (in package 5.0: planarrt_h.exe and planarrt_x.exe). The header in the file itself is always #TMC_RT_H; there is no #TMC_RT_X tag, the mode is determined by the kernel that computes the task. The program writes the correct header itself |
| Canvas ruler units | millimeters, centimeters or meters. Affects only the units in which you enter numbers; the file always gets millimeters |
③ Computational domain.
| Field | What it is |
|---|---|
| X from / X to, Y from / Y to | the bounds of the box in which the kernel computes the field. On the canvas it is the dashed rectangle |
| Grid step DELTA | the node spacing. The run time grows roughly as the cube when it is reduced. The mouse on the canvas snaps to this same step |
| Run time | how many nanoseconds of model time to compute |
Rule for choosing the step: no coarser than λ/20 and no coarser than the smallest detail divided by 4. The medium calculator will tell you the wavelength.
④ Frequency. The Single frequency / Frequency range switch.
- Single frequency gives an ordinary
.tplwith one#STEP. - Frequency range (From, To, Step) gives a macro version:
<name>.tplplus<name>_step.h. The computation step is described once in the macro, and the call lines set the frequencies. They cannot get out of sync by construction.
Below the fields the program writes how many points there will be and in which files.
No more than 99 frequencies can be set in one task. The package takes no more anywhere: not in the
.s file, not in the radiation pattern, not in post-processing; this is hard-coded in the kernel. If
the range gives more, the caption below the fields turns red, writing the task is forbidden, and the
same caption holds two links, two ways out in one click:
- “Take step …”: the program sets the finest step at which there are no more than 99 points;
- “split into several tasks”: turns on the pipeline (below).
The Split into several tasks check box is the pipeline. When it is on, the grid
is divided into <name>_001.tpl, <name>_002.tpl, …, with any number of frequencies (but no more than
99) in each, each with its own .s, and <name>_run.bat and <name>_run.sh are placed next to them,
running everything in turn.
⑤ Auxiliary files: the .sig and .eps workshop (section 12). Next to it are
Medium calculator (section 13) and Home. These buttons are needed on any
page, so they sit under the tree rather than inside a section.
At the bottom is the message bar: it is visible in every section and is updated immediately.
5. Section 2: Geometry

① Tools: what to draw with (table below).
② Canvas toolbar: grid, snap, zoom, undo, settings.
③ Canvas. The dashed line is the computational domain; a shape lying entirely beyond it is an error. At the bottom of the canvas you can see the cursor coordinates and a hint for the current tool.
④ Task objects: a list of all shapes and ports with their material and parameters.
Click to select, select several rows to build a group, Del to delete.
⑤ Selection properties: a short panel: name, material, coordinates, eps profile, plasma. The full set is behind the All properties... button (section 6). Here, too, is a row of commands on the set: Join, Duplicate, Delete.
① Drawing tools
| Tool | Key | How to draw | What it becomes in the task |
|---|---|---|---|
| Select | V |
click to select, drag to move, small squares to resize, arrow to rotate | — |
| Line | L |
click after click, Enter to finish, Esc to abandon |
POLYGON_STAT, a polyline |
| Rectangle | R |
press and drag | RECT_STAT |
| Polygon | C |
a closed polygon | POLYGON_STAT, closed |
| Circle | O |
drag the radius from the center | CIRCLE_STAT |
| Sector | A |
center, radius, then the opening | CIRCLE_STAT with angles |
| Arc | G |
two clicks for the ends, the third for the bulge | a polyline with step DELTA |
| Port | P |
drag along the domain boundary | INPUT_X / INPUT_Y |
About the arc. There are no curves at all in the task language: POLYGON_STAT is a list of
vertices. A round wall in the author's tasks is written exactly like that, as fifty or so vertices.
The Arc tool does this for you: three points uniquely define a circle, and
it is subdivided with the grid step, since the kernel has nothing finer to compute.
② Canvas toolbar
| Button | What it does |
|---|---|
| Undo / Redo | Ctrl+Z / Ctrl+Y, depth 120 steps |
| Grid | show the nodes of the computational grid |
| Snap | snapping to the grid, vertices, lines and corners of the domain |
| eps scale | a color scale for shapes with an inhomogeneous filling |
| Settings… | see section 14 |
Fit (Ctrl+0), Zoom in, Zoom out |
zoom |
Duplicate (Ctrl+D), Delete (Del) |
on the selection |
Snap and ports. The corners of the computational domain are as legitimate a snap target as a shape vertex. At a small zoom the end of a drag sticks to a corner, and the port aperture silently becomes the whole boundary. If that is not what you want, zoom in on the canvas (
Ctrl+0, the wheel) or turn Snap off while dragging. Exact numbers can always be typed in the properties panel.
③ Working with the mouse on the canvas
- Wheel: zoom; middle button or Alt+LMB: pan the canvas.
- Ctrl+LMB: select several shapes (a repeated Ctrl-click deselects).
- Shift while drawing keeps the angle a multiple of 45°.
- Right button: a menu with Properties..., Join into one shape, Duplicate, Delete. With several shapes selected, their number is shown in parentheses.
Important: a selected shape captures the mouse. While a shape is selected, a click on it goes to it, whatever lies on top. Without this, overlapping shapes would be unusable: a body inside a distribution rectangle could not be selected otherwise. If you miss it, the usual top-to-bottom hit test works.
Join into one shape stitches the selected lines, arcs and polygons at their joints,
reversing the pieces as needed. If the ends meet, a closed polygon results. It is more convenient
to select several items as rows in the object list: on the canvas the selection is single unless you
hold Ctrl.
⑤ What can be set in the properties panel
For a shape: Name, Material, Permittivity eps, Density N, Magnetization B, Losses Y, X from/to, Y from/to (rectangle), Center X/Y, Outer/Inner radius, Angle from/to (circle and sector), Rounding radius.
A rectangle can be given a material for each side separately: click a
side on the canvas. A removed side is drawn dashed, so you can see that there is a hole there and not
that it was “forgotten”. In the task such a rectangle is split into separate
polyline blocks: RECT_STAT METAL draws the whole perimeter, and there is no way to
“remove the left wall” inside a single block.
Arc while drawing
Both ends are placed; the third point under the cursor sets the bulge:

5a. Importing geometry from a 3D model
Is the device already drawn in CAD: SolidWorks, Kompas-3D, FreeCAD, Fusion, Blender? There is no need to redraw it with the mouse. The kernel is two-dimensional and computes a single cross-section, so exactly one slice by a plane is taken from the model, and its contours become shapes.
The Import from 3D… button is under the drawing tools. Formats:
| Format | Source | What it contains besides the shape |
|---|---|---|
STEP (.step, .stp) |
the native exchange format of any CAD | body names, colors, materials, units |
STL (.stl, text and binary) |
any CAD, 3D printing | the text variant has the body name (solid …); no units |
OBJ (.obj + .mtl) |
Blender, Fusion, etc. | objects, material names, colors |
The 3D model section window opens:

Three semi-transparent rectangles labelled XY (light blue), YZ (red) and XZ (green) pass through the middle of the part. Click the one you need, or the button with the same name at the bottom.

① What is on screen: the 3D model / What goes into the task switch. You can switch at any moment: move the plane while looking at the model, then switch and check the result.
② 3D view. LMB to rotate, wheel to zoom, middle button or Alt+LMB to pan, a click on a plane selects it. The yellow line is the slice, exactly what will be inserted.
③ Section plane: XY, YZ or XZ.
④ Plane position: a slider and a field in millimeters along its normal (for XY this is the Z coordinate), from one edge of the model to the other. The slice is recomputed immediately.
⑤ Bodies and materials. The material is recognized by the name of the body or material in the file: “Медь”, “Copper”, “PEC”, “AISI 304” give metal; “FR-4”, “Rogers 4003”, “PTFE”, “Фторопласт” give a dielectric with its own eps; “Absorber”, “Поглотитель” give an absorber; “Air”, “Вакуум” are not inserted. Anything not recognized is marked “?”: choose it yourself; the choice is remembered, and a body with the same name will be recognized next time.
⑥ File units: for STL and OBJ, which do not store units, while the model could well be in meters. STEP has units, and the program converts them to millimeters itself. Below are Place the section at the center of the computational domain, Mirror, Rotate by 90° and Enlarge the computational domain if the section does not fit.
⑦ Apply: insert into the task. The shapes appear on the canvas as a selected set:
you can move, rotate or delete them right away. This is one edit: Ctrl+Z removes the whole
import. A line like “Geometry: slice of model
waveguide_iris.step by plane XY at Z = 15 mm” is added to the task description, so a year later you can see where it came from.

The preview is drawn by the same canvas as the editor, on top of the current task, so the picture cannot differ from what will be inserted.

What is done with the slice.
- Metal, magnetic wall and absorber are inserted as an outline: a closed slice as a closed polygon, an open one as a polyline. The kernel draws them along the perimeter.
- A dielectric is inserted as a fill. The kernel can fill only a convex polygon (it paints it with a fan of triangles from the first vertex), so a non-convex cross-section (an L-shaped insert, a ring, a lens with a cut-out) is cut into convex pieces with the same eps. The window says so. Verified by a kernel run: a whole insert and the same insert cut in half give the same scattering matrix to the sixth digit.
- The contour points are thinned to half the grid step: CAD gives thousands of points per circle, and the kernel has nothing to compute finer than the step.
- If the model is “not watertight” (gaps between faces), the contour will not close, and the window says so directly. A dielectric with an open contour is not inserted (there is nothing to fill); walls are inserted as polylines.
There is no link to the model after insertion: these are ordinary shapes, edited like ones drawn by hand. If you change the model, import the slice again.
You can try it on the ready-made models in the data/models/ folder of TPL Designer:
a waveguide with an iris and a PTFE insert (STEP and STL), a sectoral horn and a
patch antenna (OBJ), a tokamak chamber with a solenoid and coils (STEP and STL).
6. Shape properties
The All properties... button or a double click on a shape.

| Field | What it is |
|---|---|
| Name | goes into the task as a comment to the block: when the task is reopened, the shape again has a human-readable name |
| Type | rectangle, polyline/polygon, circle/sector |
| Material | Metal (wall), Magnetic wall, Absorber, Dielectric (fill) |
| Permittivity eps | for a dielectric. You enter eps itself, not the increment: the program substitutes (eps-1) into the file |
| Set eps by formula (inhomogeneous medium) | an inhomogeneous medium: eps(x, y, r, f) is evaluated by the kernel at every node |
| Take a ready distribution from an .eps file | a ready distribution, the FILE block |
| Density N, m^-3 | plasma, X-mode only |
| N profile by formula | the density as a formula of the coordinates |
| Magnetization B, T | works only inside the plasma branch, that is, where N is present |
| Losses Y | dimensionless, work everywhere, including without plasma |
| Rounding radius | turns the corners of a rectangle into arcs |
About materials. Metal, magnetic wall and absorber are an outline: the kernel creates only the perimeter, the field does not pass inside. A dielectric is a region. On the canvas it is drawn that way: outline materials with a thick line, filled ones with a fill and a thin edge.
The edge of a filled region is not a wall. If a filling is assembled from two rectangles (as is done at channel bends), their joint runs inside the channel. It is a block boundary, not a partition: the wave passes through it. That is exactly why walls are drawn on top of fills and thicker, so that one is not confused with the other.
About the eps formula. The formula receives x, y (coordinates from the
shape anchor), r (distance from the anchor) and f.
f is the polar ANGLE, not the frequency. There is no frequency at all in the context of the profile:
the distribution file is frequency-independent, and the kernel applies the frequency factor itself.
The Measure x and y not from the shape center check box lets the formula be referenced not to the center of the shape: in the author's tasks the vessel axis very often lies outside the shape itself, and substituting the center there would silently shift the medium.

About a distribution from a file. In this case the kernel ignores the block coordinates:
the grid lies in the file itself, and the anchor puts the distribution in place. The file must
lie in the task folder, and its step must match DELTA (the kernel checks this to within
1e-5). You can make such a file right in the program (section 12).
7. Port properties
Double-click a port.

① Placement
| Field | What it is |
|---|---|
| Name | goes into the task as a comment to the block |
| Side | left, right, bottom, top boundary |
| Aperture from / to | the size of the port across the direction |
| Permittivity at the port | the medium in the port cross-section. The kernel rejects the file at eps ≤ 0, so zero simply cannot be entered |
| Port plane | the coordinate if the port is not on the domain boundary (the field appears when the port is moved inside) |
Below the fields the program writes what goes into the file and computes the single-mode range of the aperture taking the filling into account.
INPUT_Xis a port along the Y axis. The name refers to the axis along which the excitation runs, not to where the port is. The program chooses the right tag itself; it is enough for you to specify the side.
A port does not have to be on the domain boundary: the kernel places nodes exactly at the anchor coordinate. The kernel derives “left” or “right” itself, from the half of the box in which the coordinate lies. If the direction does not match the half, the kernel silently reverses the incident wave; the program keeps them consistent for you.
In addition, the kernel silently shrinks the aperture by 2*DELTA from the transverse boundaries of the box;
the program warns you if you come too close to the edge.
② Excitation
Everything that determines the radiated wave is here.
Active or passive. Active (radiates): the port creates an incident wave; Passive (receives only): in the task this is a time window lying entirely beyond the end of the run, and a zero amplitude.
Wave type: H10 wave (waveguide) or Plane wave.
The first parameter of a port in the language is the mode, not the signal shape: MAGNETIC is
a plane wave, METAL or empty is H₁₀.
Signal source:
- By kernel formula: the kernel itself computes
a = Amp(t)·sin(2π·FREQ·t + Faza). Fields appear: Signal shape (continuous signal, Gaussian pulse, rectangular pulse), Amplitude, Phase, Pulse center, Duration. - By signal file (any shape): the whole incident wave is set by a
.sigfile, which the program writes next to the task. This is how shapes that the language does not have are set: a tone comb over the whole band in one pass, LFM, a sawtooth, a video pulse, your own formula, your own points. Below, a waveform gallery and the fields of the selected shape appear. Multi-frequency computation in detail: Multi-frequency computation.
The gallery shows a picture, not a name: “monocycle” says nothing to a person who is not a programmer, while a drawing says it at once. Under the gallery is a line about what the selected shape is good for, and at the very bottom of the group are File name and a reminder of which file will be placed next to the task, how many points it has and with what step.
③ What arrives at the port
The plot of a(t) and its spectrum, exactly from the numbers that go into the file. This is not an
illustration but a warning: you can see how a rectangular pulse chops the carrier at the
edges, how the burst ends long before the end of the run and whether the band falls into the
single-mode range of the aperture. Below, as text: what exactly goes into the port line
(Amp = [name], the time window) and which FREQ the program sets for the task.
Broadband port and modes. The scattering matrix from such a run is recovered by post-processing, which assumes a single mode in the aperture. Above the H₂₀ cutoff this assumption is false: the run will go through, the file will be produced, and the number will be wrong. The program warns about this, both about the upper cutoff and the lower one, and about a signal longer than the run time.
How the window changes with the signal shape
The set of fields depends on the selected shape; only those that make sense are shown.
Signal by kernel formula (no gallery at all):

Custom formula a(t): one field instead of frequencies and durations:

Sawtooth: the repetition frequency instead of the band:

8. Section 3: What to compute

This is where you set what makes #STEP self-contained: each step has its own
topology, its own active ports and its own output files. So one task
holds both excitations and several geometry variants, instead of four
files and four runs.
Port excitation. Tick the ports to be excited in turn.
Exciting port j gives a column of the matrix (S1j, S2j, …), and steps with different
excitations write into one .s, filling it completely. For the full 2×2 matrix
tick both ports.
Geometry variants. The Preset: “empty” + “filled” button makes
two variants in one click; Add and Delete make your own. Each
variant has a name and a file tag, and in the What the selected variant includes list
you tick which shapes take part in it. Different variants get different .s files:
they are different devices, and they must not be mixed in one file.
Object rotation by steps (RCS).
| Field | What it is |
|---|---|
| Rotate the object: the next angle at each step | turns on the angle sweep |
| Object: the ticked shapes | they rotate together |
| Rotation axis | by default at the center of the object, and it moves with it |
| Angles from / to / step | the angle grid |
| First step: the same scene without the object | the reference for background subtraction |
At the bottom the page writes what you will get: the number of steps and the file names.
The language does not allow rotating the source: there are two kinds of ports, and the plane wave travels only along the axes. For scattering, what matters is the “wave to body” angle, so it is the object that is rotated. A rectangle becomes a polygon when rotated; magnetization, losses, the eps profile and plasma given by a formula cannot be rotated: this is a validator error, not silent corruption.
The kernel loses angle 0: a point labelled 0 does not get into
.s. The program writes it as 360.
9. Section 4: Output

① Port signals (TMCROS). File name: the .t files with time signals.
This file is written always: the FILE line must come first in #OUTPUT.
The kernel adds the extension itself, so do not put a dot in the name. Viewing: TMCROS.
② Topology for FieldView. Export topology (.tt file): a snapshot of the grid (the
TOPOLOGY; line). It is written once at initialization and costs almost nothing.
It also makes the kernel write .ex, a snapshot of the field at initialization.
③ Instantaneous fields for FieldView. Export fields (.ex, .ey, .hz files) (the
FIELDS; line), and the choice: only at the first step or at all run steps. How to view
fields during and after a run, including by following the kernel: FieldView,
section 8.
Turn fields on only if you are going to look at them. The kernel rewrites the whole grid at every time step, and the run takes many times longer: antennas with fields took 15 minutes instead of seconds.
④ Scattering matrix (TMCGROUT).
| Field | What it is |
|---|---|
| Record the S-matrix (.s file) | turns on SMATRIX |
| File name | without a dot |
| Limit the window (port with a signal file) | present only in a multi-frequency task: take the S-matrix over the window from the “from / to” fields (see below) |
| Recording window from / to | the time window in which the kernel takes the steady-state signal |
The default window is the last quarter of the run. If you change the run time on the Calculation page, the window follows it automatically: a window beyond the end of the run would give an empty file, and the link between two different sections is not visible to a person. Viewing: TMCGROUT.
S-matrix window for a port with a signal file. The Limit the window (port with a signal
file) check box appears
in this group only if the task has an excited port with a signal from a .sig file
(multi-frequency computation in a single pass, Multi-frequency computation). The check box is available when
Record the S-matrix is ticked. By default it is cleared.
| Check box | What the program writes to #OUTPUT |
The Recording window from / to fields |
|---|---|---|
| cleared (default) | SMATRIX <name>; <FREQ>;, without a window: the kernel computes the S-matrix over the whole run, from 0 to TIME |
unavailable |
| ticked | SMATRIX <name>; <FREQ>; <from>; <to>;: the kernel computes over the given window |
available |
It is worth limiting the window when the response at the beginning of the run is not needed (the check box tooltip says the same). The check box applies only to steps where the excited port takes its signal from a file: for a single-frequency step the window is always written, since without it the kernel rejects such a step.
What the check (section 10) says about this window:
- error “the S-matrix window (up to … ns) is beyond the end of the run (… ns) - the file will be empty” if
the window is written to the task (the check box is ticked or the task has a single-frequency step) and
ends later than the run time
TIME. With the check box cleared in a multi-frequency task there is no window in the file, and this error does not arise; - warning “the S-matrix window starts at … ns, but the field in the domain settles no earlier than … ns…” is issued only for a task without a port with a signal file;
- warning “wideband computation: ports '…' (… mm) and '…' (… mm) differ. The port correction in this mode holds for identical ports and a symmetric device - here the answer is approximate; for an exact one use a frequency sweep” if, with a port with a signal file, the ports of the task differ in width or mode. It does not concern the window, but it concerns the same S-matrix of the multi-frequency computation (Multi-frequency computation, item 4.3).
When an existing task is opened, the check box is set from the file: a SMATRIX line without a window means the check box is
cleared, with a window it is ticked, and the “from / to” fields take their values from the file. A line without a window in a task
without a port with a signal file is marked by the program with a warning: “SMATRIX without a T_min;
T_max window is valid only for a port with a signal file - in single-frequency mode the kernel will
reject such a step. When saving, the window from the "Output" page will be written”.
.sis appended to, not overwritten. Delete it before running again, otherwise old data will silently be mixed with the new. The program reminds you of this right below the fields.
⑤ Radiation pattern (TMC_DN). Compute the radiation pattern, the file
name and Accumulation window from / to. Produces the .AMP, .FAZ and .DAT files. Viewing:
TMC_DN.
Below the check box is how much memory the computation will take: the kernel grid and the pattern accumulation.
With an incident wave from a file with several tones (a comb), the kernel accumulates the pattern for
every tone at once (along the edge of the domain, a pair of quadratures per tone) and produces a file
<name>_<MHz>MHz.DAT for each frequency. Memory grows with the number of tones; from 2 GB the caption
turns yellow, and the check issues a warning. The package does not take more than 99 tones: the patterns will be for
the first 99, as both the caption and the window shown when loading such a file will tell you.
⑥ Run time. Measure the run time (/Time key): the kernel writes a report on the
phases of the run to the file <task>.timing_*.txt next to the task. This key is not in the task
itself: it is added to the launch line, so the .tpl file does not change by a single byte from this
check box. About launch keys: Headless mode.
10. Section 5: Check

① What will be computed: a summary: the file name and kind, the domain, the grid step, the time, the frequencies, the list of shapes with materials and of ports. It shows what the program understood from what you drew, before the file goes to disk.
② Task file: exactly the text that will be written to disk. For the macro version both files are shown one after the other.
③ Create task file: choose a folder and write. Next to the .tpl go
_step.h, the .sig signal files and the .eps distribution files, everything without which the task
cannot be computed. After writing, the program shows the kernel launch line.
④ Save as sample: the task goes into the My samples section of the library
(Documents/TPL Designer/Мои образцы/<name>/).
⑤ Memory on this computer: a ring chart of the whole RAM of this PC. The solid light-blue sector is what is already used by the system and programs (updated every three seconds); the hatched ones are what the computation will consume: turquoise for the kernel grid, violet for the radiation pattern (if requested). On the right are the same numbers.
| Fits | Does not fit |
|---|---|
![]() |
![]() |
If the task does not fit into free memory, the hatching and the caption turn red, and outside the ring a red arc shows how much will be missing. This is information only: you can still save the file; it may be computed on a server with more memory. A computation larger than 2 GB needs a 64-bit kernel: a 32-bit one cannot address that much.
Memory per grid node, measured on a server: the H kernel about 52 bytes, the X kernel about 127. A single-frequency pattern is accumulated over the whole domain (32 bytes per node), but if that is more than a quarter of free memory, the kernel itself switches to the edges, and the program computes it the same way.
The write button is unavailable while the task contains an error: the message bar at the bottom says which one. Warnings do not prevent writing.
11. Sample library

① Sections: Waveguides and components (9), Antennas (5), Microstrip (14), Media, plasma, RCS (11), Training tasks (7), My samples.
② Gallery: the picture of each sample is drawn by the same canvas as the editor, so it shows exactly what the kernel will compute. The search box at the top searches by name, section and standard: “waveguide”, “horn”, “plasma”, “WR-90”.
③ Picture of the selected sample. Above it are the name, section, kernel and the standard to which it is built.
④ Parameters. Each sample has its own: a waveguide cross-section by standard, a substrate, a frequency, the number of sweep points. When you change a parameter, the picture and the datasheet are recomputed immediately. The Restore defaults button returns the original values.
⑤ Open in editor: continue working with the sample in the wizard. Next to it is Save .tpl… (write without opening); for your own samples Delete appears.
Below the buttons, by scrolling:
- The task is correct: the result of the check with the current parameters;
- Datasheet: theory: formulas and numbers from the textbook;
- Computed by kernel: numbers from the
.sof a real run with the defaults. Where the kernel differs from the textbook formula, the discrepancy is given as a number; - Problem setup and Notes: what this device is and what to look at.

12. Auxiliary files: .sig and .eps
The Auxiliary files button is on the start screen and at the bottom left of the wizard.
The program writes both files next to the task anyway when they are set in it. But
a ready file is often needed on its own: to put next to someone else's task, to give to a
colleague, to substitute into a .tpl that has already been written. They cannot be made in a text editor: in .sig
the step is tied to the grid step, and .eps is binary altogether.
12.1 Incident-wave file .sig
How the kernel uses an incident-wave file and how to then obtain the S-matrix at many frequencies from a single run: Multi-frequency computation.

① Open existing .sig…: start not from scratch but from an existing file. If the file
was written by this program, it contains the service line @TPLD-SIG, and the shape itself
is restored with all its parameters: edit the fields and save again. A file from elsewhere has no such
line; then only the points are read from it, and they go into the table.
② Waveform gallery. Twelve shapes, each with its own picture: “monocycle” says nothing to a person who is not a programmer, while a drawing says it at once. Under the gallery is a line about what the selected shape is good for.
| Shape | What for |
|---|---|
| Tone comb | the whole band in ONE pass instead of a sweep (a 7.8× gain at ten frequencies) |
| LFM (chirp) | the carrier moves from f1 to f2 over the burst duration |
| Sine burst | N periods; with N = 1 it is a monopulse |
| RF pulse | a carrier under a Gaussian envelope |
| Video pulse | a Gaussian bump without a carrier |
| Monocycle | the first derivative of a Gaussian, zero mean |
| Trapezoid | rise, flat top, fall |
| Sawtooth, Triangle, Square wave | periodic shapes |
| Custom formula | a(t), a single variable, t in nanoseconds |
| Custom table | the points are entered right here (see below) |
③ Shape parameters: only those that make sense for the selected shape are shown.
For the comb these are the amplitude, start, burst duration, lower and upper frequencies and
the number of tones; for the sawtooth, the repetition frequency instead of the band; for a custom formula, a single field
a(t).
④ For which task.
| Field | What it is |
|---|---|
| Grid step DELTA | the step of the task with which the file will go into the computation |
| Run time TIME | the tail of the signal is cut off by it |
| File name | without the extension and without a dot |
The points are written twice as often as the kernel step DELTA/(c·√2); verified by a run: twice as
coarse gives an error of 7e-3, twice as fine 6e-5.
⑤ Result: the plot of a(t) and its spectrum from the very numbers that go into the
file, and a summary line: the write step, the number of points, the file size, the band and the port
matching frequency.
⑥ Save .sig…: write to disk.
Important: with a signal from a file,
FREQis the port MATCHING frequency, not the computation frequency. For a comb and LFM it is put at the center of the band, for an RF pulse at the carrier, for a sawtooth and a square wave at the repetition frequency. A shiftedFREQdoes not break the computation but silently spoils the matching, so the program sets it itself.
Point table: a custom shape without any file
Select Custom table in the gallery, and a point editor appears.

① The Signal points group as a whole: the table itself, the buttons under it and a line saying how many points have been entered and over what time interval they lie.
② Table “time (ns) — value a”. The cells are edited right here, and the time is sorted automatically: the kernel reads the points in sequence and interpolates linearly between neighbours, so it cannot be given a step back in time.
Buttons under the table.
| Button | What it does |
|---|---|
| Add row | a new point after the current one |
| Delete row | remove the selected one |
| Take from waveform | fill the table with the points of any built-in shape, then edit by hand. The shortest path to an “almost comb” or an “almost pulse” |
| Load from file… | two columns of numbers: .sig, .txt, .csv, .dat; lines with ! and # are comments |
| Clear | remove all points |
This is what a normal working order looks like: take a ready shape → adjust the needed points → save. You do not need to bring a ready file in order to make a file.
A table of a hundred points turns into a file of tens of thousands: the program resamples it to the kernel step itself.
What a finished file looks like. Text, two columns “time in TIME_UNIT, value
a”, lines with ! and # are comments, the kernel interpolates linearly between points:
! Incident-wave file for port "port 1" of task msbsf.tpl
! Written by TPL Designer. Incident wave from a file: the shape is in it.
!
! Waveform: Tone comb -- 41 tones 1.5...4.5 GHz with a step of 0.075 GHz, 0...25 ns
!
! @TPLD-SIG kind=0; amp=1; start=0; dur=25; f1=1.5; f2=4.5; tones=41; ...
!
! The #FREQ line names the tones that the kernel puts into the .t header
#FREQ 1.5 1.575 1.65 1.725 1.8 1.875 1.95 2.025 2.1 2.175 2.25 ... 4.5
! t[ns] a
0.000000000 0.000000000e+00
0.000445110 1.284216731e-02
0.000890220 2.567604896e-02
...
24.999598386 7.639277603e-03
The @TPLD-SIG line is a service line: by it the program recognizes the shape again when opening the
file or the task. The #FREQ line is mandatory for a multitone and harmful for a pulse:
finding the tones afterwards from the spectrum is inherently inaccurate, as neighbouring lines shift each other's
peaks (on the tested signal the maximum fell at 2.9973 instead of 3.000 GHz).
Only the beginning of the burst may be smoothed, not the end. A continuous multitone is decomposed by post-processing by fitting harmonics on the steady-state segment, that is, in the last nanoseconds of the run. An amplitude decay falls exactly there: the fit underestimates the incident wave, and
|S21|comes out greater than one. Verified by a run: a discrepancy of 1.9 dB instead of 0.0004.
Save .sig… writes the file. For the kernel to find it, the file must lie
next to the task, and in the port line [name] must stand in place of the amplitude,
without a space before the bracket. The kernel appends the .sig extension itself, but only
if there is no dot in the name.
12.1a Worked example: 10 frequencies from 1 to 100 GHz in one pass
Task: compute a device at ten frequencies from 1 to 100 GHz at once, in one kernel run rather than ten. To do this, a comb of ten tones is fed to the port, and post-processing decomposes the response by frequency.
First, the grid step. The upper frequency is 100 GHz: the wavelength λ = c/f = 300/100 = 3 mm. A wavelength needs 10…20 grid steps; take twenty: DELTA = 0.15 mm. The grid is not chosen by a lower frequency: it is set by the highest one.

① Shape: Tone comb.
② Shape fields: what to enter:
| Field | What to enter | Why |
|---|---|---|
| Amplitude | 1 |
each tone goes with full amplitude, as in a single-frequency computation with Amp = 1; the peak of the sum is about 10, this is normal |
| Signal start | 0 ns |
the signal from the very beginning of the run |
| Burst duration | 20 ns |
equal to the run time: the comb is continuous, and post-processing needs a steady-state segment at the end |
| Lower frequency | 1 GHz |
the first tone |
| Upper frequency | 100 GHz |
the last tone |
| Tones in the comb | 10 |
the tones are spaced evenly: step (100 − 1)/9 = 11 GHz |
The tones are: 1, 12, 23, 34, 45, 56, 67, 78, 89, 100 GHz. If you need others (not evenly spaced), see Custom table below.
③ For which task:
| Field | What to enter |
|---|---|
| Grid step DELTA | 0.15 mm, the same as will be in the task |
| Run time TIME | 20 ns |
| File name | comb_1_100, without a dot and without an extension |
④ Result: check before saving:
- the a(t) plot shows the sum of ten sines, with a peak of about 10;
- the spectrum shows exactly ten lines at equal intervals; the dashed line is the matching frequency;
- the summary line reads: write step 0.000177 ns (kernel step 0.000354 ns) · points 113059,
about 2.6 MB · band 1…100 GHz · matching FREQ 50.5 GHz. The write step is half
the kernel step
DELTA/(c·√2); the program computes it itself.
⑤ Save .sig…: you get comb_1_100.sig. Its header contains a line by
which post-processing recognizes the tones exactly:
#FREQ 1 12 23 34 45 56 67 78 89 100
Where this ends up in the task. If you choose the comb right in the port window
(Signal source: By signal file), there is no need to make a separate file: the program
writes the .sig itself, next to the .tpl:

① Excitation: the same fields as in the workshop. Wave type Plane wave: for an H₁₀ wave in a waveguide, higher modes will inevitably appear over such a band, and the program warns about it.
② What arrives at the port: the plot and the spectrum, and below them what goes into the
task file: Amp = [comb_in1] (the name of the signal file in square brackets in place of the
amplitude) and task frequency 50.5 GHz, the center of the band. The program sets it itself:
with a signal from a file, FREQ is the port matching frequency, not the computation frequency.
In the port line of the task file it looks like this:
INPUT_X MAGNETIC; 2.0; 28.0; 0; 20; [comb_in1]; 0;
The same computation as a sweep. The ten frequencies can also be computed the old way,
in ten steps: the Calculation section, Frequency range from 1 to 100 with a step of 11 GHz.
This is more honest for plasma (the X kernel computes the plasma increment once, from FREQ, and over a
wide band the comb is wrong for plasma), but ten times slower.
Custom table: uneven tones and files from elsewhere
The Take from waveform button moves the comb into the table, after which the points can be edited by hand:

① Point table: time (ns) and value a. Twenty points are taken per period of the upper frequency: for 100 GHz over 20 ns that is 40 001 rows. The table cannot hold more than 50 000 rows; then it is coarsened, and the window says so.
② Take from waveform: fill the table with the points of the selected shape.
③ Line under the table: how many points, over what time interval and how many
tones are in the #FREQ line: the tones go together with the table, and they get into the file.
No more than 99 tones
The package does not process more than 99 frequencies anywhere: not the radiation pattern, not
post-processing, not the .s file; this is hard-coded in the kernel (TMC_DN_MAXFREQ, FREQ_MAX_NUM).
Therefore:
- more than 99 cannot be entered in the Tones in the comb field;
- if you bring a file from elsewhere whose
#FREQline names more than 99 tones, the program immediately tells you so in a window:

- this stays visible under the table: “Tones in the #FREQ line: 120 — the first 99 go into the file”;
- the written file gets the first 99 tones, and the file header will carry the note “WARNING: the signal has 120 tones, but the package takes at most 99…”. The signal itself (the points) is not touched: the remaining tones are in it but are not processed;
- the message bar in any section of the wizard and the window shown when opening a task with such a file say the same.

Why the program cuts and not the kernel. The kernel discards the extra tones silently, and a
#FREQline longer than 2048 characters it loses entirely; the pattern is then built at a single frequency, without a single word. The program writes no more than 99 tones and says so itself.
How much memory the multi-frequency pattern will take: see the Output section (the caption under the RP check box) and the Check page (the memory ring chart, section 10).
12.2 Distribution file .eps

① Open existing .eps…: read a file from elsewhere and see what is really in it: the grid and the values go onto the map, the step and the bounds into the fields. This is how you check a file received from a colleague or written by the kernel.
A file that has been read has no formula and cannot have one: it holds numbers at nodes. So the map shows what has been read as is, and the Back to formula button (it appears nearby) returns the mode in which the distribution is set by an expression.
② Formula eps(x, y, r, f). You enter eps itself; the program computes the increment (eps-1).
Variables: x, y (from the grid origin), r (distance from the origin) and f,
the polar ANGLE in radians, not the frequency.
③ Grid step DELTA. Must match the step of the task: the kernel compares them to within 1e-5 and otherwise does not accept the file. Below are the Origin at the center of the domain check box and the X from…to / Y from…to fields, as well as the file name.
④ Medium map: exactly the numbers that go into the file. Under the map is a line: the grid size, the domain, the eps range and the file size; further down, a check of whether the formula evaluates at all nodes.
⑤ Save .eps…: write to disk.
How the file is organized. A text header with CRLF, followed by binary pairs “value
(double) + linear node number (int)”, traversed by rows (j = iY·nX + iX):
#TamicRTH_planar_DistributionDielectricPermeability_File_V2.00 2000
#TopologyPrimitiv RECT_STAT
#dDelta 0.001 ← step in METERS
#Xmin -0.04 ← origin in METERS, local
#Ymin -0.04
#nX 81
#nY 81
#nPoint 6561
#nAccuracy 8
#sNodeFormat NULL
#sValueFormat NULL
<followed by 6561 pairs: double + int32>
The value holds the eps increment multiplied by the node weight: 1 inside, 0.5 on an edge, 0.25 at a corner. The weight is not decoration: the joining of neighbouring blocks relies on it: on a shared edge 0.5 + 0.5 make one.
The file is frequency-independent. There is no need to recompute it for each frequency: the kernel applies the frequency coefficient itself, anew at every step.
The
FILEblock is read only by a kernel built after 6 September 2026. Older builds stop with “Missing separator ;”.
13. Medium calculator

A reference tool: it does not change the task. All pairs work both ways: enter N
and get the plasma frequency; enter a frequency and get the required N.
① Waveguide: single-mode band. Width a and Filling eps give the H10 cutoff and the H20 cutoff. The note below the fields reminds you: keep the sweep BETWEEN the cutoffs: below H10 the wave does not propagate, above H20 the port is multimode and the S-matrix loses its meaning. Filling with a dielectric lowers both cutoffs by a factor of √(εμ).
② Dielectric. Permittivity eps and At frequency give the wavelength in vacuum, in the
medium, and the refractive index. Here, too, is the reminder that is forgotten most often:
the task file gets the increment eps − 1, not eps itself.
③ Plasma (X-mode). Density N, m^-3 Plasma frequency; Magnetization B Cyclotron frequency.
Example: a = 60 mm, vacuum → single-mode band 2.498…4.997 GHz.
14. Settings

| Group | Setting | What it changes |
|---|---|---|
| Inhomogeneous eps | Fill with a gradient by formula | a shape with a profile is filled with the computed field rather than a flat color |
| Show the value color scale | the eps scale at the side of the canvas | |
| Show eps under the cursor | the value at the point right in the tooltip | |
| Palette | the map coloring | |
| Canvas | Grid | show the nodes of the computational grid |
| Snap to grid and objects | the same as the button on the canvas toolbar | |
| Dimensions of the selected shape | length labels right on the canvas | |
| Behavior | Warn before overwriting an existing file | a question before overwriting |
Changes are applied immediately, at each switch: the same canvas is visible behind the dialog, and the meaning of a setting becomes clear only when the result appears before your eyes. That is why there is no “Cancel” here, only Restore defaults and Close.
14a. Window menu: language and About
Above the start screen and the wizard there is a short menu of two items. There is no File menu on purpose: creating, opening and writing a task are handled by the start screen and the wizard.
| Menu | Item | What it does |
|---|---|---|
| Config | Language / Язык ► | the interface language: “System / Как в системе”, “Русский”, “English” |
| Help | About TPL Designer... | the About dialog |
Do not confuse the Config menu with the Settings… button on the canvas toolbar (section 14): the button opens the editor settings window, while the menu contains only the language choice.
Interface language. The choice is common to all programs of the package and is stored in
%APPDATA%\TMC_Suite_Qt\Common.ini (overview.md, section 6.2). When the language is changed,
TPL Designer recreates its pages (the start screen, the wizard and the sample library)
in the new language. The task in progress is carried over to the new wizard, and the same page
stays on screen (start screen, wizard or library), so nothing you have entered is
lost. Names of shapes and ports are task data: they are not translated when the language changes.
Language of the task text. It has no separate switch: the comments and captions that
the program writes into .tpl (the task header, block captions, sample descriptions) are in the interface
language; the program takes it at startup and at every language change in the menu. The header of a Russian
task begins with the line ! Задание сгенерировано TPL Designer., that of an English one with
! Task generated by TPL Designer.. English text in a task uses Latin characters only. Task
commands (sections, blocks, numbers) do not depend on the language; only the ! comments and captions change.
The program reads existing tasks in both languages, whichever language is selected.
About. The window is the same as in the other programs of the package (overview.md, section 6.6).
The User Manual button looks next to the program for the TPL Designer manual, the file
TPL-Designer-rukovodstvo.pdf (section 1.2); if it is not there, the user manual
on the website opens: www.tamic.ru/docs/user-manual/index.html.
15. Step-by-step example: waveguide with an iris
Let us build a complete task: a section of rectangular waveguide with an inductive iris in the middle, two ports, a frequency sweep over 8.2…12.4 GHz.
The whole pass is recorded in the video tutorial (
tutorial.mp4, section 1.2) and is checked automatically when the TPL Designer manual is built. If a step of the instructions stops working, the pass will report it.
Step 1. Create a task

Start screen → Create.
Steps 2–3. Computational domain


| Field | Value |
|---|---|
| File name | wg_iris |
| X to | 60 mm |
| Y to | 29 mm |
| Grid step DELTA | 0.5 mm |
| Run time | 40 ns |
The waveguide will be 23 mm wide (the WR-90 standard is 22.86 mm; we take a round number so that everything falls on the 0.5 mm grid). The H₁₀ cutoff = c/2a ≈ 6.5 GHz, H₂₀ = c/a ≈ 13 GHz, so the 8.2…12.4 GHz range is single-mode.
Step 4. Frequency range

The Frequency range switch, from 8.2 to 12.4 with a step of 0.21 GHz: 21 points.
Below the fields the program reports that a macro version will be produced, .tpl + _step.h.
Steps 5–6. Waveguide walls


The Geometry section, the Rectangle tool, two drags:
- from (0; 2.5) to (60; 3.0): the bottom wall;
- from (0; 26.0) to (60; 26.5): the top wall.
The wall thickness is one grid step, as in the author's tasks. The walls run from edge to edge of the domain: otherwise the ports would have no walls, and the wave would spread past the waveguide.
Step 7. Iris

Two more rectangles: protrusions towards each other from the top and bottom walls: from (29; 3) to (31; 9) and from (29; 20) to (31; 26). An 11 mm slot remains between them.
Step 8. Exact dimensions

The mouse places a shape approximately; exact numbers are set in the fields. Select the top
protrusion and enter the same X from and X to as for the bottom one: the iris must be
symmetric. At the same time give the shape a clear name: it goes into the task as a comment.
Step 9. Ports

The Port tool, a drag along the left boundary from (0; 3) to (0; 26) and along the right one from (60; 3) to (60; 26). Snapping places the ends on the walls by itself.
The program makes the first port active: passive ports on their own compute nothing.
Step 10. Port properties

Check: the side, the aperture 3…26 mm, Active, H10 wave. At the bottom you can see what arrives at the port.
Step 11. What to compute

For the full 2×2 matrix, tick both ports in the excitation queue. For our example one is enough: we get the column S11, S21.
Step 12. Output

The S-matrix is on, the recording window is the last quarter of the run (30…40 ns). We do not turn fields on: we are not going to look at them, and they would make the run many times longer.
Step 13. Check and write

At the bottom is the full task text. The Create task file button writes
wg_iris.tpl and wg_iris_step.h.
Here is the result (a fragment of wg_iris_step.h):
#TOPOLOGY\\
BLOCK 1;\\ ! waveguide: bottom wall
RECT_STAT METAL; 0.0; 60.0; 2.5; 3.0;\\
END_B\\
BLOCK 2;\\ ! waveguide: top wall
RECT_STAT METAL; 0.0; 60.0; 26.0; 26.5;\\
END_B\\
BLOCK 3;\\ ! iris: bottom protrusion
RECT_STAT METAL; 30.0; 31.0; 3.0; 9.0;\\
END_B\\
BLOCK 4;\\ ! iris: top protrusion
RECT_STAT METAL; 30.0; 31.0; 20.0; 26.0;\\
END_B\\
BLOCK 5;\\ ! port 1 — active
INPUT_X ; 3.0; 26.0; 0; 40; 1; 0;\\
END_B\\
BLOCK 6;\\ ! port 2 — passive
INPUT_X ; 3.0; 26.0; 80; 120; 0; 0;\\
END_B\\
#END_TOPOLOGY\\
Note: the passive port is the window 80…120 ns with a 40 ns run, that is,
it is simply not excited. Line breaks in a macro body are exactly two
backslashes: with one the macro does not assemble and the kernel crashes with abnormal function.
Steps 14–15. Auxiliary files

If the incident wave must be more complex than a sine, make a .sig right here (section 12).
16. Running the kernel and analysing the result
From the kernel window. Open the written wg_iris.tpl in PlanarRT H (File → Open...) and
start the computation; see PlanarRT H (for plasma,
PlanarRT X).
From the command line (batch mode):
planarrt_h.exe wg_iris.tpl /Arb # H-mode, TMC Suite 5.0 package
planarrt_x.exe task.tpl /Arb # X-mode (plasma), TMC Suite 5.0 package
tmc_rth.exe wg_iris.tpl /Arb # H-mode, earlier version of the package
tmc_rtx.exe task.tpl /Arb # X-mode, earlier version of the package
Flags: /Ar is autostart, /Arb adds batch (the window closes by itself), /d adds
demonstration. On macOS the kernels are called PlanarRT_H.app / PlanarRT_X.app, on
Linux planarrt_h / planarrt_x. Keys, exit codes and running many
tasks in detail: Headless mode.
Run from the task folder. The kernel looks for the included
_step.hfile next to the.tpl; it has no path search. Runningtmc_rth.exe wg.tplwithout a path makes it look for the include in the root of the drive.
The preprocessor puts the expanded text next to it: <name>.tpl~$Prepr$~. This is what the kernel
reads, and it is the first thing to look at when debugging: whether the macro was expanded or not.
What our example produced (21 frequencies, the run took about a minute and a half):
| Frequency | |S11| | |S21| | |S11|² + |S21|² |
|---|---|---|---|
| 8.20 GHz | −0.86 dB | −7.44 dB | 1.0000 |
| 10.30 GHz | −2.20 dB | −4.01 dB | 1.0000 |
| 12.40 GHz | −3.86 dB | −2.30 dB | 1.0000 |
The power balance equals one at all frequencies: the walls are metal, there are no losses, and all the energy is divided between reflection and transmission. This is the first check that is always worth doing: if the sum is not one, the error is in the geometry or in the recording window.
The physics is right too: an inductive iris reflects more strongly the lower the frequency. By Marcuvitz's formula, the normalized susceptance of the slot grows with the guide wavelength, and the transmission grows from −7.4 dB at 8.2 GHz to −2.3 dB at 12.4 GHz.
The frequency responses S11, S21 from the .s file are viewed in TMCGROUT.
Output files: .t (signals), .s (S-matrix), .tt (topology), .ex,
.ey, .hz (fields), .em, .ef, .q, .ix, .iy, .eps.
The .f extension does not exist; this is a frequent mistake in old documents.
17. Pitfalls the program closes for you
This list is not “what you must remember” but “what you need not think about”. Each item cost someone time, and each is closed by the generator code. The language itself in detail: Task file .tpl.
| Language pitfall | What the program does |
|---|---|
The header is always #TMC_RT_H, even for the X-mode |
writes the correct one; the mode is set by the choice of kernel |
#EOF at the end is mandatory |
always writes it |
| The encoding is CP1251, not UTF-8 | its own encoding table; the file comes out identical on Windows, macOS and Linux |
CP1251 has no ε, λ, →, ×, ² |
task comments get only eps, lambda, ->, x, ^2 |
| An expression sets the increment ε⁺, not ε itself | you enter eps, the program computes (eps−1) |
INPUT_X is a port along the Y axis |
you choose the side, the program picks the tag |
| The port direction must match the half of the box | keeps them consistent; otherwise the kernel silently reverses the wave |
| The first parameter of a port is the mode, not the signal shape | a separate Wave type field |
POLYGON_STAT does not load with fewer than three L |
a segment is padded with a midpoint |
| A polygon under an expression requires clockwise order and convexity | the generator orders the vertices; non-convexity is an error |
RECT_STAT METAL draws the whole perimeter |
a rectangle with different sides is split into separate blocks |
A line break in a macro body is exactly two \\ |
writes two and checks with a counter |
Parentheses in #define are mandatory (the substitution is textual) |
places them itself |
Before version 5.1 the kernel evaluator did not understand an exponent before an operation (1.24e+17*(…)), and 1e18 without an exponent sign was not considered a number; since 26.10.2026 both forms are read |
numbers are written in full notation, which is also compatible with old kernels |
Before version 5.1 CIRCLE_STAT_B/_Y and POLYGON_STAT_B/_Y were silently read as _N; since 26.10.2026 they are read into their own quantities |
a circle and a polygon for B/Y are laid out as the circumscribed rectangle (compatible with old kernels) |
Before version 5.1 FILE_N/_B/_Y were read as a dielectric; since 26.10.2026 the X kernel reads them into N, B, Y |
the generator does not write them yet (forbids them with an error); see the requirements TPL_Designer/docs/requirements-2026-10-26.md |
More than 99 frequencies do not fit into one .s |
the pipeline cuts the grid into several tasks |
| The kernel loses a point labelled 0 | angle 0 is written as 360 |
| The signal file name is one, but there are many sweep steps | a frequency label is added to the name |
.s is appended to, not overwritten |
the program warns before a run |
What the program does NOT do. It does not reason about the physical meaning of your problem. “The H₁₀ wave will not propagate through such a waveguide” is computed for an empty waveguide, while the generator exists precisely to fill the waveguide. Messages are issued only about what the kernel will reject or silently compute wrongly. Numbers (the single-mode range, the plasma and cyclotron frequencies) are shown by the medium calculator, which is where you ask for them.
17a. What you can trust: library verification
All 46 library samples have been run with the real kernels and checked in two ways; the results are kept in the TPL Designer repository and are recomputed by the commands in the appendix.
Physics check (tools/check_physics.py): invariants that must
hold regardless of the intent of the problem:
- power balance: the sum of |Sij|² over a column. In a closed lossless metal waveguide
it equals one, and it does:
wg_section1.0001,wg_iris1.0000,wg_post1.0000,wg_step1.0000,wg_window1.0000,wg_bend1.0005,wg_tee0.9999,wg_filter0.9995, laboratory workles_lr1_wg1.0004; - a sum greater than one would mean energy from nowhere; this occurs nowhere;
- |Sij| > 1 cannot occur with any losses; it occurs nowhere.
In the planar microstrip model the sum is less than one (0.85…0.98): part of the energy is lost on the non-ideal plane-wave port. This is a property of the model, recorded in the datasheets, not an error of the tasks. In the plasma samples the sum is 0.9996…1.0004.
Comparison with theory (tools/check_theory.py): the formulas are written anew and
independently of the program: checking the generator against its own datasheet would be pointless.
| Sample | Theory | Largest discrepancy | Tolerance |
|---|---|---|---|
| Empty waveguide section | |S21| = 0 dB | 0.00 dB | 0.1 dB |
| Dielectric layer ε = 4 | three-layer problem via impedance | 1.80 dB | 2.5 dB |
| Inductive iris WR-90 | leading Marcuvitz term | 1.40 dB | 3.0 dB |
| Plasma layer fp = 3 GHz | ε = 1 − (fp/f)² plus waveguide dispersion | 0.08 dB | 6.0 dB |
| T-junction divider | −3 dB | 0.41 dB | 1.2 dB |
| Quarter-wave transformer | transmission-line theory | 0.20 in magnitude | 0.22 |
Two caveats, fair for any numerical method:
- There is nothing to compare below −20 dB. The plane-wave port in the kernel has a residual reflection of about −25 dB that does not depend on the grid step. The ideal zero of theory (at the matching point of the transformer, at the transparency frequency of the layer) will never be shown by a numerical method. Such points are explicitly excluded from the comparison.
- The textbook formula describes an ideal circuit. In the quarter-wave transformer the steps between strips of different width have a reactance that is absent from the formula; outside the matching band this gives up to 0.2 in magnitude. At the operating frequency the circuit works: −22.7 dB, that is, it reaches that very limit.
18. Hotkeys and mouse
| Key / action | What it does |
|---|---|
V L R C O A G P |
tools: select, line, rectangle, polygon, circle, sector, arc, port |
Ctrl+Z / Ctrl+Y |
undo / redo |
Ctrl+D |
duplicate the selection |
Del |
delete the selection (also works in the object list) |
Ctrl+0 |
fit the canvas |
Enter |
finish a polyline |
Esc |
abandon the shape being drawn |
| Wheel | zoom |
| Middle button or Alt+LMB | pan the canvas |
| Ctrl+LMB | select several shapes |
| Shift while drawing | angle a multiple of 45° |
| Double click | shape or port properties |
| Right button | context menu |
Appendix. How to rebuild this manual
For TPL Designer developers; the commands are run in the TPL Designer project folder.
# screenshots of all windows + annotations
python tools/make_guide_shots.py
# frames of the step-by-step example (which is also a check that the instructions work)
# "movie" adds a continuous series of frames with the cursor, from which the video is assembled
build/gui_shot.exe docs/user-guide/images/tutorial 1400 900 tutorial movie
# video and GIF from these frames
python tools/make_guide_video.py
# this same manual as a single PDF file (the make_pdf target must be built)
python tools/make_guide_pdf.py
The screenshots are taken from the real program windows, and the step-by-step example is performed by real mouse and keyboard events. A manual whose pictures are assembled by hand becomes outdated with the very first change to a window; here that is ruled out by construction.
After a rebuild, the screenshots must be copied again from docs/user-guide/images/ of the
TPL Designer project to the package folder docs/screenshots/TPL_Designer/ (with the tutorial/ subfolder).



