Ansys result in writing UDF code

    • Morteza1989

      Dear All

      I want to know if it is possible to use Ansys result in writing UDF code, for example in defining material properties.

    • Rob
      Ansys Employee

      We use UDFs to define material properties, is that what you mean?

    • Keyur Kanade
      Ansys Employee

      Do you want to change UDF depending on results?

      Please explain. 

      Moving this to Fluid Dynamics category for better response. 




      If this helps, please mark this post as 'Is Solution' to help others.

      Guidelines on the Student Community

      How to access ANSYS help links


    • Morteza1989

      No. Let me explain in this way. I wrote a code and input the equation of fluid velocity as inlet. Now I want to define the properties of a material placing in the middle of my model and these properties depend on fluid velocity at those elements which should be calculated by Ansys. Is this possible to write such this code as UDF?

    • Karthik R


      As mentioned by Rob, you should be able to use UDFs to customize material properties. Yes, you can make them a function of fluid velocities. The macro you are looking for is DEFINE_PROPERTY. Please refer to the link below to take a look at some examples of UDFs written with this macro.


      If you are having trouble accessing our online help, please take a look at the following post here.


      I hope this helps.




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