14.2.1. CEL Operators

CFX provides a range of mathematical, logical and operational operators as built-in functions to help you create complex expressions using the Expression details view.

Table 14.1: CEL Operators

Operator

First Operand’s Dimensions [x]

Second Operand’s Dimensions [y]

Operands’ Values (Approx)[a]

Result’s Dimensions

-x

Any

 

Any

[x]

x+y

Any

[x]

Any

[x]

x-y

Any

[x]

Any

[x]

x*y

Any

Any

Any

[x]*[y]

x/y

Any

Any

0

[x]/[y]

x^y (if y is a simple, constant, integer expression)

Any

Dimensionless

Any[b]

[x]^y

x^y (if y is any simple, constant, expression)

Any

Dimensionless

x > 0

[x]^y

x^y (if y is not simple and constant)

Dimensionless

Dimensionless

x > 0

Dimensionless

!x

Dimensionless

 

false or true

Dimensionless

x <= y

Any

[x]

false or true

Dimensionless

x < y

Any

[x]

false or true

Dimensionless

x > y

Any

[x]

false or true

Dimensionless

x >= y

Any

[x]

false or true

Dimensionless

x == y

Any

[x]

false or true

Dimensionless

x != y

Any

[x]

false or true

Dimensionless

x && y

Dimensionless

Dimensionless

false or true

Dimensionless

x || y

Dimensionless

Dimensionless

false or true

Dimensionless

[a] The logical constants true and false are represented by "1" and "0" when a numerical representation is required.

[b] For y < 0, x must be non-zero.