CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   foamLog reading a vector (http://www.cfd-online.com/Forums/openfoam-post-processing/73730-foamlog-reading-vector.html)

rubenparedes March 15, 2010 16:33

foamLog reading a vector
 
Hello,

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?

R.

podallaire May 27, 2010 15:43

Hi !

Just wondering if you found the way to do that.

Regards,

PO

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 10:16.