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

[General] subtracting data from different slices

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2012, 08:10
Question subtracting data from different slices
  #1
New Member
 
Lydia Schulze
Join Date: Jan 2012
Location: Karlsruhe, Germany
Posts: 20
Rep Power: 14
Lydia is on a distinguished road
Hello paraviewers!

For finding out the pressure difference in different heights in my model I would like to subtract the data of different slices from each other in my geometry. The slices have slightly different shapes.

Can anyone give my a hint how I can do that with paraview?
Your help is much appreciated !

Regards,
Lydia
Lydia is offline   Reply With Quote

Old   July 5, 2016, 09:32
Default
  #2
New Member
 
Marc Vogel
Join Date: Jul 2016
Posts: 1
Rep Power: 0
MarcPTV is on a distinguished road
Hey paraviewers! Hey Lydia!
I would like to do something similar, but different models at same slice position.
Do you or anybody else knows the answer?

Regards,
Marc
MarcPTV is offline   Reply With Quote

Old   July 15, 2016, 13:15
Default
  #3
Member
 
Swempa's Avatar
 
Join Date: Apr 2015
Posts: 37
Rep Power: 11
Swempa is on a distinguished road
Hi Marc and Lydia,

This can be achieved in a couple of different ways, depending of what result you are looking for to compute. You can compute a visual scalar difference on the slice with a delta value, or just compute a number of the pressure difference that you are searching.

The later is more simple and if I understand you right is this what you are looking for. Below i give a brief explanation on the setup.

Start with making the two slices that you want to compare (e.g. inlet outlet).

Now you need to compute the average pressure on the slice. As far as I know is there at the moment no good function for this, but you can combine the following filters to achieve this (remember to use good naming of the calculator results to be able to distinguish them from each other).
1. Apply a calculator filter on the slice and compute the quantity of interest.
2. Add a "Integrate Variables" filter to the calculator (this value is integrated over area and needs to be divided by the area to gain the average).
3. Add a "CellDataToPointData" filter to the "Integrate Variables" filter (tic the "Pass Cell Data" box, this will enable you to divide the calculated value with the Area of the surface).
4. Add a Calculator filter where you can find your values of interest under "Scalars" and divide the two with each other to get the average quantity.

Perform the same routine for the second slice to get the second average value for the delta calculation.

Now you can group your last two calculators with the quantities that you want to use in the delta calculation by selecting them and adding the "Group Dataset" filter.

On this "Group Dataset" filter you can add the last calculator filter to compute the delta with your scalars.

Hope that this will work for you!

Cheers
Swempa
Swempa is offline   Reply With Quote

Reply

Tags
difference, slices, subtraction


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
problem with exporting data to Tecplot v.jab OpenFOAM Post-Processing 2 January 11, 2017 08:56
Data Produced From Fine Marine Cant Match with The Experimental Data PeiSan Fidelity CFD 4 August 23, 2014 05:33
Problem running in parralel Val OpenFOAM Running, Solving & CFD 1 June 12, 2014 02:47
[OpenFOAM] saving data in paraview aylalisa ParaView 3 May 31, 2014 11:38
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52


All times are GMT -4. The time now is 09:14.