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

Fundamental output format control of field values and time

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 15, 2010, 23:12
Smile Fundamental output format control of field values and time
  #1
Member
 
roy fokker
Join Date: Mar 2009
Posts: 44
Rep Power: 8
dbxmcf is on a distinguished road
Hi, All:

I have a specific question regarding the output format of OpenFOAM, especially for 2 issues (I believe they are similar)
(1) After running an arbitrary simulation, the field values (U, p, etc.) at each time step will be saved in their respective folder with their time value (e.g. time value of 0.005, 0.01, 0.015, 0.02), is there a way to use C/C++'s printf-like format control of the folder name like %2.2e, i.e. for each folder, I would like to see output of time= 5.0e-3, 1.0e-2, 1.5e-2, 2.0e-2)?
(2) The same for the field values, is there a way to control the U and p format, like %3.2e, so p=0.00367 would be formatted to p=3.67e-3?

I know this might be very fundamental question, thanks a lot for your help!
dbxmcf is offline   Reply With Quote

Old   January 12, 2011, 11:50
Default
  #2
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 13
AlmostSurelyRob will become famous soon enough
I was also looking for a printf-like format specification, but to no avail. I guess it shouldn't be too difficult to implement it. Meanwhile, you can turn scientific notation by giving the parameter timeFormat a value of scientific as described here:

http://www.openfoam.com/docs/user/co...#x19-1040004.3
AlmostSurelyRob 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
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 28 May 28, 2015 13:37
Access Field values at certain time andrea OpenFOAM Running, Solving & CFD 0 August 31, 2009 06:24
air bubble is disappear increasing time using vof xujjun CFX 9 June 9, 2009 07:59
Modeling in micron scale using icoFoam m9819348 OpenFOAM Running, Solving & CFD 7 October 27, 2007 00:36
Physical Reason for stability of Implicit Schemes? radhakrishnan Main CFD Forum 25 December 7, 2000 16:25


All times are GMT -4. The time now is 05:38.