Linux — версия с графическим интерфейсом
Версия 2.0.0 для 64-разрядного Linux (x86-64): семь программ с теми же окнами, меню и панелями, что в версии для Windows 5.0. Счётные ядра — те же, результаты совпадают с Windows-версией, файлы заданий и результатов переносятся между системами без преобразований.
Код: github.com/klimov-kn/TMC_Suite_Linux_GUI.
Что входит
| Программа | Команда | Назначение |
|---|---|---|
| PlanarRT H | planarrt_h |
счётное ядро, H-поляризация |
| PlanarRT X | planarrt_x |
счётное ядро, X-мода, подмагниченная плазма |
| TMCGROUT | tmcgrout |
характеристики матрицы рассеяния |
| TMC_DN | tmc_dn |
диаграммы направленности |
| TMCROS | tmcros |
сигналы во времени |
| FieldView | fieldview |
поле и топология, слежение за расчётом |
| TPL Designer | TplDesigner |
редактор заданий .tpl, импорт моделей STEP, STL и OBJ |
Поставляется тремя файлами, в каждом — все программы, образцы заданий и руководство пользователя на русском и английском:
| Файл | Для чего |
|---|---|
tmc-suite_2.0.0_amd64.deb |
установщик для Ubuntu, Debian и других систем с apt: программы в /opt/tmc-suite, пункты меню, значки, типы файлов |
tmc-suite-2.0.0-linux-x86-64.tar.gz |
архив без установки: распаковать в любую папку и запускать |
TMC_Suite-2.0.0-x86_64.AppImage |
один файл для любого дистрибутива |
Установка
Пошаговая установка — на странице «Установка». Если нужны только ядра на сервере, без окон, смотрите консольную версию.
Особенности интерфейса
Интерфейс такой же, как в версии для Windows: тёмная тема, шрифты Inter и JetBrains Mono, значки программ и панелей, индикаторы на кнопках (зелёный — включено или запущено), окно выбора цвета, «О программе», выбор языка в «Настройки → Language / Язык». Описание окон и кнопок — в руководстве пользователя.
Отличается только то, что относится к системе:
| Что | В Linux |
|---|---|
| Рамка окна | рисует оконный менеджер (GNOME, KDE и другие) |
| Выбор файла, печать | окна Qt и системы |
| Ключи командной строки | -Arb, -Ar, -d, -Time, -GPU, -GPU:n, -CPU. Косая черта (/Arb) понимается, если файла с таким именем нет |
| Настройки программ | ~/.config/TMC_Suite/<программа>.conf, FieldView — ~/.config/TMC Suite/FieldView.conf |
| Общие настройки | ~/.config/TMC_Suite_Qt/ (Common.ini — язык, Compute.ini — видеокарта, ColorPicker.ini — цвета, Paths.ini — путь к TPL Designer) |
| Вывод FieldView | Qt RHI через OpenGL; ключ --rhi vulkan выбирает Vulkan |
| Внешний редактор | первый найденный из gnome-text-editor, gedit, kate, kwrite, mousepad, xed, pluma, featherpad, leafpad, geany, иначе xdg-open |
Счёт без окон идёт так же, как в Windows. На машине без экрана добавьте переменную QT_QPA_PLATFORM=offscreen:
QT_QPA_PLATFORM=offscreen planarrt_h ~/calc/horn.tpl -Arb -Time
echo $?
Коды завершения: 0 — все шаги посчитаны, 1 — ошибка задания, 2 — ошибка расчёта, 3 — расчёт остановлен.
Видеокарта
Оба ядра считают на видеокарте через OpenCL 1.2 с двойной точностью: NVIDIA и AMD. Отдельная сборка не нужна, программа загружает OpenCL при запуске и работает и там, где его нет.
Что нужно поставить:
sudo apt install ocl-icd-libopencl1
и драйвер карты: для NVIDIA — проприетарный драйвер (Ubuntu: «Программы и обновления → Дополнительные драйверы»), он уже содержит OpenCL; для AMD — драйвер с OpenCL (ROCm). CUDA и другие наборы не нужны. Проверить, что карта видна, можно командой clinfo из одноимённого пакета.
Включается расчёт в окне «Настройки → Вычисления»: программа показывает карты, проверяет выбранную на коротком задании и сравнивает результат с процессором. Выбор хранится в ~/.config/TMC_Suite_Qt/Compute.ini и общий для обоих ядер. Из командной строки:
| Ключ | Что делает |
|---|---|
-GPU |
считать на первой подходящей карте |
-GPU:n |
считать на карте с номером n (с 0) |
-CPU |
считать на процессоре; сильнее -GPU и настройки |
Небольшие задания остаются на процессоре, на них карта не быстрее: порог 150 тысяч узлов у H-ядра и 60 тысяч у X-ядра. Его меняет переменная TMC_GPU_MIN_NODES. На чём идёт счёт, показывает строка состояния окна, а в пакетном режиме — вывод в терминал.
Подробно — глава «Расчёт на видеокарте» руководства. Настройки те же, что в Windows; метод описан в разделе «Устройство кода».
Результат на карте совпадает с процессором: это проверено на 45 заданиях через pocl (реализация OpenCL на процессоре). На настоящей видеокарте под Linux версия 2.0.0 не проверялась; под Windows тот же код проверен на NVIDIA.
Файлы
Файлы заданий и результатов те же, что в Windows: задание, посчитанное на одной системе, открывается на другой, окончания строк CRLF сохраняются. Регистр в именах файлов задания не важен, как в Windows (#include horns.h находит HORNS.H), а обратная косая черта в путях понимается как разделитель.
Слежение FieldView за расчётом хранит признак «кадр прочитан» в расширенном атрибуте файла. На разделах без расширенных атрибутов (например, диск Windows в /mnt) ядро не ждёт просмотрщика, а FieldView узнаёт новый кадр по времени и размеру файла.
Сборка из исходников
Нужны Ubuntu 24.04 или новее, g++ 13, CMake 3.22, Ninja, Qt 6.11 и OpenCASCADE:
sudo apt install build-essential cmake ninja-build patchelf \
libocct-foundation-dev libocct-modeling-algorithms-dev libocct-modeling-data-dev \
libocct-data-exchange-dev libocct-ocaf-dev libocct-visualization-dev \
libgl1-mesa-dev libxkbcommon-dev libxcb-cursor0 libdbus-1-3
Qt 6.11 для gcc_64 ставится с qt.io в ~/Qt, нужен модуль Qt Shader Tools. Версия из пакетов Ubuntu 24.04 (6.4) не подходит: нужна 6.7 или новее: FieldView выводит изображение через Qt RHI.
Сборка всего пакета одной командой из корня проекта:
git clone https://github.com/klimov-kn/TMC_Suite_Linux_GUI.git
cd TMC_Suite_Linux_GUI
build/build_linux.sh
Другой путь к Qt задаёт переменная QT: QT=/opt/Qt/6.11.1/gcc_64 build/build_linux.sh. Число параллельных заданий — TMC_JOBS. Сборка проходит без ошибок и предупреждений компилятора.
| Что | Папка |
|---|---|
| Программы | dist/linux-x86-64/bin |
| Библиотеки | dist/linux-x86-64/lib |
| Промежуточные файлы | build/obj |
| Журнал | build/build-linux.log |
Порядок сборки и состав библиотек — в файле BUILD_ORDER.md. Поставку собирает installer/package_linux.sh: он кладёт в dist все три файла, образцы и руководства берёт из папки TMC_DATA.
Отличия от версии для Windows
Расчётная часть та же, что в версии для Windows: счётные ядра собраны из того же исходного кода, форматы файлов заданий и результатов совпадают. Метод расчёта описан в разделе «Теория метода», устройство кода — в разделе «Устройство кода».
Числа совпадают с Windows-версией 5.0 на 45 проверочных заданиях: текстовые файлы — до последних печатаемых разрядов, двоичные файлы полей — до последних битов чисел двойной точности. Разница младших битов — от разных математических библиотек (sin, cos, atan2), такая же есть между сборками Windows.
В Linux своё только то, чего система не даёт: слой совместимости с MFC и Windows API (src/compat), текстовый режим файлов (CRLF), поиск имени файла без учёта регистра, признак «архивный» — описание слоя.
Версии Linux нумеруются отдельно: 2.0 соответствует Windows 5.0.
Известные ограничения
- Только x86-64.
- Сборка рассчитана на Ubuntu 24.04. На других дистрибутивах надёжнее
.AppImage: библиотеки лежат внутри него, аglibcнужна не старше 2.39. - На настоящей видеокарте под Linux версия 2.0.0 не проверялась.
- В системах только с Wayland программы работают через XWayland или встроенный модуль Wayland; в FieldView при сбоях помогает
QT_QPA_PLATFORM=xcb. - Звуковой сигнал в конце расчёта зависит от настроек системы.
Дефекты и вопросы — на странице Issues репозитория.
Linux — graphical edition
Version 2.0.0 for 64-bit Linux (x86-64): seven programs with the same windows, menus and toolbars as the Windows edition 5.0. The computational kernels are the same, the results match the Windows edition, and task and result files move between the systems without conversion.
Source code: github.com/klimov-kn/TMC_Suite_Linux_GUI.
What is included
| Program | Command | Purpose |
|---|---|---|
| PlanarRT H | planarrt_h |
computational kernel, H-polarization |
| PlanarRT X | planarrt_x |
computational kernel, X-mode, magnetized plasma |
| TMCGROUT | tmcgrout |
scattering-matrix characteristics |
| TMC_DN | tmc_dn |
radiation patterns |
| TMCROS | tmcros |
time-domain signals |
| FieldView | fieldview |
field and topology, following a running calculation |
| TPL Designer | TplDesigner |
.tpl task editor, import of STEP, STL and OBJ models |
It comes as three files, each with all the programs, sample tasks and the user manual in Russian and English:
| File | Purpose |
|---|---|
tmc-suite_2.0.0_amd64.deb |
installer for Ubuntu, Debian and other systems with apt: programs in /opt/tmc-suite, menu entries, icons, file types |
tmc-suite-2.0.0-linux-x86-64.tar.gz |
archive, no installation: unpack into any folder and run |
TMC_Suite-2.0.0-x86_64.AppImage |
one file for any distribution |
Installation
Step-by-step instructions are on the Installation page. If you only need the kernels on a server, without windows, see the console edition.
Interface
The interface is the same as in the Windows edition: dark theme, Inter and JetBrains Mono fonts, program and toolbar icons, indicators on buttons (green means on or running), the color picker, the About box, the language choice in Config → Language / Язык. Windows and buttons are described in the user manual.
Only what belongs to the system differs:
| What | On Linux |
|---|---|
| Window frame | drawn by the window manager (GNOME, KDE and others) |
| File choice, printing | Qt and system dialogs |
| Command-line keys | -Arb, -Ar, -d, -Time, -GPU, -GPU:n, -CPU. A slash (/Arb) also works if no file has that name |
| Program settings | ~/.config/TMC_Suite/<program>.conf, FieldView — ~/.config/TMC Suite/FieldView.conf |
| Shared settings | ~/.config/TMC_Suite_Qt/ (Common.ini — language, Compute.ini — video card, ColorPicker.ini — colors, Paths.ini — TPL Designer path) |
| FieldView output | Qt RHI over OpenGL; --rhi vulkan selects Vulkan |
| External editor | the first one found of gnome-text-editor, gedit, kate, kwrite, mousepad, xed, pluma, featherpad, leafpad, geany, otherwise xdg-open |
Calculation without windows works as on Windows. On a machine without a display, add the variable QT_QPA_PLATFORM=offscreen:
QT_QPA_PLATFORM=offscreen planarrt_h ~/calc/horn.tpl -Arb -Time
echo $?
Exit codes: 0 — all steps calculated, 1 — task error, 2 — calculation error, 3 — calculation stopped.
Video card
Both kernels can calculate on a video card through OpenCL 1.2 with double precision: NVIDIA and AMD. No separate build is needed: the program loads OpenCL at run time and also works where it is absent.
What to install:
sudo apt install ocl-icd-libopencl1
and the card driver: for NVIDIA, the proprietary driver (Ubuntu: Software & Updates → Additional Drivers), which already contains OpenCL; for AMD, the driver with OpenCL (ROCm). CUDA and other toolkits are not needed. The clinfo command from the package of the same name shows whether the card is visible.
Turn it on in Config → Compute: the program lists the cards, tests the chosen one on a short task and compares the result with the processor. The choice is kept in ~/.config/TMC_Suite_Qt/Compute.ini and is shared by both kernels. From the command line:
| Key | What it does |
|---|---|
-GPU |
calculate on the first suitable card |
-GPU:n |
calculate on card number n (from 0) |
-CPU |
calculate on the processor; overrides -GPU and the setting |
Small tasks stay on the processor, where the card is not faster: the threshold is 150 thousand nodes for the H kernel and 60 thousand for the X kernel. The variable TMC_GPU_MIN_NODES changes it. The status bar shows where the calculation runs; in batch mode, so does the terminal output.
See the Calculation on a video card chapter of the manual. The settings are the same as on Windows; the method is described in the Code section.
The result on the card matches the processor: this was checked on 45 tasks through pocl (an OpenCL implementation on the processor). Version 2.0.0 has not been checked on a real video card under Linux; on Windows the same code has been checked on NVIDIA.
Files
Task and result files are the same as on Windows: a task calculated on one system opens on the other, and CRLF line endings are kept. Letter case in the file names of a task does not matter, as on Windows (#include horns.h finds HORNS.H), and a backslash in paths is understood as a separator.
FieldView keeps the "frame read" mark in an extended attribute of the file while following a calculation. On partitions without extended attributes (for example, a Windows disk in /mnt), the kernel does not wait for the viewer, and FieldView recognizes a new frame by file time and size.
Building from source
You need Ubuntu 24.04 or newer, g++ 13, CMake 3.22, Ninja, Qt 6.11 and OpenCASCADE:
sudo apt install build-essential cmake ninja-build patchelf \
libocct-foundation-dev libocct-modeling-algorithms-dev libocct-modeling-data-dev \
libocct-data-exchange-dev libocct-ocaf-dev libocct-visualization-dev \
libgl1-mesa-dev libxkbcommon-dev libxcb-cursor0 libdbus-1-3
Qt 6.11 for gcc_64 is installed from qt.io into ~/Qt; the Qt Shader Tools module is required. The version from Ubuntu 24.04 packages (6.4) will not do: 6.7 or newer is needed: FieldView draws through Qt RHI.
Build the whole package with one command from the project root:
git clone https://github.com/klimov-kn/TMC_Suite_Linux_GUI.git
cd TMC_Suite_Linux_GUI
build/build_linux.sh
The QT variable sets another Qt path: QT=/opt/Qt/6.11.1/gcc_64 build/build_linux.sh. TMC_JOBS sets the number of parallel jobs. The build completes with no compiler errors or warnings.
| What | Folder |
|---|---|
| Programs | dist/linux-x86-64/bin |
| Libraries | dist/linux-x86-64/lib |
| Intermediate files | build/obj |
| Log | build/build-linux.log |
The build order and the library list are in BUILD_ORDER.md. installer/package_linux.sh makes the delivery: it puts all three files into dist, taking samples and manuals from the TMC_DATA folder.
Differences from the Windows edition
The computational part is the same as in the Windows edition: the kernels are built from the same source code, and task and result file formats match. The method is described in the Theory section, the code in the Code section.
Numbers match the Windows edition 5.0 on 45 test tasks: text files to the last printed digits, binary field files to the last bits of double-precision numbers. The low-bit difference comes from different math libraries (sin, cos, atan2); the same difference exists between Windows builds.
Only what the system does not provide is Linux-specific: the compatibility layer with MFC and the Windows API (src/compat), text file mode (CRLF), case-insensitive file name lookup, the "archive" mark — see the layer description.
Linux versions are numbered separately: 2.0 corresponds to Windows 5.0.
Known limitations
- x86-64 only.
- The build targets Ubuntu 24.04. On other distributions the
.AppImageis more reliable: the libraries are inside it, andglibcmust be at least 2.39. - Version 2.0.0 has not been checked on a real video card under Linux.
- On Wayland-only systems the programs run through XWayland or the bundled Wayland module; if FieldView misbehaves,
QT_QPA_PLATFORM=xcbhelps. - The sound at the end of a calculation depends on system settings.
Defects and questions go to the Issues page of the repository.