extraxt T_min out of log.sim
Hallo,
I pipe the openFoam output from the shell in a file called log.sim. To plot some date I use awk like: Code:
awk -f logs/foamLog.awk log.sim Code:
# Extraction of T_min fluid or solid Min/max T:283.05995 283.15 |
Quote:
|
Thanks for your help, but it do not work. :confused:
A possibitity is to read bouth variables and use only the second. Another is to read the last Variable in the line. Has anybody an Idea?? |
Hi,
To extract values from output, with awk I use something like : "cat log.out |grep 'Tmin/max ='|awk '{print $i}' > Tmin.dat" replacing i by the number I want. In your case it should be something like 3 for Tmin and 4 for Tmax In another case, for extracting density rho max/min : 2.14 3.16 I used : "cat log.out |grep 'rho max/min' | cut -d' ' -f5|tr -d ',' > rhomin.dat" |
Thanks for your idea! it runs with this :D:
Code:
/Min.max.T:/ { |
Just for the records. I have been able to plot using bash scripting only, as I don't know awk...
Code:
cp -f postProcessing/domain2/minMax/0/field* minMax.dat |
All times are GMT -4. The time now is 23:05. |