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

Averaging pMean by slice

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

LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2008, 10:10
Default Hi all, I want to calculate
Senior Member
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 16
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 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
[General] Average of SLICE in Paraview Maurice Waldner ParaView 6 December 16, 2018 17:41
Bounded slice in Tecplot possible? Sam Tecplot 1 August 20, 2008 12:18
Section Slice in ProStar benbru Siemens 1 February 8, 2008 15:59
Tecplot Slice Alex Tecplot 2 April 28, 2006 08:28
How to save only a slice,not the whole data? leon Siemens 3 August 25, 2005 10:55

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