CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

foamLog reading a vector

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 15, 2010, 16:33
Default foamLog reading a vector
  #1
New Member
 
rubenparedes's Avatar
 
Ruben Paredes
Join Date: Mar 2009
Location: Hoboken, NJ
Posts: 17
Rep Power: 8
rubenparedes is on a distinguished road
Send a message via MSN to rubenparedes
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.
rubenparedes is offline   Reply With Quote

Old   May 27, 2010, 15:43
Default
  #2
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 185
Rep Power: 8
podallaire is on a distinguished road
Hi !

Just wondering if you found the way to do that.

Regards,

PO
podallaire is offline   Reply With Quote

Old   May 27, 2010, 23:25
Default
  #3
New Member
 
rubenparedes's Avatar
 
Ruben Paredes
Join Date: Mar 2009
Location: Hoboken, NJ
Posts: 17
Rep Power: 8
rubenparedes is on a distinguished road
Send a message via MSN to rubenparedes
I wrote a script that extracts CG position in log file and save it in a text file
__________________
R.
rubenparedes is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem converting fluent mesh vinz OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 20 November 17, 2012 11:54
Converting a mesh with splitted cells using fluentMeshToFoam jlpelerin OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 4 April 25, 2011 16:56
problem when converting mesh (made by ICEM) using fluentMeshToFoam Forrest_Lei OpenFOAM 11 October 16, 2009 06:28
TGridFluent mesh with internal by prism layer and internal face for diagnostic sponiar OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 March 30, 2009 15:02
FluentMesh conversion problemwaiting for help waynezw0618 OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 12 December 1, 2006 00:12


All times are GMT -4. The time now is 04:58.