Изгиб 90° со скосом

Поворот линии: прямой угол против скошенного

Параметр Значение
Раздел библиотеки Микрополосковые
Ядро PlanarRT H (planarrt_h.exe)
Источник Хаммерстад-Йенсен; планарная модель Весселя-Кольхоффа
Сетка 111 × 111 узлов, шаг 0,56284 мм
Время счёта задания 15 нс модельного времени, шагов: 21
Длительность прогона около 15 с на шестиядерном ПК, без вывода поля

Постановка задачи

Прямоугольный поворот микрополосковой линии. В углу собирается лишняя медь, и она работает как ёмкость — отражение растёт. Лечат это скосом: внешний угол срезают под 45°. Поставьте скос 0 и сравните |S11|.

  • Выход стоит на ВЕРХНЕЙ границе области: в языке это INPUT_Y, и апертура у него задаётся по X, а не по Y.
  • Диэлектрик залит двумя прямоугольниками, поэтому за скосом остаётся треугольник заполнения. Полю он не достаётся: магнитная стенка проходит по скосу.

Теоретические сведения

Микрополосковая линия в двумерной постановке заменяется планарной моделью Весселя и Кольхоффа: полоска ширины w на подложке толщиной h становится плоским волноводом ширины Weff с магнитными боковыми стенками и однородным заполнением εeff. Обе величины даёт квазистатика Хаммерстада и Йенсена, а частота входит только через длину волны в линии:

λg=cfεeff,Z0≈η0hWeffεeff

У модели две границы применимости. Дисперсия εeff не учитывается, а связи через краевое поле между соседними полосками нет: магнитные стенки её не пропускают. В образцах этого раздела порт стоит на границе расчётной области, а стенки канала начинаются прямо на нём. Такая постановка сама создаёт отражение порядка −15…−25 дБ, и это свойство задания, а не ядра. В постановке автора (TEST025) порты отнесены от границы на шаг сетки Δ, нижняя стенка сдвинута на Δ, а диэлектрик заполняет всю область; тот же отрезок линии 50 Ом тогда даёт |S11| от −128 до −156 дБ и |S21|=0,00 дБ. Поэтому рябь |S11| и сумма ∑i|Si1|2 ниже единицы (0,85–0,98) в этих образцах описывают постановку порта, а уровни глубже −15…−25 дБ здесь не показательны.

В прямоугольном углу полоски скапливается лишний заряд, и угол работает как шунтирующая ёмкость. Скос внешнего угла убирает лишнюю металлизацию: классический ориентир — срез около половины диагонали. Здесь скос задан долей ширины канала модели, по умолчанию 57 %, то есть 3,377 мм. Выход стоит на верхней границе области, поэтому порт описан как INPUT_Y.

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

Величина Значение
Подложка FR-4: eps = 4.4, h = 1.5 мм
Линия 50 Ом w = 2.89 мм, eps_eff = 3.33, W_eff = 6.19 мм, λв = 54.74 мм на 3 ГГц
Скос 57 % ширины канала, то есть 3.377 мм
Ожидаемо |S21| около 0 дБ; без скоса |S11| заметно хуже — лишняя медь в углу добавляет ёмкость

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

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

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

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

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

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

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

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

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

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

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

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

Результаты

Частотная характеристика: модули элементов матрицы рассеяния, рассчитанные ядром
Частотная характеристика: модули элементов матрицы рассеяния, рассчитанные ядром
Развёрнутая фаза прохождения S21
Развёрнутая фаза прохождения S21
Баланс мощности: сумма квадратов модулей первого столбца матрицы
Баланс мощности: сумма квадратов модулей первого столбца матрицы
Сигналы на портах во времени
Сигналы на портах во времени

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

Частота, ГГц |S11|, дБ |S21|, дБ
1,8 -28,56 -0,33
3,3 -19,57 -0,34
4,2 -34,58 -0,32
4,8 -15,98 -0,39

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

Поле, рассчитанное ядром на частоте 3,3 ГГц: 320 кадров через 16 тактов, до 6,85 нс. Шкала «Волна», как в FieldView

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

|S21| держится около −0,3 дБ во всей полосе. |S11| колеблется от −12 до −35 дБ, и эта рябь снова показывает отражение портов образца, а не сам изгиб. Поставив скос 0, вы получите заметно большее отражение: это и есть задача образца. На анимации волна разворачивается в углу почти без искажения.

