15.5.13. lineCloudAve

Computes the average of a variable along each individual line of the specified user line cloud, and returns a location-dependent result.

For example, the expression lineCloudAve(phi)@MyCloud would cause the following to happen during its evaluation:

  • The mesh based variable phi would be interpolated onto the line points in user line cloud MyCloud.

  • For each line in the line cloud, the values of phi on the line points are averaged, and the average value is stored at each of the line points.

  • The line-averaged values of phi are then scattered outward from each line to the surrounding mesh, to produce a field of line averaged values, accessible as the function result.

In this example, the MyCloud user line cloud contains all of the settings that control the above process. For example, if the user line cloud is defined using the From Boundaries option, the result of the lineCloudAve function is a field of values available on or near the specified boundaries. The averaging is controlled by the Line Averaging settings in the user line cloud definition. The resulting field is interpolated onto the mesh vertices using the Line Interpolation settings in the user line cloud definition. See User Line Cloud in the CFX-Pre User's Guide.

lineCloudAve(<Variable>)@<Location>

where:

  • <Variable> is a variable.

  • <Location> is any user line cloud.

15.5.13.1. Tools > Command Editor Example

>calculate lineCloudAve, <Variable>, <Location>

15.5.13.2. Tools > Function Calculator Example

This calculates the average velocity on the location LineCloud1.

Function: lineCloudAve, Location: LineCloud1, Variable: Velocity.