CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Paraview: Cell data and Point Data?

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes
  • 2 Post By vitor
  • 6 Post By alberto
  • 3 Post By sushant

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2010, 10:47
Default Paraview: Cell data and Point Data?
  #1
New Member
 
Vitor Braga
Join Date: Oct 2009
Posts: 28
Rep Power: 17
vitor is on a distinguished road
Hi,

I'm trying to calculate the average velocity in the outlet of a pipe.
I use the filter Integrate Variables, but I dont know how to interpret the data, I mean, what is the difference between the values of velocity in the Cell Data and Point Data? They are quite different.
If I wish to calculate the average velocity in the outlet, which should I choose?
Just to make sure, Paraview integrates in the area, so all I have to do is divide this value by the area of the pipe, and this will give me the average velocity, right?

Thank you.

BR,


Vitor.
Gang Wang and TeddyL like this.
vitor is offline   Reply With Quote

Old   July 9, 2010, 13:46
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
hi friend
as i guess cell data is the value of cell center but point data are the value of cell points for example in hex mesh we have 8 data for points of a cell but just one data for cell center
nimasam is offline   Reply With Quote

Old   July 10, 2010, 06:30
Default
  #3
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by vitor View Post
Hi,

I'm trying to calculate the average velocity in the outlet of a pipe.
I use the filter Integrate Variables, but I dont know how to interpret the data, I mean, what is the difference between the values of velocity in the Cell Data and Point Data? They are quite different.
The cell values are the raw data saved by the solver, while the point values are interpolated on the cell points.

Quote:
If I wish to calculate the average velocity in the outlet, which should I choose?
If with outlet you mean a boundary condition, the most appropriate way is to average in the code, using the face values on the patch.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   December 23, 2010, 01:09
Default Utilities
  #4
Member
 
sushant's Avatar
 
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17
sushant is on a distinguished road
Take a look at the following utilities:

patchAverage Calculates the average of the specified field over the specified patch
patchIntegrate Calculates the integral of the specified field over the specified patch

If all you want to do is calculate average velocity magnitude over the outlet patch. You don't need to open up ParaView to do that. Note that velocity is a volVectorField and only volScalarFields can be averaged, so use

foamCalc mag U

to find and write magU if you want to work with velocity. Then

patchAverage magU outlet

Quote:
what is the difference between the values of velocity in the Cell Data and Point Data?
From OpenFOAM-Wiki:
The builtin cell-to-point filter works like a Cell Data to Point Data filter in ParaView in that it just takes the average of cell values connected to a point. The difference is that the builtin filter takes boundary patch values into account. The filter is faster but less accurate than the volPoint interpolator in paraFoam, which further does inverse distance weighting of cell values. The cell-to-point filter is still computationally demanding thus can be turned off by unchecking "Create cell-to-point filtered data" on the reader panel.


Quote:
Just to make sure, Paraview integrates in the area, so all I have to do is divide this value by the area of the pipe, and this will give me the average velocity, right?
( ∫∫ ψ dA ) / ( ∫∫ dA )
= ( ∫∫ ψ dA ) / A
= average of ψ over A
So yes.

( Sorry to bump an old thread but hope this is helpful )

Last edited by sushant; December 23, 2010 at 02:24. Reason: didn't notice OP specifically asked about ParaView
sushant is offline   Reply With Quote

Old   May 15, 2015, 18:56
Default
  #5
Member
 
james wilson
Join Date: Aug 2014
Location: Orlando, Fl
Posts: 39
Rep Power: 12
jameswilson620 is on a distinguished road
I found this relevant thread but didn't find any specific information for my case.

I'm looking to access cell point values associated with a field. I'm using a hex mesh and am doing interface reconstruction. I require access to the point values since using cell values alone for calculating the interface normal only considers 6 adjacent cells (2 in x, y and z) for 3D and is less accurate and results in large parasitic currents.

Any advice regarding RUNTIME utilities, functions etc. would be beneficial.

See also: http://www.cfd-online.com/Forums/ope...ue-access.html

James

Last edited by jameswilson620; May 27, 2015 at 13:21. Reason: bad link
jameswilson620 is offline   Reply With Quote

Reply


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
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 22:00
[OpenFOAM] How to get the coordinates of velocity data at all cells and at all times vidyadhar ParaView 9 May 20, 2020 21:06
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 08:31
paraview - cell data or point data on plot over line bye bye my blue OpenFOAM 0 December 13, 2016 07:07
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 15:06


All times are GMT -4. The time now is 04:35.