## 7.4. Macro Calculator

The macro calculator in CFX-Pre is very similar to the one in CFD-Post. For details, see Macro Calculator in the CFD-Post User's Guide. There are some minor differences between the two, however. For instance, an additional widget type, `Location`, is available in the CFX-Pre macro calculator. This enables the selection of mesh regions within the macro. An example of how to use this widget type is:

    # Macro GUI begin
    #
    # macro name = StaticMixer
    # macro subroutine = test
    # macro report file = test_report.html
    #
    # macro parameter = Domain Location
    #	type = Location
    #	value list = 3d composites, 3d primitives
    #

A number of standard lists are available for this widget. The valid `value list` entries are as follows:

- `2d primitives` / `3d primitives`: all primitive 2D and 3D regions for the model

- `internal 2d primitives`: all primitive 2D regions that are internal to the model

- `composites`: all composite regions

- `2d composites` / `3d composites`: all 2D and 3D composite regions

- `assemblies`: all assemblies

Also, predefined macros are not supplied for CFX-Pre the way they are in CFD-Post. For details, see Predefined Macros in the CFD-Post User's Guide.

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