Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Change parameters without unloading and reloading the UDF

    • James
      Subscriber

      Hi, 

      I understand that I can use schemes to change parameters that are in my UDF. I have a few questions:

      1) How do I define it? In a DEFINE macro in a UDF? In fluent? In a completely different file?

      2) The fluent manual suggests that a scheme variable can be defined, for example, (rp-var-define ’pres_av/thread-id 2 ’integer #f). Does it have to be in parentheses?

      3) If it is defined in a DEFINE macro, can I access the variable in another DEFINE macro?

      4) I am a bit confused with the term "text interface". Does it mean the C compiler like vscode?

    • Rob
      Forum Moderator

      The TUI (text interface) is the console part and is usually found below the graphics window in the default view. 

      Scheme and rpvar commands are not something I'd recommend messing with unless you REALLY know what's going to happen. You will need the brackets, apostophies etc and they must be in the correct places. Otherwise they'll either fail, or do something interesting to your model, often both. 

      • James
        Subscriber

         

        alright thank you 

         

    • SRP
      Ansys Employee

      Hi,

      I suggest you to check ansys customization manual on scheme for detail explanation: 3.6.4. Accessing a Scheme Variable in a UDF (ansys.com)

      Hope you will find this useful.

      Thank you.

Viewing 2 reply threads
  • The topic ‘Change parameters without unloading and reloading the UDF’ is closed to new replies.