Файл задания

Этот текст TPL Designer показывает в разделе «Проверка». Файл записан в кодировке CP1251.

msbend.tpl
#TMC_RT_H
! Задание сгенерировано TPL Designer.
! Изгиб микрополосковой линии 50 Ом на 90 градусов, скос 57 процентов ширины, FR-4.
! Ядро: tmc_rth (H-мода)
! Перед прогоном удалить msbend.s -- дописывается, а не перезаписывается.

#include msbend_step.h

msbendstep 1.8; msbend_f1p8; msbend;
msbendstep 1.95; msbend_f1p95; msbend;
msbendstep 2.1; msbend_f2p1; msbend;
msbendstep 2.25; msbend_f2p25; msbend;
msbendstep 2.4; msbend_f2p4; msbend;
msbendstep 2.55; msbend_f2p55; msbend;
msbendstep 2.7; msbend_f2p7; msbend;
msbendstep 2.85; msbend_f2p85; msbend;
msbendstep 3.0; msbend_f3; msbend;
msbendstep 3.15; msbend_f3p15; msbend;
msbendstep 3.3; msbend_f3p3; msbend;
msbendstep 3.45; msbend_f3p45; msbend;
msbendstep 3.6; msbend_f3p6; msbend;
msbendstep 3.75; msbend_f3p75; msbend;
msbendstep 3.9; msbend_f3p9; msbend;
msbendstep 4.05; msbend_f4p05; msbend;
msbendstep 4.2; msbend_f4p2; msbend;
msbendstep 4.35; msbend_f4p35; msbend;
msbendstep 4.5; msbend_f4p5; msbend;
msbendstep 4.65; msbend_f4p65; msbend;
msbendstep 4.8; msbend_f4p8; msbend;

#EOF
msbend_step.h
! ==========================================================================
! msbend_step.h — макроопределения шагов расчёта.
! Подключается строкой  #include msbend_step.h  и должен лежать РЯДОМ с .tpl
!
! ДВА бэкслеша в конце строки = "текст макроса продолжается ниже".
! У ПОСЛЕДНЕЙ строки макроса переноса НЕТ — это признак конца.
! ==========================================================================
#define msbendstep Freq__; Tfile__; Sfile__; @\\
#STEP\\
#PARM\\
 ANGLE_UNIT radian;\\
 FREQ_UNIT  GHz;\\
 LONG_UNIT  mm;\\
 TIME_UNIT  ns;\\
 DELTA  0.56284;\\
 TIME   0.; 15.0;\\
 X_MIN  0.0;\\
 X_MAX  62.47524054;\\
 Y_MIN  0.0;\\
 Y_MAX  62.47524054;\\
 FREQ   Freq__;\\
#END_PARM\\
#TOPOLOGY\\
 BLOCK 1;\\   ! внешняя стенка со скосом
  POLYGON_STAT MAGNETIC;\\
   L 0.0; 1.68852;\\
   L 57.40968054; 1.68852;\\
   L 60.78672054; 5.06556;\\
   L 60.78672054; 62.47524054;\\
 END_B\\
 BLOCK 2;\\   ! внутренняя стенка
  POLYGON_STAT MAGNETIC;\\
   L 0.0; 7.879760536;\\
   L 54.59548; 7.879760536;\\
   L 54.59548; 62.47524054;\\
 END_B\\
 BLOCK 3;\\   ! плечо по X
  RECT_STAT 2.3323322; 0.0; 60.78672054; 1.68852; 7.879760536;\\
 END_B\\
 BLOCK 4;\\   ! плечо по Y
  RECT_STAT 2.3323322; 54.59548; 60.78672054; 7.879760536; 62.47524054;\\
 END_B\\
 BLOCK 5;\\   ! вход 1 — АКТИВНЫЙ
  INPUT_X MAGNETIC; 1.68852; 7.879760536; 0; 15; 1; 0; 2.3323322;\\
 END_B\\
 BLOCK 6;\\   ! вход 2 — пассивный
  INPUT_Y MAGNETIC; 54.59548; 60.78672054; 30; 45; 0; 0; 2.3323322;\\
 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; 0.0; 0.0;\\
 T 5; 0.0; 0.0;\\
 T 6; 0.0; 62.47524054;\\
