The countTrue
function returns the number
of mesh nodes on the specified region that evaluate to "true",
where true means greater than or equal to 0.5. The countTrue
function is valid for 1D, 2D, and 3D locations.
countTrue(<Expression>)@<Location>
where <Expression>
is:
In CFD-Post, an expression that contains the logical operators =, >, <, <=, or >=.
In CFX-Solver, an Additional Variable that you define. For example:
TemperatureLE = Temperature > 300[K]
countTrue(TemperatureLE)@Polyline1
returns the number of nodes on the specified polyline locator that
evaluate to true.
In CFD-Post:
>calculate countTrue(Temperature > 300[K]), Domain1
In CFX-Solver:
>calculate countTrue(TemperatureLE), Domain1