CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Pprocess utility - determine variable sum at specific location

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 1, 2020, 10:55
Default Pprocess utility - determine variable sum at specific location
  #1
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 199
Rep Power: 7
Saideep is on a distinguished road
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!!
Saideep is offline   Reply With Quote

Old   May 20, 2020, 01:02
Default Any utility similar to patchIntegrate for a cellSet?
  #2
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 199
Rep Power: 7
Saideep is on a distinguished road
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!
Attached Images
File Type: png Fig1.png (2.1 KB, 1 views)
Saideep is offline   Reply With Quote

Old   May 28, 2020, 09:27
Default
  #3
Member
 
Join Date: Dec 2019
Location: Germany
Posts: 59
Rep Power: 2
geth03 is on a distinguished road
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.
geth03 is offline   Reply With Quote

Old   May 28, 2020, 18:00
Default
  #4
HPE
Senior Member
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 583
Rep Power: 5
HPE is on a distinguished road
surfaceFieldValue or volFieldValue or valueAverage may help? see the doc for the first FO: https://www.openfoam.com/documentati...ieldValue.html
HPE is offline   Reply With Quote

Reply

Tags
integrate variables, post procesing

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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
time step continuity problem in VAWT simulation lpz_michele OpenFOAM Running, Solving & CFD 5 February 22, 2018 19:50
Simulation of a single bubble with a VOF-method Suzzn CFX 21 January 29, 2018 00:58
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 08:17.