Fluids

Fluids

Topics relate to Fluent, CFX, Turbogrid and more

How to solve floating point exception error in Ansys (fluent)?

    • hbilal1076
      Subscriber

      Dear All,

      In Ansys fluent 2021 R2, I compile and load a UDF file and even initialize successfully but when I click on calculate then at the beginning of 0% calculation I am getting the following error,

      Divergence detected in AMG solver: uds-0

      Divergence detected in AMG solver: uds-0

      Error at host: floating point exception

      ===============Message from the Cortex Process================================

      Compute processes interrupted. Processing can be resumed.

      ==============================================================================

      Error: floating point exception

      Error Object: #f

      Please tell me the possible solution to solve this error, its been a week but I am stuck in solving this issue, I am really in need of someone who can give guidance. Please Help.

    • RK
      Ansys Employee
      Hello,
      Double check all your expressions
      Make sure UDF compilation was successful
    • hbilal1076
      Subscriber
      Thank you very much for your reply.
      Previously, I ran my simulation (only flow equation and no UDF addition) till 100 Iteration and it perfectly calculated I just came to know that when I run it with only flow equation (without UDF
      ) and set iteration till 500 then solution get converged at 269 (written in console).
      For your convenience I am attaching you a screenshot.
      TIA
    • Rob
      Forum Moderator
      Adding brackets into the path is a really bad idea, but doesn't appear to be causing any problems at present.
      If the model works without the UDF but fails with, then it's likely something the UDF is doing. Can you send the result of the UDF (ie what it's supposed to do to the flow) to a UDM and not have it alter anything? Then look to see if the result is sensible.
    • hbilal1076
      Subscriber
      Yes, it work well when I calculating it for only flow equation (without UDF) but when I add UDF and calculate, it give an error
      Divergence detected in AMG solver: uds-0
      Error at host: floating point exception


    • Rob
      Forum Moderator
      Yes, the scalar calculation is going wrong. What are you doing with the scalar?
Viewing 5 reply threads
  • The topic ‘How to solve floating point exception error in Ansys (fluent)?’ is closed to new replies.