Диаграмма направленности

В двумерной задаче поле не зависит от координаты z, и диаграмма направленности (ДН) — функция одного угла φ в плоскости xy, отсчитываемого от оси x против часовой стрелки. Счётное ядро рассчитывает поле только в ограниченной области, окружённой поглотителем, поэтому дальнюю зону оно не видит. ДН строится в три шага:

  1. на заданной частоте F ядро накапливает комплексную амплитуду поля в узлах сетки (файлы .AMP, .FAZ);
  2. на замкнутом контуре в ближней зоне, охватывающем излучающую структуру, ядро вычисляет поле и его нормальную производную и записывает точки контура как эквивалентные излучатели (файл .DAT);
  3. вьювер TMC_DN суммирует поля этих излучателей в дальней зоне, нормирует ДН и считает коэффициент направленного действия (КНД) и коэффициент использования поверхности (КИП).

Тот же вьювер строит ДН произвольной антенной решётки, если файл излучателей написать вручную, и умеет оценивать влияние случайных отклонений её параметров. Набор файлов .AMP, .FAZ, .dat и вьювер ДН входят в состав пакета с первых версий [Климов, 2007, разд. 9.1, рис. 9.1]; примеры применения — [Климов, 2007, гл. 10]. Алгоритмы описаны по коду библиотеки TMCIndan и вьювера TMC_DN.

Контур интегрирования в ближней зоне

Задание. ДН включается строкой секции #OUTPUT

FIELD_DISTRIBUTION_M имя; F; Tmin; Tmax;

