CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   Double Precision (https://www.cfd-online.com/Forums/siemens/52901-double-precision.html)

Wu May 9, 2002 03:20

Double Precision
 
Hi all, I want to ask a problem... When should the "double precision" in Star-CD be used? I guess that it should be used when flows involve chemical reactions. And is my guess right? However, if I use single precision in above, is the solution different? Wu

James May 9, 2002 14:59

Re: Double Precision
 
Double precision is normally used for flows with small density differences. This means there is only an affect on the convergence rate not on the result.

James

Wu May 9, 2002 23:25

Re: Double Precision
 
Thank you very much. You mean that there is only an affect on the convergence rate. And if using single precision as analysis suits double precision, the convergence rate will be slower. Right?

James May 10, 2002 04:43

Re: Double Precision
 
Yes,

this means for flows with small density differences it is nearly impossible to get a converged solution with single precision.

bosko May 10, 2002 10:40

Re: Double Precision
 
Always use double precision, memory is relatively cheap so why even risk the introducing additional round off error into your solution.

steve May 10, 2002 13:20

Re: Double Precision
 
Using double precision all the time when its not necessary is just a waste of time and resources. Many (not all) machines simply take longer to do double precision arithmetic. When you are trying to run problems with several million cells, the difference in size may mean the difference in whether you can run at all on a 32bit machine (ie cheap linux or windows box) or whether you need a 64 bit machine. The difference in cost, even for a pc between 4Gb of memory and 2Gb is several thousand dollars. Memory is cheaper than it used to be, but its not free and its not so cheap on bigger unix machines either.


All times are GMT -4. The time now is 20:21.