## 15.5. Quantitative Function List

The available quantitative functions are outlined in the sections that follow.

In the table that follows, <Expression> applies to CFD-Post only. CFX-Pre and CFX-Solver can only accept variables as arguments to quantitative functions. Note that for CFX-Pre and CFX-Solver, an Additional Variable can be used to pass an expression indirectly into a quantitative function.

The behavior of the functions in the table below depends on the type of <Location>. Typically:

- On domains and subdomains, the functions use vertex (node) values for the operand.

- On a boundary, the functions use conservative values for the operand unless this is overridden by the `Boundcon` variable operator in CFX-Pre.

- On user locations in CFD-Post, the functions use values interpolated from nodal values.

Table 15.4: CEL Functions in CFX-Pre/CFX-Solver and in CFD-Post

Function Name and Syntax <required> [<optional>] | Operation | Availability
--- | --- | ---
area( ) | Area of a boundary or interface. Supports “@<Location>”. See area. | All

area_x[_<Coord Frame>]( )

area_y[_<Coord Frame>]( )

area_z[_<Coord Frame>]( )

The (signed) component of the normal area vector in the local X, Y, or Z direction. The normal area vectors are always directed out of the domain, therefore you may obtain positive or negative areas depending on the orientation of your domain and the boundary you are operating on. The area of a closed surface will always be zero.

Supports “@<Location>”.

All[a]

areaAve(<Variable|Expression>) | Area-weighted average of <Variable|Expression> on a boundary. Supports “@<Location>”. See areaAve. | All

areaAve_x[_<Coord Frame>]( )

areaAve_y[_<Coord Frame>]( )

areaAve_z[_<Coord Frame>]( )

The (signed) component of the normal area vector weighted average in the local X, Y or Z direction. The normal area vectors are always directed out of the domain, therefore you may obtain positive or negative areas depending on the orientation of your domain and the boundary you are operating on. The area of a closed surface will always be zero.

Supports “@<Location>”.

CFD-Post

areaInt(<Variable|Expression>)

Area-weighted integral of <Variable|Expression> on a boundary.

The `areaInt` function projects the location onto a plane normal to the specified direction (if the direction is not set to `None`) and then performs the calculation on the projected location (the direction specification can also be `None`). The direction of the normal vectors for the location is important and will cancel out for surfaces such as closed surfaces.

Supports “@<Location>”.

See areaInt.

All

areaInt_x[_<Coord Frame>]( )

areaInt_y[_<Coord Frame>]( )

areaInt_z[_<Coord Frame>]( )

The (signed) component of the normal area vector weighted integral in the local X, Y, or Z direction. The normal area vectors are always directed out of the domain, therefore you may obtain positive or negative areas depending on the orientation of your domain and the boundary you are operating on. The area of a closed surface will always be zero.

Supports “@<Location>”.

All

ave(<Variable|Expression>) | Arithmetic average of <Variable|Expression> over nodes within a domain or subdomain. Supports “@<Location>”. See ave. | All
count( ) | Counts the number of evaluation points (for example, nodes) on the named region. See count. | All
countTrue(<Variable|Expression>) | Counts the number of nodes at which the Variable or logical expression evaluates to true. Supports “@<Location>”. See countTrue. | All
force( ) | The magnitude of the force vector on a boundary. Supports “[<Phase>.]” and “@<Location>”. See force. | All
forceNorm [_<Axis>[_<Coord Frame>]]( ) | The length of the normalized force on a curve in the specified direction. Supports “[<Phase>.]” and “@<Location>”. See forceNorm. | CFD-Post
force_x[_<Coord Frame>]( ) force_y[_<Coord Frame>]( ) force_z[_<Coord Frame>]( ) | The (signed) component of the force vector in the local X, Y, or Z direction. Supports “[<Phase>.]” and “@<Location>”. | All[a]
inside() | Similar to the `subdomain` variable, but allows a specific 2D or 3D location to be given. Supports “@<Location>”. See inside. | CFX-Pre, CFX-Solver
length() | Length of a curve. Supports “@<Location>”. See length. | CFD-Post
lengthAve(<Variable|Expression>) | Length-weighted average. Supports “@<Location>”. See lengthAve. | CFD-Post
lengthInt(<Variable|Expression>) | Length-weighted integration. Supports “@<Location>”. See lengthInt. | CFD-Post
mass() | The total mass within a domain or subdomain. This is fluid-dependent. Supports “@<Location>”. See mass. | CFX-Pre, CFX-Solver
massAve(<Variable|Expression>) | Mass-weighted average of <Variable|Expression> on a domain or subdomain. Supports “@<Location>”. See massAve. | CFX-Pre, CFX-Solver
massFlow() | Mass flow through a boundary. Supports “[<Phase>.]” and “@<Location>”. See massFlow. | All
massFlowAve(<Variable|Expression>) | Mass flow weighted average of <Variable|Expression> on a boundary. Supports “[<Phase>.]” and “@<Location>”. See massFlowAve. | All
massFlowAveAbs(<Variable|Expression>) | Absolute mass flow weighted average of <Variable|Expression> on a boundary. Supports “[<Phase>.]” and “@<Location>”. See massFlowAveAbs. | All
massFlowInt(<Variable|Expression>) | Mass flow weighted integration of <Variable|Expression> on a boundary. Supports “[<Phase>.]” and “@<Location>”. See massFlowInt. | All
massInt(<Variable|Expression>) | The mass-weighted integration of <Variable|Expression> within a domain or subdomain. Supports “@<Location>”. See massInt. | CFX-Pre, CFX-Solver
maxVal(<Variable|Expression>) | Maximum value of <Variable|Expression> within a domain or subdomain. Supports “@<Location>”. See maxVal. | All
minVal(<Variable|Expression>) | Minimum value of <Variable|Expression> within a domain or subdomain. Supports “@<Location>”. See minVal. | All
probe(<Variable|Expression>) | Returns the value of the specified variable or expression on the specified Point object. Supports “@<Location>”. See probe. | All

rbstate(<rbvar>[<axis>])

Returns the position/velocity/acceleration or orientation/angular velocity/angular acceleration (or axis components of these) of a rigid body object or immersed solid that is governed by a rigid body solution. These quantities are with respect to the global coordinate frame.

See rbstate.

CFX-Pre, CFX-Solver

rmsAve(<Variable|Expression>) | RMS average of <Variable|Expression> on a 2D boundary or within a 3D domain or subdomain. Supports “@<Location>”. See rmsAve. | CFX-Pre, CFX-Solver
sum(<Variable|Expression>) | Sum of <Variable|Expression> over all 2D boundaries or 3D domains or subdomains. Supports “@<Location>”. See sum. | All
torque( ) | Magnitude of the torque vector on a boundary. Supports “[<Phase>.]” and “@<Location>”. See torque. | All
torque_x[_<Coord Frame>]() torque_y[_<Coord Frame>]() torque_z[_<Coord Frame>]() | The (signed) components of the torque vector about the local x, y, or z coordinate axis. Supports “[<Phase>.]” and “@<Location>”. | All[a]
volume( ) | The total volume of a domain or subdomain. Supports “@<Location>”. See volume. | All
volumeAve(<Variable|Expression>) | Volume-weighted average of <Variable|Expression> on a domain. Supports “@<Location>”. See volumeAve. | All
volumeInt(<Variable|Expression>) | Volume-weighted integration of <Variable|Expression> within a domain or subdomain. Supports “@<Location>”. See volumeInt. | All
[a] See the definition for `[_<Coordinate_ Direction>]]` in Quantitative CEL Functions in ANSYS CFX

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