Field viewer
The Field Viewer tab shows what a run wrote inside the domain: surface current on a conductor layer in 2D, and the 3D E, H, and energy volumes. Two mode buttons at the top of the toolbar switch between them.
Both views share one toolbar. A slider with prev and next buttons scrubs frames, and the colormap and geometry-overlay controls are on the second row. A corner badge warns when the frames come from an earlier run than the latest one, when the project changed since the run that produced them, or when that run stopped before its ring-down target.
Max FPS beside Play caps playback for E/H fields and time-domain surface currents. It defaults to 30 and accepts any finite positive rate, including fractional values. Loading and rendering can reduce the rate. Each displayed frame starts the next interval, so a slow frame does not cause a burst of skipped or rushed frames. The limit is saved with the project and does not limit camera movement.
Surface currents
Surface Currents is the default mode. It draws the current-density magnitude |J| on one conductor layer as a heatmap, with a colorbar in A/m and the layer name in the status bar. The conductor outline is overlaid as a white contour.
Frequency and Time switch the domain. Frequency shows the steady-state current at each DFT point, labeled in GHz, and is the default. Time steps through the recorded time-domain frames, labeled in picoseconds, and Play auto-advances them. Play is hidden in the frequency domain, which is a static sweep. Each domain keeps its own scrub position.
Range sets how the color scale is chosen: Local rescales to the current frame, Global spans every frame in the domain, and Freq-based or Frame-based pins the scale to one reference frequency or frame that you pick. Color Style selects the colormap. Drag to pan, scroll to zoom. Home fits the whole surface-current plot.
To see which part of the geometry carries a resonance, select Frequency and scrub to the resonant frequency, for example the S11 dip. The part with the strongest current is the part that resonates, and its length along the current path is the dimension to change to move that resonance. At high power the current density also shows where the copper will heat, since conductor loss per unit area grows with the square of |J|.
To record surface currents, turn on enable_surface_currents and name the conductor layer in surface_current_layer. The run refuses if that layer is not a conductor. Time-domain frames are written every surface_current_interval steps, or at an automatic stride of about ten samples per period at f_max when the auto interval is on. The frequency-domain DFT accumulates every step regardless of the frame interval, over surface_current_num_freqs points (default 63).
E/H fields
E/H Fields renders the 3D field as a volume: a translucent glow over the whole domain with a lit hot core where the field is strongest, drawn over the geometry mesh. It is a time-domain view that plays through the exported frames. It needs a graphics driver with OpenGL 4.3 and compute shaders. Without one, the Field Viewer says what is missing.
Each selected quantity writes one file per captured frame:
| Source | Setting | Unit |
|---|---|---|
| E magnitude | export_e_mag | V/m |
| H magnitude | export_h_mag | A/m |
| Field energy density | export_energy | J/m^3 |
| Ex, Ey, Ez | export_ex, export_ey, export_ez | V/m |
| Hx, Hy, Hz | export_hx, export_hy, export_hz | A/m |
export_e_mag is the default content. H is time-centered to the E level before the magnitude. Field energy density uses each E component's permittivity and the aligned H, including ordinary E/H fields in PML cells. It excludes PML auxiliary fields and conducting-sheet stored states. Ringdown integrates each component over its primary or dual Yee volume outside PML and averages magnetic energy across adjacent half steps. A cell-volume sum of the exported density does not reproduce that diagnostic. The Source selector lists the quantities recorded by the run. Components use a symmetric signed color range.
A unit cell also writes each quantity that carries the incident wave with that wave removed above the cell, listed as E magnitude, incident removed, Ex, incident removed and so on. Above the cell the field is then the reflected wave, and below it the transmitted wave, the two waves S11 and S21 measure. Inside and below the cell nothing is removed. Ez and Hz carry no incident wave, so they have no second entry. See Unit cells.
Range sets the color scale: Local for the current frame, Global across all frames, or Frame-based pinned to a reference frame you pick. Global uses the recorded frame statistics or scans the files in the background. The requested frame appears once its range is available. Color Style selects the colormap, Geometry toggles the structure overlay, and the opacity slider sets its transparency. Geometry edges always use 4x multisample anti-aliasing in the E/H viewer. Photorealistic lights matte cream dielectric and rough copper with soft studio lights. Copper highlights move as you orbit, and nearby visible fields cast colored light onto the geometry. Subtle contact shading makes the copper relief easier to see. Field illumination follows the displayed frame, color style, range, and field opacity. The preference affects the E/H display only and is saved with the project. The geometry opacity slider also applies in this mode.
Show meshing draws mesh cell outlines independently of Photorealistic. Enable both for lit materials with mesh outlines, or disable both for material colors without outlines. Material colors keep the dielectric translucent. New projects start with Photorealistic on and Show meshing off in the E/H viewer. Each viewer saves its own pair of choices in the project.
The geometry display follows the recorded conductor and dielectric footprints on the realized mesh. Copper uses its recorded thickness: outer copper extends outward from the substrate, and buried copper occupies its recorded layer. This display does not change the solver mesh or fields.
A result that recorded no layer description takes it from a matching saved Run History snapshot. When no recorded layer description can be verified, the viewer uses the recorded solver-material geometry. Isolated PEC edges remain visible as narrow translucent copper.
The volume uses the recorded grid coordinates, including graded cells. Drag with the left mouse button to orbit with an upright view, with the right or middle button or Shift plus left button to pan, and use the wheel to zoom toward the point under the pointer. Each orbit starts around the closest board surface at the center of the view. That pivot stays fixed throughout the drag. A miss keeps the last valid pivot, starting at the board or field-domain center. Home fits the full scene. The same 3D controls apply in Simulate and Radiation.
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. Orbit sensitivity is 0.25 degrees per logical pixel at every viewport size. Frame reads and compression run in the background. While frames load, a status line under the viewport names the step, and Cancel stops loading and keeps the frame on screen. Playback advances after each frame is presented. CPU and GPU caches retain compressed frames within their memory budgets.
Export animation
Export animation on the toolbar saves the frames as a GIF or a numbered PNG sequence, for a presentation or a web page, without screen recording. It exports the current view as you set it up: E/H Fields or Surface Currents, the time or frequency domain, the quantity, the camera or the zoomed area, Color Style, Range, and the geometry overlay. The first line of the dialog names the view it exports. The button needs at least 2 frames on screen, and it is hidden in Live mode.
- GIF is the default and plays in any browser or chat window. It holds 256 colors for the whole animation and stores frame times in hundredths of a second, so it offers only the rates that play exactly: 50, 33.3, 25, 20, 12.5 and 10 fps. A 30 fps GIF would play at 33.3 fps.
- PNG sequence writes one lossless PNG per frame into a folder you choose, numbered from
_00000, for a video editor. It is the largest by far.
Resolution offers Match viewport (the view's own size in pixels), 1280 x 720, 1920 x 1080, 3840 x 2160, or a custom width and height. The export keeps the view's vertical field of view, so a shape wider than the viewport shows more at each side and a narrower one shows less. Text and the legend scale with the image, so they keep their size relative to the picture.
Frame rate offers the six exact GIF rates, 25 fps by default. A PNG sequence has no frame rate. Frames sets the first and last frame and keeps every Nth frame, and the line under it gives the frame count and the playing time, for example 120 frames, 4.8 s. Include color legend draws the color bar as it appears on screen.
Estimated size is a rule of thumb for GIF, and a real file can be about three times larger or smaller depending on how much of the picture moves. For a PNG sequence RayRF encodes three frames from your selection at the chosen size and scales up, and the line says how many files it writes, for example PNG sequence writes 240 files, about 1.9 GB.
While the export runs, the Field Viewer shows which frame it is on, with Cancel. The view on screen does not change. Cancel, an error, or closing RayRF removes the unfinished file, and a PNG sequence leaves the folder as it was. When the export finishes, the bottom panel gives the file, its size, and its frame count.
The CLI runs the same export without opening a window: rayrf fields animate RESULT_DIRECTORY --out frames.gif writes a GIF, and --format png writes the PNG sequence into a new folder. It exports the view rayrf fields view opens with, and rayrf fields animate --help lists the settings above as options.
Export cost and cleanup
In Auto mode, Export 3D Fields on the Options card turns field export on and shows the format list beside it. In Advanced mode, Export full fields on the Field Export card turns it on, with the quantities, capture interval, format, and step window under it.
Field format selects RayRF compressed (rff), VTK (vtk), or OpenVDB (vdb). RayRF compressed is the default. It stores signed logarithmic samples in compressed bricks without threshold pruning. VTK stores fp32 samples. OpenVDB can prune samples below vdb_threshold_frac times the frame's peak magnitude. OpenVDB needs a uniform mesh, and the run refuses it on a graded one. Two settings bound the volume of data:
- The capture interval, dense for smooth playback or sparse to save disk.
- The step-range window (
field_export_range_enabledwith a start and end step), which drops warm-up frames. The solver still runs every step, only the disk write outside the window is skipped.
FDTD tips covers when the fields are worth exporting. The on-disk frame formats are on File formats and outputs.
The viewer reads all three formats. A voxel pruned from an OpenVDB file shows as zero. The archive inspection command reports the error bound and storage size of a RayRF compressed frame.
Standalone viewer and archive commands
Open a recorded sequence without opening the editor:
rayrf fields view PATH_TO_RESULT_DIRECTORYThe standalone viewer opens with Photorealistic on. Add --no-photorealistic-geometry for material colors, --show-meshing for mesh cell outlines, or --max-fps to change the playback cap (default 30).
The directory must contain frames.json and its frame files. Inspect an archive or convert one VTK or OpenVDB quantity to a new archive:
rayrf fields inspect step_0000.rff
rayrf fields convert step_0000.vtk --source E_mag --out converted.rff
rayrf schema --what fieldsInspection returns JSON under rayrf.fields.v1. Conversion retains the input file's coordinates and refuses an existing output file. Errors go to stderr as JSON. The command exits 2 for a refused path or input and 1 for a failed read or write. When moving a result sequence, include files.json to retain its position in the project. rayrf guide fields documents these commands.