Fluids

Fluids

Issue with the UDF

Tagged: , ,

    • skdubey
      Subscriber

      Dear Friend,

      I am trying to learn about the "UDF" in my application. I used the simple pipe case, at the initial inlet Pressure will increase with the flow-time and later on become a steady state. Outlet pressure is at 0 pa (gauge pressure). I am trying to plot the Inlet face pressure vs flow time, which should be a simple ramp-step function. I am not sure, I am not getting the desired ramp-step when I plot. I am not sure why my for loop is not read, is there anything wrong with the codes any suggestions

    • DrAmine
      Ansys Employee
      Do you require an UDF for that? Actually a simple Fluent Expression will fit in. Even a transient table or profile will fit in.
      Other point: Where are you hooking the UDF? Screenshot of panel, please.
    • Rob
      Ansys Employee
      I tend to use IF statements and keep things simple. So,
      IF time< 10 pressure = whatever
      ELSE pressure=something else
    • DrAmine
      Ansys Employee
      the slope is better handle via something like
      myvalue= Current_Time*max_value/max_time that value to be hooked as Total Pressure in the Inlet Panel (assuming subsonic inlet where only that input is required).

      And again better to use Expressions...
    • skdubey
      Subscriber

      thanks it work


    • DrAmine
      Ansys Employee
      :)
Viewing 5 reply threads
  • You must be logged in to reply to this topic.