### 15.5.29. volumeAve

Calculates the volume-weighted average of a variable or expression on a 3D location. This is the 3D equivalent of the `areaAve` function. The volume-weighted average is the average value on a location weighted by the volume assigned to each vertex on a location. Without the volume weighting function, the average of all the nodal values would be biased towards values in regions of high mesh density. The following example demonstrates use of the function.

    volumeAve(<Variable|Expression>)@<Location>

where:

- `<Variable|Expression>` is a variable or expression.

- `<Location>` is any 3D region (such as a domain or subdomain).

#### 15.5.29.1. Tools > Command Editor Example

    >calculate volumeAve, <Variable|Expression>, <Location>

#### 15.5.29.2. Tools > Function Calculator Example

This example calculates the volume-weighted average value of density in the region enclosed by the location `Volume1`:

Function: `volumeAve`, Location: `Volume1`, Variable: `Density`

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