APREPRO Syntax

Within CUBIT, APREPRO expressions must be written inside of curly braces {}. For example, the following is a valid CUBIT command:

Curve 1 Size {sqrt(2.0)}

  • this will set the mesh size on curve 1 to 1.414214....(the square root of 2)

APREPRO expressions can also exist on separate lines as follows:

#{_numSeat=30}

  • this will set the variable _numSeat to be equal to 30
  • instead of a # you can use $ (i.e., ${_numSeat=30}

As in the example, separate line expressions must exist within commented lines. There is an exception though - looping expressions must exist on non-commented lines - see Additional Functionality