Fluids

Fluids

UDF to retrieve user defined variable

    • louai
      Subscriber

      Dear


      i have created a user defined variable for post processing proposes


      however i am writing UDF which needs this user defined variable as an input


      i was wondering how can i achieve this


      best regards

    • Rob
      Ansys Employee

      What variable have you created? You may be better off calculating the value in the UDF, and if it's a field value post processing that rather than what you've done. More information will help. 

    • louai
      Subscriber

      thanks for the prompt reply @rwoolhou


      lets make it a general question , if a user defined variable has been created for any reason , is there a way to refer to it inside the UDF as it is


      i have tried using RP_Get_Real("variable-name")


      where for the variable name i put the name given for the user defined variable but an error returned says an identified variable


      regards

    • DrAmine
      Ansys Employee

      Refer to Fluent Customization manual under Accessing a Scheme Variable in a UDF

Viewing 3 reply threads
  • You must be logged in to reply to this topic.