CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Post-Processing

Averaging pMean by slice

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

LinkBack Thread Tools Display Modes
Old   September 19, 2008, 10:10
Default Hi all, I want to calculate
Senior Member
Join Date: Mar 2009
Location: Belgium
Posts: 179
Rep Power: 8
cedric_duprat is on a distinguished road
Hi all,

I want to calculate an average pressure on each slice of my mesh to get the pressure drop as a Post-processing tool.

the result of this "operation" should be a volScalarField (value = cst by slice).
I have a structured, mesh so at every dx, I should be able to cut my geometry and make a sum of pMean.

my question is how to get this slice's cell, this piece of code manage with all the cells.
pDropSlice[cellI] = sum(mesh.cells()*pMean[cellI]);
I can't find how to tell OF
forAll(slice on x direction, sliceI)
forAll(mesh.cells[sliceI], cellI)
{do the averaging}

Hope you can help,

cedric_duprat is offline   Reply With Quote


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
Average of SLICE in Paraview Maurice Waldner ParaView 5 March 28, 2014 16:58
Bounded slice in Tecplot possible? Sam Tecplot 1 August 20, 2008 12:18
Section Slice in ProStar benbru CD-adapco 1 February 8, 2008 16:59
Tecplot Slice Alex Tecplot 2 April 28, 2006 08:28
How to save only a slice,not the whole data? leon CD-adapco 3 August 25, 2005 10:55

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