pyvista.DiscSource#

class DiscSource(center=None, inner=0.25, outer=0.5, r_res=1, c_res=6)[source]#

Disc source algorithm class.

Added in version 0.44.0.

Parameters:
centersequence[float], default: (0.0, 0.0, 0.0)

Center in [x, y, z]. Middle of the axis of the disc.

innerfloat, default: 0.25

The inner radius.

outerfloat, default: 0.5

The outer radius.

r_resint, default: 1

Number of points in radial direction.

c_resint, default: 6

Number of points in circumferential direction.

Examples

Create a disc with 50 points in the circumferential direction.

>>> import pyvista as pv
>>> source = pv.DiscSource(c_res=50)
>>> source.output.plot(show_edges=True, line_width=5)
../../../_images/pyvista-DiscSource-1_00_00.png

Methods

Attributes

DiscSource.c_res

Get number of points in circumferential direction.

DiscSource.center

Get the center in [x, y, z].

DiscSource.inner

Get the inner radius.

DiscSource.outer

Get the outer radius.

DiscSource.output

Get the output data object for a port on this algorithm.

DiscSource.r_res

Get number of points in radial direction.