(или FIELD_DISTRIBUTION — квадратуры хранятся в файлах, это очень медленно) (секция #OUTPUT). F — частота ДН, Tmin…Tmax — окно накопления.

Комплексная амплитуда поля. Пока время t лежит в окне, к двум квадратурам каждого узла прибавляется значение узла U(t), умноженное на опорные косинус и синус частоты F и на шаг по времени Δt:

C=∑t∈[Tmin,Tmax]U(t)cos(2πFt)Δt,S=∑t∈[Tmin,Tmax]U(t)sin(2πFt)Δt.(1)

На первом шаге с t≥Tmax окно закрывается, и по квадратурам находятся амплитуда и фаза поля в узле:

A=2C2+S2Tmax−Tmin,φ=atan2(S,C),(2)

т. е. в установившемся режиме U(t)=Acos(2πFt−φ). Это один отсчёт преобразования Фурье на частоте F (переход в частотную область). Формула точна для синуса, если окно содержит целое число периодов: тогда ∫cos2=∫sin2=T/2, а ∫sincos=0. Поэтому при чтении задания конец окна округляется вверх до целого числа периодов: Tmax=Tmin+⌈(Tmax−Tmin)F⌉/F (в программе — с допуском 10−4 периода). Окно должно кончаться раньше конца расчёта TIME с учётом этого округления, иначе файлы ДН не пишутся и ядро сообщает об ошибке; начинаться окно должно в установившемся режиме.

Значение узла U — величина, пропорциональная Ez в ядре H (поля ядра H) и Hz в ядре X (поля ядра X); формулы ДН для обоих ядер одинаковы.

Принцип эквивалентности. Поле вне замкнутого контура, внутри которого находятся все источники и рассеиватели, однозначно определяется касательными составляющими электрического и магнитного полей на контуре; их можно заменить эквивалентными электрическими и магнитными токами и считать поле вне контура как излучение этих токов в свободном пространстве [Марков, Сазонов, 1975]. Контур можно провести в ближней зоне, прямо внутри расчётной области.

Контур в программе — прямоугольник, отстоящий от каждого края области на 10 шагов сетки Δ; другого способа задать контур в языке заданий нет (проверка требует не меньше 9 шагов). Точки контура идут через шаг Δ, посередине между узлами. В каждой точке вычисляются:

  • Ez — среднее комплексных амплитуд двух соседних узлов вдоль стороны;
  • касательная составляющая магнитного поля — из уравнения Максвелла для гармонического поля в вакууме, Ht∝1jk0∂Ez/∂n, с центральной разностью по нормали к стороне через шаг Δ (по два узла с каждой стороны линии контура):
Ht=c2πFΔ·(E1+E2)−(E3+E4)4,\argHt+=π2,(3)

где E1,E2 — узлы с одной стороны от линии контура, E3,E4 — с другой; (E1+E2)−(E3+E4)4≈∓Δ∂Ez/∂n, так что |Ht|=|∂Ez/∂n|/k0, k0=2πF/c — магнитное поле в единицах электрического (Z0H). На вертикальных сторонах это Hy, на горизонтальных — Hx.

В ядре X те же формулы применяются к Hz, и роль «касательного H» играет величина, пропорциональная касательной составляющей E (двойственность).

Затем в программе используется отбор точек по соотношению фаз: если для точки не выполняется условие на знак cos(φH−φE) (своё для каждой стороны контура), её амплитуды Ez и Ht обнуляются. После этого фазы меняют знак: фаза запаздывания φ из формулы амплитуды и фазы переходит в аргумент комплексной амплитуды Ae−jφ при зависимости от времени ejωt.

Где проводить контур. Из сказанного следуют правила размещения:

  • излучающая структура и все объекты, влияние которых на ДН нужно учесть, должны целиком лежать внутри контура, т. е. дальше 10 шагов от края области;
  • формула для Ht использует волновое число вакуума, поэтому контур должен проходить в вакууме — не в диэлектрике, плазме или поглотителе;
  • волны, отражённые от границы области, проходят через контур и искажают ДН, поэтому граница должна хорошо поглощать (поглощающая граница).

Интегрирование по полосам у границы

Квадратуры выше нужны только в узлах, по которым считаются Ez и Ht точек контура, — это узлы в пределах одного узла по обе стороны от линии контура. Хранить четыре массива (.COS, .SIN, .AMP, .FAZ) на каждый узел всей сетки на больших задачах невозможно, поэтому в программе есть режим полос: контур в номерах узлов расширяется на узел наружу, и квадратуры накапливаются только в четырёх полосах толщиной 3 узла — нижней и верхней во всю ширину контура и левой и правой между ними, без повторов узлов (полосы в коде). Размер хранения на один тон

nborder=6W+6Hm,(4)

где W — ширина контура в узлах, Hm — высота боковых полос.

Режим включается сам, если:

  • в падающей волне несколько тонов (тогда квадратуры каждого тона хранятся в своём срезе массива, и .DAT пишется на каждый тон);
  • или сетка не меньше 32 × 32 узлов, а четыре массива на всю область заняли бы больше четверти свободной оперативной памяти.

В режиме полос файлы .AMP/.FAZ по всей области не пишутся — амплитуда и фаза считаются сразу в памяти, а файл .DAT получается тем же самым: на проверочных задачах 200 × 200 и 1000 × 1000 узлов он совпал с расчётом по всей области число в число. Выигрыш в памяти: на сетке 11 млрд узлов — порядка 48 МБ вместо 176 ГБ (руководство пользователя TMC Suite, раздел «Многочастотный расчёт»).

Переход в дальнюю зону

Поле линейного источника. В двумерной задаче точечный на плоскости источник — это бесконечная нить вдоль z; на большом расстоянии ρ её поле убывает как e−jkρ/ρ (цилиндрическая волна). Для излучателя в точке с полярными координатами (ri,αi) расстояние до удалённой точки наблюдения в направлении φ равно ρ−ricos(φ−αi); в дальней зоне этой разностью хода можно пренебречь в амплитуде, но не в фазе (условие дальней зоны для антенны размером D — ρ≳2D2/λ [Марков, Сазонов, 1975]). Общий множитель e−jkρ/ρ одинаков для всех направлений и опускается: ДН — функция только угла.

Поле решётки — когерентная сумма полей N излучателей (поле решётки в коде):

F(φ)=r1(φ)∑i=1NAigi(φ)exp(j[ψi+kricos(φ−αi)]),k=2πFc,(5)

где Ai, ψi — амплитуда и фаза излучателя, gi(φ) — его собственная ДН, r1(φ) — общая для всех ДН элемента (третья строка файла .DAT), c=299792458 м/с.

Излучатели контура. Каждая точка контура даёт три записи с одним положением и сектором:

Запись Амплитуда, фаза Собственная ДН gi(φ)
Ez |Ez|, \argEz 1
Hy (вертикальные стороны) |Ht|, \argHt cosφ
Hx (горизонтальные стороны) |Ht|, \argHt sinφ

(на вертикальной стороне запись Hx нулевая, на горизонтальной — Hy). Каждой записи задаётся сектор излучения своей стороны: правая −90…90°, верхняя 0…180°, левая 90…270°, нижняя 180…360° (границы смещены на 0,001°); вне сектора gi практически равна нулю — эквивалентный источник на стороне контура излучает только наружу. Секторы учитываются, если у строки ДН в TMC_DN включён признак Reduce (секторы).

Амплитуды всех записей умножаются на общий множитель, зависящий от шага сетки и частоты (файл .DAT):

kDAT=Δ3·0,9999960,9361811·ΔF/cF/c.(6)

Общий множитель не меняет ни нормированную ДН, ни КНД, ни КИП; от него зависит только абсолютная величина излучённой мощности, которую TMC_DN выводит для больших решёток.

ДН и файлы .AMP/.FAZ/.DAT

Файлы ядра (базовое имя — из строки FIELD_DISTRIBUTION[_M]):

Файл Содержимое
.COS, .SIN квадратуры C, S по сетке (только FIELD_DISTRIBUTION)
.AMP, .FAZ амплитуда A и фаза φ по сетке; их показывает FieldView (кроме режима полос)
.DAT эквивалентные излучатели контура для TMC_DN; при нескольких тонах — <имя>_<F>MHz.DAT на каждый тон

Формат .DAT: строка Frequence = <F, ГГц> Ghz;, строка N = <число записей>;, строка общей ДН элемента (у ядра — 1.), затем по строке на запись: номер, X, Y (мм), Amplitude, Faza (градусы), FiMin, FiMax (градусы) и собственная ДН (1., cos(f), sin(f)) (формат). Ядро пишет .DAT само, как только закрывается окно накопления.

Нормированная ДН — |F(φ)|/max|F|, в линейном масштабе или в децибелах 20lg (оси TMC_DN). Для решётки до 400 излучателей график строится на сетке из 400 углов в диапазоне оси X, для большей — на 1000 углах −π…π (сетка углов). Файл от ядра содержит три записи на точку контура, поэтому решётка «большая» уже при контуре длиннее 133 точек.

Многочастотная ДН. При падающей волне с несколькими тонами (многочастотный расчёт) и строке FIELD_DISTRIBUTION_M квадратуры накапливаются для каждого тона, и .DAT пишется на каждую частоту. Длину окна накопления лучше брать кратной 1/Δf (Δf — разнос тонов): тогда тоны на окне ортогональны. На проверочном примере (10 тонов через 0,2 ГГц) расхождение с отдельным одночастотным расчётом составило 3,3 % при окне 6 нс и 0,9 % при окне 5 нс =1/Δf (руководство пользователя TMC Suite, раздел «Многочастотный расчёт»).

Единица углов. Фаза в .FAZ хранится в единицах ANGLE_UNIT задания, а при построении .DAT подставляется в тригонометрические функции как радианы. Поэтому при ANGLE_UNIT gradus фазы излучателей в .DAT и вся ДН неверны (известный дефект); для ДН используют радианы (подводные камни).

Примеры применения [Климов, 2007, гл. 10]:

  • система активного и пассивного вибраторов на переходном отсеке разгонного блока «Фрегат» с обтекателем: рассчитанная ДН — главный луч отклонён на 9° от нормали, боковой лепесток −9,25 дБ; измеренная на макете — 12° и −8,4 дБ (разд. 10.2.1); далее — изменение ДН при модификации конструкции (разд. 10.2.2);
  • антенна рефлектометра ИТЭР в зазоре бланкета: интерференция высших мод щели даёт частотную зависимость ДН системы «антенна — щель», несимметричное положение антенны перекашивает центральный лепесток (разд. 10.1.2);
  • пятиэлементная фазированная решётка (косинус на пьедестале, луч 18°, длина 2,5 длины волны) рядом с металлическими объектами и диэлектрическим куполом: главный лепесток сужается с 40° до 25–30° по уровню 3 дБ и в нём появляется провал, купол делает ДН изрезанной (разд. 10.4). Двумерные срезы ДН дают качественную оценку влияния близких объектов.

КНД

Определение. Коэффициент направленного действия — отношение плотности потока мощности в направлении максимума к средней по всем направлениям при той же излучённой мощности [Марков, Сазонов, 1975]. В двумерной задаче «все направления» — окружность, и в программе используется

D=2πmaxφ|F(φ)|2∫02π|F(φ)|2dφ,DдБ=10lgD(7)

(у трёхмерной антенны вместо 2π и интеграла по окружности — 4π и интеграл по сфере). Для ненаправленного в плоскости излучателя D=1 (0 дБ). Это КНД в плоскости двумерной модели; с КНД трёхмерной антенны он напрямую не совпадает.

В программе (КНД в коде) интеграл и максимум берутся на отдельной мелкой сетке по полному кругу методом прямоугольников с шагом 2π/n,

n=max(1000, ⌈64kRmax+1⌉),16≤n≤4000000,(8)

где Rmax — наибольшее удаление излучателя от начала координат: 64 точки на радиан набега фазы kRmax, чтобы не пропустить узкий главный лепесток. КНД считается одинаково для решётки любого размера N. Тождественно нулевая или нечисловая ДН — ошибка.

КИП

Определение. Коэффициент использования поверхности — отношение КНД антенны к КНД той же антенны при равномерном синфазном возбуждении [Марков, Сазонов, 1975]. В программе для решётки используется

КИП=DD0,(9)

где D0 — КНД (формула КНД) опорной решётки той же геометрии: все амплитуды 1, фазы 0, без собственных ДН излучателей, без секторов и без общей ДН элемента (КИП в коде).

Ограничение. КИП считается только для решёток из N≤400 излучателей. Для N>400 опорная решётка не считается, а вместо КИП выводится излучённая мощность ∫02π|F|2dφ в условных единицах (в легенде — Emitted Power). Файл ядра почти всегда «большой» (три записи на точку контура), поэтому для ДН, рассчитанной ядром, КИП обычно не выводится.

Антенные решётки

Файл .DAT можно написать вручную — тогда TMC_DN считает ДН обычной антенной решётки по формуле поля решётки (входной файл .DAT):

Frequence = 10 Ghz;
N = 3;
1.
1   X = -15 mm; Y = 0 mm; Amplitude = 0.5; Faza = 0 degree; FiMin = -180 degree; FiMax = 180 degree; 1.
2   X = 0 mm; Y = 0 mm; Amplitude = 1; Faza = 0 degree; FiMin = -180 degree; FiMax = 180 degree; 1.
3   X = 15 mm; Y = 0 mm; Amplitude = 0.5; Faza = 0 degree; FiMin = -180 degree; FiMax = 180 degree; 1.
  • координаты — в миллиметрах, фаза и границы сектора — в градусах, частота — в гигагерцах;
  • строка излучателя может быть короткой (5 полей, без сектора и собственной ДН) — тогда сектор −180…180° и излучатель изотропный;
  • собственная ДН излучателя — выражение от f (угол в радианах), например cos(f); третья строка — общая ДН элемента r1(φ), тоже выражение от f.

Сканирование луча. Из формулы поля решётки следует: чтобы излучения элементов линейной решётки вдоль оси x сложились синфазно в направлении φ0, фазы задают линейно растущими по координате:

ψi=−kxicosφ0.(10)

Ту же модель использует ДН, рассчитанная ядром: точки контура — излучатели такой «решётки».

Девиации ДН

Чтобы оценить, как разброс параметров излучателей меняет ДН, TMC_DN строит решётку со случайными отклонениями (девиации в коде). Каждому излучателю задаются независимые отклонения, равномерно распределённые в заданных пределах:

Ai′=Ai(1+ξAδA100),ψi′=ψi+ξψδψ,xi′=xi+ξxδx,yi′=yi+ξyδy,ξ∈[−1,1],(11)

где δA — проценты амплитуды, δψ — градусы, δx, δy — миллиметры (по умолчанию амплитуда и фаза — 10, координаты — 0). Результат записывается новым файлом .DAT и открывается как обычная ДН. Генератор случайных чисел не инициализируется заново, поэтому при каждом запуске программы последовательность отклонений одна и та же.

Сравнение с требуемой ДН. Окно Calculate Directional Pattern Deviation считает ДН решётки на сетке углов файла требуемой ДН .opt (строки «угол в градусах, значение») и пишет файл .dev: угол, требуемая и рассчитанная нормированные ДН (ДН с отклонениями). Целевая функция ∑|Fнорм−Fтреб| для подбора амплитуд и фаз в коде есть, но в пакете не вызывается.

Соответствие в коде

Символ / действие Переменная, функция Файл (src/)
строка FIELD_DISTRIBUTION[_M], округление Tmax до целого числа периодов CTmcRTH_IndanOutput::ReadFileDistr libs/tmcindan/tmcrth_indanoutput.cpp
ошибка «окно ДН после конца расчёта» CTmcRTHRectNode (вывод после цикла) kernels/planarrt_*/tmcrthrectnode.cpp
значение узла U (шаг 2 в ядре H, 6 в ядре X) prUNode1[n*nNodeStep], SetNodeStep libs/tmcindan/fieldintegrated.cpp
квадратуры C, S CFieldIntegrated::Integrate, IntegrateInMemory, IntegrateInMemoryOneFreq; prCos, prSin то же
амплитуда и фаза MakeFileAmplitudeAndFaza, MakeFileAmplitudeAndFazaFromMemory, MakeAmpFazFromMemory; prAmp, prFaz то же
контур в 10 шагах от края, проверка 9 шагов SetDirectionalPatternParamDefault, IsDirectionalPatternDataCorrect; dDirPatXmin … dDirPatYmax то же
Ez точки и касательное H ReadAmplitudaAndFazaX, ReadAmplitudaAndFazaY то же
отбор точек по фазам, смена знака фаз, секторы сторон AddDirectionalPatternFileXmin … AddDirectionalPatternFileYmax то же
три записи на точку, множитель kDAT, запись .DAT AddDirectionalPatternFileOneEmitter, MakeDirectionalPatternFile то же
режим полос, nborder SetBorderModeIfNeeded, BorderGeometry, BorderSlot; nBorderSize, bBorderOnly то же
тоны многочастотной ДН SetFreqList; nFreqNum, dFreqList то же
чтение .DAT, излучатели c2DArray::ReadData; cIzl viewers/dianapr/c2darray.cpp, cizl.cpp
gi(φ), сектор cIzl::dGetDirectionalPatternEmitter, cIzl::bIsAngleInDiapazon viewers/dianapr/cizl.cpp
поле решётки ReF, ImF c2DArray::CalculateRealDN, CalculateImageDN, CalculateDiagrNapr viewers/dianapr/c2darray.cpp
КНД, мелкая сетка n, нормировка c2DArray::NormirovkaDiagrNapr, GetKnd, GetKnd_dB то же
КИП, опорная решётка, признак N>400 CalculateRealDN_ForKip, CalculateImageDN_ForKip, GetKip, IsCalculateKip то же
девиации c2DArray::MakeDeviation, GetRnd, SaveData то же
сравнение с требуемой ДН OptimizationInit, SaveDeviationDirectionalPattern, GetOptimPurposeFunction то же

Подробное описание кода — интегрирование поля для ДН, накопление квадратур, режим полос, файл .DAT, вьювер TMC_DN.

Источники

  • [Климов, 2007] — гл. 9, разд. 9.1 (состав пакета, файлы .AMP, .FAZ, .dat, вьювер ДН, рис. 9.1); гл. 10, разд. 10.1.2, 10.2, 10.4 (расчёты ДН: антенна ИТЭР, вибраторы на разгонном блоке «Фрегат» в сравнении с измерениями, решётка рядом с объектами).
  • [Марков, Сазонов, 1975] — принцип эквивалентности, дальняя зона, определения КНД и КИП.
  • Код библиотеки TMCIndan и вьювера TMC_DN — накопление амплитуды и фазы, контур, эквивалентные излучатели, режим полос, КНД, КИП и девиации описаны по коду.
  • Руководство пользователя TMC Suite, раздел «Многочастотный расчёт» — проверка режима полос и многочастотной ДН.
  • Полный список литературы — Литература.

Radiation pattern

In a two-dimensional problem the field does not depend on the z coordinate, and the radiation pattern (RP) is a function of a single angle φ in the xy plane, measured from the x axis counter-clockwise. The compute kernel computes the field only in a bounded region surrounded by an absorber, so it does not see the far field. The RP is built in three steps:

  1. at a given frequency F, the kernel accumulates the complex amplitude of the field at the grid nodes (files .AMP, .FAZ);
  2. on a closed contour in the near field enclosing the radiating structure, the kernel computes the field and its normal derivative and writes the contour points as equivalent radiators (file .DAT);
  3. the TMC_DN viewer sums the fields of these radiators in the far field, normalizes the RP and computes the directivity (D) and the aperture efficiency (AE).

The same viewer builds the RP of an arbitrary antenna array if the radiator file is written by hand, and can estimate the influence of random deviations of its parameters. The set of files .AMP, .FAZ, .dat and the RP viewer have been part of the package since its first versions [Klimov, 2007, Sec. 9.1, Fig. 9.1]; application examples are given in [Klimov, 2007, Ch. 10]. The algorithms are described from the code of the TMCIndan library and the TMC_DN viewer.

Integration contour in the near field

Task file. The RP is enabled by a line of the #OUTPUT section

FIELD_DISTRIBUTION_M name; F; Tmin; Tmax;

(or FIELD_DISTRIBUTION — the quadratures are stored in files, which is very slow) (#OUTPUT section). F is the RP frequency, and Tmin…Tmax is the accumulation window.

Complex amplitude of the field. While the time t lies in the window, the node value U(t), multiplied by the reference cosine and sine of the frequency F and by the time step Δt, is added to the two quadratures of each node:

C=∑t∈[Tmin,Tmax]U(t)cos(2πFt)Δt,S=∑t∈[Tmin,Tmax]U(t)sin(2πFt)Δt.(1)

At the first step with t≥Tmax the window closes, and the amplitude and phase of the field at the node are found from the quadratures:

A=2C2+S2Tmax−Tmin,φ=atan2(S,C),(2)

i.e. in the steady state U(t)=Acos(2πFt−φ). This is a single sample of the Fourier transform at the frequency F (transition to the frequency domain). The formula is exact for a sine if the window contains an integer number of periods: then ∫cos2=∫sin2=T/2 and ∫sincos=0. Therefore, when the task file is read, the end of the window is rounded up to an integer number of periods: Tmax=Tmin+⌈(Tmax−Tmin)F⌉/F (in the program, with a tolerance of 10−4 period). The window must end before the end of the computation TIME, taking this rounding into account; otherwise the RP files are not written and the kernel reports an error; the window must start in the steady state.

The node value U is a quantity proportional to Ez in the H kernel (H-kernel fields) and to Hz in the X kernel (X-kernel fields); the RP formulas are the same for both kernels.

Equivalence principle. The field outside a closed contour that encloses all sources and scatterers is uniquely determined by the tangential components of the electric and magnetic fields on the contour; they can be replaced by equivalent electric and magnetic currents, and the field outside the contour can be computed as the radiation of these currents in free space [Markov, Sazonov, 1975]. The contour can be drawn in the near field, directly inside the computational region.

The contour in the program is a rectangle located 10 grid steps Δ from each edge of the region; the task language provides no other way to specify the contour (the check requires at least 9 steps). The contour points are spaced by Δ, midway between nodes. At each point the following are computed:

  • Ez — the average of the complex amplitudes of the two adjacent nodes along the side;
  • the tangential component of the magnetic field — from Maxwell's equation for a harmonic field in vacuum, Ht∝1jk0∂Ez/∂n, with a central difference along the normal to the side over a step Δ (two nodes on each side of the contour line):
Ht=c2πFΔ·(E1+E2)−(E3+E4)4,\argHt+=π2,(3)

where E1,E2 are the nodes on one side of the contour line and E3,E4 on the other; (E1+E2)−(E3+E4)4≈∓Δ∂Ez/∂n, so that |Ht|=|∂Ez/∂n|/k0, k0=2πF/c — the magnetic field in units of the electric field (Z0H). On the vertical sides this is Hy, and on the horizontal sides Hx.

In the X kernel the same formulas are applied to Hz, and the role of the "tangential H" is played by a quantity proportional to the tangential component of E (duality).

The program then selects points by the phase relation: if the condition on the sign of cos(φH−φE) (specific to each side of the contour) is not satisfied for a point, its amplitudes Ez and Ht are set to zero. After that the phases change sign: the lag phase φ from the amplitude and phase formula becomes the argument of the complex amplitude Ae−jφ for the time dependence ejωt.

Where to place the contour. The above implies the following placement rules:

  • the radiating structure and all objects whose influence on the RP must be taken into account must lie entirely inside the contour, i.e. farther than 10 steps from the region edge;
  • the formula for Ht uses the free-space wavenumber, so the contour must pass through vacuum — not through a dielectric, plasma or absorber;
  • waves reflected from the region boundary pass through the contour and distort the RP, so the boundary must absorb well (absorbing boundary).

Integration over strips along the boundary

The quadratures above are needed only at the nodes from which Ez and Ht of the contour points are computed — these are the nodes within one node on either side of the contour line. Storing four arrays (.COS, .SIN, .AMP, .FAZ) for every node of the whole grid is impossible for large problems, so the program has a strip mode: the contour, in node indices, is extended by one node outwards, and the quadratures are accumulated only in four strips 3 nodes thick — the bottom and top strips across the full width of the contour and the left and right strips between them, without repeated nodes (strips in the code). The storage size per tone is

nborder=6W+6Hm,(4)

where W is the contour width in nodes and Hm is the height of the side strips.

The mode is enabled automatically if:

  • the incident wave contains several tones (then the quadratures of each tone are stored in their own slice of the array, and a .DAT file is written for each tone);
  • or the grid is at least 32 × 32 nodes and four arrays for the whole region would occupy more than a quarter of the free RAM.

In strip mode the .AMP/.FAZ files for the whole region are not written — the amplitude and phase are computed directly in memory, and the .DAT file is exactly the same: on the 200 × 200 and 1000 × 1000 node verification tasks it matched the whole-region computation number for number. The memory saving: on a grid of 11 billion nodes it is about 48 MB instead of 176 GB (TMC Suite user manual, section "Multi-frequency computation").

Transition to the far field

Field of a line source. In a two-dimensional problem, a source that is a point in the plane is an infinite filament along z; at a large distance ρ its field decays as e−jkρ/ρ (a cylindrical wave). For a radiator at a point with polar coordinates (ri,αi), the distance to a remote observation point in the direction φ is ρ−ricos(φ−αi); in the far field this path difference can be neglected in the amplitude but not in the phase (the far-field condition for an antenna of size D is ρ≳2D2/λ [Markov, Sazonov, 1975]). The common factor e−jkρ/ρ is the same for all directions and is omitted: the RP is a function of the angle only.

Array field — the coherent sum of the fields of N radiators (array field in the code):

F(φ)=r1(φ)∑i=1NAigi(φ)exp(j[ψi+kricos(φ−αi)]),k=2πFc,(5)

where Ai, ψi are the amplitude and phase of a radiator, gi(φ) is its own RP, r1(φ) is the element RP common to all radiators (the third line of the .DAT file), and c=299792458 m/s.

Contour radiators. Each contour point gives three records with the same position and sector:

Record Amplitude, phase Own RP gi(φ)
Ez |Ez|, \argEz 1
Hy (vertical sides) |Ht|, \argHt cosφ
Hx (horizontal sides) |Ht|, \argHt sinφ

(on a vertical side the Hx record is zero, and on a horizontal side the Hy record). Each record is assigned the radiation sector of its side: right −90…90°, top 0…180°, left 90…270°, bottom 180…360° (the boundaries are shifted by 0.001°); outside the sector gi is practically zero — an equivalent source on a side of the contour radiates only outwards. The sectors are taken into account if the Reduce flag is enabled for the RP line in TMC_DN (sectors).

The amplitudes of all records are multiplied by a common factor that depends on the grid step and the frequency (.DAT file):

kDAT=Δ3·0,9999960,9361811·ΔF/cF/c.(6)

The common factor changes neither the normalized RP, nor the directivity, nor the aperture efficiency; only the absolute value of the radiated power, which TMC_DN outputs for large arrays, depends on it.

RP and the .AMP/.FAZ/.DAT files

Kernel files (the base name is taken from the FIELD_DISTRIBUTION[_M] line):

File Contents
.COS, .SIN quadratures C, S over the grid (FIELD_DISTRIBUTION only)
.AMP, .FAZ amplitude A and phase φ over the grid; displayed by FieldView (except in strip mode)
.DAT equivalent radiators of the contour for TMC_DN; with several tones, <name>_<F>MHz.DAT for each tone

The .DAT format: the line Frequence = <F, GHz> Ghz;, the line N = <number of records>;, the line of the common element RP (for the kernel, 1.), followed by one line per record: number, X, Y (mm), Amplitude, Faza (degrees), FiMin, FiMax (degrees) and the own RP (1., cos(f), sin(f)) (format). The kernel writes .DAT itself as soon as the accumulation window closes.

Normalized RP — |F(φ)|/max|F|, on a linear scale or in decibels, 20lg (TMC_DN axes). For an array of up to 400 radiators, the plot is built on a grid of 400 angles within the X-axis range; for a larger array, on 1000 angles over −π…π (angle grid). A file from the kernel contains three records per contour point, so the array is already "large" for a contour longer than 133 points.

Multi-frequency RP. With an incident wave containing several tones (multi-frequency computation) and a FIELD_DISTRIBUTION_M line, the quadratures are accumulated for each tone, and a .DAT file is written for each frequency. The length of the accumulation window should preferably be a multiple of 1/Δf (Δf is the tone spacing): then the tones are orthogonal over the window. In the verification example (10 tones spaced by 0.2 GHz), the discrepancy with a separate single-frequency computation was 3.3 % with a 6 ns window and 0.9 % with a 5 ns =1/Δf window (TMC Suite user manual, section "Multi-frequency computation").

Angle unit. The phase in .FAZ is stored in the ANGLE_UNIT units of the task file, but when .DAT is built it is substituted into trigonometric functions as radians. Therefore, with ANGLE_UNIT gradus, the radiator phases in .DAT and the whole RP are incorrect (a known defect); radians are used for the RP (pitfalls).

Application examples [Klimov, 2007, Ch. 10]:

  • a system of active and passive dipoles on the adapter compartment of the Fregat upper stage with a fairing: in the computed RP the main beam is deflected by 9° from the normal, and the side lobe is −9.25 dB; measured on a mock-up, 12° and −8.4 dB (Sec. 10.2.1); followed by the change of the RP upon modification of the structure (Sec. 10.2.2);
  • an ITER reflectometer antenna in a blanket gap: interference of the higher-order slot modes gives a frequency dependence of the RP of the "antenna — slot" system, and an asymmetric antenna position skews the central lobe (Sec. 10.1.2);
  • a five-element phased array (cosine-on-a-pedestal distribution, beam at 18°, length 2.5 wavelengths) near metal objects and a dielectric radome: the main lobe narrows from 40° to 25–30° at the 3 dB level and a dip appears in it, and the radome makes the RP ragged (Sec. 10.4). Two-dimensional RP cuts give a qualitative estimate of the influence of nearby objects.

Directivity

Definition. Directivity is the ratio of the power flux density in the direction of the maximum to its average over all directions for the same radiated power [Markov, Sazonov, 1975]. In a two-dimensional problem, "all directions" is a circle, and the program uses

D=2πmaxφ|F(φ)|2∫02π|F(φ)|2dφ,DdB=10lgD(7)

(for a three-dimensional antenna, 2π and the integral over a circle are replaced by 4π and an integral over a sphere). For a radiator that is omnidirectional in the plane, D=1 (0 dB). This is the directivity in the plane of the two-dimensional model; it does not coincide directly with the directivity of a three-dimensional antenna.

In the program (directivity in the code), the integral and the maximum are taken on a separate fine grid over the full circle by the rectangle method with step 2π/n,

n=max(1000, ⌈64kRmax+1⌉),16≤n≤4000000,(8)

where Rmax is the largest distance of a radiator from the origin: 64 points per radian of the phase kRmax, so as not to miss a narrow main lobe. The directivity is computed in the same way for an array of any size N. An identically zero or non-numeric RP is an error.

Aperture efficiency

Definition. Aperture efficiency (AE) is the ratio of the directivity of an antenna to the directivity of the same antenna with uniform in-phase excitation [Markov, Sazonov, 1975]. For an array, the program uses

AE=DD0,(9)

where D0 is the directivity (directivity formula) of a reference array of the same geometry: all amplitudes 1, phases 0, without the own RPs of the radiators, without sectors and without the common element RP (aperture efficiency in the code).

Limitation. The aperture efficiency is computed only for arrays of N≤400 radiators. For N>400 the reference array is not computed, and instead of the aperture efficiency the radiated power ∫02π|F|2dφ in arbitrary units is output (in the legend, Emitted Power). A kernel file is almost always "large" (three records per contour point), so for an RP computed by the kernel the aperture efficiency is usually not output.

Antenna arrays

A .DAT file can be written by hand — then TMC_DN computes the RP of an ordinary antenna array using the array field formula (.DAT input file):

Frequence = 10 Ghz;
N = 3;
1.
1   X = -15 mm; Y = 0 mm; Amplitude = 0.5; Faza = 0 degree; FiMin = -180 degree; FiMax = 180 degree; 1.
2   X = 0 mm; Y = 0 mm; Amplitude = 1; Faza = 0 degree; FiMin = -180 degree; FiMax = 180 degree; 1.
3   X = 15 mm; Y = 0 mm; Amplitude = 0.5; Faza = 0 degree; FiMin = -180 degree; FiMax = 180 degree; 1.
  • coordinates are in millimetres, the phase and sector limits in degrees, and the frequency in gigahertz;
  • a radiator line may be short (5 fields, without a sector and own RP) — then the sector is −180…180° and the radiator is isotropic;
  • the own RP of a radiator is an expression in f (the angle in radians), for example cos(f); the third line is the common element RP r1(φ), also an expression in f.

Beam scanning. It follows from the array field formula that, for the radiation of the elements of a linear array along the x axis to add in phase in the direction φ0, the phases are set to increase linearly with the coordinate:

ψi=−kxicosφ0.(10)

The RP computed by the kernel uses the same model: the contour points are the radiators of such an "array".

RP deviations

To estimate how the spread of radiator parameters changes the RP, TMC_DN builds an array with random deviations (deviations in the code). Each radiator is assigned independent deviations, uniformly distributed within specified limits:

Ai′=Ai(1+ξAδA100),ψi′=ψi+ξψδψ,xi′=xi+ξxδx,yi′=yi+ξyδy,ξ∈[−1,1],(11)

where δA is in percent of the amplitude, δψ in degrees, and δx, δy in millimetres (by default 10 for the amplitude and phase and 0 for the coordinates). The result is written to a new .DAT file and opened as an ordinary RP. The random-number generator is not re-initialized, so the sequence of deviations is the same at every program start.

Comparison with a required RP. The Calculate Directional Pattern Deviation window computes the array RP on the angle grid of the required-RP file .opt (lines "angle in degrees, value") and writes a .dev file: angle, required and computed normalized RPs (RP with deviations). An objective function ∑|Fnorm−Freq| for fitting amplitudes and phases exists in the code, but is not called in the package.

Mapping to the code

Symbol / action Variable, function File (src/)
FIELD_DISTRIBUTION[_M] line, rounding of Tmax to an integer number of periods CTmcRTH_IndanOutput::ReadFileDistr libs/tmcindan/tmcrth_indanoutput.cpp
error "RP window after the end of the computation" CTmcRTHRectNode (output after the loop) kernels/planarrt_*/tmcrthrectnode.cpp
node value U (stride 2 in the H kernel, 6 in the X kernel) prUNode1[n*nNodeStep], SetNodeStep libs/tmcindan/fieldintegrated.cpp
quadratures C, S CFieldIntegrated::Integrate, IntegrateInMemory, IntegrateInMemoryOneFreq; prCos, prSin same file
amplitude and phase MakeFileAmplitudeAndFaza, MakeFileAmplitudeAndFazaFromMemory, MakeAmpFazFromMemory; prAmp, prFaz same file
contour 10 steps from the edge, 9-step check SetDirectionalPatternParamDefault, IsDirectionalPatternDataCorrect; dDirPatXmin … dDirPatYmax same file
Ez of a point and tangential H ReadAmplitudaAndFazaX, ReadAmplitudaAndFazaY same file
point selection by phases, phase sign change, side sectors AddDirectionalPatternFileXmin … AddDirectionalPatternFileYmax same file
three records per point, factor kDAT, writing .DAT AddDirectionalPatternFileOneEmitter, MakeDirectionalPatternFile same file
strip mode, nborder SetBorderModeIfNeeded, BorderGeometry, BorderSlot; nBorderSize, bBorderOnly same file
tones of a multi-frequency RP SetFreqList; nFreqNum, dFreqList same file
reading .DAT, radiators c2DArray::ReadData; cIzl viewers/dianapr/c2darray.cpp, cizl.cpp
gi(φ), sector cIzl::dGetDirectionalPatternEmitter, cIzl::bIsAngleInDiapazon viewers/dianapr/cizl.cpp
array field ReF, ImF c2DArray::CalculateRealDN, CalculateImageDN, CalculateDiagrNapr viewers/dianapr/c2darray.cpp
directivity, fine grid n, normalization c2DArray::NormirovkaDiagrNapr, GetKnd, GetKnd_dB same file
aperture efficiency, reference array, N>400 flag CalculateRealDN_ForKip, CalculateImageDN_ForKip, GetKip, IsCalculateKip same file
deviations c2DArray::MakeDeviation, GetRnd, SaveData same file
comparison with a required RP OptimizationInit, SaveDeviationDirectionalPattern, GetOptimPurposeFunction same file

A detailed description of the code: field integration for the RP, quadrature accumulation, strip mode, .DAT file, TMC_DN viewer.

Sources

  • [Klimov, 2007] — Ch. 9, Sec. 9.1 (composition of the package, files .AMP, .FAZ, .dat, RP viewer, Fig. 9.1); Ch. 10, Sec. 10.1.2, 10.2, 10.4 (RP computations: ITER antenna, dipoles on the Fregat upper stage compared with measurements, an array near objects).
  • [Markov, Sazonov, 1975] — equivalence principle, far field, definitions of directivity and aperture efficiency.
  • Code of the TMCIndan library and the TMC_DN viewer — the accumulation of amplitude and phase, the contour, the equivalent radiators, the strip mode, directivity, aperture efficiency and deviations are described from the code.
  • TMC Suite user manual, section "Multi-frequency computation" — verification of the strip mode and the multi-frequency RP.
  • The full reference list is given in References.