CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User 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 Search this Thread Display Modes
Old   April 16, 2010, 00:12
Smile Fundamental output format control of field values and time
  #1
Member
 
roy fokker
Join Date: Mar 2009
Posts: 44
Rep Power: 17
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: 22
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 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
Physical Reason for stability of Implicit Schemes? radhakrishnan Main CFD Forum 26 October 3, 2023 23:05
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 07:55
Access Field values at certain time andrea OpenFOAM Running, Solving & CFD 0 August 31, 2009 07:24
air bubble is disappear increasing time using vof xujjun CFX 9 June 9, 2009 08:59
Modeling in micron scale using icoFoam m9819348 OpenFOAM Running, Solving & CFD 7 October 27, 2007 01:36


All times are GMT -4. The time now is 02:08.