Импульсная рефлектометрия ступеньки

Моноцикл из файла: отражение видно во времени

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

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

Две линии разного сопротивления встык. На вход подаётся короткий импульс-моноцикл, и в файле сигналов видно сначала падающий импульс, потом отражённый от ступеньки — через время двойного пробега. Так устроена импульсная рефлектометрия: по задержке находят, ГДЕ неоднородность, по амплитуде — какая она.

Форму такой волны выражением задать нельзя: ядро умеет только несущую под огибающей, а у моноцикла несущей нет. Поэтому падающую волну пишет генератор — в файл .sig рядом с заданием.

  • Падающую волну пишет сам генератор в файл mstdr_in1.sig рядом с заданием — править его руками не нужно.
  • Матрица рассеяния здесь не снимается: встроенный пересчёт SMATRIX рассчитан на одну частоту, а импульс широкополосный. Полосу по этому же файлу .t строит постобработка.
  • Знак отражения виден прямо на графике: при переходе на БОЛЬШЕЕ сопротивление отражённый импульс той же полярности, на меньшее — обратной.

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

Микрополосковая линия в двумерной постановке заменяется планарной моделью Весселя и Кольхоффа: полоска ширины 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 дБ здесь не показательны.

Импульсная рефлектометрия находит неоднородность во временной области. Две линии, 50 и 100 Ом, стоят встык, а на вход подаётся моноцикл длительностью 0,25 нс. Коэффициент отражения от ступеньки и время двойного пробега участка длиной L равны

Γ=Z2−Z1Z2+Z1=13,τ=2Lεeffc=1,998 нс

У моноцикла нет несущей, поэтому форму волны нельзя задать выражением ядра. Генератор пишет её в файл .sig рядом с заданием, и матрица рассеяния здесь не снимается: результат читается по файлу .t.

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

Величина Значение
Подложка FR-4: eps = 4.4, h = 1.5 мм
Участок 1, 50 Ом w = 2.89 мм, eps_eff = 3.33, W_eff = 6.19 мм, λв = 54.74 мм на 3 ГГц
Участок 2, 100 Ом w = 0.66 мм, eps_eff = 3.04, W_eff = 3.24 мм, λв = 57.3 мм на 3 ГГц
Отражение от ступеньки Г = 0.3333 (-9.5 дБ)
Время до ступеньки и обратно 1.998 нс (участок 164.1 мм, eps_eff = 3.33)
Длительность импульса tau = 0.2498 нс, полоса примерно до 1.937 ГГц
Что смотреть в файле mstdr.t: падающий импульс, затем отражённый через 1.998 нс

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

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

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

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

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

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

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

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

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

Результаты

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

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

Поле, рассчитанное ядром при импульсном возбуждении: 204 кадров через 104 тактов, до 14,95 нс. Шкала «Волна», как в FieldView

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

На графике падающий моноцикл проходит ноль около 0,75 нс, а отражённый от ступеньки — около 2,65 нс: задержка 1,9 нс близка к расчётным 2,0 нс. Отражённый импульс той же полярности и по размаху составляет 0,25–0,40 от падающего, что согласуется с Γ=1/3. Импульс в порту 2 приходит примерно к 2,8 нс с амплитудой около 0,98. Следующая волна на порту 1 около 5 нс связана с повторным отражением в системе. На временной шкале видно то, что на частотной кривой спрятано: и положение неоднородности, и знак скачка сопротивления.

Файл задания

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

mstdr.tpl
#TMC_RT_H
! Задание сгенерировано TPL Designer.
! Импульсная рефлектометрия ступеньки импеданса 50 -> 100 Ом: падающая волна из файла, FR-4.
! Ядро: tmc_rth (H-мода)
!
! Широкополосный расчёт: имя файла стоит на месте параметра Amp
! в квадратных скобках, и файл задаёт ВСЮ падающую волну a(t).
! Faza такому входу не нужна, а FREQ по-прежнему нужна: по ней
! ядро согласует порт, поэтому она стоит в ЦЕНТРЕ полосы.
! Полоса 0...1.936830804 ГГц, центр 0.968415402 ГГц.
! Порт «вход 1»: падающая волна из файла mstdr_in1.sig
!   Моноцикл -- моноцикл tau = 0.2498 нс, 0...1.499 нс
! SMATRIX такого шага ядро считает по всей полосе сигнала
! (многочастотная обработка); строка без окна T_min; T_max --
! это окно на весь счёт, 0...TIME.

