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

How to save a dataset with higher precision in paraFoam?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 17, 2012, 07:50
Default How to save a dataset with higher precision in paraFoam?
  #1
jam
Member
 
Alain Martin
Join Date: Mar 2009
Posts: 40
Rep Power: 8
jam is on a distinguished road
Hi,

I know that I can have calculated results with higher precision from the dictionary item writePrecision.
When I then used paraFoam to complete the analysis, I can only save the resulting dataset with a fix precision . However, I can look a the data using spreadsheet whith higher precision. Is there a switch somewhere which can change this in paraFoam ?
Thanks
jam is offline   Reply With Quote

Old   June 20, 2012, 18:44
Default
  #2
Senior Member
 
kmooney's Avatar
 
Kyle Mooney
Join Date: Jul 2009
Location: Amherst, MA USA - San Diego, CA USA
Posts: 279
Rep Power: 9
kmooney is on a distinguished road
What kind of post processing analysis are you performing? If it is something simple you might be able to perform it with some of the Foam post processing applications. That should help maintain the precision you're looking for.

Also, what are you doing that requires such high precision during post process? It might be overkill. Usually that many sig figs are only necessary to mitigate round off error while performing the CFD computations.
kmooney is offline   Reply With Quote

Old   June 21, 2012, 17:44
Default
  #3
jam
Member
 
Alain Martin
Join Date: Mar 2009
Posts: 40
Rep Power: 8
jam is on a distinguished road
Since my first post, I discovered PyFoam. When I can get used to this package, I think that I will be able to do what I want.
I am looking at some very small density variations over time and I do need the accuracy, otherwise, the results are just useless.
jam is offline   Reply With Quote

Old   September 10, 2012, 13:23
Default
  #4
jam
Member
 
Alain Martin
Join Date: Mar 2009
Posts: 40
Rep Power: 8
jam is on a distinguished road
I managed to do the first part of my problem with PyFoam and company. Now , I am stuck again for the same reason. The paraview "save dataset" is not accurate enough. I cannot find an equivalent utility in openFoam to do an integral over an arbitrary plane extracted by the sample utility.
foamCacl does not have it, calcPressureForce have part of it but for a patch only, not an arbitrary plane surface.

Is there such a utility that I'v missed somehow? I did browse and search a lot without success.

Thanks

Just found out that paraview 3.14 has the changing precision facility for saving files.

Last edited by jam; September 10, 2012 at 15:31.
jam 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
Save animation bug in paraFoam on Mac OSX deinstein OpenFOAM Paraview & paraFoam 3 May 1, 2010 15:29
Number of elements x double precision matheusguzella ANSYS Meshing & Geometry 2 October 7, 2009 10:15
ParaView exiting while trying to save image file or movie file 21kalee OpenFOAM Paraview & paraFoam 3 January 23, 2008 17:01
what's wrong about my code for 2d burgers equation morxio Main CFD Forum 3 April 27, 2007 10:38
Single v.s. double precision Confused CFX 9 April 19, 2004 18:33


All times are GMT -4. The time now is 16:17.