Fluids

Fluids

User defined function for pressure boundary condition

    • xing
      Subscriber

      In our 2D FLUENT CFD simulation, we need to specify a pressure boundary condition where the pressure is a profile extracted out from another CFD simulation.  The pressure profile is NOT a simple function that we can easily represent using analytical functions like sin or cos.  We know we must use user defined function (UDF) but all the UDF examples we found so far are for simple profiles.  Is there a way we can specify the pressure distribution in a file and then create a UDF that will read that file for pressure? Can you provide an UDF example?

    • DrAmine
      Ansys Employee

      If pressure profile is available from other CFD run why not directly using it as profile without UDF?.

    • xing
      Subscriber

      We just did and it works.  Thanks!

    • DrAmine
      Ansys Employee

      Please mark this as "Is Solved".

    • xing
      Subscriber

      Amine, I guess you meant "Is solution". I just did.  -Tao

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