Difference between revisions of "FoamLog"
Rajkmsaini (Talk | contribs) (foamLog utility extracts xy files from a case's log file.) |
Rajkmsaini (Talk | contribs) |
||
Line 21: | Line 21: | ||
The files are output in a simple xy format with the first column Time (default) and the second the extracted values. Option -n creates single column files with the extracted data only. | The files are output in a simple xy format with the first column Time (default) and the second the extracted values. Option -n creates single column files with the extracted data only. | ||
+ | |||
+ | If you execute the ~$ foamLog | ||
+ | |||
+ | e.g. Output will get the following outputs. | ||
+ | |||
+ | CourantMax | ||
+ | CourantMean | ||
+ | Separator | ||
+ | Time | ||
+ | Ux | ||
+ | UxFinalRes | ||
+ | UxIters | ||
+ | Uy | ||
+ | UyFinalRes | ||
+ | UyIters | ||
+ | contCumulative | ||
+ | contGlobal | ||
+ | contLocal | ||
+ | executionTime | ||
+ | p | ||
+ | pFinalRes | ||
+ | pIters |
Latest revision as of 18:45, 2 August 2021
foamLog -help
Usage: foamLog [OPTIONS] <log file> options:
-list lists but does not extract -n create single column files with the extracted data only -quiet quiet operation -localDB only use the local database file -help print the usage
foamLog - extracts xy files from OpenFOAM logs.
The default is to extract for all the 'Solved for' variables the initial residual, the final residual and the number of iterations. Additionally, a (user editable) database is used to extract data for standard non-solved for variables like Courant number, and execution time.
foamLog -l lists all the possible variables without extracting them.
The program will generate and run an awk script which writes a set of files, logs/_<subIter>, for every specified, for every occurrence inside a time step.
For variables that are 'Solved for', the initial residual name will be , the final residual receive the name FinalRes,
The files are output in a simple xy format with the first column Time (default) and the second the extracted values. Option -n creates single column files with the extracted data only.
If you execute the ~$ foamLog
e.g. Output will get the following outputs.
CourantMax CourantMean Separator Time Ux UxFinalRes UxIters Uy UyFinalRes UyIters contCumulative contGlobal contLocal executionTime p pFinalRes pIters