FDTD_Solver.plot_coefficients

rfnetwork.solver.FDTD_Solver.plot_coefficients

FDTD_Solver.plot_coefficients(field, value, axis, position, normalization=True, opacity=1, cmap='brg', vmin=None, vmax=None, point_size=10, axes=None, plotter=None, **kwargs)

Plot FDTD coefficients overlayed on the model geometry.

Return type:

Plotter

Parameters

fieldstr

For E-fields, one of “ex_y”, “ex_z”, “ey_z”, “ey_x”, “ez_x”, “ez_y”. Replace e with h for H-fields. The H-field b coefficients are split to support edge correction techniques, and and 1 or 2 must be appended to the field name: “hx_y1”, “hx_y2”.

valuestr, {“a”, “b”}

“a” specifies the Ca or Da coefficients, “b” selects the Cb or Db coefficients.

axisstr, {“x”, “y”, “z”}

Cartesian axis normal to the surface on which the coefficients will be plotted.

positionfloat

position along axis of surface where the coefficients will be plotted.

normalizationbool | float, optional

By default, “b” coefficents are divided by dt / e0 (for E) or dt / u0 (for H) to avoid very small values. A float can be passed in to normalize by another value, to turn off normalization set to False.

opacitystr | list, default: 1

Opacity of the coefficent plot.

vminfloat, optional

minimum coefficient value shown on the colormap

vmaxfloat, optional

maximum coefficient value shown on the colormap

point_sizefloat, default: 10

size of points representing coefficient values

axesmatplotlib.axes.Axes

matplotlib axes object. If provided, a screenshot is taken of the rendered image and drawn in the the axes.

plotterpv.Plotter, optional

pyvista Plotter object

**kwargs :

remaining kwargs are passed to render().

Returns

pv.Plotter