CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

Line Average during runtime or after

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

LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2014, 16:31
Default Line Average during runtime or after
New Member
Join Date: Jan 2014
Posts: 1
Rep Power: 0
ramachandran163 is on a distinguished road
Hi all,

I am trying to get the average value of different parameters along a line in an internal flow. The line does not lie on a patch or anything. I am able to read all the values using the sampleDict as below but I would like to get the average value of it. I am pretty confident that this should be straight forward and that I should be able to achieve it through controlDict or sampleDict, but I am just not able to.

My sampleDict file:
setFormat raw;
interpolationScheme cellPoint;


        type        uniform;
        axis        distance;
        start (4.16 6.16 0.0875);
        end (4.16 8.9 3.43);
        nPoints 50;

        type        uniform;
        axis        distance;
        start (4.16 8.9 0.07);
        end (4.16 6.16 3.41);
        nPoints 50;
can I add something to this existing code to get the average or should I use something similar in the controlDict file to get the average. I am looking for the right keywords and as to where to use them in the code.

I did look in the fieldAverage function and some of the operations that can be used to get the averages during runtime but, I am not able to figure out how they can be used with "sets" type of data.

Thank you very much.

ramachandran163 is offline   Reply With Quote


sampledict, sampling options

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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 113 June 25, 2019 00:58
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
8x icoFoam speed up with Cufflink CUDA solver library kmooney OpenFOAM Running, Solving & CFD 42 November 6, 2012 11:37
[Gmsh] GMSH and OpenFOAM derath OpenFOAM Meshing & Mesh Conversion 44 September 4, 2008 05:09
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19

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