Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

About UDF programming

    • ESL
      Subscriber

      Nice to meet you.

      I am a university student using ANSYS for my research.

      I would like to ask a question about an equation used in analysis.

      If I want to substitute the pressure of a specific cell zone in the equation, it would look like this


      pressure(["zone name"])


      Now, if I want to use the pressure of a single computational grid instead of a cell zone, I would need to use a cell-level macro with UDF.

      However, even after looking at the reference page, that programming is not clear to me. Can someone please advise me how to set this up?

      I am looking forward to your answers.

    • Rob
      Forum Moderator
      There are a couple of approaches. Are the monitor points fixed or moving? If fixed it's a common work around to separate off a cell/facet to use in the UDF. Otherwise you're looking for a cell that contains a location rather than a cell by it's ID.
Viewing 1 reply thread
  • The topic ‘About UDF programming’ is closed to new replies.
[bingo_chatbox]