CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

edit output?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2009, 06:43
Default edit output?
  #1
Member
 
Sven Degner
Join Date: Mar 2009
Location: Zürich
Posts: 55
Rep Power: 17
sven82 is on a distinguished road
hi,

I need some help, with (hope so) a little problem

how its possible to write out the coordinate und a field value in the same output deck, like this

//U>>Field
//------------------------------------


x y z ( Ux Uy Uz )


//where x are the X-coordinate of the cell ( point.pos; pos.x() )
//and Ux the X-komponent of the velocity


Thanks for any help!
sven82 is offline   Reply With Quote

Old   September 9, 2009, 09:09
Red face
  #2
Member
 
Sven Degner
Join Date: Mar 2009
Location: Zürich
Posts: 55
Rep Power: 17
sven82 is on a distinguished road
almost the solution!

the coordinate for the Cell centre is "mesh.C()" and for a single component "mesh.C().component(vector::X)"

at the moment I got the two vector fields:

coordinate mesh.C() ________________U
-------------------------------------------------
x _____ y _______ z _______________Ux _____Uy _______ Uz

or

mesh.C().component(vector::X) ; mesh.C().component(vector::Y); mesh.C().component(vector::Z) ; U.component(vector::X) ; U.component(vector::Y) ; U.component(vector::z) ;

but how can I merge the fields and generate one output?
sven82 is offline   Reply With Quote

Old   September 15, 2009, 07:46
Default
  #3
Member
 
Christof Benz
Join Date: Mar 2009
Posts: 52
Rep Power: 17
chbenz is on a distinguished road
Hi,

porbes function will be the right thing for you. Look at $FOAM_UTILITIES/postProcessing/sampling/probeLocations/

Christof
chbenz is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46
Output transient file to csv Ben CFX 3 September 23, 2008 09:17
[Other] Output Format of MetaMesh t42 OpenFOAM Meshing & Mesh Conversion 0 August 3, 2007 05:28
can "output control " output Nu in expression? prayskyer CFX 3 July 7, 2006 20:37
Help with DPM UDF for OUTPUT needed Zhengcai Ye FLUENT 0 January 5, 2004 17:58


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