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

[OpenFOAM] Creating an average line in paraView

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 3 Post By kayoneex
  • 1 Post By kayoneex

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2010, 08:01
Exclamation Creating an average line in paraView
  #1
New Member
 
Join Date: Oct 2010
Posts: 9
Rep Power: 15
kayoneex is on a distinguished road
Hello Users,

i have finished a simulation in OpenFoam which gets the wallShearStress over the surface. In paraFoam i can see all wallShearStresses over the whole object-surface.
Now my question: Can I lay a line over my model which gives the average of the wallShearStresses in paraView? How can i realise that in paraView? Is there a tool, for example that draws a line in x-direction over the model and gives the average of the wallShearStresses on this line?

Best regards,
Roland
kayoneex is offline   Reply With Quote

Old   October 17, 2010, 14:33
Default
  #2
New Member
 
Join Date: Oct 2010
Posts: 9
Rep Power: 15
kayoneex is on a distinguished road
I have found it in the meantime.
kayoneex is offline   Reply With Quote

Old   October 17, 2010, 16:30
Default how does that work again?
  #3
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
Quote:
Originally Posted by kayoneex View Post
I have found it in the meantime.
Could you share your procedure?
chegdan is offline   Reply With Quote

Old   October 20, 2010, 07:18
Default
  #4
New Member
 
Join Date: Oct 2010
Posts: 9
Rep Power: 15
kayoneex is on a distinguished road
Of course.

- Load your model in paraView.
- There is a tool called PlotOverLine. (Filters - Data Analysis)
- Now you can make a 2D-Line with the coordinatesyou need.
- Apply. paraView builds a graph (U or P etc..), where your sampled data is written in.
- Use the tool IntegrateVariables (Filters - Alphabetical) to get the average of this graph

Hopefully it can help.

Roland
yeyinglcn, Jomid and ateh like this.
kayoneex is offline   Reply With Quote

Old   October 22, 2010, 10:27
Default Average Line in Paraview
  #5
New Member
 
CFD user
Join Date: Apr 2010
Location: Germany
Posts: 28
Rep Power: 15
subhkirti is on a distinguished road
Hello kayoneex,

I am trying to get average velocity over a region and did as you suggested. However, I am not sure, that it is giving me the right values. The line is generated parallel to the x-axis at a certain y-coordinate. So, I suppose the velocity graph that I am getting is of the Ux velocity (most dominant in my case, one order of magnitude higher than Uy and Uz) in this region.

The graph that I have created using PlotOverLine gave me the following result, which is in the first graph. As you can see, the average velocity (Ux) will be in the region of 1.5. However, when I run the IntegrateVariables, I get the table, where the value of Ux is reported as 0.7932.

Am i missing something?
Quote:
Originally Posted by kayoneex View Post
Of course.

- Load your model in paraView.
- There is a tool called PlotOverLine. (Filters - Data Analysis)
- Now you can make a 2D-Line with the coordinatesyou need.
- Apply. paraView builds a graph (U or P etc..), where your sampled data is written in.
- Use the tool IntegrateVariables (Filters - Alphabetical) to get the average of this graph

Hopefully it can help.

Roland
Attached Images
File Type: png graph1.png (3.2 KB, 262 views)
__________________
Thanks,
subhkirti is offline   Reply With Quote

Old   October 22, 2010, 10:59
Default
  #6
New Member
 
Join Date: Oct 2010
Posts: 9
Rep Power: 15
kayoneex is on a distinguished road
Hello subhkirti,

yes that is my problem too. If you look at the field, that is generated when you use Integrate Variables, you get Ux, Uy and Uz. I tried to it with the formula squr(Ux²+Uy²+Uz²), but in my case the Uy is the dominant.
In my case it the average is in the same direction, but not exactly it. Maybe somebody can help with that problem...
kayoneex is offline   Reply With Quote

Old   October 25, 2010, 06:11
Default
  #7
New Member
 
Join Date: Oct 2010
Posts: 9
Rep Power: 15
kayoneex is on a distinguished road
@subhkirti
I tried something... IntegrateVariables gives a magnitude about 0.13 for my wallShearStress. If i look at my graph it must be around 0.06-0.07.
I typed all magnitudes ( in my case 100), you get them from PlotOverline, in Excel. With AVERAGE(A1-A100) you get the average from wallShearStress or in your Case Ux. In my case ist is about 0.066. So its right.
Now my question:
Is there an oportunity to export all magnitudes from paraView in Excel????
Or can i get the average from my magnitudes somehow with the calculator in paraView????

Please help
kayoneex is offline   Reply With Quote

Old   October 25, 2010, 07:45
Default
  #8
New Member
 
Join Date: Oct 2010
Posts: 9
Rep Power: 15
kayoneex is on a distinguished road
export: click on the plotOverLine-magnitudes.
then file, export save as .csv-file.
you can open this file with excel.

