Radiation pattern
The Radiation Pattern tab shows the antenna far field as a 2D polar plot and a 3D lobe over the geometry, one pattern per simulated frequency. It fills in when a run finishes with the radiation pattern enabled.
Where the data comes from
The solver wraps the structure in a Huygens surface and records the near field on it during the run, then transforms that near field to the far field. Turn it on with enable_nf2ff (the Compute Radiation Pattern output toggle). The transform runs at a set of frequencies spread across the band, so every result below is available at each of those points. In auto mode the frequency count comes from the quality preset. In advanced mode nf2ff_num_freqs sets it directly, default 51, up to the backend ceiling of 512 points.
The far field is defined only when the box radiates into open space, so the run needs at least one PML face. Any mix of PML, PEC, and PMC on the remaining faces works. A PEC face acts as an infinite ground plane by image theory. Two cases are refused before the solve: a box with no PML face (a closed cavity, no radiated power), and a PEC or PMC pair on both faces of one axis (that axis is closed, so the pattern is undefined). See Boundaries.
The capture box encloses every painted dielectric, conductor, via, and port. Automatic open faces use the outer legal air planes before PML. At least two cells of clearance around enclosed geometry keep the Yee interpolation stencil in homogeneous air. The backend checks each realized sample against materials, sources, and PML. Insufficient air refuses the export or run. Reflecting faces close the surface at their discrete mirror planes. Enabling radiation changes capture and output without changing the mesh or domain.
Power normalization
nf2ff_summary.csv records signed outward near-field surface flux in pnear_spectral_w_s2 and the far-field solid-angle integral in pfar_spectral_w_s2 at each capture frequency. The spectral columns use physical W*s^2 and the same 2*dt*sum transform as the conjugate terminal measurements in port_power.csv. Voltage and current are evaluated at the same half step. These pulse spectra become pulse energy when integrated over positive frequency.
prad_w uses the signed near-field flux as the total-power estimator, normalized to 1 W of total incident power at the driven terminals. eta_rad divides this flux spectrum by signed net power deposited into the fields through all ports, including passive loads. prad_w is empty where the incident excitation is unsupported. eta_rad also requires positive net deposited power. DC and nonradiating rows leave radiation metrics empty. Signed near flux, angular power, and raw port powers remain diagnostics. farfield_flux_relative_error is (pfar-pnear)/pnear. It compares the outward surface flux with the far-field solid-angle integral at the same frequency. Directivity divides the angular radiation intensity by the signed near-field total-power estimator and is independent of drive amplitude. A summary saved before these columns existed holds an unnormalized spectrum in prad_w, so RayRF shows no efficiency for that result.
port_power.csv separates deposited field power, scalar circuit terminal work, input power, source injection, resistor-gate loss, and the terminal-interface difference. The interface difference is additional resistor loss when voltage varies across a port footprint. It is not a measurement of material loss.
power_energy.json records the corresponding signed pulse work in J. It does not measure radiated pulse energy or material absorption. The run manifest records the physical capture-plane coordinates in the solver domain. At a reflecting wall these are the discrete mirror coordinates, which can differ from the representative cell index stored in the case.
Polar view
The polar view draws the two principal cuts, the E-plane and the H-plane. The right panel holds a frequency selector, a metrics block, and toggles for the two traces.
The frequency slider and the linked GHz spinbox pick which stored pattern to show. Patterns prepare in the background and stay cached while you scrub. If a pattern is still loading, the tab prioritizes the current selection and keeps navigation available. The dB scale is fixed across the slider so the traces stay comparable as you scrub. Clip below sets the floor (default -25 dBi), and a sample below it draws at the center. The ceiling is the peak of the selected quantity across the whole band plus 2 dB, rounded up. The legend names each cut and its phi angle.
The metrics block reports:
- Directivity max. Peak directivity at the selected frequency, in dBi. The label follows Quantity and reads Gain max or Realized gain max when you pick those.
- HPBW theta and HPBW phi. Half-power beamwidth of the E-plane and H-plane cuts, in degrees, measured across the connected -3 dB region around the peak.
- Sidelobe. Level of the largest lobe outside the main lobe, in dB relative to the peak, measured on the plane cut that carries the global peak.
- F/B ratio. The peak minus the level in the opposite direction on that same cut, in dB. Gain and realized gain move the whole cut by the same amount, so this is the same number for all three quantities.
- Radiation efficiency and Total efficiency. As a percentage and in dB, for example
87.3% (-0.59 dB). See Efficiency and gain below.
Efficiency and gain
Radiation efficiency is eta_rad, the radiated power over the net power the ports deliver into the structure. Only loss in the conductors and dielectrics lowers it. Power absorbed by a terminated port is netted out of the delivered power, so coupling into other ports does not lower it either.
Total efficiency is prad_w, the radiated power over the power available from the source at the driven port. It also counts mismatch, feed and matching-network loss, and power coupled into terminated ports. On a one-port antenna it equals eta_rad * (1 - |S11|^2).
Efficiencies are shown as computed, never capped. Where the drive is badly mismatched the delivered power is a small difference of two large ones, so a lossless design can read a few percent above or below 100% at the band edges. When no conductor, dielectric or matching network in the project can dissipate power, a line under the efficiencies says radiation efficiency reads near 100%.
Quantity in the display controls switches the pattern between Directivity (the default), Gain and Realized gain. Gain is directivity plus radiation efficiency in dB, and realized gain is directivity plus total efficiency in dB. The pattern shape is the same in all three, only the dB values move, so the polar cuts, the 3D scalar bar, the max readout and the CSV export follow your choice. It lasts for the session and is not saved with the project.
Where a value is unavailable, its readout says why:
- not recorded. This result does not record efficiency. Run the simulation again to record it. Directivity still shows.
- no measurable radiation. This frequency radiated no measurable power.
- no measurable drive power. The source delivered no measurable power at this frequency, usually at the edge of the excitation band.
Gain and realized gain are greyed out in Quantity for a result that records neither. If you pick one and then move to a frequency or a result without it, the view shows directivity, Quantity reads Directivity, and a line under it says why. It returns to your choice where the data exists. History overlays draw in gain or realized gain only when their own run recorded that efficiency, and the toolbar names any overlay left out.
EIRP max is the peak EIRP at the selected frequency for the Transmit power you type, in W or dBm. Transmit power is the power available from the source at the driven port, so EIRP is transmit power plus the peak realized gain. For example, 1 W (30 dBm) with a realized gain of 4.22 dBi gives 34.22 dBm (2.64 W). Leave the field empty and nothing is computed.
Efficiency plot in the toolbar replaces the polar cuts with radiation and total efficiency in percent across the far-field frequencies, with a dashed line at the selected frequency. It shows when the result records efficiency at more than one frequency. Click it again to return to the cuts.
3D view
The 3D view draws the pattern as a color-mapped lobe with the geometry overlaid at scale, so the beam direction reads against the antenna. Radius and color both follow directivity over a 40 dB window below the peak, and the scalar bar is titled with the selected quantity in dBi.
Two opacity sliders set the alpha blend between the lobe and the geometry, and either can be hidden with its visibility toggle. Show meshing controls the geometry cell outlines independently of Photorealistic, which lights cream dielectric and rough copper. New projects start with mesh outlines on and photorealistic shading off, keeping the dielectric translucent. The project saves this pair separately from Simulate and Field Viewer.
Position and scale each have an auto mode and a manual mode:
- Auto position centers the lobe on the geometry. Turn it off to set the X, Y, and Z origin directly in millimeters.
- Auto scale sizes the lobe so its tip-to-tip diameter matches the longest dimension of the geometry. Turn it off to set the scale directly, which holds a fixed lobe size while you step across frequencies.
Views picks which pattern panels are shown. Check both Polar Pattern and 3D Pattern to get them side by side with a draggable splitter, both driven by the one frequency slider. Check one to give it the whole workspace. At least one view stays checked.
The 3D view uses the same upright navigation as Simulate and Field Viewer. Left drag orbits. Right drag, middle drag or Shift plus left drag pans. The wheel zooms toward the point under the pointer, which stays under it. Each orbit starts around the closest board surface at the center of the view and keeps that pivot for the drag. Without a board, it uses the pattern surface. A miss keeps the last valid pivot, starting at the board or scene center. Orbit sensitivity is 0.25 degrees per logical pixel. The cursor is hidden during a drag and returns to where the drag started. A drag keeps going past the edge of the viewport. Release the button or press Esc to end it. Home fits the 3D scene and resets polar pan and zoom.
Export to CSV
Export CSV asks what to write, then a save path. The scope dialog offers two choices:
- E-plane and H-plane cuts writes only the two displayed curves. Columns:
theta_deg,phi_deg,directivity_dBi,plane. - Full 3D pattern writes every theta/phi sample the run holds for that frequency, with no resampling. Columns:
theta_deg,phi_deg,directivity_dBi.
The value column follows Quantity: directivity_dBi, gain_dBi or realized_gain_dBi. Both files open with comment lines naming the frequency, the run, and the project. The export covers the frequency selected in the tab.
The CLI writes a flat table across the whole band instead, from the backend columns plus gain_dBi and realized_gain_dBi:
freq_hz,theta_deg,phi_deg,D_total_dBi,D_theta_dBi,D_phi_dBi,gain_dBi,realized_gain_dBiD_total_dBi is the total directivity, D_theta_dBi and D_phi_dBi the two polarization components, all in dBi. gain_dBi and realized_gain_dBi are the total directivity plus that frequency's radiation and total efficiency in dB. They are present when the run recorded efficiency, and empty at a frequency without it.
From the CLI
rayrf run writes the same patterns headless: --export-polar for the polar PNG, --export-rad3d for the 3D PNG (add --export-rad3d-vtk for the surface as VTP), and --export-rad-pattern for the flat CSV above. --polar-freq-mhz and --rad3d-freq-mhz pick the frequency, defaulting to the band center. Full flag list on the CLI reference.
A run that captures the far field prints peak directivity and both efficiencies at the frequency nearest the band center, or at every frequency when there are three or fewer. run_manifest.json records a radiation block with one entry per frequency: freq_hz, dmax_dbi, radiation_efficiency and total_efficiency, null where the run has no value, with the reason beside it. rayrf guide radiation lists the fields.