### 15.5.11. lengthAve

Computes the length-based average of the variable or expression on the specified line. This is the 1D equivalent of the `areaAve` function. The results is independent of the nodal distribution along the line because a weighting function assigns a higher weighting to areas of sparse nodal density.

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

where:

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

- `<Location>` is any 1D or 2D location.

`lengthAve(T)@Polyline1` calculates the average temperature on `Polyline1` weighted by the distance between each point (`T` is the system variable for temperature).

#### 15.5.11.1. Tools > Command Editor Example

    >calculate lengthAve, <Expression>, <Location>

#### 15.5.11.2. Tools > Function Calculator Example

This calculates the average velocity on the location `Polyline1` using a length-based weighting function to account for the distribution of points along the line.

Function: `lengthAve`, Location: `Polyline1`, Variable: `Velocity`.

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