|
[Sponsors] |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 |