! ===== Шаг: FREQ = 0.968415402 ГГц =====
#STEP
#PARM
 ANGLE_UNIT radian;
 FREQ_UNIT  GHz;
 LONG_UNIT  mm;
 TIME_UNIT  ns;
 DELTA  0.3;
 TIME   0.; 15.0;
 X_MIN  0.0;
 X_MAX  336.0;
 Y_MIN  0.0;
 Y_MAX  7.8;
 FREQ   0.968415402;
#END_PARM
#TOPOLOGY
 BLOCK 1;   ! край полоски, низ
  POLYGON_STAT MAGNETIC;
   L 0.0; 0.8043797322;
   L 164.1; 0.8043797322;
   L 164.1; 2.279755798;
   L 336.0; 2.279755798;
 END_B
 BLOCK 2;   ! край полоски, верх
  POLYGON_STAT MAGNETIC;
   L 0.0; 6.995620268;
   L 164.1; 6.995620268;
   L 164.1; 5.520244202;
   L 336.0; 5.520244202;
 END_B
 BLOCK 3;   ! линия 50 Ом
  RECT_STAT 2.3323322; 0.0; 164.1; 0.8043797322; 6.995620268;
 END_B
 BLOCK 4;   ! линия 100 Ом
  RECT_STAT 2.041044036; 164.1; 336.0; 2.279755798; 5.520244202;
 END_B
 BLOCK 5;   ! вход 1 — АКТИВНЫЙ
  INPUT_X MAGNETIC; 0.8043797322; 6.995620268; 0; 1.498833123; [mstdr_in1]; 0; 2.3323322;
 END_B
 BLOCK 6;   ! вход 2 — пассивный
  INPUT_X MAGNETIC; 2.279755798; 5.520244202; 30; 45; 0; 0; 2.041044036;
 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; 336.0; 0.0;
#END_LINK
#OUTPUT
 FILE mstdr;
#END_OUTPUT
#END_STEP

#EOF

Pulse reflectometry of a step

Monocycle from a file: the reflection is seen in time

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

Problem statement

Two lines of different impedance joined end to end. A short monocycle pulse is applied to the input, and the signal file first shows the incident pulse, then the one reflected from the step after the round-trip time. This is how pulse reflectometry works: the delay tells WHERE the discontinuity is, the amplitude tells what it is.

The shape of such a wave cannot be given by an expression: the kernel only knows a carrier under an envelope, and a monocycle has no carrier. Therefore the generator writes the incident wave to a .sig file next to the task.

  • The generator itself writes the incident wave to the file mstdr_in1.sig next to the task; there is no need to edit it by hand.
  • The scattering matrix is not taken here: the built-in SMATRIX conversion is designed for a single frequency, while the pulse is broadband. Post-processing builds the band from the same .t file.
  • The sign of the reflection is seen directly on the plot: for a step to a HIGHER impedance the reflected pulse has the same polarity, to a lower one the opposite polarity.

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.

Time-domain reflectometry finds a discontinuity in the time domain. Two lines, 50 and 100 Ω, are butted together, and a 0.25 ns monocycle is applied to the input. The reflection coefficient of the step and the round-trip time of a section of length L are

Γ=Z2−Z1Z2+Z1=13,τ=2Lεeffc=1.998 ns

A monocycle has no carrier, so its shape cannot be set by a kernel expression. The generator writes it to a .sig file next to the task, and no scattering matrix is taken here: the result is read from the .t file.

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
Section 1, 50 Ohm w = 2.89 mm, eps_eff = 3.33, W_eff = 6.19 mm, lambda_g = 54.74 mm at 3 GHz
Section 2, 100 Ohm w = 0.66 mm, eps_eff = 3.04, W_eff = 3.24 mm, lambda_g = 57.3 mm at 3 GHz
Reflection from the step Gamma = 0.3333 (-9.5 dB)
Round-trip time to the step 1.998 ns (section 164.1 mm, eps_eff = 3.33)
Pulse duration tau = 0.2498 ns, band up to about 1.937 GHz
What to look at in the file mstdr.t: the incident pulse, then the reflected one after 1.998 ns

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 Pulse reflectometry of a step 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: mstdr.tpl, mstdr_in1.sig.

