Руководство пользователя — программа TMC_DN (tmc_dn.exe)

Пакет TMC Suite 5.0 для Windows x64, новый интерфейс (Qt 6, тёмная тема, русский язык). Прежняя версия программы с интерфейсом MFC (TMC_DN.exe из старых сборок) рассчитывает и показывает то же самое, но её окна в этом руководстве не описываются.

Изменение по исправлениям 26.10.2026 (версия 5.1): исправлен расчёт КНД и КИП (раздел 2.4).

Содержание

  1. Назначение программы
  2. Запуск и открытие файлов
  3. Главное окно
  4. Панель инструментов
  5. Меню
  6. Окна программы
  7. Типичные задачи по шагам
  8. Частые вопросы и ошибки

1. Назначение программы

TMC_DN (заголовок окна — «Tamic: просмотр диаграмм направленности») — программа расчёта и просмотра диаграмм направленности (ДН). В окне «О программе» она описана как «Программа просмотра диаграмм направленности».

Диаграмма направленности показывает, как излучение распределено по направлениям: по оси X откладывается угол в плоскости структуры, по оси Y — уровень поля в этом направлении.

Откуда берутся данные. Счётное ядро (PlanarRT H или PlanarRT X) накапливает поле во время расчёта (директивы FIELD_DISTRIBUTION / FIELD_DISTRIBUTION_M секции #OUTPUT задания, см. Файл задания .tpl, раздел 7.5) и записывает файл описания решётки излучателей .DAT: каждый излучатель — точка контура области с координатами, амплитудой и фазой. TMC_DN читает .DAT, рассчитывает по нему ДН и рисует график.

Что умеет программа:

  • рассчитывать ДН решётки излучателей и показывать до 20 диаграмм на одном графике (например, ДН на разных частотах многочастотного расчёта);
  • показывать ДН в линейном масштабе или в децибелах, абсолютную или нормированную на максимум;
  • откладывать угол в радианах или градусах;
  • вносить случайные отклонения в координаты, амплитуды и фазы излучателей и сохранять новую решётку (окно «Отклонения по исходному файлу»);
  • рассчитывать ДН в углах требуемой (эталонной) ДН и сохранять обе для сравнения (окно «Расчёт отклонения диаграммы направленности»);
  • масштабировать и сдвигать график, настраивать оформление.

Расчёт большой решётки идёт в фоне — на экране в это время окно хода расчёта (раздел 6.3).

Главное окно TMC_DN
Главное окно TMC_DN

2. Запуск и открытие файлов

2.1. Как запустить

  • После установки (TMC_Suite_5.0_Qt6_Setup.exe) — ярлык TMC_DN в меню «Пуск».
  • Без установки — файл tmc_dn.exe в папке TMC_Suite_Qt6_win64.
  • Из счётного ядра — кнопка «Показать диаграмму направленности» (Ctrl+Alt+F4): ядро открывает TMC_DN с файлом .DAT текущего расчёта (см. PlanarRT H).

Окно открывается в том же месте и того же размера, что и при прошлом закрытии.

2.2. Какие файлы открывает программа

Файл Что это Кто создаёт
.DAT Описание решётки излучателей: частота, число излучателей, ДН одного элемента, по строке на излучатель Счётное ядро; окно «Отклонения по исходному файлу»
.dop Документ TMC_DN: текст с настройками оформления и списком диаграмм; ссылается на файлы .DAT TMC_DN
.$op Запасной документ: создаётся вместо .dop, если .dop с таким именем уже есть TMC_DN

Фильтр окна открытия — «TMCRTOS (*.dat *.dop *.$op)» и «Все файлы».

2.3. Как открыть файл

  1. «Открыть» , Файл → Открыть… или Ctrl+O.
  2. Выберите .DAT или .dop → «Открыть».
  3. Начнётся расчёт ДН: появится окно хода расчёта (раздел 6.3), а в области графика — надпись Please wait ... Data calculate. По окончании окно хода закроется само и появится график.

При открытии .DAT программа создаёт рядом документ <имя>.dop с одной диаграммой; если .dop уже есть, он не трогается, а создаётся (перезаписывается) запасной <имя>.$op (на снимках — r7.$op).

В отличие от TMCROS и TMCGROUT, в меню «Файл» TMC_DN нет списка недавних файлов.

2.4. Файл .DAT

Текстовый файл. Начало примера samples/DEMO/TMC_DN/r7.DAT:

Frequence = 10 Ghz;
N = 5784;
1.
1   X = 20 mm; Y = 21 mm; Amplitude = 0.000190142; Faza = -118.582 degree; FiMin = 90.001 degree; FiMax = 269.999 degree; 1.
2   X = 20 mm; Y = 21 mm; Amplitude = 0.000125748; Faza = 19.1385 degree; FiMin = 90.001 degree; FiMax = 269.999 degree; cos(f)
3   X = 20 mm; Y = 21 mm; Amplitude = 0; Faza = 0 degree; FiMin = 90.001 degree; FiMax = 269.999 degree; sin(f)
Строка Смысл Единицы
Frequence = … Ghz; Частота ГГц
N = …; Число излучателей целое ≥ 1
3-я строка Общая ДН одного элемента — выражение от угла f (радианы); 1. — ненаправленный элемент —
Строки излучателей Номер; X, Y — координаты; Amplitude — амплитуда; Faza — фаза; FiMin, FiMax — угловой сектор, в котором излучатель излучает; в конце — собственная ДН излучателя (1., cos(f), sin(f) или выражение) мм; мм; —; градусы; градусы

Поля FiMin, FiMax и собственное выражение необязательны: без них излучатель считается излучающим во все стороны с ДН, равной 1.

Любой сектор (с 29.10.2026). Сектор FiMin…FiMax работает для любых секторов, в том числе содержащих 0 и 180 градусов одновременно (например, 0…360, -100…190, -30…200). Раньше излучатель с таким сектором молча выпадал из ДН.

Как программа рассчитывает ДН (по исходному коду; формулировку см. в чек-листе, п. 1). Поля всех излучателей складываются когерентно: для угла φ

E(φ) = g(φ) · Σ aᵢ · gᵢ(φ) · exp[ j(φᵢ + k·rᵢ·cos(φ − αᵢ)) ],

где aᵢ и φᵢ — амплитуда и фаза излучателя, rᵢ и αᵢ — его расстояние от начала координат и полярный угол, k = 2πf/c, g — общая ДН элемента (3-я строка), gᵢ — собственная ДН излучателя (вне сектора FiMin…FiMax — практически ноль). На графике откладывается |E(φ)|.

Для решёток до 400 излучателей ДН считается в 400 точках внутри текущих пределов по X и пересчитывается при каждом изменении этих пределов (масштаб, сдвиг). Для больших решёток — один раз в 1000 точках по всему кругу (−180…180°); результат запоминается в служебном файле <имя>.DAT_Temp1 (или _Temp0) рядом с .DAT и при следующем открытии берётся из него, если .DAT не менялся.

КНД и КИП (исправлено 26.10.2026). Программа вычисляет КНД и КИП для двумерной задачи (один срез, одна плоскость):

КНД = 2π · max|F|² / ∫₀^2π |F(φ)|² dφ,

КИП = КНД / КНД₀, где КНД₀ — КНД равноамплитудной синфазной решётки той же геометрии.

Теперь КНД и КИП верны при любом числе излучателей и не зависят от масштаба амплитуд. Раньше при N ≤ 400 КНД получался завышенным и зависел от амплитуд: например, для 4 изотропных излучателей через λ/2 — 19,8 дБ вместо 7,74 дБ, а амплитуда 2 давала ещё +6 дБ; при N > 400 интеграл брался по грубой сетке углов. При N > 400 величина «Kip» — излучённая мощность (∫ |F|² dφ), как и было.

2.5. Документ .dop

Текстовый файл; первая строка — признак #TMCGROTS (тот же, что у документов TMCROS). Программа переписывает документ при каждом изменении масштаба, оформления, списка диаграмм.

Ключ Что задаёт Значения
#nXType Шкала X 0 — радианы, 1 — градусы
#nYType Шкала Y 0 — ДН, 1 — ДН, дБ, 2 — ДН с нормировкой, 3 — ДН, дБ с нормировкой
#Xmin, #Xmax, #Ymin, #Ymax, #nAFlagX, #nAFlagY, #PointDrawFlag, цвета, шрифт, редактор Как в документах TMCROS (см. TMCROS, раздел 2.4) —

Строка диаграммы: <файл .DAT> <подпись> <показывать 0/1> 1 <прореживание 0/1> 1 1 (пятое поле — флажок «Прореживание» окна «Характеристики», раздел 6.2).


3. Главное окно

Главное окно TMC_DN
Главное окно TMC_DN
  1. Заголовок — «Tamic: просмотр диаграмм направленности» и имя документа (на снимке — [r7.DAT]).
  2. Строка меню — «Файл», «Правка», «Вид», «Настройки», «Окно», «Справка» (раздел 5). Справа — кнопки управления окном документа.
  3. Панель инструментов — 23 кнопки (раздел 4).
  4. Область графика — ось Y с подписью (Pattern — ДН, Pattern dB — ДН в дБ), ось X с подписью (Angle radian или Angle degree), пунктирная сетка 10 × 10, кривые ДН с маркерами, легенда справа вверху. На снимке график увеличен и ось X ушла за нижний край окна — её можно увидеть прокруткой или кнопкой «Подогнать область графика». Подписи на графике остаются английскими.
  5. Строка состояния:
    • слева — «Готово»; пока нажата левая кнопка внутри осей — координаты курсора, например Angle radian=0.52; Pattern=1.1;
    • справа — шкала Y и частота первой ДН документа, например Pattern; Freq=10 GHz.

3.1. Работа мышью

Действие Где Результат
Протянуть рамку левой кнопкой Внутри осей Выбранный участок растягивается на окно (ось, по которой рамка меньше 10 % окна, не меняется, по Y включается автомасштаб; если рамка меньше 10 % по обеим осям — ничего не происходит). ДН пересчитывается в новых пределах угла
Двойной щелчок Внутри осей «Подогнать окно данных»: X — весь круг (−π…π или −180…180°), Y — автомасштаб
Двойной щелчок Вне осей «Подогнать область»: оси подгоняются под окно
Щелчок правой кнопкой Внутри осей Окно «Параметры окна»
Щелчок правой кнопкой Вне осей Окно «Характеристики»

4. Панель инструментов

Панель инструментов TMC_DN
Панель инструментов TMC_DN

Подсказка при наведении — название из второго столбца. Пока документ не открыт, доступны только «Открыть» и «О программе». Включённый автомасштаб показан рамкой вокруг кнопки.

Кнопка Название Что делает Клавиши
Открыть Открывает .DAT или .dop Ctrl+O
Добавить характеристику Выбор ещё одного .DAT (фильтр *.dat, папка документа); ДН рассчитывается и добавляется, затем открывается окно «Характеристики» Ctrl+A
Характеристики Окно со списком диаграмм и функциями отклонений (раздел 6.2) Ctrl+D
Параметры окна Окно пределов, шкал, нормировки, точек, цветов (раздел 6.1) Ctrl+H
Перерисовать данные Заново читает файлы и пересчитывает все ДН (с окном хода расчёта) Ctrl+W
Подогнать область графика Оси занимают около 70 % ширины и 90 % высоты окна, справа — место для легенды Ctrl+R
Увеличить Окно данных вдвое меньше по обеим осям; автомасштаб выключается +
Увеличить по X Вдвое меньше по углу X
Увеличить по Y Вдвое меньше по уровню Y
Уменьшить Окно данных вдвое больше по обеим осям −
Уменьшить по X Вдвое больше по углу Shift+X
Уменьшить по Y Вдвое больше по уровню Shift+Y
Подогнать окно данных X — весь круг (−π…π или −180…180°), Y — автомасштаб Ctrl+T
Авто-масштаб X Вкл.: пределы X — весь круг; выкл.: пределы X задаются вручную Alt+X
Авто-масштаб Y Вкл./выкл. автомасштаб по уровню Alt+Y
Начало Левая граница окна — угол 0 (ширина окна сохраняется). Только при выключенном автомасштабе X Home
Конец Правая граница окна — π (180°), ширина сохраняется. Только при выключенном автомасштабе X End
Уменьшить пределы по X Окно влево на 10 % ширины; автомасштаб X выключается ←
Увеличить пределы по X Окно вправо на 10 % ширины →
Уменьшить пределы по Y Окно вниз на 10 % высоты; автомасштаб Y выключается V
Увеличить пределы по Y Окно вверх на 10 % высоты ↑
Печать Печать графика Ctrl+P
О программе TMC_DN Окно «О программе» (раздел 6.9) —

Все изменения масштаба сразу записываются в документ.


5. Меню

Пункты, у которых есть кнопка на панели, делают то же, что кнопка. Пока документ не открыт, доступны только «Создать», «Открыть…», «Выход», «О программе TMC_DN…».

5.1. Меню «Файл»

Меню «Файл»
Меню «Файл»
Пункт Клавиши Что делает
Создать Ctrl+N В текущей версии не реализовано: выводится сообщение «Создание нового задания появится вместе с диалогом характеристик.»
Открыть… Ctrl+O Открыть .DAT или .dop
Закрыть — Закрыть окно документа. Если идёт расчёт ДН, программа сначала дождётся его окончания
Сохранить Ctrl+S Записать документ
Сохранить как… — Записать документ под новым именем. Окно предлагает расширение .tos (наследие TMCROS) — впишите имя с расширением .dop
Печать… Ctrl+P Печать
Предпросмотр печати — Предварительный просмотр
Параметры печати… — Параметры страницы
Выход — Закрыть программу

5.2. Меню «Правка»

Меню «Правка»
Меню «Правка»
Пункт Клавиши Что делает
Характеристики Ctrl+D Окно «Характеристики» (раздел 6.2)
Добавить характеристику Ctrl+A Добавить ещё один .DAT
Редактор Alt+F7 Открыть документ .dop во внешнем редакторе из «Настройки → Редактор» (по умолчанию в документе записан winword.exe; если Word не установлен, укажите, например, notepad.exe)

Пункта «В S-матрицу» в TMC_DN нет: ДН строится по решётке излучателей, а не по сигналам.

5.3. Меню «Вид»

Меню «Вид»
Меню «Вид»
Пункт Клавиши Что делает
Параметры окна Ctrl+H Окно «Параметры окна»
Перерисовать данные Ctrl+W Перечитать файлы и пересчитать ДН
Масштаб ▸ — Подменю 5.3.1
Сдвиг ▸ — Подменю 5.3.2
Строка состояния — Показать/скрыть
Панель инструментов — Показать/скрыть

5.3.1. Подменю «Вид → Масштаб»

Подменю «Масштаб»
Подменю «Масштаб»

«Подогнать область» (Ctrl+R), «Увеличить» (+), «Увеличить по X» (X), «Увеличить по Y» (Y), «Уменьшить» (−), «Уменьшить по X» (Shift+X), «Уменьшить по Y» (Shift+Y), «Подогнать окно данных» (Ctrl+T), «Авто-масштаб X» (Alt+X), «Авто-масштаб Y» (Alt+Y) — то же, что одноимённые кнопки (раздел 4).

5.3.2. Подменю «Вид → Сдвиг»

Подменю «Сдвиг»
Подменю «Сдвиг»
Подменю Пункт Клавиши Что делает
Изменить Xmax, Xmin ▸ Уменьшить пределы ← Окно влево на 10 %
Увеличить пределы → Окно вправо на 10 %
Начало Home Левая граница — 0
Конец End Правая граница — π (180°)
Изменить Ymax, Ymin ▸ Уменьшить пределы V Окно вниз на 10 %
Увеличить пределы ↑ Окно вверх на 10 %

5.4. Меню «Настройки»

Меню «Настройки»
Меню «Настройки»
Пункт Что делает
Language / Язык ▸ Язык интерфейса
Редактор Выбор программы (*.exe) — внешнего редактора; записывается в документ
Цвет ▸ Подменю цветов
Шрифт Окно «Выбор шрифта» (раздел 6.8)
Подменю «Language / Язык»
Подменю «Language / Язык»

«System / Как в системе», «Русский», «English» — язык меняется сразу и запоминается; галочка — текущий выбор. В английском интерфейсе меню называется Config. Выбор общий для всех программ пакета: другие программы, уже открытые в этот момент, перейдут на новый язык при следующем запуске (overview.md, раздел 6.2).

Подменю «Цвет»
Подменю «Цвет»
Пункт Что меняет
Фон Фон области графика
Сетка Координатная сетка
Оси Оси
Точки Маркеры (общий цвет)
Графики Окно «Параметры графиков» (раздел 6.6)

Пункты «Фон», «Сетка», «Оси», «Точки» открывают окно «Выбор цвета» (раздел 6.7); выбранный цвет сразу применяется и записывается в документ.

5.5. Меню «Окно»

Меню «Окно»
Меню «Окно»

«Новое окно» — тот же документ ещё в одном окне (с новым расчётом ДН); «Каскадом»; «Мозаикой».

5.6. Меню «Справка»

Меню «Справка»
Меню «Справка»

«О программе TMC_DN…» — раздел 6.9.


6. Окна программы

6.1. Окно «Параметры окна»

Открывается: кнопка «Параметры окна», Вид → Параметры окна (Ctrl+H), щелчок правой кнопкой внутри осей.

Окно «Параметры окна» TMC_DN
Окно «Параметры окна» TMC_DN

Группа «Пределы окна графика»

Элемент Что задаёт Значения
«Автомасштаб X» Пределы X — весь круг; поля «X max», «X min» недоступны вкл./выкл.
X max, X min Границы по углу в единицах шкалы X (на снимке −3,14159…3,14159 рад) X max > X min
Формат (верхний) Формат чисел у оси X в стиле printf (%4.3lg, %.0f, …) до 300 символов
«Автомасштаб Y» Пределы Y по данным; поля «Y max», «Y min» недоступны вкл./выкл.
Y max, Y min Границы по уровню Y max > Y min
Формат (нижний) Формат чисел у оси Y до 300 символов
«Формат сетки по умолчанию» Вписывает %4.3lg в оба поля формата —

Группа «Тип графика»

Шкала X:

Переключатель Ось X
Радианы Угол в радианах
Градусы Угол в градусах

Шкала Y:

Элемент Ось Y
Переключатель «ДН» Уровень поля |E(φ)| (линейный масштаб)
Переключатель «ДН, дБ» 20·lg |E(φ)| — уровень в децибелах
Флажок «Нормировка» Включён — ДН делится на свой максимум: в линейном масштабе максимум ≈ 1, в децибелах ≈ 0 дБ, остальные значения отрицательны. Выключен — абсолютный уровень (на снимке главного окна максимум ≈ 1,25)

Нормировка особенно удобна, чтобы сравнивать форму нескольких ДН (разные частоты, решётка с отклонениями и без) и читать уровень боковых лепестков в дБ относительно главного.

Группа «Точки»

Элемент Что делает Значения
«Рисовать точки» Маркеры на кривых (своя форма у каждой из 16 кривых, общий цвет). Пока снят, два следующих элемента недоступны вкл./выкл.
«Прореживать» Около 20 маркеров на видимую часть кривой вместо маркера в каждой точке вкл./выкл.
«Размер точки» Множитель размера маркера 0…100; 1 — обычный

Группа «Цвет» («Фон», «Сетка», «Оси», «Точки», «Графики») и кнопка «Шрифт» — применяют введённое в окне (как «ОК»), закрывают его, открывают окно выбора цвета, «Параметры графиков» или «Выбор шрифта», затем снова открывают «Параметры окна».

Нижняя часть

Элемент Что это
Поле «Имя файла характеристик диаграммы направленности» Только для чтения: путь к документу (на снимке — r7.$op)
ОК Применить, перерисовать, записать документ (форматы и размер точки запоминаются и для следующих документов)
Отмена Закрыть без изменений

6.2. Окно «Характеристики»

Открывается: кнопка «Характеристики», Правка → Характеристики (Ctrl+D), щелчок правой кнопкой вне осей.

Окно «Характеристики» TMC_DN
Окно «Характеристики» TMC_DN
Элемент Что это Значения
Поле «Файл для построения ДН» Только для чтения: путь к документу —
Столбец «Файл данных» (20 строк) Имя файла .DAT (относительно папки документа). Стереть имя — удалить диаграмму имя файла
Столбец «Имя графика» Подпись в легенде (пусто — имя файла; пробелы удаляются) текст
Столбец «Видимость» Показывать диаграмму вкл./выкл.
Столбец «Прореживание» (на снимке подпись обрезана: «Прореживани») По исходному коду: включён — учитываются секторы FiMin…FiMax излучателей из файла .DAT; выключен — каждый излучатель считается излучающим во всех направлениях (−180…180°). Новые строки — включён вкл./выкл.
ОК Записать изменения и пересчитать все ДН —
Отмена Закрыть без изменений —
Добавить Применить изменения и выбрать ещё один .DAT; потом окно откроется снова —
«Внести отклонения в распределение» Окно «Отклонения по исходному файлу» (раздел 6.4). Окно «Характеристики» остаётся открытым —
«Рассчитать отклонение ДН» Окно «Расчёт отклонения диаграммы направленности» (раздел 6.5) —

Диаграммы 1–16 оформляются образцами 1–16 окна «Параметры графиков», 17–20 — образцами 1–4.

6.3. Окно хода расчёта ДН

Появляется при открытии файла, после «Перерисовать данные», «Добавить характеристику» и «ОК» в окне «Характеристики». Снимка этого окна пока нет (раздел 9); описание — по разметке окна.

Элемент Что показывает
Заголовок «ПОДОЖДИТЕ: расчёт данных для построения ДН» —
«Число излучателей» Число излучателей текущей ДН
«Диаграмма направленности» / «Число диаграмм направленности» Номер рассчитываемой ДН и сколько всего ДН в документе
«Прошло времени:» Время с начала расчёта (секунды; мин:с; ч:мин:с)
«Уже рассчитано:» Два индикатора с процентами: готовность текущей ДН и всех ДН документа
Кнопка «Скрыть» Закрывает окно хода; расчёт продолжается в фоне, на графике до его конца — Please wait ... Data calculate

Окно закрывается само, когда расчёт окончен или произошла ошибка.

6.4. Окно «Отклонения по исходному файлу»

Открывается кнопкой «Внести отклонения в распределение» в окне «Характеристики».

Окно «Отклонения по исходному файлу»
Окно «Отклонения по исходному файлу»

Окно создаёт новый файл .DAT, в котором параметры каждого излучателя исходной решётки случайно изменены — так моделируются погрешности изготовления и возбуждения.

Элемент Что это По умолчанию
Группа «Отклонение»: «X, мм» Наибольшее отклонение координаты X, мм 0
«Y, мм» Наибольшее отклонение координаты Y, мм 0
«Амплитуда, %» Наибольшее отклонение амплитуды, в процентах от её значения 10
«Фаза, градусы» Наибольшее отклонение фазы, градусы 10
Группа «Откуда»: поле и «Изменить» Исходный файл .DAT; «Изменить» — выбор файла (фильтр *.dat) —
Группа «Куда»: поле и «Изменить» Новый файл .DAT; «Изменить» — окно сохранения. Сразу после выбора имени отклонения вносятся и файл записывается —
ОК Вносит отклонения заново (с новыми случайными числами), перезаписывает файл «Куда» и закрывает окно. При ошибке выводится окно с текстом ошибки, окно отклонений остаётся открытым —
Отмена Закрыть окно. Файл, уже записанный после выбора «Куда», остаётся —

Как вносятся отклонения (по коду): к каждому параметру прибавляется случайное число, равномерно распределённое в пределах ±(заданное отклонение): X ± ΔX, Y ± ΔY, амплитуда ± a·Δa/100, фаза ± Δφ.

Особенности текущей версии: - в новый файл записываются только X, Y, амплитуда и фаза; секторы FiMin/FiMax и собственные ДН излучателей не переносятся — в новом файле излучатели излучают во все стороны; - генератор случайных чисел не инициализируется от времени, поэтому после каждого запуска программы последовательность отклонений повторяется.

Чтобы посмотреть результат, добавьте новый .DAT в документ кнопкой «Добавить» и сравните ДН.

6.5. Окно «Расчёт отклонения диаграммы направленности»

Открывается кнопкой «Рассчитать отклонение ДН» в окне «Характеристики».

Окно «Расчёт отклонения диаграммы направленности»
Окно «Расчёт отклонения диаграммы направленности»

Окно рассчитывает ДН заданного амплитудно-фазового распределения в тех же углах, что и требуемая (эталонная) ДН, и записывает обе в один файл для сравнения.

Элемент Что это
«Файл амплитудно-фазового распределения» + «Изменить» Файл .DAT с решёткой; «Изменить» — выбор файла (*.dat). Используются частота, общая ДН элемента и X, Y, амплитуда, фаза излучателей
«Файл требуемой ДН» + «Изменить» Текстовый файл .opt с эталонной ДН (формат ниже); «Изменить» — выбор файла (*.opt)
«Файл для сохранения отклонения ДН» + «Изменить» Файл результата .dev; «Изменить» — окно сохранения. Сразу после выбора имени расчёт выполняется и файл записывается
ОК Выполнить расчёт, записать .dev и закрыть окно. При ошибке — окно с текстом ошибки, окно расчёта остаётся открытым
Отмена Закрыть

Формат .opt — строки из двух чисел: угол в градусах и требуемое значение ДН. Строки, где нет двух чисел, пропускаются; нужно не меньше двух строк. Пример:

-90   0.01
-45   0.5
0     1
45    0.5
90    0.01

Формат .dev — первая строка !Degree AmplitudeDirectPatternRequired AmplitudeDirectPattern, далее по строке на угол: угол (градусы), требуемая ДН, рассчитанная ДН (по коду — нормированная на свой максимум). Файл открывается в любом табличном редакторе.

Как и в окне отклонений, секторы FiMin/FiMax и собственные ДН излучателей в этот расчёт не передаются (чек-лист, п. 5).

6.6. Окна «Параметры графиков»

Список 16 образцов (Настройки → Цвет → Графики или «Графики» в «Параметрах окна»):

Окно «Параметры графиков» — 16 образцов
Окно «Параметры графиков» — 16 образцов
Элемент Что делает
16 образцов Вид линии ДН 1…16 (ДН 17–20 повторяют образцы 1–4)
«Изменить» Окно стиля линии образца
«По умолчанию» Исходные цвета, стили и толщины всех образцов
ОК / Отмена Применить и записать в документ / закрыть без изменений

Стиль линии (кнопка «Изменить»):

Окно стиля линии
Окно стиля линии
Элемент Что делает
«Стиль» «Сплошная», «Штриховая», «Пунктирная», «Штрихпунктирная», «Штрихпунктир, 2 точки» (с образцами слева)
«Толщина» 1…5 пикселей (сверху вниз). Доступна только у сплошной линии; при другом стиле сбрасывается на 1 пиксель, остальные варианты недоступны
Цвет Окно «Выбор цвета» для линии
ОК / Отмена Запомнить / закрыть без изменений

6.7. Окно «Выбор цвета»

Окно «Выбор цвета»
Окно «Выбор цвета»
Элемент Что делает
Цветовое поле Насыщенность — по горизонтали, яркость — по вертикали
Радужная полоса Оттенок
Кнопка-пипетка (справа вверху) Взять цвет с любого места экрана щелчком; Esc — отмена
«БЫЛО / СТАЛО» Исходный и выбранный цвета с кодами #RRGGBB; щелчок по «БЫЛО» возвращает исходный цвет
«HEX» Код #RRGGBB или #RGB
R, G, B Составляющие цвета, 0…255 (ползунок и поле)
«ПАЛИТРА ПРОЕКТА», «ЦВЕТА ГРАФИКОВ», «НЕДАВНИЕ» Готовые цвета; «Недавние» — выбранные ранее («Здесь появятся выбранные цвета», пока пусто)
Отмена / ОК Закрыть без изменений / применить

6.8. Окно «Выбор шрифта»

Окно «Выбор шрифта»
Окно «Выбор шрифта»

Шрифт применяется к числам и подписям осей и к легенде.

Элемент Что делает
«Шрифт» Название шрифта
«Начертание» Regular, Italic, Bold, Bold Italic
«Размер» Размер в пунктах
«Эффекты» «Зачёркнутый», «Подчёркнутый»
«Система письма» Набор символов («Любая»)
«Пример» Образец текста
ОК / Отмена Применить / закрыть

6.9. Окно «О программе TMC_DN»

Окно «О программе TMC_DN»
Окно «О программе TMC_DN»
Элемент Что это
Значок, «TMC_DN» Программа
Описание «Программа просмотра диаграмм направленности.» и «Просмотр диаграмм направленности пакета TMC Suite.»
«Версия 5.0», «2026», «Windows · x64» Версия, год, платформа
«АВТОР: К. Н. Климов, © 2026» Автор
GitHub, LinkedIn, ResearchGate, eLibrary Ссылки на страницы автора (открываются в браузере)
www.tamic.ru Сайт проекта
«Руководство пользователя» PDF на языке интерфейса рядом с программой — TMC_Suite_5.0_Руководство_пользователя.pdf или TMC_Suite_5.0_User_Manual.pdf (метка «PDF»), а если его нет — руководство на сайте www.tamic.ru/docs/user-manual/index.html («НА САЙТЕ»)
«TMC Suite 5.0 · Qt …» Версии пакета и Qt
ОК Закрыть

7. Типичные задачи по шагам

7.1. Посмотреть ДН после расчёта

  1. В задании ядра должна быть директива FIELD_DISTRIBUTION или FIELD_DISTRIBUTION_M в #OUTPUT. Окно накопления этой директивы должно кончаться раньше времени анализа TIME, иначе файлов ДН не будет (Файл задания .tpl, раздел 7.5).
  2. После расчёта нажмите в ядре «Показать диаграмму направленности» (или «Экспорт в файл диаграммы направленности», а затем откройте .DAT в TMC_DN).
  3. Дождитесь окончания расчёта ДН (окно хода расчёта).
  4. Ctrl+T — показать ДН по всему кругу.

7.2. ДН в децибелах относительно максимума

  1. Ctrl+H.
  2. «Шкала Y» → «ДН, дБ», отметьте «Нормировка».
  3. «Шкала X» → «Градусы» → ОК.
  4. При необходимости снимите «Автомасштаб Y» и задайте «Y min», например −40.

7.3. Сравнить ДН на нескольких частотах

При многочастотном расчёте ядро записывает по файлу ДН на каждую частоту с именами <имя>_<МГц>MHz.DAT (например, dn_mf_3000MHz.DAT … dn_mf_4800MHz.DAT), см. Многочастотный расчёт.

  1. Откройте первый файл.
  2. «Добавить характеристику» (Ctrl+A) — по очереди добавьте остальные (до 20).
  3. В «Характеристиках» дайте графикам понятные имена (например, 3.0GHz).
  4. Включите «Нормировку» и «ДН, дБ» (раздел 7.2).

7.4. Оценить влияние погрешностей решётки

  1. Откройте исходный .DAT и нажмите «Характеристики» → «Внести отклонения в распределение».
  2. «Откуда» → «Изменить» → выберите исходный .DAT.
  3. Задайте отклонения (например, амплитуда 10 %, фаза 10°, X и Y 0,5 мм).
  4. «Куда» → «Изменить» → задайте имя нового файла: файл с отклонениями запишется сразу.
  5. Нажмите «Отмена», чтобы оставить этот файл, или «ОК», чтобы перезаписать его новой случайной реализацией.
  6. В «Характеристиках» нажмите «Добавить» и выберите новый файл — на графике будут обе ДН.
  7. Учтите ограничение раздела 6.4: в новом файле нет секторов и собственных ДН излучателей.

7.5. Сравнить ДН с требуемой

  1. Подготовьте файл .opt (раздел 6.5).
  2. «Характеристики» → «Рассчитать отклонение ДН».
  3. Выберите .DAT и .opt, затем «Изменить» у «Файла для сохранения отклонения ДН» и задайте имя .dev — файл запишется сразу. Закройте окно «Отменой» (или «ОК» — расчёт повторится).
  4. Откройте .dev в табличном редакторе и сравните столбцы.

8. Частые вопросы и ошибки

Ситуация Причина Что делать
Долго висит окно хода расчёта Большая решётка (тысячи излучателей) Дождитесь или нажмите «Скрыть» — расчёт продолжится в фоне
На графике Please wait ... Data calculate Идёт расчёт ДН Дождитесь окончания
В легенде Error_when_read_<файл> Файл .DAT не найден, нарушен его формат (строки Frequence, N, строки излучателей) или ошибка в выражении ДН элемента Сверьте файл с разделом 2.4; угол в выражениях обозначается f (радианы)
Окно с текстом Error when read … from input data file …, Error when open optimization file …, Error when calculate expression for one Directional Pattern {…} Ошибка в окнах отклонений: неверный путь, формат .DAT/.opt или выражение Проверьте файлы, указанные в окне
Окно с текстом Output File name is NULL Не задан файл «Куда» или «Файл для сохранения отклонения ДН» Задайте имя кнопкой «Изменить»
Открыл другой файл — ДН вне окна Пределы запоминаются «Авто-масштаб X/Y» (Alt+X, Alt+Y) или Ctrl+T
«Начало» и «Конец» не работают Включён автомасштаб X Выключите (Alt+X)
«Создать» выдаёт сообщение и ничего не создаёт Команда в текущей версии не реализована Откройте .DAT
После «Сохранить как…» файл получил расширение .tos Окно сохранения предлагает .tos Сохраните заново с расширением .dop
Рядом с .DAT появились .DAT_Temp1, .$op Служебный файл быстрого повторного открытия большой решётки; запасной документ Их можно удалить, программа создаст заново
Ядро не записало файл .DAT Окно FIELD_DISTRIBUTION кончается ровно на TIME или позже Сделайте окно короче или время анализа длиннее (Файл задания .tpl, раздел 7.5)
Где КНД и КИП? В текущей версии значения в окне не выводятся; с 26.10.2026 они вычисляются по формулам для двумерной задачи (раздел 2.4) 6
КНД, полученный раньше, был заметно больше До 26.10.2026 при N ≤ 400 КНД получался завышенным и зависел от масштаба амплитуд (раздел 2.4) Пересчитайте

User manual — TMC_DN (tmc_dn.exe)

TMC Suite 5.0 package for Windows x64, new interface (Qt 6, dark theme, English language). The previous version of the program with the MFC interface (TMC_DN.exe from older builds) computes and shows the same, but its windows are not described in this manual.

Change from the fixes of 26.10.2026 (version 5.1): the computation of the directivity and aperture efficiency has been corrected (Sec. 2.4).

Contents

  1. Purpose of the program
  2. Starting the program and opening files
  3. Main window
  4. Toolbar
  5. Menus
  6. Program windows
  7. Typical tasks step by step
  8. Frequently asked questions and errors

1. Purpose of the program

TMC_DN (window title — "Tamic Directional Pattern Viewer") is a program for computing and viewing radiation patterns (RP). In the About dialog it is described as "Viewer for directional patterns."

A radiation pattern shows how the radiation is distributed over directions: the X axis shows the angle in the plane of the structure, the Y axis shows the field level in that direction.

Where the data come from. The compute kernel (PlanarRT H or PlanarRT X) accumulates the field during the computation (the FIELD_DISTRIBUTION / FIELD_DISTRIBUTION_M directives of the #OUTPUT section of the task, see Task file .tpl, Sec. 7.5) and writes an emitter array description file .DAT: each emitter is a point of the region contour with coordinates, amplitude and phase. TMC_DN reads the .DAT file, computes the RP from it and draws the graph.

What the program can do:

  • compute the RP of an emitter array and show up to 20 patterns on one graph (for example, the RP at different frequencies of a multi-frequency computation);
  • show the RP on a linear scale or in decibels, absolute or normalized to the maximum;
  • plot the angle in radians or degrees;
  • introduce random deviations into the coordinates, amplitudes and phases of the emitters and save the new array (the "Make deviation form source file" window);
  • compute the RP at the angles of a required (reference) RP and save both for comparison (the "Calculate deviation directional pattern" window);
  • zoom and shift the graph, set up its appearance.

The computation for a large array runs in the background — during this time the computation progress window is on the screen (Sec. 6.3).

TMC_DN main window
TMC_DN main window

2. Starting the program and opening files

2.1. How to start

  • After installation (TMC_Suite_5.0_Qt6_Setup.exe) — the TMC_DN shortcut in the Start menu.
  • Without installation — the file tmc_dn.exe in the TMC_Suite_Qt6_win64 folder.
  • From a compute kernel — the "View Directional Pattern" button (Ctrl+Alt+F4): the kernel opens TMC_DN with the .DAT file of the current computation (see PlanarRT H).

The window opens in the same place and with the same size as when it was last closed.

2.2. Which files the program opens

File What it is Who creates it
.DAT Emitter array description: frequency, number of emitters, RP of one element, one line per emitter Compute kernel; the "Make deviation form source file" window
.dop TMC_DN document: text with the appearance settings and the list of patterns; refers to .DAT files TMC_DN
.$op Backup document: created instead of .dop if a .dop with the same name already exists TMC_DN

The filter of the open window is "TMCRTOS (*.dat *.dop *.$op)" and "All Files".

2.3. How to open a file

  1. Open , File → Open... or Ctrl+O.
  2. Select a .DAT or .dop file → "Open".
  3. The RP computation starts: the computation progress window appears (Sec. 6.3), and the graph area shows the text Please wait ... Data calculate. When it finishes, the progress window closes by itself and the graph appears.

When a .DAT file is opened, the program creates next to it a document <name>.dop with one pattern; if the .dop already exists, it is left untouched, and a backup <name>.$op is created (overwritten) instead (in the screenshots — r7.$op).

Unlike TMCROS and TMCGROUT, the "File" menu of TMC_DN has no list of recent files.

2.4. The .DAT file

A text file. The beginning of the example samples/DEMO/TMC_DN/r7.DAT:

Frequence = 10 Ghz;
N = 5784;
1.
1   X = 20 mm; Y = 21 mm; Amplitude = 0.000190142; Faza = -118.582 degree; FiMin = 90.001 degree; FiMax = 269.999 degree; 1.
2   X = 20 mm; Y = 21 mm; Amplitude = 0.000125748; Faza = 19.1385 degree; FiMin = 90.001 degree; FiMax = 269.999 degree; cos(f)
3   X = 20 mm; Y = 21 mm; Amplitude = 0; Faza = 0 degree; FiMin = 90.001 degree; FiMax = 269.999 degree; sin(f)
Line Meaning Units
Frequence = … Ghz; Frequency GHz
N = …; Number of emitters integer ≥ 1
3rd line Common RP of one element — an expression of the angle f (radians); 1. — an omnidirectional element —
Emitter lines Number; X, Y — coordinates; Amplitude — amplitude; Faza — phase; FiMin, FiMax — the angular sector in which the emitter radiates; at the end — the emitter's own RP (1., cos(f), sin(f) or an expression) mm; mm; —; degrees; degrees

The FiMin, FiMax fields and the own expression are optional: without them the emitter is considered to radiate in all directions with an RP equal to 1.

Any sector (since 29.10.2026). The FiMin…FiMax sector works for any sector, including those that contain 0 and 180 degrees at the same time (for example, 0…360, -100…190, -30…200). Previously an emitter with such a sector silently dropped out of the RP.

How the program computes the RP (according to the source code; for the wording see the checklist, item 1). The fields of all emitters are added coherently: for the angle φ

E(φ) = g(φ) · Σ aᵢ · gᵢ(φ) · exp[ j(φᵢ + k·rᵢ·cos(φ − αᵢ)) ],

where aᵢ and φᵢ are the amplitude and phase of the emitter, rᵢ and αᵢ are its distance from the origin and its polar angle, k = 2πf/c, g is the common RP of the element (3rd line), gᵢ is the emitter's own RP (outside the sector FiMin…FiMax — practically zero). The graph shows |E(φ)|.

For arrays of up to 400 emitters the RP is computed at 400 points within the current X limits and recomputed every time these limits change (zoom, shift). For larger arrays it is computed once at 1000 points over the whole circle (−180…180°); the result is remembered in the service file <name>.DAT_Temp1 (or _Temp0) next to the .DAT file and is taken from it on the next opening if the .DAT file has not changed.

Directivity and aperture efficiency (corrected on 26.10.2026). The program computes the directivity (D) and the aperture efficiency for a two-dimensional problem (one cut, one plane):

D = 2π · max|F|² / ∫₀^2π |F(φ)|² dφ,

aperture efficiency = D / D₀, where D₀ is the directivity of a uniform-amplitude in-phase array of the same geometry.

Now the directivity and aperture efficiency are correct for any number of emitters and do not depend on the amplitude scale. Previously, for N ≤ 400 the directivity came out too high and depended on the amplitudes: for example, for 4 isotropic emitters spaced λ/2 — 19.8 dB instead of 7.74 dB, 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 (∫ |F|² dφ), as before.

2.5. The .dop document

A text file; the first line is the #TMCGROTS signature (the same as for TMCROS documents). The program rewrites the document on every change of the scale, appearance or list of patterns.

Key What it sets Values
#nXType X scale 0 — radians, 1 — degrees
#nYType Y scale 0 — RP, 1 — RP, dB, 2 — normalized RP, 3 — normalized RP, dB
#Xmin, #Xmax, #Ymin, #Ymax, #nAFlagX, #nAFlagY, #PointDrawFlag, colors, font, editor As in TMCROS documents (see TMCROS, Sec. 2.4) —

Pattern line: <.DAT file> <label> <show 0/1> 1 <reduce 0/1> 1 1 (the fifth field is the "Reduce" check box of the "Characteristics" window, Sec. 6.2).


3. Main window

TMC_DN main window
TMC_DN main window
  1. Title — "Tamic Directional Pattern Viewer" and the document name (in the screenshot — [r7.DAT]).
  2. Menu bar — "File", "Edit", "View", "Config", "Window", "Help" (Sec. 5). On the right — the document window control buttons.
  3. Toolbar — 23 buttons (Sec. 4).
  4. Graph area — the Y axis with a label (Pattern — RP, Pattern dB — RP in dB), the X axis with a label (Angle radian or Angle degree), a dashed 10 × 10 grid, RP curves with markers, the legend at the top right. In the screenshot the graph is zoomed in and the X axis has gone beyond the bottom edge of the window — it can be seen by scrolling or with the "ReSize viewport" button. The labels on the graph are always in English.
  5. Status bar:
    • on the left — "Ready"; while the left button is held down inside the axes — the cursor coordinates, for example Angle radian=0.52; Pattern=1.1;
    • on the right — the Y scale and the frequency of the first RP of the document, for example Pattern; Freq=10 GHz.

3.1. Working with the mouse

Action Where Result
Drag a frame with the left button Inside the axes The selected part is stretched to the window (an axis along which the frame is smaller than 10 % of the window does not change, auto scale is switched on along Y; if the frame is smaller than 10 % along both axes, nothing happens). The RP is recomputed within the new angle limits
Double-click Inside the axes "Resize window": X — the whole circle (−π…π or −180…180°), Y — auto scale
Double-click Outside the axes "ReSize viewport": the axes are fitted to the window
Right-click Inside the axes The "Viewport" window
Right-click Outside the axes The "Characteristics" window

4. Toolbar

TMC_DN toolbar
TMC_DN toolbar

The tooltip shown on hover is the name from the second column. While no document is open, only "Open" and "About TMC_DN" are available. A switched-on auto scale is shown with a frame around the button.

Button Name What it does Keys
Open Opens a .DAT or .dop file Ctrl+O
Add characteristics Selection of one more .DAT file (filter *.dat, document folder); the RP is computed and added, then the "Characteristics" window opens Ctrl+A
Characteristics The window with the list of patterns and the deviation functions (Sec. 6.2) Ctrl+D
Viewport The window of limits, scales, normalization, points and colors (Sec. 6.1) Ctrl+H
Redraw data Rereads the files and recomputes all RPs (with the computation progress window) Ctrl+W
ReSize viewport The axes take about 70 % of the width and 90 % of the height of the window, with room for the legend on the right Ctrl+R
Zoom + The data window becomes half as large along both axes; auto scale is switched off +
Zoom +X Half as large in angle X
Zoom +Y Half as large in level Y
Zoom - The data window becomes twice as large along both axes −
Zoom -X Twice as large in angle Shift+X
Zoom -Y Twice as large in level Shift+Y
Resize window X — the whole circle (−π…π or −180…180°), Y — auto scale Ctrl+T
Auto X size On: the X limits are the whole circle; off: the X limits are set manually Alt+X
Auto Y size Switches auto scale in level on/off Alt+Y
Home The left boundary of the window is the angle 0 (the window width is kept). Only when X auto scale is off Home
End The right boundary of the window is π (180°), the width is kept. Only when X auto scale is off End
Decrement X Window to the left by 10 % of its width; X auto scale is switched off ←
Increment X Window to the right by 10 % of its width →
Decrement Y Window down by 10 % of its height; Y auto scale is switched off V
Increment Y Window up by 10 % of its height ↑
Print Printing the graph Ctrl+P
About TMC_DN The About dialog (Sec. 6.9) —

All scale changes are written to the document at once.


5. Menus

Items that have a button on the toolbar do the same as the button. While no document is open, only "New", "Open...", "Exit" and "About TMC_DN..." are available.

5.1. The "File" menu

The "File" menu
The "File" menu
Item Keys What it does
New Ctrl+N Not implemented in the current version: the message "Creating a new task will become available together with the characteristics dialog." is shown
Open... Ctrl+O Open a .DAT or .dop file
Close — Close the document window. If an RP computation is running, the program first waits for it to finish
Save Ctrl+S Write the document
Save As... — Write the document under a new name. The window proposes the .tos extension (inherited from TMCROS) — enter the name with the .dop extension
Print... Ctrl+P Printing
Print Preview — Print preview
Print Setup... — Page settings
Exit — Close the program

5.2. The "Edit" menu

The "Edit" menu
The "Edit" menu
Item Keys What it does
Characteristics Ctrl+D The "Characteristics" window (Sec. 6.2)
Add characteristics Ctrl+A Add one more .DAT file
Editor Alt+F7 Open the .dop document in the external editor set in "Config → Editor" (by default the document contains winword.exe; if Word is not installed, specify, for example, notepad.exe)

TMC_DN has no "To S-matrix" item: the RP is built from the emitter array, not from signals.

5.3. The "View" menu

The "View" menu
The "View" menu
Item Keys What it does
Viewport Ctrl+H The "Viewport" window
Redraw data Ctrl+W Reread the files and recompute the RP
Zoom ▸ — Submenu 5.3.1
Translate ▸ — Submenu 5.3.2
Status Bar — Show/hide
Toolbar — Show/hide

5.3.1. The "View → Zoom" submenu

The "Zoom" submenu
The "Zoom" submenu

"ReSize viewport" (Ctrl+R), "Zoom +" (+), "Zoom +X" (X), "Zoom +Y" (Y), "Zoom -" (−), "Zoom -X" (Shift+X), "Zoom -Y" (Shift+Y), "Resize window" (Ctrl+T), "Auto X size" (Alt+X), "Auto Y size" (Alt+Y) — the same as the buttons of the same name (Sec. 4).

5.3.2. The "View → Translate" submenu

The "Translate" submenu
The "Translate" submenu
Submenu Item Keys What it does
Change Xmax, Xmin ▸ Decrement ← Window to the left by 10 %
Increment → Window to the right by 10 %
Home Home Left boundary — 0
End End Right boundary — π (180°)
Change Ymax, Ymin ▸ Decrement V Window down by 10 %
Increment ↑ Window up by 10 %

5.4. The "Config" menu

The "Config" menu
The "Config" menu
Item What it does
Language / Язык ▸ Interface language
Editor Selection of a program (*.exe) — the external editor; it is written to the document
Color ▸ Color submenu
Font The "Select Font" window (Sec. 6.8)
The "Language / Язык" submenu
The "Language / Язык" submenu

"System / Как в системе", "Русский", "English" — the language changes at once and is remembered; a check mark shows the current choice. The choice is shared by all programs of the package: other programs that are already open at that moment switch to the new language the next time they are started (overview.md, Sec. 6.2).

The "Color" submenu
The "Color" submenu
Item What it changes
Background Background of the graph area
Grid Coordinate grid
Axies Axes
Point Markers (a common color)
Graphics The "Graphics parameters" window (Sec. 6.6)

The "Background", "Grid", "Axies", "Point" items open the "Select Color" window (Sec. 6.7); the selected color is applied at once and written to the document.

5.5. The "Window" menu

The "Window" menu
The "Window" menu

"New Window" — the same document in one more window (with a new RP computation); "Cascade"; "Tile".

5.6. The "Help" menu

The "Help" menu
The "Help" menu

"About TMC_DN..." — Sec. 6.9.


6. Program windows

6.1. The "Viewport" window

Opened by: the "Viewport" button, View → Viewport (Ctrl+H), a right-click inside the axes.

TMC_DN "Viewport" window
TMC_DN "Viewport" window

The "Graphics window size" group

Element What it sets Values
"Automatic XSize Flag" The X limits are the whole circle; the "X max", "X min" fields are unavailable on/off
X max, X min Angle limits in X scale units (in the screenshot −3.14159…3.14159 rad) X max > X min
Format (upper) Number format at the X axis in printf style (%4.3lg, %.0f, …) up to 300 characters
"Automatic YSize Flag" Y limits from the data; the "Y max", "Y min" fields are unavailable on/off
Y max, Y min Level limits Y max > Y min
Format (lower) Number format at the Y axis up to 300 characters
"Default Grid Format" Writes %4.3lg into both format fields —

The "Graphics type" group

X-scale:

Radio button X axis
Radian Angle in radians
Degree Angle in degrees

Y-scale:

Element Y axis
"Pattern" radio button Field level |E(φ)| (linear scale)
"Pattern dB" radio button 20·lg |E(φ)| — the level in decibels
"Normirovka" (normalization) check box On — the RP is divided by its maximum: on the linear scale the maximum ≈ 1, in decibels ≈ 0 dB, the other values are negative. Off — the absolute level (in the main window screenshot the maximum ≈ 1.25)

Normalization is especially convenient for comparing the shape of several RPs (different frequencies, an array with and without deviations) and for reading the side lobe level in dB relative to the main lobe.

The "Point" group

Element What it does Values
"DrawPoint" Markers on the curves (each of the 16 curves has its own shape, the color is common). While it is cleared, the next two elements are unavailable on/off
"Reduct" About 20 markers on the visible part of the curve instead of a marker at every point on/off
"Point Size" Marker size multiplier 0…100; 1 — normal

The "Color" group ("Background", "Grid", "Axies", "Point", "Graphics") and the "Font" button apply what has been entered in the window (like "OK"), close it, open the color selection window, "Graphics parameters" or "Select Font", and then open "Viewport" again.

Bottom part

Element What it is
"DiagrPattern characteristics file name" field Read-only: the path to the document (in the screenshot — r7.$op)
OK Apply, redraw, write the document (the formats and the point size are also remembered for the next documents)
Cancel Close without changes

6.2. The "Characteristics" window

Opened by: the "Characteristics" button, Edit → Characteristics (Ctrl+D), a right-click outside the axes.

TMC_DN "Characteristics" window
TMC_DN "Characteristics" window
Element What it is Values
"File name for draw Pattern" field Read-only: the path to the document —
"Data FileName" column (20 rows) Name of a .DAT file (relative to the document folder). Erasing the name deletes the pattern file name
"GraphName" column Label in the legend (if empty — the file name; spaces are removed) text
"Visible" column Show the pattern on/off
"Reduce" column According to the source code: on — the FiMin…FiMax sectors of the emitters from the .DAT file are taken into account; off — each emitter is considered to radiate in all directions (−180…180°). New rows — on on/off
OK Write the changes and recompute all RPs —
Cancel Close without changes —
Add Apply the changes and select one more .DAT file; after that the window opens again —
"Make Distribution Deviation" The "Make deviation form source file" window (Sec. 6.4). The "Characteristics" window stays open —
"Calculate Directional Pattern Deviation" The "Calculate deviation directional pattern" window (Sec. 6.5) —

Patterns 1–16 are drawn with patterns 1–16 of the "Graphics parameters" window, 17–20 with patterns 1–4.

6.3. The RP computation progress window

It appears when a file is opened, after "Redraw data", "Add characteristics" and "OK" in the "Characteristics" window. There is no screenshot of this window yet (Sec. 9); the description is based on the window layout.

Element What it shows
Title "PLEASE WAIT : Calculate data for draw directional pattern" —
"Number of emitters" Number of emitters of the current RP
"Directional Pattern" / "Number of Directional Pattern" Number of the RP being computed and how many RPs there are in the document in total
"Elaps. Time:" Time since the start of the computation (seconds; min:s; h:min:s)
"Already calculate:" Two progress bars with percentages: completion of the current RP and of all RPs of the document
"Hide" button Closes the progress window; the computation continues in the background, and until it ends the graph shows Please wait ... Data calculate

The window closes by itself when the computation is finished or an error has occurred.

6.4. The "Make deviation form source file" window

Opened with the "Make Distribution Deviation" button in the "Characteristics" window.

The "Make deviation form source file" window
The "Make deviation form source file" window

The window creates a new .DAT file in which the parameters of each emitter of the original array are changed randomly — this is how manufacturing and excitation errors are modelled.

Element What it is Default
"Deviation" group: "X mm" Maximum deviation of the X coordinate, mm 0
"Y mm" Maximum deviation of the Y coordinate, mm 0
"Amplitude %" Maximum deviation of the amplitude, in percent of its value 10
"Faza degree" Maximum deviation of the phase, degrees 10
"From" group: field and "Change" The original .DAT file; "Change" — file selection (filter *.dat) —
"To" group: field and "Change" The new .DAT file; "Change" — the save window. As soon as the name is selected, the deviations are introduced and the file is written —
OK Introduces the deviations again (with new random numbers), overwrites the "To" file and closes the window. On an error a window with the error text is shown, and the deviation window stays open —
Cancel Close the window. A file already written after the "To" selection remains —

How the deviations are introduced (according to the code): a random number uniformly distributed within ±(the specified deviation) is added to each parameter: X ± ΔX, Y ± ΔY, amplitude ± a·Δa/100, phase ± Δφ.

Specifics of the current version: - only X, Y, amplitude and phase are written to the new file; the FiMin/FiMax sectors and the emitters' own RPs are not transferred — in the new file the emitters radiate in all directions; - the random number generator is not initialized from the time, so after each start of the program the sequence of deviations repeats.

To view the result, add the new .DAT file to the document with the "Add" button and compare the RPs.

6.5. The "Calculate deviation directional pattern" window

Opened with the "Calculate Directional Pattern Deviation" button in the "Characteristics" window.

The "Calculate deviation directional pattern" window
The "Calculate deviation directional pattern" window

The window computes the RP of a given amplitude-phase distribution at the same angles as the required (reference) RP and writes both to one file for comparison.

Element What it is
"File with Distribution Amplitude and Faza" + "Change" A .DAT file with the array; "Change" — file selection (*.dat). The frequency, the common RP of the element and the X, Y, amplitude, phase of the emitters are used
"File with requred Directional Pattern" + "Change" A text .opt file with the reference RP (format below); "Change" — file selection (*.opt)
"File name for save Deviation Directional Pattern" + "Change" The .dev result file; "Change" — the save window. As soon as the name is selected, the computation is performed and the file is written
OK Perform the computation, write the .dev file and close the window. On an error — a window with the error text, and the computation window stays open
Cancel Close

The .opt format — lines of two numbers: the angle in degrees and the required RP value. Lines without two numbers are skipped; at least two lines are needed. Example:

-90   0.01
-45   0.5
0     1
45    0.5
90    0.01

The .dev format — the first line is !Degree AmplitudeDirectPatternRequired AmplitudeDirectPattern, then one line per angle: the angle (degrees), the required RP, the computed RP (according to the code — normalized to its maximum). The file opens in any spreadsheet editor.

As in the deviation window, the FiMin/FiMax sectors and the emitters' own RPs are not passed to this computation (checklist, item 5).

6.6. The "Graphics parameters" windows

The list of 16 patterns (Config → Color → Graphics or "Graphics" in "Viewport"):

The "Graphics parameters" window — 16 patterns
The "Graphics parameters" window — 16 patterns
Element What it does
16 patterns Line appearance of RPs 1…16 (RPs 17–20 repeat patterns 1–4)
"Change" The line style window of the pattern
"Default" The original colors, styles and widths of all patterns
OK / Cancel Apply and write to the document / close without changes

Line style (the "Change" button):

Line style window
Line style window
Element What it does
"Style" "Solid", "Dash", "Dot", "DashDot", "DashDotDot" (with samples on the left)
"Width" 1…5 pixels (from top to bottom). Available only for a solid line; with another style it is reset to 1 pixel, the other options are unavailable
Color The "Select Color" window for the line
OK / Cancel Remember / close without changes

6.7. The "Select Color" window

The "Select Color" window
The "Select Color" window
Element What it does
Color field Saturation horizontally, brightness vertically
Rainbow strip Hue
Eyedropper button (top right) Pick a color anywhere on the screen with a click; Esc — cancel
"BEFORE / AFTER" The original and the selected colors with #RRGGBB codes; clicking "BEFORE" restores the original color
"HEX" Code #RRGGBB or #RGB
R, G, B Color components, 0…255 (slider and field)
"PROJECT PALETTE", "GRAPH COLORS", "RECENT" Ready-made colors; "Recent" — colors selected earlier ("Selected colors will appear here" while empty)
Cancel / OK Close without changes / apply

6.8. The "Select Font" window

The "Select Font" window
The "Select Font" window

The font applies to the numbers and labels of the axes and to the legend.

Element What it does
"Font" Font name
"Font style" Regular, Italic, Bold, Bold Italic
"Size" Size in points
"Effects" "Strikeout", "Underline"
"Writing System" Character set ("Any")
"Sample" Text sample
OK / Cancel Apply / close

6.9. The "About TMC_DN" window

The "About TMC_DN" window
The "About TMC_DN" window
Element What it is
Icon, "TMC_DN" The program
Description "Viewer for directional patterns." and "TMC Suite directional pattern viewer."
"Version 5.0", "2026", "Windows · x64" Version, year, platform
"AUTHOR: K. N. Klimov, © 2026" Author
GitHub, LinkedIn, ResearchGate, eLibrary Links to the author's pages (open in the browser)
www.tamic.ru Project website
"User Manual" The PDF in the interface language next to the program — TMC_Suite_5.0_Руководство_пользователя.pdf or TMC_Suite_5.0_User_Manual.pdf (the "PDF" tag), and if it is missing — the manual on the website www.tamic.ru/docs/user-manual/index.html ("ONLINE")
"TMC Suite 5.0 · Qt …" Versions of the package and of Qt
OK Close

7. Typical tasks step by step

7.1. View the RP after a computation

  1. The kernel task must contain the FIELD_DISTRIBUTION or FIELD_DISTRIBUTION_M directive in #OUTPUT. The accumulation window of this directive must end before the analysis time TIME, otherwise there will be no RP files (Task file .tpl, Sec. 7.5).
  2. After the computation, click "View Directional Pattern" in the kernel (or "Export to directional Pattern file", and then open the .DAT file in TMC_DN).
  3. Wait until the RP computation finishes (the computation progress window).
  4. Ctrl+T — show the RP over the whole circle.

7.2. RP in decibels relative to the maximum

  1. Ctrl+H.
  2. "Y-scale" → "Pattern dB", select "Normirovka".
  3. "X-scale" → "Degree" → OK.
  4. If necessary, clear "Automatic YSize Flag" and set "Y min", for example −40.

7.3. Compare RPs at several frequencies

In a multi-frequency computation the kernel writes one RP file per frequency with names <name>_<MHz>MHz.DAT (for example, dn_mf_3000MHz.DAT … dn_mf_4800MHz.DAT), see Multi-frequency computation.

  1. Open the first file.
  2. "Add characteristics" (Ctrl+A) — add the others one by one (up to 20).
  3. In "Characteristics" give the graphs clear names (for example, 3.0GHz).
  4. Switch on "Normirovka" and "Pattern dB" (Sec. 7.2).

7.4. Estimate the influence of array errors

  1. Open the original .DAT file and click "Characteristics" → "Make Distribution Deviation".
  2. "From" → "Change" → select the original .DAT file.
  3. Set the deviations (for example, amplitude 10 %, phase 10°, X and Y 0.5 mm).
  4. "To" → "Change" → set the name of the new file: the file with deviations is written at once.
  5. Click "Cancel" to keep this file, or "OK" to overwrite it with a new random realization.
  6. In "Characteristics" click "Add" and select the new file — the graph will show both RPs.
  7. Keep in mind the limitation of Sec. 6.4: the new file has no sectors and no own RPs of the emitters.

7.5. Compare the RP with the required one

  1. Prepare an .opt file (Sec. 6.5).
  2. "Characteristics" → "Calculate Directional Pattern Deviation".
  3. Select the .DAT and .opt files, then click "Change" at "File name for save Deviation Directional Pattern" and set a .dev name — the file is written at once. Close the window with "Cancel" (or "OK" — the computation is repeated).
  4. Open the .dev file in a spreadsheet editor and compare the columns.

8. Frequently asked questions and errors

Situation Cause What to do
The computation progress window stays on the screen for a long time A large array (thousands of emitters) Wait or click "Hide" — the computation continues in the background
The graph shows Please wait ... Data calculate The RP is being computed Wait until it finishes
Error_when_read_<file> in the legend The .DAT file is not found, its format is broken (the Frequence, N lines, the emitter lines) or there is an error in the element RP expression Compare the file with Sec. 2.4; the angle in expressions is denoted f (radians)
A window with the text Error when read … from input data file …, Error when open optimization file …, Error when calculate expression for one Directional Pattern {…} An error in the deviation windows: a wrong path, .DAT/.opt format or expression Check the files specified in the window
A window with the text Output File name is NULL The "To" file or the "File name for save Deviation Directional Pattern" is not set Set the name with the "Change" button
Another file was opened — the RP is outside the window The limits are remembered "Auto X size" / "Auto Y size" (Alt+X, Alt+Y) or Ctrl+T
"Home" and "End" do not work X auto scale is on Switch it off (Alt+X)
"New" shows a message and creates nothing The command is not implemented in the current version Open a .DAT file
After "Save As..." the file got the .tos extension The save window proposes .tos Save again with the .dop extension
.DAT_Temp1, .$op files appeared next to the .DAT file A service file for fast reopening of a large array; a backup document They can be deleted, the program will create them again
The kernel did not write a .DAT file The FIELD_DISTRIBUTION window ends exactly at TIME or later Make the window shorter or the analysis time longer (Task file .tpl, Sec. 7.5)
Where are the directivity and aperture efficiency? In the current version the values are not shown in the window; since 26.10.2026 they are computed by the formulas for a two-dimensional problem (Sec. 2.4) See the checklist, item 6
The directivity obtained earlier was noticeably larger Before 26.10.2026, for N ≤ 400 the directivity came out too high and depended on the amplitude scale (Sec. 2.4) Recompute