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.
General

General

How is a real variable defined in a UDF treated in a double precision solver?

    • FAQFAQ
      Participant

      In ANSYS Fluent, real is a typedef that switches between float for single-precision arithmetic, and double for double-precision arithmetic. Since the interpreter makes this assignment automatically, If you define your variables as real, they will be in double precision if you use the double precision solver. However, if you use float or double to define your variable type, the precision will not change with solver precision. It is typically recommended that you use real to define variable type.