Fluids

Fluids

Topics relate to Fluent, CFX, Turbogrid and more

Does using DEFINE_SOURCE loop over boundary

    • Chinchedu
      Subscriber

      Hi, in Ansys UDF manual it's written that "source term UDFs (defined using DEFINE_SOURCE) are called by ANSYS Fluent from within a loop on cell threads", and my question is does it even loop over boundary cells also.

      Actually I have written a UDF using DEFINE_SOURCE for mass transfer based on saturation temperature, which is a function of local pressure. And stored saturation temperature in user defined memory. But in the post-cfd, near the boundary cells my saturation temperature is changing from 0k to 350K, and through the domain it's 350K. Does it loop over boundary cells?

    • Rob
      Forum Moderator
      It'll loop over the cells, not the facets. There is a macro to find the wall facet for a cell which might be what you're after.
    • DrAmine
      Ansys Employee
      Always try to disable node values when checking things in Fluent. DEFINE_SOURCE does definitely loop over ALL cells.
Viewing 2 reply threads
  • The topic ‘Does using DEFINE_SOURCE loop over boundary’ is closed to new replies.