visall

Visualize x-, y-, z-normal slices of a 3D field solution with objects and sources.

Contents

Syntax

visall(scalar3d, [opts])
visall(scalar3d, obj_array, [opts])
visall(scalar3d, obj_array, src_array, [opts])

Description

visall(scalar3d) vizualizes one of the x-, y-, z-components of the E- or H-field stored as an instance of Scalar3d. The field is visualized on x-, y-, z-normal slices, which are shown in 3D as well as in 2D.

visall(..., obj_array) visualizes the objects in obj_array with the slices of a field. The elements of obj_array are instances of Object.

vis2d(..., obj_array, src_array) visualizes the objects and sources in obj_array and src_array with the slices of a field. The elements of src_array are instances of Source.

The optional argument opts is an options structure that controls the behavior of visualization. The allowed fields of opts are explained below. The default values of the fields are shown in brackets {}.

Note

When opts.isopaque = false is used, the 3D view shows the slices nicely with some transparency. However, the 2D views show worse-looking images because the figure renderer that supports transparency interpolates colors differently from the normal renderer.

Example

[E, H, obj_array, src_array] = maxwell_run({ARGUMENTS});
opts.cscale = 1e-1;
opts.wihabs = true;
visall(E{Axis.x}, obj_array, src_array, opts);