CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   foamLog reading a vector (

rubenparedes March 15, 2010 16:33

foamLog reading a vector

I am writing in the log file the position and velocity of the center of gravity as a vector. I would like to know if there is a way to modify the foamLog script to read these values. I added some lines in the foamLog.db file

#- Center of mass
CG_Position/Centre of mass:/(

But the script is only reading the first component of the vector.

I am new to linux, any idea?


podallaire May 27, 2010 15:43

Hi !

Just wondering if you found the way to do that.



rubenparedes May 27, 2010 23:25

I wrote a script that extracts CG position in log file and save it in a text file

All times are GMT -4. The time now is 17:40.