[ANSYS, Inc. Logo] return to home search
next up previous contents index

3.6 Scheme Macros

The text interface of ANSYS FLUENT executes a Scheme interpreter which allows you to define your own variables that can be stored in ANSYS FLUENT and accessed via a UDF. This capability can be very useful, for example, if you want to alter certain parameters in your case, and you do not want to recompile your UDF each time. Suppose you want to apply a UDF to multiple zones in a mesh. You can do this manually by accessing a particular Zone ID in the graphical user interface, hardcoding the integer ID in your UDF, and then recompiling the UDF. This can be a tedious process if you want to apply the UDF to a number of zones. By defining your own scheme variable, if you want to alter the variable later, then you can do it from the text interface using a Scheme command .

Macros that are used to define and access user-specified Scheme variables from the text interface are identified by the prefix rp, (e.g., rp-var-define). Macros that are used to access user-defined Scheme variables in an ANSYS FLUENT solver, are identified by the prefix RP (e.g., RP_Get_Real). These macros are executed within UDFs.




next up previous contents index Previous: 3.5 Time-Dependent Macros
Up: 3. Additional Macros for
Next: 3.6.1 Defining a Scheme
Release 12.0 © ANSYS, Inc. 2009-01-14