|
[Sponsors] |
September 19, 2008, 11:10 |
Hi all,
I want to calculate
|
#1 |
Senior Member
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17 |
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. forAll(mesh.cells(),cellI) { 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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Average of SLICE in Paraview | Maurice Waldner | ParaView | 6 | December 16, 2018 18:41 |
Bounded slice in Tecplot possible? | Sam | Tecplot | 1 | August 20, 2008 13:18 |
Section Slice in ProStar | benbru | Siemens | 1 | February 8, 2008 16:59 |
Tecplot Slice | Alex | Tecplot | 2 | April 28, 2006 09:28 |
How to save only a slice,not the whole data? | leon | Siemens | 3 | August 25, 2005 11:55 |