#END_LINK\\
#OUTPUT\\
 FILE Tfile__;\\
 SMATRIX Sfile__; Freq__; 11.25; 15.0;\\
#END_OUTPUT\\
#END_STEP

90 deg bend with mitre

Line bend: square corner versus mitred

Parameter Value
Library section Microstrip
Kernel PlanarRT H (planarrt_h.exe)
Source Hammerstad-Jensen; Wessel-Kohlhoff planar model
Mesh 111 × 111 nodes, step 0.56284 mm
Task time 15 ns of model time, steps: 21
Run duration about 15 s on a six-core PC, without field output

Problem statement

A right-angle bend of a microstrip line. Extra copper gathers in the corner and acts as a capacitance, so the reflection grows. The cure is a mitre: the outer corner is cut at 45 deg. Set the mitre to 0 and compare |S11|.

  • The output is on the TOP boundary of the domain: in the language this is INPUT_Y, and its aperture is given along X, not Y.
  • The dielectric is filled with two rectangles, so a triangle of filling remains behind the mitre. The field does not reach it: the magnetic wall runs along the mitre.

Theoretical background

In the two-dimensional setting a microstrip line is replaced by the Wessel–Kohlhoff planar model: a strip of width w on a substrate of height h becomes a parallel-plate guide of width Weff with magnetic side walls and a uniform filling εeff. Both values come from the Hammerstad–Jensen quasi-static formulas, and frequency enters only through the wavelength in the line:

λg=cfεeff,Z0≈η0hWeffεeff

The model has two limits. The dispersion of εeff is ignored, and there is no fringe-field coupling between neighbouring strips: the magnetic walls block it. In the samples of this section the port sits on the boundary of the computational region and the channel walls start right on it. This setup itself creates a reflection of about −15…−25 dB, which is a property of the task, not of the kernel. In the author\'s setup (TEST025) the ports are moved one mesh step Δ away from the boundary, the lower wall is shifted by Δ, and the dielectric fills the whole region; the same 50 Ω line section then gives |S11| of −128 to −156 dB and |S21|=0.00 dB. The |S11| ripple and the sum ∑i|Si1|2 below unity (0.85–0.98) in these samples therefore describe the port setup, and levels below −15…−25 dB are not meaningful here.

Excess charge accumulates in a right-angle corner of a strip, and the corner acts as a shunt capacitance. A mitre removes the excess metal: the classic guideline is a cut of about half the diagonal. Here the mitre is set as a fraction of the model channel width, by default 57 %, which is 3.377 mm. The output is on the upper boundary of the region, so the port is described as INPUT_Y.

Sample datasheet. The values that TPL Designer computes by formulas for the default parameters.

Quantity Value
Substrate FR-4: eps = 4.4, h = 1.5 mm
Line 50 Ohm w = 2.89 mm, eps_eff = 3.33, W_eff = 6.19 mm, lambda_g = 54.74 mm at 3 GHz
Mitre 57 % of the channel width, i.e. 3.377 mm
Expected |S21| about 0 dB; without the mitre |S11| is noticeably worse: the extra copper in the corner adds capacitance

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 Microstrip section on the left and click the 90 deg bend with mitre 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: msbend.tpl, msbend_step.h.

Running the calculation

  1. Start PlanarRT H (planarrt_h.exe).
  2. Click Open Open or press Ctrl+O and choose msbend.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 (21); on a six-core PC this takes about 15 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

Frequency response: magnitudes of the scattering-matrix elements computed by the kernel
Frequency response: magnitudes of the scattering-matrix elements computed by the kernel
Unwrapped transmission phase S21
Unwrapped transmission phase S21
Power balance: sum of squared magnitudes of the first matrix column
Power balance: sum of squared magnitudes of the first matrix column
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 |S21|, dB
1.8 -28.56 -0.33
3.3 -19.57 -0.34
4.2 -34.58 -0.32
4.8 -15.98 -0.39

Field animation

Field computed by the kernel at 3.3 GHz: 320 frames every 16 ticks, up to 6.85 ns. The Wave scale, as in FieldView

Discussion

|S21| stays near −0.3 dB across the band. |S11| varies from −12 to −35 dB, and this ripple again shows the reflection of the sample ports, not the bend itself. Set the mitre to 0 and you will get a noticeably larger reflection: that is the purpose of the sample. The animation shows the wave turning at the corner with almost no distortion.

