Среда из готового файла .eps
Распределение eps, посчитанное заранее, подключается блоком FILE
| Параметр | Значение |
|---|---|
| Раздел библиотеки | Среды, плазма, ЭПР |
| Ядро | PlanarRT H (planarrt_h.exe) |
| Источник | формат распределения eps ядра TMC (V2.00) |
| Сетка | 299 × 262 узлов, шаг 0,8 мм |
| Время счёта задания | 20 нс модельного времени, шагов: 1 |
| Длительность прогона | около 4 с на шестиядерном ПК, без вывода поля |
Постановка задачи
Распределение eps не обязательно задавать формулой: его можно посчитать заранее — своей программой или самим ядром — и подключить готовым файлом. Здесь программа сама пишет файл lens.eps (гауссов бугор проницаемости) рядом с заданием, а задание читает его блоком FILE.
Координаты блока ядро не читает — сетка лежит в самом файле, а на место распределение ставит анкер. Шаг сетки в файле обязан совпадать с DELTA задания.
- Файл программа пишет сама в формате ядра; координаты блока ядро не читает — распределение ставится на место анкером.
Теоретические сведения
В этой группе среда неоднородна. Плоская волна при нормальном падении задаётся каналом с магнитными стенками: однородное поле распространяется в нём так же, как в свободном пространстве, а задача сводится к границам и слоям. Открытые задачи (рассеяние, линзы) считаются в области с контуром поглотителя, и волна входит через широкий порт слева. Порт плоской волны здесь стоит на границе области, как в микрополосковых образцах, поэтому в задании есть отражение порядка −15…−25 дБ, и результаты глубже этого уровня не показательны. Это свойство постановки, а не ядра.
Распределение проницаемости можно посчитать заранее и подключить блоком FILE. Здесь генератор пишет файл lens.eps с гауссовым бугром
в квадрате 89,6 мм. Координаты блока ядро не читает: сетка лежит в самом файле, а на место распределение ставит анкер. Шаг в файле должен совпадать с DELTA задания.
Паспорт образца. Значения, которые TPL Designer вычисляет по формулам для параметров по умолчанию.
| Величина | Значение |
|---|---|
| Файл | lens.eps рядом с заданием, сетка 0.8 мм |
| Распределение | eps = 1 + 2 exp(-(x²+y²)/29.87 мм²), квадрат 89.6 мм |
Создание файла задания
Образец уже встроен в TPL Designer: скачивать ничего не нужно. Выполните шаги по порядку.
- Запустите TPL Designer. На стартовом экране в карточке «Взять образец» нажмите «Открыть библиотеку».
- Слева выберите раздел «Среды, плазма, ЭПР» и щёлкните в галерее плитку «Среда из готового файла .eps». Справа откроется карточка образца с паспортом и параметрами.

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

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

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

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

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

