-
-
April 23, 2022 at 8:05 pm
hbilal1076
SubscriberDear 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.
April 25, 2022 at 1:21 pmRahul Kumar
Ansys EmployeeHello,
Double check all your expressions
Make sure UDF compilation was successful
April 25, 2022 at 8:51 pmhbilal1076
SubscriberThank 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
April 26, 2022 at 2:34 pmRob
Forum ModeratorAdding 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.
April 27, 2022 at 9:01 pmhbilal1076
SubscriberYes, 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
April 28, 2022 at 1:53 pmRob
Forum ModeratorYes, 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.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3572
-
1193
-
1076
-
1063
-
952
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-

Ansys Assistant

Welcome to Ansys Assistant!
An AI-based virtual assistant for active Ansys Academic Customers. Please login using your university issued email address.

Hey there, you are quite inquisitive! You have hit your hourly question limit. Please retry after '10' minutes. For questions, please reach out to ansyslearn@ansys.com.
RETRY