ForceVolMesh.cells_attribute
- ForceVolMesh.cells_attribute(name, value=None, cells=None)
Get or set an attribute of multiple cells.
- Parameters
name (str) – The name of the attribute.
value (obj, optional) – The value of the attribute. Default is
None
.cells (list of int, optional) – A list of cell identifiers.
- Returns
list or 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.