Running the calculation

  1. Start PlanarRT H (planarrt_h.exe).
  2. Click Open Open or press Ctrl+O and choose mstdr.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 3 s.
  4. Wait for "Done" in the status bar.

Viewing the results

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

Field animation

Field computed by the kernel under pulse excitation: 204 frames every 104 ticks, up to 14.95 ns. The Wave scale, as in FieldView

Discussion

On the plot the incident monocycle crosses zero at about 0.75 ns, and the pulse reflected from the step crosses it at about 2.65 ns: the 1.9 ns delay is close to the calculated 2.0 ns. The reflected pulse has the same polarity and its swing is 0.25–0.40 of the incident one, which agrees with Γ=1/3. The pulse arrives at port 2 at about 2.8 ns with an amplitude of about 0.98. The next wave at port 1 around 5 ns comes from a further reflection in the system. The time scale shows what a frequency curve hides: both the position of the discontinuity and the sign of the impedance jump.

Task file

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

mstdr.tpl
#TMC_RT_H
! Task generated by TPL Designer.
! Pulse reflectometry of an impedance step 50 -> 100 Ohm: incident wave from a file, FR-4.
! Kernel: tmc_rth (H-mode)
!
! Wideband computation: the file name stands in place of the Amp parameter
! in square brackets, and the file defines the WHOLE incident wave a(t).
! Such a port needs no Faza, but FREQ is still needed: the kernel uses it
! to match the port, so it is set to the CENTRE of the band.
! Band 0...1.936830804 GHz, centre 0.968415402 GHz.
! Port "port 1": incident wave from file mstdr_in1.sig
!   Monocycle -- monocycle tau = 0.2498 ns, 0...1.499 ns
! The kernel computes SMATRIX of such a step over the whole signal band
! (multifrequency processing); a line without the T_min; T_max window --
! is a window over the whole run, 0...TIME.

! ===== Step: FREQ = 0.968415402 GHz =====
#STEP
#PARM
 ANGLE_UNIT radian;
 FREQ_UNIT  GHz;
 LONG_UNIT  mm;
 TIME_UNIT  ns;
 DELTA  0.3;
 TIME   0.; 15.0;
 X_MIN  0.0;
 X_MAX  336.0;
 Y_MIN  0.0;
 Y_MAX  7.8;
 FREQ   0.968415402;
#END_PARM
#TOPOLOGY
 BLOCK 1;   ! strip edge, bottom
  POLYGON_STAT MAGNETIC;
   L 0.0; 0.8043797322;
   L 164.1; 0.8043797322;
   L 164.1; 2.279755798;
   L 336.0; 2.279755798;
 END_B
 BLOCK 2;   ! strip edge, top
  POLYGON_STAT MAGNETIC;
   L 0.0; 6.995620268;
   L 164.1; 6.995620268;
   L 164.1; 5.520244202;
   L 336.0; 5.520244202;
 END_B
 BLOCK 3;   ! line 50 Ohm
  RECT_STAT 2.3323322; 0.0; 164.1; 0.8043797322; 6.995620268;
 END_B
 BLOCK 4;   ! line 100 Ohm
  RECT_STAT 2.041044036; 164.1; 336.0; 2.279755798; 5.520244202;
 END_B
 BLOCK 5;   ! port 1 -- ACTIVE
  INPUT_X MAGNETIC; 0.8043797322; 6.995620268; 0; 1.498833123; [mstdr_in1]; 0; 2.3323322;
 END_B
 BLOCK 6;   ! port 2 -- passive
  INPUT_X MAGNETIC; 2.279755798; 5.520244202; 30; 45; 0; 0; 2.041044036;
 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; 336.0; 0.0;
#END_LINK
#OUTPUT
 FILE mstdr;
#END_OUTPUT
#END_STEP

#EOF