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

extracting phi along a line

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 25, 2015, 12:53
Question extracting phi along a line
  #1
Zen
Member
 
Zeno Belligoli
Join Date: Sep 2013
Location: Delft, The Netherlands
Posts: 42
Rep Power: 4
Zen is on a distinguished road
Hello,

I have a straight pipe simulation and I'd like to extract the values of phi along a line that starts at (x1,y1,z1) and ends at (x2,y2,z2).
This is possible for a volScalarField (e.g. epsilon, p, omega, k) and for a volVectorField (U) (but not for a surfaceScalarField as phi) by using sampleDict.

I guess this is because phi is defined at the face centres wheres the other quantities are defined at the cell centres.

Is there a way to overcome this problem?

Thanks for your attention!

Z

Edit: Maybe it can be done with 'probes' as a function in controlDict. A result is output but I'm wondering how this is computed. Why does 'probes' output a result for a surfaceScalarField whereas it is not possible to get it with sampleDict? Is there a way to specify the probeLocations as a file and not as a list of points?

Last edited by Zen; November 26, 2015 at 11:41.
Zen is offline   Reply With Quote

Reply

Tags
phi, sampledict, surfacescalarfield

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
Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit OpenFOAM Paraview & paraFoam 60 September 18, 2013 03:23
non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Native Meshers: blockMesh 7 April 17, 2013 05:42
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48
boundaries with gmshToFoam‏ ouafa Open Source Meshers: Gmsh, Netgen, CGNS, ... 7 May 21, 2010 12:43
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19


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