    

 ## On this page

  

 

 # compute\_volumes

 Last update: 02.04.2026 

<a id="ansys.meshing.prime.lucid.Mesh.compute_volumes"></a>

#### Mesh.compute\_volumes(part\_expression='\*', create\_zones\_per\_volume=True)

Compute volumes in the parts defined by the part expression.

**Parameters:**

**part\_expression**

Expression of the parts where the topology must be deleted. The default is `"*"`.

**create\_zones\_per\_volume**

Whether to create volume zones for each volume. The default is `True`.