|
[Sponsors] | |||||
Why Does Double Precision Fail in CFX While Single Precision Works? |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Han Zhang
Join Date: Apr 2025
Location: Nan Jing, China
Posts: 40
Rep Power: 2 ![]() |
I am using ANSYS CFX to simulate steam flow with non-equilibrium condensation inside a steam turbine.
When I run the solver with double precision and 60 parallel cores, the simulation fails (either diverges or crashes). However, with single precision and only 30 cores, the simulation completes without any problems. Why would enabling double precision cause the simulation to fail?Any insights would be greatly appreciated. |
|
|
|
|
|
|
|
|
#2 | |
|
Senior Member
Join Date: Jun 2009
Posts: 1,945
Rep Power: 34 ![]() |
Quote:
In your evaluation, you changed two variables at the same time: precision on numbers (like droplet size, nucleation rates, etc), and domain decomposition coupling of the linear equations.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
||
|
|
|
||
|
|
|
#3 | |
|
Member
Han Zhang
Join Date: Apr 2025
Location: Nan Jing, China
Posts: 40
Rep Power: 2 ![]() |
Quote:
|
||
|
|
|
||
|
|
|
#4 |
|
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 18,017
Rep Power: 146 ![]() ![]() ![]() ![]() |
I suspect you will find this result is more due to luck than a firm reason. Your simulation is obviously borderline numerically unstable, so whether it goes stable or not is dependent on a tiny factor. In this case it could be that the single precision simulation cannot resolve a feature (like a small separation) which is just too much for the solver to handle and it tips the simulation over the edge and it fails.
I do not think it worth much effort to try to find a reason for this, as it is likely to be more luck than anything. The conclusion I would draw from this is that your simulation is very unstable and anything you do to improve that stability will help you immensely - you simulation will be faster, more accurate and not crash every now and again. So I would improve mesh quality, check your time step size, check your convergence criteria and use a better initial guess.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
|
|
|
|
|
|
|
#5 | |
|
Member
Han Zhang
Join Date: Apr 2025
Location: Nan Jing, China
Posts: 40
Rep Power: 2 ![]() |
Quote:
|
||
|
|
|
||
![]() |
| Tags |
| cfx, double precision solver |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Single precision better than double precision? | 140raiders | CFX | 1 | July 30, 2015 03:32 |
| [swak4Foam] #codeStream options & includes, swak4Foam | dEntropy | OpenFOAM Community Contributions | 10 | July 29, 2015 06:10 |
| double precision cfx | pat | CFX | 5 | November 11, 2008 07:45 |
| REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 09:23 |
| Double precision CFX | Vanessa | CFX | 8 | August 13, 2006 05:34 |