### 15.5.28. volume

Calculates the volume of a 3D location.

    volume()@<Location>

where:

- `<Location>` is any 3D region (such as a domain or subdomain). An error is raised if the location specified is not a 3D object. For details, see volume.

#### 15.5.28.1. Tools > Command Editor Example

    >calculate volume, <Location>

#### 15.5.28.2. Tools > Function Calculator Example

This example returns the sum of the volumes of each mesh element included in the location `Volume1`.

Function: `volume`, Location: `Volume1`

Release 18.2 - © ANSYS, Inc. All rights reserved.