|
[Sponsors] |
Pprocess utility - determine variable sum at specific location |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 1, 2020, 11:55 |
Pprocess utility - determine variable sum at specific location
|
#1 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 |
Hi,
I have been trying to find a post processing utility that can integrate a variable data (volScalar) at specific portion of my domain. Description: I have a 2d case. Within a specific zone, I would like to sum up all the variable data. I know how to do this with paraview's integrate variable. But I am looking for something generic I can run from my terminal to extract this information without the need to go through paraview. Note that I already have the output files. Just need to post-process to get the required data from these output files. To mention, I have substantial output data and using paraviews integrate variables is also cumbersome. Any pointers please, Thanks!! |
|
May 20, 2020, 02:02 |
Any utility similar to patchIntegrate for a cellSet?
|
#2 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 |
Hi,
Probably I did not explain my case better earlier and still looking for a solution. I have a computational domain as shown in Fig. 1 and I am only interested to have data in the region marked in blue and not in red. I am able to use topoSet to find cellIDs which indicate the cells enclosed in blue. I am stuck here. Which utility can I use to integrate the cell data within this cellset (this is analogous to patchIntegrate except that I am looking at a cellSet and not a specific patch). I already have the output files. I can use paraviews integrate variables but I have substantially large ampunt of data and doing this every time step is hard. In this regard can anyone suggest or point out to any example. Thanks! |
|
May 28, 2020, 10:27 |
|
#3 |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 367
Rep Power: 8 |
this requires a little bit of coding:
if you know your cellID, i would suggest that you iterate over all cellID's in your domain and access and process only the cells that match that blue area. you can define a data holder and then create an iterative sum of integrated scalars for each matching cellID. |
|
May 28, 2020, 19:00 |
|
#4 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
surfaceFieldValue or volFieldValue or valueAverage may help? see the doc for the first FO: https://www.openfoam.com/documentati...ieldValue.html
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
Tags |
integrate variables, post procesing |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
time step continuity problem in VAWT simulation | lpz_michele | OpenFOAM Running, Solving & CFD | 5 | February 22, 2018 20:50 |
Simulation of a single bubble with a VOF-method | Suzzn | CFX | 21 | January 29, 2018 01:58 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 13:02 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |