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

how to use double precision?

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

Reply
 
LinkBack Thread Tools 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,186
Rep Power: 16
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: Delft, Netherlands
Posts: 919
Rep Power: 17
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.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
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,186
Rep Power: 16
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: 725
Rep Power: 18
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,186
Rep Power: 16
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: Rotterdam, The Netherlands
Posts: 1,595
Rep Power: 24
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,186
Rep Power: 16
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parallel User Defined Real Gas Model aeroman FLUENT 4 July 1, 2015 06:09
Continuing User Defined Real Gas Model issues aeroman FLUENT 5 May 1, 2015 02:57
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 10:38
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23


All times are GMT -4. The time now is 10:31.