edit the .csv-file:
- data
- text in cleaving
- cutting comma
- replace comma with point , with .
- in an empty cell: average (...-...)
yeyinglcn likes this.
kayoneex is offline   Reply With Quote

Old   October 25, 2010, 09:30
Default Paraview Export function
  #9
New Member
 
CFD user
Join Date: Apr 2010
Location: Germany
Posts: 28
Rep Power: 15
subhkirti is on a distinguished road
Well, I am having a problem there. My export option is disabled when I am using the plotOverLine. How did you do it? I tried it exactly as you mentioned it, but something is missing i guess.

Quote:
Originally Posted by kayoneex View Post
export: click on the plotOverLine-magnitudes.
then file, export save as .csv-file.
you can open this file with excel.

edit the .csv-file:
- data
- text in cleaving
- cutting comma
- replace comma with point , with .
- in an empty cell: average (...-...)
__________________
Thanks,
subhkirti is offline   Reply With Quote

Old   October 25, 2010, 11:38
Default
  #10
New Member
 
Join Date: Oct 2010
Posts: 9
Rep Power: 15
kayoneex is on a distinguished road
Do you see your magnitudes in a list?
At the window of the PlotOverLine-graph in the upper right corner, there is a field called split horizontal. Click on it. Now you got a few options. Take the one which generates your magnitudes. It is one of the lower options.

Choose the whole magnitudes and click at Data - export ......

It must work...
kayoneex is offline   Reply With Quote

Old   October 26, 2010, 05:23
Default
  #11
New Member
 
Join Date: Oct 2010
Posts: 9
Rep Power: 15
kayoneex is on a distinguished road
name of the option is: Spreadsheet View
and then in the showing-field: PlotOverLine
now you must see your magnitudes
kayoneex is offline   Reply With Quote

Old   April 22, 2016, 21:50
Default Plotting
  #12
Member
 
Milad
Join Date: Jul 2015
Location: USA
Posts: 45
Rep Power: 10
mizzou is on a distinguished road
Guys,

I just simulated a 2-D fluid flow inside a pipe. Now, I'd like to plot a graph showing the variation of the radial average of certain parameter (e.g. velocity, temperature, phase fraction, etc. ) along the pipe. How can I do that? I know that I can use plot over line to show the variation of a parameter along that line. But here, I am trying to depict the variation of average value of a parameter (average in each radial direction) along the whole pipe.

Thanks,
mizzou is offline   Reply With Quote

Old   April 23, 2018, 05:19
Default
  #13
New Member
 
Join Date: Oct 2017
Posts: 3
Rep Power: 8
Nishant79 is on a distinguished road
Quote:
Originally Posted by mizzou View Post
Guys,

I just simulated a 2-D fluid flow inside a pipe. Now, I'd like to plot a graph showing the variation of the radial average of certain parameter (e.g. velocity, temperature, phase fraction, etc. ) along the pipe. How can I do that? I know that I can use plot over line to show the variation of a parameter along that line. But here, I am trying to depict the variation of average value of a parameter (average in each radial direction) along the whole pipe.

Thanks,


I have a similar problem. Did you find solution for plotting average value alonf the length?
Nishant79 is offline   Reply With Quote

Old   April 11, 2019, 01:09
Default Did you solve it?
  #14
New Member
 
Join Date: Apr 2018
Posts: 17
Rep Power: 8
dela is on a distinguished road
Quote:
Originally Posted by Nishant79 View Post
I have a similar problem. Did you find solution for plotting average value alonf the length?
I am working on a similar problem too. any help would be greatly appreciated
dela is offline   Reply With Quote

Old   September 21, 2020, 07:46
Default
  #15
New Member
 
Hendrik von Schöning
Join Date: May 2020
Posts: 7
Rep Power: 5
HVonSch is on a distinguished road
Apparently, the "Integrate Variables" Filter, if applied to "Plot Over Line", multiplies the average with the lenght of the line.


You'd have to divide that out in an additional "Calculator"-Filter.


The complete workflow originally posted by kayoneex would then be:



- Load your model in paraView.
- Apply PlotOverLine (Filters - Data Analysis).
- Now you can make a 2D-Line with the coordinates you need.
- Apply. Note down the line length.
- Use the tool IntegrateVariables (Filters - Alphabetical) to get the average of this graph
- Use the "Calculator"-Filter, choose "Point Data" and divide the relevant mean by the line length




Essentially this is the same as the tick "Divide Cell Data by Volume" in the "Integrate Variables" - Filter, which doesn't work here becaus we are handling "Point Data".
HVonSch is offline   Reply With Quote

Reply

Tags
average, average line, line, paraview


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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 05:37
[Gmsh] Structured meshing in Gmsh the_phew OpenFOAM Meshing & Mesh Conversion 19 August 24, 2022 03:19
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19


All times are GMT -4. The time now is 13:22.