CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

how to use double precision?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 8, 2013, 04:53
Default how to use double precision?
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
how double precision can be turned on like fluent?does it result more accurate results or more stability?
immortality is offline   Reply With Quote

Old   January 8, 2013, 08:07
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Double precision is enabled by default.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   January 8, 2013, 09:17
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
thanks.but you mean all solvers use double precision instead of single precision?
In some problems it is not required to use double precision that takes more time.
immortality is offline   Reply With Quote

Old   January 8, 2013, 13:19
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Single and double precision are enabled by compiler flags. To switch, you need to change the WM_PRECISION_OPTION to either SP or DP, then recompile the solver you want to use and make sure the current shell has the environment variables updated.
mturcios777 is offline   Reply With Quote

Old   January 8, 2013, 15:19
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
thanks dear Marco.
How to change the parameter you mentioned?
Do all solvers use dp by default?
immortality is offline   Reply With Quote

Old   January 8, 2013, 15:29
Default
  #6
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Eshan,

Please try to read post 2 again, where one of your questions has already been answered.

You could definitely make people more willing to help, if you actually seem to reflect on the answers people are giving you. This is not elementary school and in excess of 200 poorly written posts in a matter of few month tells a very clear story.

Kind regards,

Niels
ngj is offline   Reply With Quote

Old   January 8, 2013, 18:28
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Niels
What's wrong with you about my questions?
Your speech don't seems polite.it is more clear that you have thought here is elementary school and you are the teacher of it.
If i wanted to ask my friend again for more certainty why are you bothering?that's odd.
Do you think my posts exceed your posts and you'r worry about that and counting the months?
Its better to respect each other and don't imagine ourselves a ruller of others!
Thanks.
immortality is offline   Reply With Quote

Reply


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
Continuing User Defined Real Gas Model issues aeroman FLUENT 6 April 8, 2016 04:34
Parallel User Defined Real Gas Model aeroman FLUENT 4 July 1, 2015 07:09
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 22:09.