История изменений и исправленные ошибки
Здесь перечислены нововведения и устранённые ошибки пакета TMC Suite,
которые видны пользователю. Технический журнал разработчика — в файле ISSUES.md
в корне проекта.
29.10.2026 — исправления по ответам автора
Исправления и уточнения по ответам автора от 29.10.2026. Внесены в новую версию пакета (Qt 6). Подробности — в разделах руководств, на которые даны ссылки.
Язык заданий .tpl (оба ядра)
- Каждый шаг
#STEP— независимая задача: в секции#PARMкаждого шага обязательныX_MIN,X_MAX,Y_MIN,Y_MAX,DELTA,TIME,FREQ. Если хоть один не задан — ошибка разбораSection #PARM: missing ...; шаг без#PARM— ошибкаMissing section #PARM in ... step .... Раньше недостающие параметры молча брались из предыдущего шага. Строки единиц не обязательны и действуют до следующей строки единицы, в том числе в следующих шагах. В 23 заданияхsamples\SAMPLE_Rи двух заданиях регрессии параметры дописаны, их результаты не изменились (Файл задания .tpl, раздел 4). - Строка единицы ниже своей величины в той же секции
#PARM— теперь ошибка разбора (... the unit is written after its value ...). Раньше, например,FREQ 7.2;вышеFREQ_UNIT MHz;молча считалась как 7,2 ГГц (раздел 4). N_UNITиB_UNIT: допустимы толькоN_UNIT m3;иB_UNIT Tl;— ядро считает N только в м^-3, B только в Тл. Другие единицы (cm3,mm3,mTl,mkTl) — ошибка разбора; раньше они принимались, а значения молча брались в м^-3 и Тл (раздел 4.10).- Вес узла блока одинаков для прямоугольника, круга и многоугольника: внутри — 1, на стороне — 1/2, в углу — 1/4; у круга и многоугольника он определяется по четырём соседям узла по сторонам (раньше — по диагональным точкам). Эффективный радиус круга в сетке меньше заданного примерно на полшага (раздел 5.7.1).
- Поглотитель
ABSORBERв диэлектрике и в плазме: нагрузка считается по среде каждого его узла. Волновод в диэлектрике eps = 2 и 4: |S11| 0,0036 и 0,0017 при теории 0,0038 и 0,0019 (раньше 0,16 и 0,32). Если в среде узла волна не распространяется — предупреждениеWARNING: N absorber nodes are in a medium where the wave does not propagate ..., поглотитель там не поглощает (раздел 5.1). - Уточнено в документации (так задумано): запасной столбец и строка сетки — на шаг Delta дальше
X_MAXиY_MAX(раздел 4.7); контур интегрирования ДН — на 10 шагов отX_MIN/Y_MINи на 8 шагов отX_MAX/Y_MAX, на ДН это не влияет (раздел 7.5); расстановка стенокMAGNETICу порта плоской волны — по образцуTEST025.TPL(раздел 5.5).
PlanarRT X
- Порт плоской волны (
INPUT_X/INPUT_Y MAGNETIC), стенкаMAGNETICкоторого касается края порта, теперь согласован: раньше |S11| было не лучше 0,23, теперь X-ядро даёт те же числа, что H-ядро. - Поглотитель и стенка
MAGNETICв подмагниченной плазме считаются по (7.55) диссертации — со шлейфами y6, y7 (раньше без них; ошибка первого порядка по шагу). Таблицы 9.4–9.5 диссертации повторены до 4-го знака. Такой расчёт идёт на процессоре (PlanarRT X, раздел 8.6). - Узел, где Delta eps и N в сумме дают ровно 0, считается вакуумом (раньше — NaN во всём поле) (раздел 8.3).
- Уточнено: потери Y и sigma действуют и в узлах без плазмы (среда с потерями); модель плазмы — без столкновений (раздел 8.2).
Многочастотный расчёт
- Участок подгонки гармоник непрерывного многотона — ровно окно строки
SMATRIX, автоматически не выбирается (Многочастотный расчёт, п. 4.1). - Ограничение поправки порта: она рассчитана на одинаковые порты и симметричное устройство; для портов разной ширины или несимметричного устройства нужен свип (п. 4.3).
Программы просмотра
- TMCROS и ядро: предупреждение, если в окно
SMATRIXпопали пары отсчётов с нулём (волна ещё не пришла); усреднение не меняется (TMCROS, раздел 6.3.2). - TMCGROUT: формула кривой — в одних фигурных скобках
{...}; запись{{...}}— ошибка: кривая не строится (TMCGROUT, раздел 6.2.1). - TMC_DN: сектор излучателя FiMin…FiMax работает для любых секторов, в том числе содержащих 0 и 180 градусов одновременно; раньше такой излучатель молча выпадал из ДН (TMC_DN, раздел 2.4).
Версия 5.1 (26.10.2026)
Исправления и уточнения по ответам автора от 26.10.2026. Внесены в новую версию пакета (Qt 6). Подробности — в разделах руководств, на которые даны ссылки.
Язык заданий .tpl (оба ядра)
- Порядок строк в
#PARM: сначала строки единиц (ANGLE_UNIT,FREQ_UNIT,LONG_UNIT,TIME_UNIT), потом значения. Величина переводится в единицы в момент чтения своей строки; единица, стоящая ниже величины, на неё не действует (Файл задания .tpl, раздел 4). - Единицы плазмы фиксированы: N — всегда м⁻³, B — всегда Тл; единицы длины секции параметров относятся только к геометрии (раздел 4.10).
- Сетка: число узлов считается один раз при чтении границ и шага; запасной столбец справа и
сверху — как раньше. Исправлено: на некоторых сетках (например,
X_MAX 1000/DELTA 0.5,Y_MAX 16/DELTA 0.2) терялся столбецX_MAX— вход на краю давал полное отражение. Шаг без строк границ получает ту же сетку, что и предыдущий (раньше сетка росла на шаг с каждым шагом) (раздел 4.7). - Значение на границе блока ополовинивается, в углу делится на четыре — для всех величин (ε, N, B, Y, σ) (раздел 5.7.1).
- Части блока за границей области отбрасываются (раньше прижимались к крайнему столбцу и деформировали блок) (раздел 6).
- Магнитная стенка и поглотитель (
MAGNETIC,ABSORBER, в том числе уCIRCLE_STATиPOLYGON_STAT) — толщиной в ячейку (2×2 узла); наклонные стороны теперь сплошные, без диагональных просветов. Магнитный круг у края области обрабатывается так же, как магнитный многоугольник (разделы 5.1, 5.3). - Прямоугольный поглотитель (
RECT_STAT ABSORBER) — двойное кольцо узлов по периметру блока — теперь замкнуто и тогда, когда граница блока лежит точно на узле сетки (раньше в двух углах не хватало узла); толщина блока должна быть не меньше 2·DELTA. Результаты меняются в 4–5-м знаке. CIRCLE_STAT: полный круг —F_maxдо 2π + 10⁻¹²; точное 2π и 360° дают полный круг (раздел 5.3).- Уточнено в документации (так задумано):
POLYGON_STAT METAL— ломаная, сама не замыкается (для замыкания повторяют первую вершину), диэлектрический многоугольник замыкается всегда (раздел 5.4); файл распределения ε (FILE) — только для прямоугольника, всё вне фигуры в файле — нули (раздел 5.6). - Выражения: число с порядком перед операцией — без скобок (
1.24e+17*(…),1e18); отрицательное основание с целым показателем считается ((−2)^3 = −8,(x−5)^2), дробный показатель при основании ≤ 0 и0^0— ошибка;a^b^c = a^(b^c); координаты x, y и время t передаются в формулы с полной точностью (раньше 6 значащих цифр — на больших координатах формула ε(x) становилась ступенчатой) (раздел 9.1). - Вход (порт): амплитуда ≠ 1 и фаза ≠ 0 допустимы — S-матрица делится на падающую волну
возбуждённого входа (S = Uo/Up; при |Up − 1| < 10⁻³ деления нет). Фаза в градусах
(
ANGLE_UNIT gradus) считается верно (раньше делилась на π/180 вместо умножения). Минус перед фазой — запаздывание. Переменныеtилиfв 8-м параметре входа — ошибка разбора (раздел 5.5).
Выходные данные #OUTPUT (оба ядра)
SMATRIXв одночастотном режиме: частота обязана равнятьсяFREQшага, иначе — ошибка разбора с подсказкой (раньше S считалась наFREQи молча подписывалась другой частотой). ОкноTmin; Tmax;обязательно и ставится с момента установившегося режима (Файл задания .tpl, раздел 7.4).- Многочастотный режим: окно
SMATRIXтеперь учитывается;SMATRIX имя; F;без окна — полное окно 0…Tmaxзадания. Если отклик импульса к концу окна не затух или окно начинается во время падающего импульса — предупреждение; S-матрица записывается (Многочастотный расчёт, п. 4.1). - Свип не обрывается на ошибке: на частоте шага с ошибкой в
.s— нули, сообщениеError at step N (f): …, расчёт идёт дальше; в конце — код возврата 2 и список шагов с ошибками. В многочастотном режиме нули только на частотах с ошибкой. S, не являющаяся числом (NaN, Inf), — ошибка, а не NaN в файле (Работа без окон, п. 1.4). - Окно диаграммы направленности (
FIELD_DISTRIBUTION,FIELD_DISTRIBUTION_M): длина окна округляется вверх до целого числа периодов без лишнего периода. Окно должно кончаться раньшеTIME; окно, кончающееся ровно наTIME, не закрывается — файлов ДН нет, ошибка, код 2 (Файл задания .tpl, раздел 7.5).
PlanarRT X
- Подмагниченная плазма исправлена: знак коэффициента — по формуле (5.49) учебного пособия.
Раньше поле B только ослабляло плазму и у необыкновенной волны не было окон непрозрачности;
теперь непрозрачные области (например, 72 ГГц, N = 2·10¹⁹ м⁻³, B = 1,8…2,1 Тл; 52 ГГц при 1 Тл)
совпадают с теорией холодной плазмы. При B = 0 результат прежний. N и B в файле топологии
.ttвосстанавливаются верно (PlanarRT X, раздел 8.4). - Новые блоки проводимости
RECT_STAT_S,CIRCLE_STAT_S,POLYGON_STAT_S— потери σ в См/м; ядро пересчитывает их в сеточные потери Y = 2·dT·σ/ε₀, поэтому одно и то же σ даёт одно и то же затухание на любой сетке. Блоки*_STAT_Y— как были. Проверка: слой σ = 0,1 См/м на 72 ГГц — |T| = 0,347 (DELTA0,2 мм), 0,349 (0,1 мм), теория 0,355 (Файл задания .tpl, раздел 5.7.3). - Плазма из файла:
FILE_N,FILE_B,FILE_Yчитают N, B, Y из файла распределения (записывается блокомRECT_STAT_N [имя]…и т. п.); файл другой величины — ошибка с причиной. Раньше эти блоки не работали (раздел 5.7.4). CIRCLE_STAT_B/_Y,POLYGON_STAT_B/_Yчитаются в свои величины B и Y (раньше молча шли в N).- Предупреждения (консоль и строка состояния): положительная добавка ε вместе с плазмой N в
одних узлах (узел считается как плазма, добавка верна только на
FREQ; если добавка больше плазменной части — расчёт этих узлов расходится); поле B в узлах с положительной добавкой ε без N не используется (раздел 5.7.2). - Уточнено в документации (так задумано): добавку ε, отличающуюся от 4 меньше чем на 0,004, ядро X сдвигает до 3,996 или 4,004 — без этого алгоритм расходится (раздел 5.1).
- Поглотитель и магнитная стенка X-ядра исправлены: узел поглотителя брал не проводимость своего шлейфа, а нормировочный множитель (ошибка переноса из H-ядра). Теперь поглотитель X отражает так же, как поглотитель H и как предсказывает теория (раздел 7.2 докторской диссертации К. Н. Климова, 2007): в волноводе 12 мм — |S11| = 0,0256 / 0,0075 / 0,0038 на 40 / 72 / 100 ГГц (было 0,0261 / 0,0121 / 0,0139). Поглотитель согласован на нормальное падение; остаточное отражение моды волновода равно (1 − cos γ)/(1 + cos γ), где γ — угол парциальной волны моды.
- В H-ядре блоков
*_STAT_SиFILE_N/_B/_Yнет — ошибка «Unknow type block».
TMCROS и TMCGROUT
- Новый пункт меню Настройки → «Разворот фазы: стандартный (порог π)» (в английском интерфейсе — Config → «Phase unwrapping: standard (threshold pi)»). По умолчанию флажок снят: фаза в графиках-выражениях разворачивается как раньше — монотонно убывает (по теореме Фостера); с флажком — стандартный разворот с порогом π. Выбор запоминается (TMCROS, раздел 5.4.3; TMCGROUT, раздел 5.4.3).
- TMCROS, «В S-матрицу»: S-матрица делится на падающую волну (S = Uo/Up); для широкополосного файла учитывается окно Tmin…Tmax, предупреждение о незатухшем отклике показывается окном сообщения; S, не являющаяся числом, — ошибка (TMCROS, раздел 6.3).
TMC_DN
- КНД и КИП для двумерной задачи (один срез): КНД = 2π·max|F|² / ∫₀^2π |F(φ)|² dφ, КИП = КНД / КНД равноамплитудной синфазной решётки той же геометрии. Теперь верны при любом числе излучателей и не зависят от масштаба амплитуд (раньше при N ≤ 400 получалось, например, 19,8 дБ вместо 7,74 дБ для 4 изотропных излучателей через λ/2, а амплитуда 2 давала ещё +6 дБ; при N > 400 интеграл брался по грубой сетке углов). При N > 400 величина «Kip» — излучённая мощность, как и было (TMC_DN, раздел 2.4).
Версия 5.0 (октябрь 2026)
Новый интерфейс (Qt 6)
- Все программы пакета получили новый интерфейс на библиотеке Qt 6:
planarrt_h.exe,planarrt_x.exe,tmcros.exe,tmcgrout.exe,tmc_dn.exe,fieldview.exe. Расчётная часть ядер перенесена из прежней версии без изменений: на проверочных заданиях результаты совпадают с MFC-версией. Знакомство с пакетом — Знакомство с пакетом. - Тёмная тема с бирюзовыми акцентами, единая для всех программ; новые значки программ и кнопок.
- Русский язык интерфейса. Меню, окна, подсказки и стандартные окна переведены. Язык выбирается в меню Настройки → Language / Язык (русский, английский, как в системе).
- Индикаторы на кнопках. У переключателей «Топология», «Поле», «Синхронизация», «Звук», «Автозапуск» зелёный кружок — включено, красный — выключено. У кнопок программ просмотра («Выходной сигнал», «Поле и топология», «S-матрица», «Диаграмма направленности») зелёный кружок — программа сейчас открыта, красный — закрыта.
- Ход расчёта в строке состояния ядра: полоса хода (одна на весь расчёт), этап («Подготовка: препроцессор / блоки / сетка», «Шаг 2 из 3 · Расчёт 45%», «Готово»), номер такта, что выводится и на чём идёт расчёт («Расчёт: GPU — …» или «Расчёт: CPU»).
- Кнопка «Новое задание (TPL Designer)» в ядрах запускает TPL Designer.
- Печать открывает системное окно печати Windows; можно печатать в PDF через «Microsoft Print to PDF».
- Установщик
TMC_Suite_5.0_Qt6_Setup.exe(тёмный мастер, выбор языка, установка для всех или только для себя, связи с типами файлов пакета) и вариант без установки — папкаTMC_Suite_Qt6_win64. Ставится рядом с прежней MFC-версией. - Установщик Qt6: доработки. Если TMC Suite 5.0 уже установлена, мастер спрашивает, обновить ли её; если прежняя копия стоит в другом режиме (для всех / только для себя), предупреждает, что новая установка будет второй копией. Английский мастер показывает лицензию на английском языке. Последняя страница мастера открывается без задержки. Подробно — Знакомство с пакетом, раздел 4.2.
- Руководство пользователя на английском — PDF
TMC_Suite_5.0_User_Manual.pdfи на сайте. Кнопка «Руководство пользователя» в окне «О программе» открывает PDF на языке интерфейса, а если его рядом с программой нет — руководство на сайте (Знакомство с пакетом, раздел 6.6). - FieldView:
F1(Справка → Руководство пользователя) открывает PDF руководства из поставки.
TPL Designer в составе пакета
- TPL Designer (
TplDesigner.exe) — программа для создания задания.tplбез ручного написания текста: геометрия рисуется мышью, параметры задаются в окнах, программа пишет корректный файл. Умеет также создавать файлы падающей волны.sigи распределения ε. Подробно — TPL Designer.
Расчёт на видеокарте
- Ядра PlanarRT H и PlanarRT X ведут цикл по времени на видеокарте (OpenCL; нужен только обычный драйвер NVIDIA или AMD, CUDA не нужна). На RTX 5070 Ti ускорение цикла по времени — от ×10–12 на 1 млн узлов до ×36 на десятках миллионов узлов.
- Результат совпадает с процессором бит в бит (проверено на 44 заданиях, включая плазму, магнитные стенки, поглотители, файлы распределения ε).
- Окно Настройки → Расчёт на видеокарте…: поиск карт, самопроверка, оценка ускорения,
флажок «Использовать видеокарту для расчётов». Ключи командной строки
/GPU,/GPU:n,/CPU. - Маленькие сетки (меньше 150 тыс. узлов H / 60 тыс. узлов X) и задания, не помещающиеся в память карты, ядро само считает на процессоре.
- Подробно — Расчёт на видеокарте.
Многочастотный расчёт
- Падающая волна из файла. У входа на месте амплитуды пишется имя файла в квадратных
скобках (
[wg_multi]); файл.sig— две колонки «время, значение» и строка#FREQсо списком частот. - Свип за один проход. Ядро при
SMATRIXсамо пишет в.sвсе частоты полосы; TMCROS («В S-матрицу») делает то же из.t. Рассогласование металлического порта на частотах, отличных отFREQ, снимается автоматически. Проверка: 10 частот за 4,5 с вместо 35,1 с, расхождение со свипом 0,0016 дБ и 0,01°. - Многочастотная диаграмма направленности: при
FIELD_DISTRIBUTION_M— отдельный файл<имя>_<МГц>MHz.DATна каждую частоту сигнала. - ДН по границе области. Для диаграммы направленности ядро может хранить поле только в
полосах вдоль краёв области. Включается само: при многочастотном сигнале и на задачах, где
хранение по всей области заняло бы больше четверти свободной памяти. Файлы
.DATпри этом те же. - Подробно — Многочастотный расчёт.
Пакетный режим и время расчёта
- Коды возврата ядер в пакетном режиме (
/Ar,/Arb): 0 — всё посчитано, 1 — ошибка в задании, 2 — ошибка при счёте, 3 — расчёт остановлен. Ход расчёта и текст ошибки пишутся в консоль, из которой запущено ядро./Arbзакрывает окно всегда,/Arпри ошибке оставляет окно открытым. - Отчёт о времени расчёта: окно «Время расчёта» (Статистика → «Время расчёта…», «Экспорт в
TXT…») и ключ
/Time— отчёт<имя>.timing_H_win64.txtрядом с заданием. - Подробно — Работа без окон.
Ускорение построения блоков
- Блоки с ε и плазмой, заданными формулой от координат, строятся в несколько потоков; часть ядер процессора оставляется Windows, потоки работают с пониженным приоритетом. Выражение без координат вычисляется один раз на блок. Пример: блок 50 млн узлов с формулой — 168 с → 36 с.
Новый FieldView
- Слежение за расчётом: поле приходит от ядра во время расчёта (в ядре включены «Поле»,
«Топология», «Синхронизация», в FieldView — «Следить за расчётом»). Полученные такты
запоминаются, их можно пролистать ползунком; серию тактов можно сохранить в файл
.ex.frames. - Панель «Такты»: первый/предыдущий/пуск-пауза/следующий/последний такт, ползунок, «контраст ×», «Значение в точке», «Уровни цвета».
- Сохранение изображения (PNG) и экспорт анимации — GIF или серия кадров PNG (с такта, по такт, каждый k-й такт, кадров в секунду, ширина).
- Окно «Параметры вида» с вкладками «Размещение», «Топология», «ε и плазма», «Поле».
- Подробно — FieldView.
Исправления 23.10.2026 в окнах новой версии
| Что было | Что стало |
|---|---|
| В некоторых окнах не нажимались кнопки и поля (TMC_DN «Параметры окна» — «Графики», «Нормировка», «Прореживать»; TMCGROUT — кнопки цветов и шкалы; TMCROS «В S-матрицу» — «Изменить», Xmin, dX, единицы, Tmin/Tmax): рамка группы перехватывала щелчок | Рамки групп пропускают щелчки, все элементы окон доступны мышью |
| Переключатели читались неправильно: в TMC_DN не применялась шкала «ДН, дБ», в TMCGROUT выбор «Потери, дБ» давал «Фаза S, град» | Переключатели в окнах работают правильно |
| В TMC_DN «ОК» в окне «Отклонения по исходному файлу» и кнопки окна «Рассчитать отклонение ДН» «не работали»: сообщения об ошибках не показывались | Сообщения об ошибках во вьюверах и FieldView показываются окном сообщения |
| Полоса хода расчёта «бегала» и дёргалась, в русском интерфейсе проценты не показывались | Полоса заполняется один раз за весь расчёт («Шаг 2 из 3 · Расчёт 45%»), подготовка — подписью |
| Не было видно, включены ли «Звук» и «Автозапуск» (пакетный режим) | Значки «вкл./выкл.» с зелёным/красным кружком; у выключенного звука динамик перечёркнут |
| «Печать» в ядре ничего не делала | Открывается системное окно печати |
| Мелкие кнопки «ОК»/«Отмена» в стандартных окнах и окне видеокарты | Кнопки нормального размера |
| Подсказки на кнопках переводились с искажением | Подсказки переводятся заранее и показываются одной строкой |
| В FieldView был бесполезный ползунок «кадр/с» | Убран: темп задаёт расчёт; частота кадров задаётся только при записи GIF |
| Английские тексты в окне видеокарты и стандартных окнах; две вкладки «Мелодия» | Тексты переведены; вкладки «Мелодия 1» и «Мелодия 2» |
Исправления 23.10.2026 в счётных ядрах и вьюверах
Исправления внесены и в новую, и в MFC-версию. В правильно поставленных заданиях числа не изменились (проверено побайтной регрессией на 45 заданиях); изменилось поведение в ошибочных ситуациях — вместо молчаливого неверного результата теперь сообщение об ошибке.
| Как проявлялось | Что стало |
|---|---|
Ошибка во время счёта (в выражении Amp/Faza, файле .sig, поглотителе) терялась: итог «OK», S-матрица и ДН по оборванному сигналу |
Ошибка доходит до итога, код возврата 2 |
Задание с длинной серией пустых строк или комментариев (например, podst__R.tpl) роняло ядро |
Считается |
При объединении в один .s частот с разной структурой портов данные писались неверно |
Каждая частота пишется по своей структуре |
Многочастотный сигнал без строки #FREQ — .s не создавался |
.s создаётся (частоты находятся по спектру) |
Многочастотная ДН с FIELD_DISTRIBUTION (без _M): все частоты по одному полю |
Ошибка «needs FIELD_DISTRIBUTION_M» |
Частота ниже отсечки порта давала nan во всём поле с итогом «OK» |
Ошибка «Frequency … is below cutoff of port» |
Если .t занят другой программой (например, открыт в Excel), папка только для чтения или диск полон, ядро зависало, «Стоп» не помогал |
Около 20 с попыток, затем ошибка «Can't open file …» |
| Слишком длинное описание блока (больше 20 000 символов) роняло ядро | Ошибка «Block N is too long» |
| Окно ДН кончалось после времени расчёта — файлов ДН нет, итог «OK» | Ошибка «Directional pattern window ends … after the calculation time» |
Ключи /Ar, /Arb, /d находились внутри пути (папка \data\ включала демо и автозапуск) |
Ключ — только отдельное слово вне кавычек |
Запуск по имени .tpl без пути — результаты в корне диска |
Результаты — в папке задания |
| При вводе поля с включённой синхронизацией расчёт тянулся часами (до 25 с ожидания FieldView на такт) | В пакетном режиме ядро FieldView не ждёт; в обычном — после одного неудачного ожидания не ждёт, пока FieldView не прочитает файл |
| Окно «Список блоков» портило память на многоугольниках с 11 и более вершинами | Показываются первые 10 вершин |
Временный файл препроцессора писался в текущую папку процесса (при запуске из System32 — «Can't open file») |
Пишется в папку задания |
| Многочастотная ДН в X-моде молча строилась на одной частоте | Строится на каждой частоте, как в H-моде |
Ошибка перевода в S-матрицу терялась: .s нет, итог «OK» |
Ошибка доходит до итога, код 2 |
Больше 20 портов или больше 99 частот — испорченный или неполный .s без сообщения |
Ошибка записи .s, код 2 |
Нечитаемый существующий .s молча заменялся новым — накопленный свип пропадал |
Ошибка; новый файл создаётся, только если старого нет или он пустой |
TMCROS, TMC_DN и ядра падали, если .t не открылся |
Сообщение об ошибке |
Home/End роняли вьювер, если у видимого графика нет точек |
Исправлено |
Последняя строка .tos/.soc без перевода строки теряла символ (порт «12» читался как «1») |
Исправлено |
| Порт шириной 1–2 узла молча не возбуждался | Ошибка «Port block N has K nodes, need at least 3» |
| Нехватка памяти во время шага оставляла окно «в счёте», оно не закрывалось | Ошибка расчёта, код 2 |
| Частоты многочастотной ДН и режим «по краям» переходили в следующий шаг задания | Сбрасываются в начале каждого шага |
Документация
Справочник входного языка .tpl (2026‑07‑15)
-
Добавлено руководство «Файл задания
.tpl— как его создать». Раньше документация описывала лишь отдельные параметры на примере готового файла; теперь есть методика составления задания с нуля (чертёж → «коробка» → декомпозиция на блоки → выбор шага сетки) и полный справочник входного языка: все ключевые слова, все графические примитивы с рисунками, препроцессор (#define,#include, выражения), частотный свип, типичные ошибки. Восстановлено по авторскому руководству «TAMIC‑Rt H, версия 2.0p» (2000) и сверено с кодом. -
Исправлены ошибки в руководствах ядер. По итогам сверки с кодом:
- расширения выходных файлов. Указывалось несуществующее
.fдля распределения поля; на самом деле ядро пишет.ex,.ey,.hz,.em,.ef. Расширение.tf— историческое (версия 2.0p), текущий код его не создаёт; INPUT_X/INPUT_Y. Описывались как «вход по оси X/Y». На самом делеINPUT_X— вход вдоль оси Y (на левой или правой границе, размеры задаются по Y),INPUT_Y— наоборот;- первый параметр входа. Описывался как «возбуждение
U(y)». На самом деле это мода (MAGNETIC— плоская волна,METALили пусто — волна H₁₀); амплитуда и фаза задаются необязательными параметрами 6 и 7; - материал
MAGNETIC(стенка холостого хода) отсутствовал в списке материалов; - секция
#OUTPUT— не были описаныSMATRIX,FIELDS,TOPOLOGY.
- расширения выходных файлов. Указывалось несуществующее
-
Уточнён формат файла
.eps(распределение ε) в API‑документации: точная раскладка заголовка и бинарного массива, совместимость файлов одинарной и двойной точности.
Новые возможности
Плазма и подмагничивание (X‑мода)
-
Расчёт плазмы в ядре
tmc_rtx(PlanarRT_X). Поддержаны блоки задачи.tpl:RECT_STAT_N— концентрация электронов N (м⁻³, СИ) → плазменная частота ω_p;RECT_STAT_B— внешнее магнитное поле подмагничивания B (Тл) → циклотронная частота Ω;RECT_STAT_Y— потери Y плазмы.
Величины B и Y действуют совместно с перекрывающим блоком
RECT_STAT_N(замагничивать/вносить потери имеет смысл только там, где есть плазма). -
FieldView: визуализация плазмы. В FieldView добавлен режим отображаемой величины (меню View → Eps → Type и 4 новые кнопки панели инструментов EPS · N · B · Y): можно смотреть проницаемость ε, концентрацию N, магнитное поле B или потери Y. Кнопки N/B/Y активны, только если в открытом поле есть соответствующая плазма (см. раздел «FieldView», п. 5.3.2.1).
Прочее
- Диаграмма направленности из X‑моды. Ядро
tmc_rtxтеперь создаёт файлы ДН (.AMP,.FAZ,.DAT) — раньше их формировала только H‑мода. Диаграмма X‑моды совпадает с H‑модой для незамагниченного случая. - Ссылка на документацию в окне «О программе». Во всех программах пакета в окне About добавлена гиперссылка на локальную документацию.
Исправленные ошибки
| Симптом (как проявлялось) | Что стало |
|---|---|
| Кнопка «Статистика» в H‑ и X‑ядрах закрывала программу. | Исправлено — окно статистики открывается корректно. |
| Вьюверы выдавали ошибку «Encountered an improper argument» при запуске. | Исправлено. |
Ядра и FieldView падали при открытии файла (ошибка 0xC0000409 / «Параметр задан неверно»). |
Исправлено. |
TEST_EPS.TPL при открытии выдавал «Параметр задан неверно». |
Исправлено. |
| TMCROS/TMCGROUT не запоминали тип оси X/Y между запусками. | Исправлено. |
| В X‑моде рост/«ребристость» поля, волна «замирала» и разрасталась (POLY.TPL). | Исправлено — расчёт переведён в двойную точность (double); результат совпал с эталоном. |
| Зависание при закрытии окна во время счёта (H/X‑ядра): окно закрывалось, а процесс «висел» и снимался только через диспетчер задач. | Исправлено — при закрытии во время счёта появляется запрос «Остановить и закрыть?»: «Да» — счёт останавливается и окно закрывается чисто; «Нет» — счёт продолжается. |
Подмагничивание/потери плазмы не работали: блоки RECT_STAT_B и RECT_STAT_Y молча воспринимались как RECT_STAT_N. |
Исправлено — теперь B (магнитное поле) и Y (потери) читаются и учитываются правильно. |
Частично / в проработке
- Проверка ε > 0 на входе. При загрузке
.tplдобавлена проверка: если на входном порту задана недопустимая проницаемость (ε ≤ 0), выводится ошибка в строке состояния и счёт не запускается (предотвращает появлениеNaN). Проверка сопротивления порта и ε счётных диэлектрических блоков — на рассмотрении автора. - Блок ABSORBER в X‑моде (
nanна некоторых задачах) — локализован; окончательная формула поглощающей границы согласовывается с автором.
Полные технические подробности каждой ошибки (причина, файлы, способ проверки) — в файле
ISSUES.md. Замечания и предложения — через сайт проекта tamic.ru.
Change history and fixed errors
This page lists the new features and the fixed errors of the TMC Suite package
that are visible to the user. The developer's technical log is in the ISSUES.md file
in the project root.
29.10.2026 — fixes based on the author's answers
Fixes and clarifications based on the author's answers of 29.10.2026. Made in the new version of the package (Qt 6). Details are in the manual sections referred to by the links.
Task language .tpl (both kernels)
- Each
#STEPstep is an independent task: in the#PARMsection of each stepX_MIN,X_MAX,Y_MIN,Y_MAX,DELTA,TIME,FREQare mandatory. If any of them is not set, this is a parsing errorSection #PARM: missing ...; a step without#PARMgives the errorMissing section #PARM in ... step .... Previously the missing parameters were silently taken from the previous step. Unit lines are optional and apply until the next unit line, including in the following steps. In 23 tasks ofsamples\SAMPLE_Rand two regression tasks the parameters have been added; their results did not change (Task file .tpl, Sec. 4). - A unit line below its quantity in the same
#PARMsection is now a parsing error (... the unit is written after its value ...). Previously, for example,FREQ 7.2;aboveFREQ_UNIT MHz;was silently taken as 7.2 GHz (Sec. 4). N_UNITandB_UNIT: onlyN_UNIT m3;andB_UNIT Tl;are allowed — the kernel takes N only in m^-3 and B only in T. Other units (cm3,mm3,mTl,mkTl) are a parsing error; previously they were accepted, and the values were silently taken in m^-3 and T (Sec. 4.10).- The block node weight is the same for a rectangle, a circle and a polygon: inside — 1, on a side — 1/2, at a corner — 1/4; for a circle and a polygon it is determined by the four side neighbors of the node (previously — by the diagonal points). The effective radius of a circle on the grid is smaller than the specified one by about half a step (Sec. 5.7.1).
- The
ABSORBERabsorber in a dielectric and in plasma: the load is computed from the medium of each of its nodes. A waveguide in a dielectric with eps = 2 and 4: |S11| 0.0036 and 0.0017 with the theory giving 0.0038 and 0.0019 (previously 0.16 and 0.32). If the wave does not propagate in the medium of a node, there is a warningWARNING: N absorber nodes are in a medium where the wave does not propagate ..., and the absorber does not absorb there (Sec. 5.1). - Clarified in the documentation (intended behavior): the spare grid column and row are one Delta step beyond
X_MAXandY_MAX(Sec. 4.7); the RP integration contour is 10 steps fromX_MIN/Y_MINand 8 steps fromX_MAX/Y_MAX, which does not affect the RP (Sec. 7.5); the placement ofMAGNETICwalls at a plane-wave port follows theTEST025.TPLsample (Sec. 5.5).
PlanarRT X
- A plane-wave port (
INPUT_X/INPUT_Y MAGNETIC) whoseMAGNETICwall touches the edge of the port is now matched: previously |S11| was no better than 0.23, now the X kernel gives the same numbers as the H kernel. - The absorber and the
MAGNETICwall in magnetized plasma are computed by formula (7.55) of the dissertation — with the stubs y6, y7 (previously without them; a first-order error in the step). Tables 9.4–9.5 of the dissertation are reproduced to the 4th digit. Such a computation runs on the processor (PlanarRT X, Sec. 8.6). - A node where Delta eps and N add up to exactly 0 is treated as vacuum (previously — NaN in the whole field) (Sec. 8.3).
- Clarified: the Y and sigma losses also act in nodes without plasma (a lossy medium); the plasma model is collisionless (Sec. 8.2).
Multi-frequency computation
- The harmonic fitting interval of a continuous multitone is exactly the window of the
SMATRIXline, it is not chosen automatically (Multi-frequency computation, item 4.1). - Limitation of the port correction: it is designed for identical ports and a symmetric device; for ports of different widths or an asymmetric device a sweep is needed (item 4.3).
Viewers
- TMCROS and the kernel: a warning if the
SMATRIXwindow contains sample pairs with zero (the wave has not arrived yet); the averaging does not change (TMCROS, Sec. 6.3.2). - TMCGROUT: the formula of a curve is written in single curly braces
{...}; the notation{{...}}is an error: the curve is not plotted (TMCGROUT, Sec. 6.2.1). - TMC_DN: the FiMin…FiMax sector of an emitter works for any sector, including those that contain 0 and 180 degrees at the same time; previously such an emitter silently dropped out of the RP (TMC_DN, Sec. 2.4).
Version 5.1 (26.10.2026)
Fixes and clarifications based on the author's answers of 26.10.2026. Made in the new version of the package (Qt 6). Details are in the manual sections referred to by the links.
Task language .tpl (both kernels)
- Order of lines in
#PARM: first the unit lines (ANGLE_UNIT,FREQ_UNIT,LONG_UNIT,TIME_UNIT), then the values. A quantity is converted to units at the moment its line is read; a unit placed below a quantity does not apply to it (Task file .tpl, Sec. 4). - Plasma units are fixed: N is always in m⁻³, B is always in T; the length units of the parameter section apply only to the geometry (Sec. 4.10).
- Grid: the number of nodes is computed once when the boundaries and the step are read; the spare column on the right and
at the top is as before. Fixed: on some grids (for example,
X_MAX 1000/DELTA 0.5,Y_MAX 16/DELTA 0.2) theX_MAXcolumn was lost — a port at the edge gave total reflection. A step without boundary lines gets the same grid as the previous one (previously the grid grew by one step with every step) (Sec. 4.7). - A value on a block boundary is halved, and at a corner it is divided by four — for all quantities (ε, N, B, Y, σ) (Sec. 5.7.1).
- Parts of a block beyond the region boundary are discarded (previously they were pressed to the outermost column and deformed the block) (Sec. 6).
- The magnetic wall and the absorber (
MAGNETIC,ABSORBER, including those ofCIRCLE_STATandPOLYGON_STAT) are one cell thick (2×2 nodes); inclined sides are now solid, without diagonal gaps. A magnetic circle at the edge of the region is handled in the same way as a magnetic polygon (Secs. 5.1, 5.3). - The rectangular absorber (
RECT_STAT ABSORBER) — a double ring of nodes along the block perimeter — is now closed also when the block boundary lies exactly on a grid node (previously two corners lacked a node); the block thickness must be at least 2·DELTA. The results change in the 4th–5th digit. CIRCLE_STAT: a full circle —F_maxup to 2π + 10⁻¹²; exactly 2π and 360° give a full circle (Sec. 5.3).- Clarified in the documentation (intended behavior):
POLYGON_STAT METALis a polyline that does not close by itself (to close it, the first vertex is repeated), a dielectric polygon is always closed (Sec. 5.4); the ε distribution file (FILE) is only for a rectangle, everything outside the shape in the file is zeros (Sec. 5.6). - Expressions: a number with an exponent before an operation needs no parentheses (
1.24e+17*(…),1e18); a negative base with an integer exponent is computed ((−2)^3 = −8,(x−5)^2), a fractional exponent with a base ≤ 0 and0^0are an error;a^b^c = a^(b^c); the coordinates x, y and the time t are passed to formulas with full precision (previously 6 significant digits — at large coordinates the formula ε(x) became stepwise) (Sec. 9.1). - Port: an amplitude ≠ 1 and a phase ≠ 0 are allowed — the S-matrix is divided by the incident wave of the
excited port (S = Uo/Up; when |Up − 1| < 10⁻³ there is no division). A phase in degrees
(
ANGLE_UNIT gradus) is computed correctly (previously it was divided by π/180 instead of multiplied). A minus before the phase means a delay. The variablestorfin the 8th port parameter are a parsing error (Sec. 5.5).
#OUTPUT output data (both kernels)
SMATRIXin single-frequency mode: the frequency must be equal to theFREQof the step, otherwise there is a parsing error with a hint (previously S was computed atFREQand silently labelled with a different frequency). TheTmin; Tmax;window is mandatory and is placed from the moment the steady state is reached (Task file .tpl, Sec. 7.4).- Multi-frequency mode: the
SMATRIXwindow is now taken into account;SMATRIX name; F;without a window is the full window 0…Tmaxof the task. If the pulse response has not decayed by the end of the window or the window starts during the incident pulse, there is a warning; the S-matrix is written (Multi-frequency computation, item 4.1). - A sweep is not aborted by an error: at the frequency of a step with an error the
.sfile gets zeros, the messageError at step N (f): …, and the computation goes on; at the end — exit code 2 and the list of steps with errors. In multi-frequency mode zeros appear only at the frequencies with an error. An S that is not a number (NaN, Inf) is an error, not NaN in the file (Headless mode, item 1.4). - The radiation pattern window (
FIELD_DISTRIBUTION,FIELD_DISTRIBUTION_M): the window length is rounded up to an integer number of periods without an extra period. The window must end beforeTIME; a window that ends exactly atTIMEis not closed — there are no RP files, an error, code 2 (Task file .tpl, Sec. 7.5).
PlanarRT X
- Magnetized plasma fixed: the sign of the coefficient follows formula (5.49) of the textbook.
Previously the B field only weakened the plasma, and the extraordinary wave had no opacity windows;
now the opaque regions (for example, 72 GHz, N = 2·10¹⁹ m⁻³, B = 1.8…2.1 T; 52 GHz at 1 T)
coincide with the cold plasma theory. With B = 0 the result is the same as before. N and B in the
.tttopology file are restored correctly (PlanarRT X, Sec. 8.4). - New conductivity blocks
RECT_STAT_S,CIRCLE_STAT_S,POLYGON_STAT_S— the losses σ in S/m; the kernel converts them into the grid losses Y = 2·dT·σ/ε₀, so the same σ gives the same attenuation on any grid. The*_STAT_Yblocks are as before. Check: a layer with σ = 0.1 S/m at 72 GHz — |T| = 0.347 (DELTA0.2 mm), 0.349 (0.1 mm), theory 0.355 (Task file .tpl, Sec. 5.7.3). - Plasma from a file:
FILE_N,FILE_B,FILE_Yread N, B, Y from a distribution file (written by theRECT_STAT_N [name]…block and so on); a file of another quantity is an error with the reason. Previously these blocks did not work (Sec. 5.7.4). CIRCLE_STAT_B/_Y,POLYGON_STAT_B/_Yare read into their own quantities B and Y (previously they silently went into N).- Warnings (console and status bar): a positive ε increment together with plasma N in
the same nodes (the node is computed as plasma, the increment is correct only at
FREQ; if the increment is larger than the plasma part, the computation of these nodes diverges); the B field in nodes with a positive ε increment without N is not used (Sec. 5.7.2). - Clarified in the documentation (intended behavior): an ε increment that differs from 4 by less than 0.004 is shifted by the X kernel to 3.996 or 4.004 — without this the algorithm diverges (Sec. 5.1).
- The absorber and the magnetic wall of the X kernel fixed: an absorber node took not the conductivity of its own stub but the normalization factor (an error carried over from the H kernel). Now the X absorber reflects in the same way as the H absorber and as the theory predicts (Sec. 7.2 of the doctoral dissertation of K. N. Klimov, 2007): in a 12 mm waveguide — |S11| = 0.0256 / 0.0075 / 0.0038 at 40 / 72 / 100 GHz (was 0.0261 / 0.0121 / 0.0139). The absorber is matched for normal incidence; the residual reflection of a waveguide mode is (1 − cos γ)/(1 + cos γ), where γ is the angle of the partial wave of the mode.
- The H kernel has no
*_STAT_SandFILE_N/_B/_Yblocks — the error "Unknow type block".
TMCROS and TMCGROUT
- New menu item Config → "Phase unwrapping: standard (threshold pi)". By default the check item is cleared: the phase in expression graphs is unwrapped as before — it decreases monotonically (according to Foster's reactance theorem); with the check item set — standard unwrapping with the threshold π. The choice is remembered (TMCROS, Sec. 5.4.3; TMCGROUT, Sec. 5.4.3).
- TMCROS, "To S-matrix": the S-matrix is divided by the incident wave (S = Uo/Up); for a broadband file the Tmin…Tmax window is taken into account, the warning about an undecayed response is shown in a message window; an S that is not a number is an error (TMCROS, Sec. 6.3).
TMC_DN
- Directivity and aperture efficiency for a two-dimensional problem (one cut): D = 2π·max|F|² / ∫₀^2π |F(φ)|² dφ, aperture efficiency = D / D of a uniform-amplitude in-phase array of the same geometry. Now they are correct for any number of emitters and do not depend on the amplitude scale (previously for N ≤ 400 the result was, for example, 19.8 dB instead of 7.74 dB for 4 isotropic emitters spaced λ/2, and an amplitude of 2 added another +6 dB; for N > 400 the integral was taken over a coarse grid of angles). For N > 400 the "Kip" quantity is the radiated power, as before (TMC_DN, Sec. 2.4).
Version 5.0 (October 2026)
New interface (Qt 6)
- All programs of the package have a new interface based on the Qt 6 library:
planarrt_h.exe,planarrt_x.exe,tmcros.exe,tmcgrout.exe,tmc_dn.exe,fieldview.exe. The computational part of the kernels has been carried over from the previous version without changes: on the test tasks the results coincide with the MFC version. Introduction to the package — Getting started. - Dark theme with turquoise accents, common to all programs; new program and button icons.
- Russian interface language. Menus, windows, tooltips and standard windows have been translated. The language is selected in the Config → Language / Язык menu (Russian, English, system language).
- Indicators on the buttons. The "Topology", "Field", "Synchronization", "Sound", "AutoRun" toggles have a green dot when on and a red dot when off. The viewer buttons ("Output", "Field and topology", "S-matrix", "Directional Pattern") have a green dot when the program is open at the moment and a red dot when it is closed.
- Computation progress in the kernel status bar: a progress bar (one for the whole computation), the stage ("Preparing: preprocessor / blocks / grid", "Step 2 of 3 · Calculation 45%", "Done"), the time step number, what is being output and what the computation runs on ("Compute: GPU — …" or "Compute: CPU").
- The "New task (TPL Designer)" button in the kernels starts TPL Designer.
- Printing opens the Windows system print dialog; you can print to PDF via "Microsoft Print to PDF".
- The installer
TMC_Suite_5.0_Qt6_Setup.exe(a dark wizard, language selection, installation for all users or only for yourself, associations with the file types of the package) and a variant without installation — theTMC_Suite_Qt6_win64folder. It is installed alongside the previous MFC version. - Qt6 installer: improvements. If TMC Suite 5.0 is already installed, the wizard asks whether to update it; if the existing copy is installed in another mode (for all users / only for yourself), it warns that the new installation will be a second copy. The English wizard shows the license in English. The last page of the wizard opens without delay. Details — Getting started, Sec. 4.2.
- User manual in English — the PDF
TMC_Suite_5.0_User_Manual.pdfand on the website. The "User Manual" button in the About dialog opens the PDF in the interface language, and if it is not next to the program, the manual on the website (Getting started, Sec. 6.6). - FieldView:
F1(Help → User Manual) opens the PDF of the manual from the distribution.
TPL Designer as part of the package
- TPL Designer (
TplDesigner.exe) is a program for creating a.tpltask without writing the text by hand: the geometry is drawn with the mouse, the parameters are set in windows, and the program writes a correct file. It can also create incident wave files.sigand ε distribution files. Details — TPL Designer.
GPU computing
- The PlanarRT H and PlanarRT X kernels run the time loop on the video card (OpenCL; only an ordinary NVIDIA or AMD driver is needed, CUDA is not needed). On an RTX 5070 Ti the speed-up of the time loop is from ×10–12 on 1 million nodes to ×36 on tens of millions of nodes.
- The result coincides with the processor bit for bit (checked on 44 tasks, including plasma, magnetic walls, absorbers, ε distribution files).
- The Config → Compute (GPU)... window: card search, self-test, speed-up estimate,
the "Use the video card for calculations" check box. Command line keys
/GPU,/GPU:n,/CPU. - Small grids (fewer than 150 thousand nodes for H / 60 thousand nodes for X) and tasks that do not fit into the card memory are computed by the kernel on the processor by itself.
- Details — GPU computing.
Multi-frequency computation
- Incident wave from a file. At a port, the file name in square brackets is written in place of the amplitude
(
[wg_multi]); the.sigfile has two columns "time, value" and a#FREQline with the list of frequencies. - A sweep in a single pass. With
SMATRIXthe kernel itself writes all frequencies of the band to the.sfile; TMCROS ("To S-matrix") does the same from.t. The mismatch of a metal port at frequencies other thanFREQis removed automatically. Check: 10 frequencies in 4.5 s instead of 35.1 s, a difference from the sweep of 0.0016 dB and 0.01°. - Multi-frequency radiation pattern: with
FIELD_DISTRIBUTION_M— a separate file<name>_<MHz>MHz.DATfor each frequency of the signal. - RP along the region boundary. For the radiation pattern the kernel can store the field only in
strips along the edges of the region. This is switched on by itself: with a multi-frequency signal and in tasks where
storage over the whole region would take more than a quarter of the free memory. The
.DATfiles are the same in this case. - Details — Multi-frequency computation.
Batch mode and computation time
- Exit codes of the kernels in batch mode (
/Ar,/Arb): 0 — everything has been computed, 1 — an error in the task, 2 — an error during the computation, 3 — the computation was stopped. The computation progress and the error text are written to the console from which the kernel was started./Arbalways closes the window,/Arleaves the window open on an error. - Computation time report: the "Calculation time" window (Statistics → "Calc. time...", "Export to
TXT...") and the
/Timekey — the report<name>.timing_H_win64.txtnext to the task. - Details — Headless mode.
Faster block building
- Blocks with ε and plasma given by a formula of the coordinates are built in several threads; some of the processor cores are left to Windows, and the threads run with lowered priority. An expression without coordinates is evaluated once per block. Example: a 50-million-node block with a formula — 168 s → 36 s.
New FieldView
- Following the computation: the field comes from the kernel during the computation ("Field",
"Topology", "Synchronization" are switched on in the kernel, "Follow Calculation" in FieldView). The received time steps
are remembered and can be scrolled through with a slider; a series of time steps can be saved to an
.ex.framesfile. - The "Frames" panel: first/previous/play-pause/next/last time step, slider, "contrast ×", "Value at Point", "Color Levels".
- Saving an image (PNG) and exporting an animation — GIF or a series of PNG frames (from time step, to time step, every k-th time step, frames per second, width).
- The "View Parameters" window with the "Place", "Topology", "ε and Plasma", "Field" tabs.
- Details — FieldView.
Fixes of 23.10.2026 in the windows of the new version
| What it was | What it is now |
|---|---|
| In some windows buttons and fields could not be clicked (TMC_DN "Viewport" — "Graphics", "Normirovka", "Reduct"; TMCGROUT — the color and scale buttons; TMCROS "To S-matrix" — "Change", Xmin, dX, units, Tmin/Tmax): the group frame intercepted the click | Group frames pass clicks through, all window elements are accessible with the mouse |
| Radio buttons were read incorrectly: in TMC_DN the "Pattern dB" scale was not applied, in TMCGROUT the choice of "L dB" gave "Phase S grad" | The radio buttons in the windows work correctly |
| In TMC_DN "OK" in the "Make deviation form source file" window and the buttons of the "Calculate deviation directional pattern" window "did not work": error messages were not shown | Error messages in the viewers and FieldView are shown in a message window |
| The computation progress bar "ran" and jerked, in the Russian interface the percentages were not shown | The bar fills once for the whole computation ("Step 2 of 3 · Calculation 45%"), the preparation is shown by a label |
| It was not visible whether "Sound" and "AutoRun" (batch mode) were on | On/off icons with a green/red dot; with the sound off the speaker is crossed out |
| "Print" in the kernel did nothing | The system print dialog opens |
| Small "OK"/"Cancel" buttons in the standard windows and in the video card window | Buttons of normal size |
| Tooltips on the buttons were translated with distortions | Tooltips are translated in advance and shown in one line |
| FieldView had a useless "fps" slider | Removed: the pace is set by the computation; the frame rate is set only when recording a GIF |
| English texts in the video card window and in standard windows; two "Melody" tabs | The texts are translated; the "Melody 1" and "Melody 2" tabs |
Fixes of 23.10.2026 in the compute kernels and viewers
The fixes have been made both in the new and in the MFC version. In correctly set up tasks the numbers did not change (checked by a byte-by-byte regression on 45 tasks); the behavior in erroneous situations has changed — instead of a silent wrong result there is now an error message.
| How it showed up | What it is now |
|---|---|
An error during the computation (in an Amp/Faza expression, a .sig file, an absorber) was lost: the result "OK", the S-matrix and the RP from an interrupted signal |
The error reaches the result, exit code 2 |
A task with a long series of empty lines or comments (for example, podst__R.tpl) crashed the kernel |
It is computed |
When frequencies with a different port structure were combined in one .s file, the data were written incorrectly |
Each frequency is written according to its own structure |
A multi-frequency signal without a #FREQ line — the .s file was not created |
The .s file is created (the frequencies are found from the spectrum) |
A multi-frequency RP with FIELD_DISTRIBUTION (without _M): all frequencies from one field |
The error "needs FIELD_DISTRIBUTION_M" |
A frequency below the port cutoff gave nan in the whole field with the result "OK" |
The error "Frequency … is below cutoff of port" |
If the .t file was locked by another program (for example, open in Excel), the folder was read-only or the disk was full, the kernel hung, and "Stop" did not help |
About 20 s of attempts, then the error "Can't open file …" |
| A too long block description (more than 20 000 characters) crashed the kernel | The error "Block N is too long" |
| The RP window ended after the computation time — no RP files, the result "OK" | The error "Directional pattern window ends … after the calculation time" |
The /Ar, /Arb, /d keys were found inside the path (a \data\ folder switched on demo and autorun) |
A key is only a separate word outside quotes |
Starting by a .tpl name without a path — the results in the root of the drive |
The results are in the task folder |
| When the field was output with synchronization on, the computation dragged on for hours (up to 25 s of waiting for FieldView per time step) | In batch mode the kernel does not wait for FieldView; in normal mode, after one unsuccessful wait, it does not wait until FieldView reads the file |
| The "View block list" window corrupted memory on polygons with 11 or more vertices | The first 10 vertices are shown |
The temporary preprocessor file was written to the current folder of the process (when started from System32 — "Can't open file") |
It is written to the task folder |
| A multi-frequency RP in the X-mode was silently built at one frequency | It is built at each frequency, as in the H-mode |
An error of conversion to an S-matrix was lost: no .s file, the result "OK" |
The error reaches the result, code 2 |
More than 20 ports or more than 99 frequencies — a corrupted or incomplete .s file without a message |
An error writing the .s file, code 2 |
An unreadable existing .s file was silently replaced by a new one — the accumulated sweep was lost |
An error; a new file is created only if there is no old one or it is empty |
TMCROS, TMC_DN and the kernels crashed if a .t file did not open |
An error message |
Home/End crashed a viewer if the visible graph had no points |
Fixed |
The last line of a .tos/.soc file without a line break lost a character (port "12" was read as "1") |
Fixed |
| A port 1–2 nodes wide was silently not excited | The error "Port block N has K nodes, need at least 3" |
| A lack of memory during a step left the window "computing", and it would not close | A computation error, code 2 |
| The frequencies of a multi-frequency RP and the "along the edges" mode carried over to the next step of the task | They are reset at the beginning of each step |
Documentation
.tpl input language reference (2026‑07‑15)
-
A guide "The
.tpltask file — how to create it" has been added. Previously the documentation described only individual parameters using a ready-made file as an example; now there is a method of composing a task from scratch (drawing → "box" → decomposition into blocks → choice of the grid step) and a complete reference of the input language: all keywords, all graphic primitives with figures, the preprocessor (#define,#include, expressions), the frequency sweep, typical errors. Restored from the author's manual "TAMIC‑Rt H, version 2.0p" (2000) and checked against the code. -
Errors in the kernel manuals have been fixed. Following the check against the code:
- extensions of the output files. A non-existent
.fwas given for the field distribution; in fact the kernel writes.ex,.ey,.hz,.em,.ef. The.tfextension is historical (version 2.0p), the current code does not create it; INPUT_X/INPUT_Y. They were described as "a port along the X/Y axis". In factINPUT_Xis a port along the Y axis (on the left or right boundary, its dimensions are set along Y), andINPUT_Yis the other way round;- the first port parameter. It was described as "the excitation
U(y)". In fact it is the mode (MAGNETIC— a plane wave,METALor empty — the H₁₀ wave); the amplitude and phase are set by the optional parameters 6 and 7; - the
MAGNETICmaterial (an open-circuit wall) was missing from the list of materials; - the
#OUTPUTsection —SMATRIX,FIELDS,TOPOLOGYwere not described.
- extensions of the output files. A non-existent
-
The format of the
.epsfile (ε distribution) has been clarified in the API documentation: the exact layout of the header and of the binary array, compatibility of single and double precision files.
New features
Plasma and magnetization (X‑mode)
-
Plasma computation in the
tmc_rtxkernel (PlanarRT_X). The following blocks of a.tpltask are supported:RECT_STAT_N— electron density N (m⁻³, SI) → plasma frequency ω_p;RECT_STAT_B— external magnetizing magnetic field B (T) → cyclotron frequency Ω;RECT_STAT_Y— plasma losses Y.
The B and Y quantities act together with an overlapping
RECT_STAT_Nblock (magnetizing or adding losses makes sense only where there is plasma). -
FieldView: plasma visualization. FieldView now has a mode for the displayed quantity (the View → Eps → Type menu and 4 new toolbar buttons EPS · N · B · Y): you can view the permittivity ε, the electron density N, the magnetic field B or the losses Y. The N/B/Y buttons are active only if the open field contains the corresponding plasma (see the "FieldView" section, item 5.3.2.1).
Other
- Radiation pattern from the X‑mode. The
tmc_rtxkernel now creates RP files (.AMP,.FAZ,.DAT) — previously only the H‑mode produced them. The X‑mode pattern coincides with the H‑mode one for the unmagnetized case. - A link to the documentation in the About dialog. In all programs of the package a hyperlink to the local documentation has been added to the About window.
Fixed errors
| Symptom (how it showed up) | What it is now |
|---|---|
| The "Statistics" button in the H and X kernels closed the program. | Fixed — the statistics window opens correctly. |
| The viewers gave the error "Encountered an improper argument" at startup. | Fixed. |
The kernels and FieldView crashed when a file was opened (error 0xC0000409 / "The parameter is incorrect"). |
Fixed. |
TEST_EPS.TPL gave "The parameter is incorrect" when opened. |
Fixed. |
| TMCROS/TMCGROUT did not remember the axis type X/Y between starts. | Fixed. |
| In the X‑mode the field grew and became "ribbed", the wave "froze" and grew (POLY.TPL). | Fixed — the computation has been switched to double precision (double); the result matched the reference. |
| Hang when the window was closed during a computation (H/X kernels): the window closed, but the process "hung" and could be removed only with the Task Manager. | Fixed — when the window is closed during a computation, the question "Computation in progress. Stop and close?" appears: "Yes" — the computation is stopped and the window closes cleanly; "No" — the computation continues. |
Plasma magnetization/losses did not work: the RECT_STAT_B and RECT_STAT_Y blocks were silently treated as RECT_STAT_N. |
Fixed — B (magnetic field) and Y (losses) are now read and taken into account correctly. |
Partially / in progress
- ε > 0 check at the port. A check has been added when a
.tplis loaded: if an invalid permittivity (ε ≤ 0) is set at the input port, an error is shown in the status bar and the computation does not start (this preventsNaN). A check of the port impedance and of ε of the computational dielectric blocks is under consideration by the author. - The ABSORBER block in the X‑mode (
nanin some tasks) — localized; the final formula of the absorbing boundary is being agreed with the author.
Full technical details of each error (cause, files, check method) are in the
ISSUES.mdfile. Comments and suggestions — through the project website tamic.ru.