Среда из готового файла .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 с гауссовым бугром

ε(x,y)=1+2exp(−x2+y2ρ2),ρ2=29,87 мм2

в квадрате 89,6 мм. Координаты блока ядро не читает: сетка лежит в самом файле, а на место распределение ставит анкер. Шаг в файле должен совпадать с DELTA задания.

Паспорт образца. Значения, которые TPL Designer вычисляет по формулам для параметров по умолчанию.

Величина Значение
Файл lens.eps рядом с заданием, сетка 0.8 мм
Распределение eps = 1 + 2 exp(-(x²+y²)/29.87 мм²), квадрат 89.6 мм

Создание файла задания

Образец уже встроен в TPL Designer: скачивать ничего не нужно. Выполните шаги по порядку.

  1. Запустите TPL Designer. На стартовом экране в карточке «Взять образец» нажмите «Открыть библиотеку».
  2. Слева выберите раздел «Среды, плазма, ЭПР» и щёлкните в галерее плитку «Среда из готового файла .eps». Справа откроется карточка образца с паспортом и параметрами.
Карточка образца в библиотеке TPL Designer
Карточка образца в библиотеке TPL Designer
  1. Параметры оставьте по умолчанию: все числа на этой странице получены именно для них. Изменённые значения можно сбросить кнопкой «Вернуть умолчания».
  2. Нажмите «Открыть в редакторе». Задание откроется в мастере из пяти разделов, список которых находится слева.
  3. Откройте раздел «Геометрия». На холсте показано то, что посчитает ядро: металлические стенки, порты, диэлектрик или плазма. Зелёный значок отмечает активный порт, красный — пассивный. Двойной щелчок по объекту откроет его свойства.
Раздел «Геометрия» мастера TPL Designer
Раздел «Геометрия» мастера TPL Designer
  1. Если хотите посмотреть поле в FieldView, откройте раздел «Вывод данных» и отметьте «Выгружать топологию (файл .tt)» и «Выгружать поля (файлы .ex, .ey, .hz)», вариант «только на первом шаге». Запись поля замедляет счёт в разы, поэтому в образцах она выключена, если задание не требует её само.
  2. Откройте раздел «Проверка». Слева показана сводка расчёта, справа текст файла задания, а полоса внизу сообщает, что замечаний нет.
Раздел «Проверка» мастера TPL Designer
Раздел «Проверка» мастера TPL Designer
  1. Нажмите «Создать файл задания» и выберите пустую папку. В ней появятся файлы: epsfile.tpl, lens.eps.

Запуск расчёта

  1. Запустите программу PlanarRT H (planarrt_h.exe).
  2. Нажмите Открыть Открыть или Ctrl+O и выберите файл epsfile.tpl в созданной папке. Если в строке состояния появилось Шаг:1;Error:no, задание прочитано верно.
  3. Нажмите Запуск Запуск или F5. Ядро посчитает все шаги задания (1), на шестиядерном ПК это занимает около 4 с.
  4. Дождитесь надписи «Готово» в строке состояния.

Ядро дописывает файл .s, а не перезаписывает его. Перед повторным запуском удалите старый файл .s, иначе старые точки смешаются с новыми.

Просмотр результатов

Матрица рассеяния. Нажмите Показать S-матрицу Показать S-матрицу: откроется TMCGROUT с кривой первого элемента. Он показывает КСВН; чтобы увидеть модули, нажмите Ctrl+H и выберите «Шкала Y» → «|S|», а другие элементы добавьте через Ctrl+D.

Окно TMCGROUT сразу после открытия файла .s
Окно TMCGROUT сразу после открытия файла .s

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

Окно TMCROS с сигналом на порту
Окно TMCROS с сигналом на порту

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

Результаты

Сигналы на портах во времени
Сигналы на портах во времени

Числа расчёта: значения на краях диапазона, в середине и в точке наилучшего согласования.

Частота, ГГц |S11|, дБ
10 -32,51

Анимация поля

Поле, рассчитанное ядром на частоте 10 ГГц: 320 кадров через 4 тактов, до 2,42 нс. Шкала «Волна», как в FieldView

Разбор результатов

На 10 ГГц |S11|=−32,5 дБ: область почти не отражает, а образец показывает прежде всего поле. На анимации видно, как плоский фронт искривляется в бугре проницаемости и за ним возникает интерференционная картина с областью усиления. Такой бугор — маленькая градиентная линза, поэтому она собирает волну только частично. Диаграмму направленности образец не пишет: задача рассеяния здесь иллюстративна, а главный результат — подключение готового файла.

Файл задания

Этот текст 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

#EOF

Medium 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

ε(x,y)=1+2exp(−x2+y2ρ2),ρ2=29.87 mm2

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.

  1. Start TPL Designer. On the start screen, in the Take a sample card, click Open library.
  2. 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.
The sample card in the TPL Designer library
The sample card in the TPL Designer library
  1. Keep the default parameters: all the numbers on this page were obtained for them. Changed values can be reset with Restore defaults.
  2. Click Open in editor. The task opens in the five-section wizard; the section list is on the left.
  3. 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.
The Geometry section of the TPL Designer wizard
The Geometry section of the TPL Designer wizard
  1. 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.
  2. 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.
The Check section of the TPL Designer wizard
The Check section of the TPL Designer wizard
  1. Click Create task file and choose an empty folder. It will contain these files: epsfile.tpl, lens.eps.

Running the calculation

  1. Start PlanarRT H (planarrt_h.exe).
  2. Click Open Open or press Ctrl+O and choose epsfile.tpl in the folder you created. If the status bar shows Step:1;Error:no, the task was read correctly.
  3. Click Run Run or press F5. The kernel computes all task steps (1); on a six-core PC this takes about 4 s.
  4. Wait for "Done" in the status bar.

The kernel appends to the .s file instead of overwriting it. Delete the old .s file before a repeated run, or old points will mix with new ones.

Viewing the results

Scattering matrix. Click View S-matrix 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.

The TMCGROUT window right after opening the .s file
The TMCGROUT window right after opening the .s file

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

The TMCROS window with a port signal
The TMCROS window with a port signal

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

Results

Port signals over time
Port signals over time

Computed numbers: values at the range edges, mid-range and at the best match.

Frequency, GHz |S11|, dB
10 -32.51

Field animation

Field computed by the kernel at 10 GHz: 320 frames every 4 ticks, up to 2.42 ns. The Wave scale, as in FieldView

Discussion

At 10 GHz |S11|=−32.5 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