Skip to main content

HighFrequency.show

Description​

Visualizes the configured electromagnetic model in an interactive three-dimensional view, allowing the geometry, material regions, and boundary conditions to be inspected before running the simulation.

Material regions are displayed with different colors according to their assigned materials, while boundary surfaces are colored according to their boundary-condition types. A legend identifies the displayed materials and boundary conditions.

Display options control mesh edges, material regions, and boundary surfaces, with additional options for including air regions and absorbing boundaries.

Syntax​

obj

obj A HighFrequency object representing the configured electromagnetic model.

plotter = obj.show()

plotter = obj.show() Displays the configured model using the default visualization settings.

plotter = obj.show(property_name = property_value)

plotter = obj.show(property_name = property_value) Displays the configured model using the specified property values.

Input Arguments​

NameTypeRequiredDefaultDescription

edges

bool

Optional

Yes

Show mesh element edges on the displayed material and boundary surfaces.

materials

bool

Optional

Yes

Display mesh regions colored according to their assigned materials.

boundaries

bool

Optional

Yes

Display surfaces colored according to their assigned boundary conditions.

air

bool

Optional

No

Include regions assigned to air in the material visualization. Applies only when materials is True.

absorbing

bool

Optional

No

Include absorbing boundary surfaces in the boundary-condition visualization. Applies only when boundaries is True.

Output Arguments​

plotter

Type pyvista.Plotter

PyVista Plotter containing the displayed electromagnetic model, which can be used for further visualization customization.

Examples​

plotter = model.show(edges=False, absorbing=True)

Notes​

A valid mesh must be assigned to the model before calling show. The method displays the configured model rather than computed electromagnetic fields.