|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
roy fokker
Join Date: Mar 2009
Posts: 44
Rep Power: 6 ![]() |
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! |
|
|
|
|
|
|
|
|
#2 |
|
Member
Robert Sawko
Join Date: Mar 2009
Posts: 98
Rep Power: 6 ![]() |
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 |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TimeVaryingMappedFixedValue | irishdave | OpenFOAM Running, Solving & CFD | 23 | December 19, 2012 10:13 |
| 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 15:25 |