General

General

How to get the total number of phases in an ANSYS Fluent User-Defined Function (UDF)?

    • FAQFAQ
      Participant

      The number of phases is stored in “mp_n” which is declared in sg_mphase.h. It stores the number of phases without considering interaction domains. Usually you do not need access to this number because you get direct access to the phase threads through the domain pointer.