Числа расчёта: значения на краях диапазона, в середине и в точке наилучшего согласования.
| Частота, ГГц | |S11|, дБ |
|---|---|
| 10 | -32,51 |
Анимация поля
Разбор результатов
На 10 ГГц дБ: область почти не отражает, а образец показывает прежде всего поле. На анимации видно, как плоский фронт искривляется в бугре проницаемости и за ним возникает интерференционная картина с областью усиления. Такой бугор — маленькая градиентная линза, поэтому она собирает волну только частично. Диаграмму направленности образец не пишет: задача рассеяния здесь иллюстративна, а главный результат — подключение готового файла.
Файл задания
Этот текст TPL Designer показывает в разделе «Проверка». Файл записан в кодировке CP1251.
epsfile.tpl
#TMC_RT_H
! Задание сгенерировано TPL Designer.
! Среда из готового файла lens.eps: гауссов бугор eps до 3.
! Ядро: tmc_rth (H-мода)
! Перед прогоном удалить epsfile.s -- дописывается, а не перезаписывается.
! ===== Шаг: FREQ = 10.0 ГГц =====
#STEP
#PARM
ANGLE_UNIT radian;
FREQ_UNIT GHz;
LONG_UNIT mm;
TIME_UNIT ns;
DELTA 0.8;
TIME 0.; 20.0;
X_MIN 0.0;
X_MAX 239.2;
Y_MIN 0.0;
Y_MAX 209.6;
FREQ 10.0;
#END_PARM
#TOPOLOGY
BLOCK 1; ! поглотитель справа
RECT_STAT ABSORBER; 235.2; 239.2; 0.0; 209.6;
END_B
BLOCK 2; ! поглотитель снизу
RECT_STAT ABSORBER; 0.0; 235.2; 0.0; 4.0;
END_B
BLOCK 3; ! поглотитель сверху
RECT_STAT ABSORBER; 0.0; 235.2; 205.6; 209.6;
END_B
BLOCK 4; ! распределение из файла — распределение eps читается из lens.eps
FILE lens; -44.8; 44.8; -44.8; 44.8;
END_B
BLOCK 5; ! плоская волна — АКТИВНЫЙ
INPUT_X MAGNETIC; 4.8; 204.8; 0; 20; 1; 0;
END_B
#END_TOPOLOGY
#LINK_LIST
T 1; 0.0; 0.0;
T 2; 0.0; 0.0;
T 3; 0.0; 0.0;
T 4; 120.0; 104.8;
T 5; 0.0; 0.0;
#END_LINK
#OUTPUT
FILE epsfile;
SMATRIX epsfile; 10.0; 15.0; 20.0;
#END_OUTPUT
#END_STEP
#EOFMedium from an .eps file
A precomputed eps distribution is connected by a FILE block
| Parameter | Value |
|---|---|
| Library section | Media, plasma, RCS |
| Kernel | PlanarRT H (planarrt_h.exe) |
| Source | eps distribution format of the TMC kernel (V2.00) |
| Mesh | 299 × 262 nodes, step 0.8 mm |
| Task time | 20 ns of model time, steps: 1 |
| Run duration | about 4 s on a six-core PC, without field output |
Problem statement
An eps distribution does not have to be given by a formula: it can be computed in advance, by your own program or by the kernel itself, and connected as a ready file. Here the program itself writes the file lens.eps (a Gaussian bump of permittivity) next to the task, and the task reads it with a FILE block.
The kernel does not read the block coordinates: the grid is stored in the file itself, and the anchor puts the distribution in place. The grid step in the file must match the DELTA of the task.
- The program writes the file itself in the kernel format; the kernel does not read the block coordinates: the distribution is put in place by the anchor.
Theoretical background
The medium in this group is inhomogeneous. A plane wave at normal incidence is set up by a channel with magnetic walls: a uniform field propagates in it exactly as in free space, and the problem reduces to boundaries and layers. Open problems (scattering, lenses) are solved in a region bounded by an absorber contour, and the wave enters through a wide port on the left. The plane-wave port sits on the region boundary here, as in the microstrip samples, so the task has a reflection of about −15…−25 dB, and results below that level are not meaningful. This is a property of the setup, not of the kernel.
A permittivity distribution can be computed in advance and attached with a FILE block. Here the generator writes the file lens.eps with a Gaussian bump
in an 89.6 mm square. The kernel does not read the block coordinates: the grid is in the file, and the anchor places the distribution. The step in the file must match the task's DELTA.
Sample datasheet. The values that TPL Designer computes by formulas for the default parameters.
| Quantity | Value |
|---|---|
| File | lens.eps next to the task, grid 0.8 mm |
| Distribution | eps = 1 + 2 exp(-(x^2+y^2)/29.87 mm^2), square 89.6 mm |
Creating the task file
The sample is built into TPL Designer, so there is nothing to download. Follow the steps in order.
- Start TPL Designer. On the start screen, in the Take a sample card, click Open library.
- Choose the Media, plasma, RCS section on the left and click the Medium from an .eps file tile in the gallery. The sample card with its datasheet and parameters opens on the right.

