|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Join Date: Jul 2019
Posts: 148
Rep Power: 7 ![]() |
Hi, I have a 2D geometry (x-y plane) and work with multiphase solver. I want to get the x-weighted average of phase fraction at each level of y. Then, I want to repeat that for every time step. I would appreciate any hints on how I can do that in openFoam. Thanks.
|
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 365
Rep Power: 8 ![]() |
because no one answered for some time i want to share a workaround with paraview and hope it will be sufficient for you analysis until someone else suggests a smarter and faster solution:
open your case with paraview, create slices at different heights and use the filter 'integrate variables', select your alpha and divide it by the area of the slice, which is also calculated with the same filter. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
spatial average (along a direction) over a boundary patch | backscatter | OpenFOAM Post-Processing | 0 | September 16, 2018 01:45 |
[ANSYS Meshing] CATIA Geometry Generation and Meshing | danielsullivan | ANSYS Meshing & Geometry | 0 | April 3, 2017 21:11 |
Near wall treatment in k-omega SST | Arnoldinho | OpenFOAM Running, Solving & CFD | 38 | March 8, 2017 13:48 |
[ANSYS Meshing] Mesh refinement in both axial & radial direction for 3D annular-tubular geometry | trbprnz | ANSYS Meshing & Geometry | 2 | November 8, 2016 07:00 |
Changing inflow velocity direction deteriorates lift and drag | ziggo | FLUENT | 3 | July 24, 2013 08:39 |