pyvista.DiscSource#
- class DiscSource(*args, **kwargs)[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.- inner
float, default: 0.25 The inner radius.
- outer
float, default: 0.5 The outer radius.
- r_res
int, default: 1 Number of points in radial direction.
- c_res
int, default: 6 Number of points in circumferential direction.
- centersequence[
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)
Methods#
Attributes#
Get number of points in circumferential direction. |
|
Get the center in |
|
Get the inner radius. |
|
Get the outer radius. |
|
Get the output data object for a port on this algorithm. |
|
Get number of points in radial direction. |