CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Single precision better than double precision?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2015, 02:08
Default Single precision better than double precision?
  #1
New Member
 
Mike
Join Date: Jul 2015
Posts: 1
Rep Power: 0
140raiders is on a distinguished road
I am running a basic simulation with water flowing at about 0.3 m/s through a 20 m pipe. I have very small protrusions embedded in the pipe that are only a few millimeters in height, width, and length. I am only interested in the pressure drop along the pipe and I get very different results depending on if I use single precision or double precision. I am new to Ansys but I am assuming that the double precision results are more accurate and I should just use those. Am I correct in thinking this or could the single precision results actually be more accurate? Also, should double precision always be used so long as the longer computational time is of no concern?

Thanks in advance for the help!
140raiders is offline   Reply With Quote

Old   July 30, 2015, 03:32
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,267
Rep Power: 136
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Double precision will always be more accurate. If single precision is more accurate then this is simply a one-off chance as random noise has tried to confuse you.

But double precision requires more memory and a longer simulation time (assuming convergence is the same as a single precision simulation). Whether the longer simulation time and additional memory requirements are a problem is up to up. At least you have the choice.
ghorrocks is offline   Reply With Quote

Reply

Tags
ansys 15.0, cfx, fluid flow, precision

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 08:31
Continuing User Defined Real Gas Model issues aeroman FLUENT 6 April 8, 2016 04:34
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48
what's wrong about my code for 2d burgers equation morxio Main CFD Forum 3 April 27, 2007 11:38
REAL GAS UDF brian FLUENT 6 September 11, 2006 09:23


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