|
[Sponsors] |
OpenFOAM Double precision vs Single Precision |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 11, 2008, 10:11 |
Hi Foamers
I am trying to s
|
#1 |
Senior Member
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17 |
Hi Foamers
I am trying to solve a BIG CFD problem in a NOT SO BIG computer, so i had this idea, correct me if i am wrong here: Using the precompiled OpenFOAM single precision or compile it and use it in my problem should roughly be the same as "doubling" the memory capacity, since the float representation requirements in C++ is roughly half the double float representation requirements; So that shoul be enough to solve a problem with a size double of the ones that i solve in double precision, but there is a catch ( at least i think so )... : Due to the reduced precision, the effect of round up errors may simply abort convergence of the solvers in OpenFOAM... or increase drastically the number of iterations needed for convergence... Does anybody has experience in this...? Best Regards Alex |
|
June 11, 2008, 15:30 |
It's quite possible. CG solver
|
#2 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
It's quite possible. CG solvers, for instance, update search directions based on the residual dot-product of the previous iteration. If the dot-product is inaccurate due to round-off, the search direction falters a little bit, and hence the convergence issues.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Single or double precision | Jonas Larsson | Main CFD Forum | 16 | June 20, 2017 07:53 |
Single v.s. double precision | Confused | CFX | 15 | November 10, 2016 05:42 |
single - double precision | PC | FLOW-3D | 4 | October 16, 2008 20:28 |
CFX 64bit single-double precision | Tom | CFX | 2 | December 19, 2006 16:39 |
Compiling OpenFOAM 12 in Single Precision | fra76 | OpenFOAM Installation | 5 | April 21, 2006 13:05 |