|
[Sponsors] |
September 9, 2009, 06:43 |
edit output?
|
#1 |
Member
Sven Degner
Join Date: Mar 2009
Location: Zürich
Posts: 55
Rep Power: 17 |
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! |
|
September 9, 2009, 09:09 |
|
#2 |
Member
Sven Degner
Join Date: Mar 2009
Location: Zürich
Posts: 55
Rep Power: 17 |
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? |
|
September 15, 2009, 07:46 |
|
#3 |
Member
Christof Benz
Join Date: Mar 2009
Posts: 52
Rep Power: 17 |
Hi,
porbes function will be the right thing for you. Look at $FOAM_UTILITIES/postProcessing/sampling/probeLocations/ Christof |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |