We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

F_C0 returning -1 in Fluent UDF

    • balevy
      Subscriber

      I have a UDF where I loop over the cells in a thread and then the faces of each cell. I use F_C0() and F_C1() to get the cells on either side of the face. However, sometimes, F_C0() returns -1, which seems like it corresponds to C0 not existing. When this happens, F_C1 works without issue (and corresponds to the current cell in my outer cell loop). Does anyone know what is happening in this case?

      I also make sure that the face is not on a boundary using BOUNDARY_FACE_THREAD_P(), so both C0 and C1 should exist.

      I am using Fluent 2023R2.

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