Task file

TPL Designer shows this text in the Check section. The file is written in the CP1251 encoding.

msbend.tpl
#TMC_RT_H
! Task generated by TPL Designer.
! Microstrip line bend 50 Ohm by 90 degrees, mitre 57 percent of width, FR-4.
! Kernel: tmc_rth (H-mode)
! Delete msbend.s before the run -- it is appended to, not overwritten.

#include msbend_step.h

msbendstep 1.8; msbend_f1p8; msbend;
msbendstep 1.95; msbend_f1p95; msbend;
msbendstep 2.1; msbend_f2p1; msbend;
msbendstep 2.25; msbend_f2p25; msbend;
msbendstep 2.4; msbend_f2p4; msbend;
msbendstep 2.55; msbend_f2p55; msbend;
msbendstep 2.7; msbend_f2p7; msbend;
msbendstep 2.85; msbend_f2p85; msbend;
msbendstep 3.0; msbend_f3; msbend;
msbendstep 3.15; msbend_f3p15; msbend;
msbendstep 3.3; msbend_f3p3; msbend;
msbendstep 3.45; msbend_f3p45; msbend;
msbendstep 3.6; msbend_f3p6; msbend;
msbendstep 3.75; msbend_f3p75; msbend;
msbendstep 3.9; msbend_f3p9; msbend;
msbendstep 4.05; msbend_f4p05; msbend;
msbendstep 4.2; msbend_f4p2; msbend;
msbendstep 4.35; msbend_f4p35; msbend;
msbendstep 4.5; msbend_f4p5; msbend;
msbendstep 4.65; msbend_f4p65; msbend;
msbendstep 4.8; msbend_f4p8; msbend;

#EOF
msbend_step.h
! ==========================================================================
! msbend_step.h -- macro definitions of the computation steps.
! Included with the line  #include msbend_step.h  and must lie NEXT TO the .tpl
!
! TWO backslashes at the end of a line = "the macro text continues below".
! The LAST line of the macro has NO continuation -- that marks the end.
! ==========================================================================
#define msbendstep Freq__; Tfile__; Sfile__; @\\
#STEP\\
#PARM\\
 ANGLE_UNIT radian;\\
 FREQ_UNIT  GHz;\\
 LONG_UNIT  mm;\\
 TIME_UNIT  ns;\\
 DELTA  0.56284;\\
 TIME   0.; 15.0;\\
 X_MIN  0.0;\\
 X_MAX  62.47524054;\\
 Y_MIN  0.0;\\
 Y_MAX  62.47524054;\\
 FREQ   Freq__;\\
#END_PARM\\
#TOPOLOGY\\
 BLOCK 1;\\   ! outer wall with mitre
  POLYGON_STAT MAGNETIC;\\
   L 0.0; 1.68852;\\
   L 57.40968054; 1.68852;\\
   L 60.78672054; 5.06556;\\
   L 60.78672054; 62.47524054;\\
 END_B\\
 BLOCK 2;\\   ! inner wall
  POLYGON_STAT MAGNETIC;\\
   L 0.0; 7.879760536;\\
   L 54.59548; 7.879760536;\\
   L 54.59548; 62.47524054;\\
 END_B\\
 BLOCK 3;\\   ! arm along X
  RECT_STAT 2.3323322; 0.0; 60.78672054; 1.68852; 7.879760536;\\
 END_B\\
 BLOCK 4;\\   ! arm along Y
  RECT_STAT 2.3323322; 54.59548; 60.78672054; 7.879760536; 62.47524054;\\
 END_B\\
 BLOCK 5;\\   ! port 1 -- ACTIVE
  INPUT_X MAGNETIC; 1.68852; 7.879760536; 0; 15; 1; 0; 2.3323322;\\
 END_B\\
 BLOCK 6;\\   ! port 2 -- passive
  INPUT_Y MAGNETIC; 54.59548; 60.78672054; 30; 45; 0; 0; 2.3323322;\\
 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; 0.0; 0.0;\\
 T 5; 0.0; 0.0;\\
 T 6; 0.0; 62.47524054;\\
#END_LINK\\
#OUTPUT\\
 FILE Tfile__;\\
 SMATRIX Sfile__; Freq__; 11.25; 15.0;\\
#END_OUTPUT\\
#END_STEP