VolMesh.cells_attribute

VolMesh.cells_attribute(name, value=None, cells=None)[source]

Get or set an attribute of multiple cells.

Parameters:
namestr

The name of the attribute.

valueobject, optional

The value of the attribute.

cellslist[int], optional

A list of cell identifiers.

Returns:
list[Any] | None

A list containing the value per face of the requested attribute, or None if the function is used as a “setter”.

Raises:
KeyError

If any of the cells does not exist.