pyvista.PointCellDataSelection#
- class PointCellDataSelection(*args, **kwargs)[source]#
Mixin for readers that support data array selections.
Examples
>>> import pyvista as pv >>> from pyvista import examples >>> from pathlib import Path >>> filename = examples.download_backward_facing_step(load=False) >>> Path(filename).name 'foam_case_0_0_0_0.case' >>> reader = pv.get_reader(filename) >>> reader EnSightReader('.../foam_case_0_0_0_0.case') >>> reader.cell_array_names ['v2', 'nut', 'k', 'nuTilda', 'p', 'omega', 'f', 'epsilon', 'U'] >>> reader.point_array_names [] >>> reader.all_cell_arrays_status {'v2': True, 'nut': True, 'k': True, 'nuTilda': True, 'p': True, 'omega': True, 'f': True, 'epsilon': True, 'U': True} >>> reader.disable_all_cell_arrays() >>> reader.enable_cell_array('U') >>> mesh = reader.read() # MultiBlock mesh >>> mesh[0].array_names ['U']
Methods#
Get status of cell array with name. |
|
Disable all cell arrays. |
|
Disable all point arrays. |
|
Disable cell array with name. |
|
Disable point array with name. |
|
Enable all cell arrays. |
|
Enable all point arrays. |
|
Enable cell array with name. |
|
Enable point array with name. |
|
Get status of point array with name. |
Attributes#
Return the status of all cell arrays. |
|
Return the status of all point arrays. |
|
Return the list of all cell array names. |
|
Return the number of cell arrays. |
|
Return the number of point arrays. |
|
Return the list of all point array names. |