General

General

How to access the electric potential and its derivatives in ANSYS Fluent UDF ?

    • FAQFAQ
      Participant

      The scalar variable C_PHI_1(c,tc) returns the value of the electric potential in the cell c of the thread tc. The vector C_PHI_1_G(c,tc)[i] returns the ith component of its gradient. It can be useful to compute the electric field or to customize the Joule effect (source term in the energy equation).