- Keep the default parameters: all the numbers on this page were obtained for them. Changed values can be reset with Restore defaults.
- Click Open in editor. The task opens in the five-section wizard; the section list is on the left.
- Open the Geometry section. The canvas shows what the kernel will compute: metal walls, ports, dielectric or plasma. A green icon marks the active port and a red one the passive port. Double-click an object to open its properties.

- If you want to view the field in FieldView, open the Output section and tick Export topology (.tt file) and Export fields (.ex, .ey, .hz files), option only at the first step. Field output slows the calculation several times, so it is off in the samples unless a task requires it.
- Open the Check section. The left side shows the summary, the right side shows the task file text, and the strip at the bottom reports that there are no issues.

- Click Create task file and choose an empty folder. It will contain these files:
epsfile.tpl,lens.eps.
Running the calculation
- Start PlanarRT H (
planarrt_h.exe). - Click
Open or press Ctrl+Oand chooseepsfile.tplin the folder you created. If the status bar showsStep:1;Error:no, the task was read correctly. - Click
Run or press F5. The kernel computes all task steps (1); on a six-core PC this takes about 4 s. - Wait for "Done" in the status bar.
The kernel appends to the
.sfile instead of overwriting it. Delete the old.sfile before a repeated run, or old points will mix with new ones.
Viewing the results
Scattering matrix. Click
View S-matrix: TMCGROUT opens with the curve of the first element. It shows VSWR; to see magnitudes press Ctrl+H and choose "Y-scale" → "|S|", and add other elements with Ctrl+D.

Port signals. Click
View output: TMCROS opens with the .t file.

Field. If you enabled field output in step 6, click
View field and topology: FieldView opens. It saves animations with the export command.
Results

Computed numbers: values at the range edges, mid-range and at the best match.
| Frequency, GHz | |S11|, dB |
|---|---|
| 10 | -32.51 |
Field animation
Discussion
At 10 GHz dB: the region hardly reflects, and the sample is mostly about the field. The animation shows the flat front bending in the permittivity bump and an interference pattern with a gain region forming behind it. Such a bump is a small graded lens, so it focuses the wave only partly. The sample does not write a radiation pattern: the scattering problem is illustrative here, and the main result is attaching a ready-made file.
Task file
TPL Designer shows this text in the Check section. The file is written in the CP1251 encoding.
epsfile.tpl
#TMC_RT_H
! Task generated by TPL Designer.
! Medium from the ready file lens.eps: a Gaussian bump of eps up to 3.
! Kernel: tmc_rth (H-mode)
! Delete epsfile.s before the run -- it is appended to, not overwritten.
! ===== Step: FREQ = 10.0 GHz =====
#STEP
#PARM
ANGLE_UNIT radian;
FREQ_UNIT GHz;
LONG_UNIT mm;
TIME_UNIT ns;
DELTA 0.8;
TIME 0.; 20.0;
X_MIN 0.0;
X_MAX 239.2;
Y_MIN 0.0;
Y_MAX 209.6;
FREQ 10.0;
#END_PARM
#TOPOLOGY
BLOCK 1; ! absorber right
RECT_STAT ABSORBER; 235.2; 239.2; 0.0; 209.6;
END_B
BLOCK 2; ! absorber bottom
RECT_STAT ABSORBER; 0.0; 235.2; 0.0; 4.0;
END_B
BLOCK 3; ! absorber top
RECT_STAT ABSORBER; 0.0; 235.2; 205.6; 209.6;
END_B
BLOCK 4;! distribution from file -- eps distribution is read from lens.eps
FILE lens; -44.8; 44.8; -44.8; 44.8;
END_B
BLOCK 5; ! plane wave -- ACTIVE
INPUT_X MAGNETIC; 4.8; 204.8; 0; 20; 1; 0;
END_B
#END_TOPOLOGY
#LINK_LIST
T 1; 0.0; 0.0;
T 2; 0.0; 0.0;
T 3; 0.0; 0.0;
T 4; 120.0; 104.8;
T 5; 0.0; 0.0;
#END_LINK
#OUTPUT
FILE epsfile;
SMATRIX epsfile; 10.0; 15.0; 20.0;
#END_OUTPUT
#END_STEP
#EOF