In this blog, quick reference notes about OpenFOAM are posted in a form of a summary to address a specific topic per post, which I think could be helpful as a reminder for my Alzheimer condition
Gnuplot Vector Probes from the funtionObject
Posted June 9, 2012 at 15:27 by Hisham
When using the functionObject to probe a vector (e.g. velocity) at a location, the output is in the format:
Unlike sampling or using probeLocations, until now AFAIK it is not possible to use U.component(0) to spit only the X-component. To resolve that using gnuplot, one can use:
to plot the Ux component and:
to plot the Uz component. %lf --> read a double and %*f --> skip number ... So it translates to: read (ignore ignore read)
Thereby, other data manipulation can be introduced.
# Time vector 1.20 (2.14 8.512 1.005) . . .
plot 'probeFile' using "%lf (%lf %*lf %*lf)"
plot 'probeFile' using "%lf (%*lf %*lf %lf)"
plot 'probeFile' using 1:2 '%lf (%lf %lf %lf)' plot 'probeFile' using 1:4 '%lf (%lf %lf %lf)'
Total Comments 3
Posted August 8, 2012 at 08:19 by iznal
Posted September 4, 2012 at 09:01 by Hisham
Posted April 22, 2014 at 03:25 by jeicek