# Extracting data from a parametric case from single slice

**URL:** https://discourse.paraview.org/t/extracting-data-from-a-parametric-case-from-single-slice/16320
**Category:** ParaView Support
**Created:** [March 13, 2025, 10:51am UTC](https://discourse.paraview.org/t/extracting-data-from-a-parametric-case-from-single-slice/16320 "2025-03-13T10:51:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Rishab\_Kannamvar](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rishab_kannamvar/32/16150_2.png) [@Rishab\_Kannamvar](https://discourse.paraview.org/u/Rishab_Kannamvar)
#### Post date: [March 13, 2025, 10:51am UTC](https://discourse.paraview.org/t/extracting-data-from-a-parametric-case-from-single-slice/16320/1 "2025-03-13T10:51:51Z")

</div>

Hi,  
I have a set of simulations for a pump, which i do for a range of impeller speeds. I simulated 10 cases of the same pump and mesh for different impeller speeds. I picked one RPM case, extracted my domain of interest as a slice. Now i want to use this slice, to extract values from different rpm cases.  
My approach was to use the probe filter, but it seems to be giving me wrong values  
Original data for pressure : range (2e5 - 8e5)  
extracted data for pressure : range (0 - 8e5)  
so there seems to be a lot of zero values coming in.

How can i solve this? are there any different approaches to do it.  
My slice file is in a .vtk , .vtp format (both dont work)  
and my case files are in a ensight gold format, where is use the following function  
def read\_ensight\_data(encas\_file):  
reader = vtk.vtkGenericEnSightReader()  
reader.SetCaseFileName(encas\_file)  
reader.Update()  
data=reader.GetOutput()  
print(“Recieved a folder to open”)  
return pv.MultiBlock(data).combine()

def probe\_data\_at\_slice(ensight\_data, slice\_plane):  
probe = vtk.vtkProbeFilter()  
probe.SetSourceData(ensight\_data) # Set EnSight data as the source  
probe.SetInputData(slice\_plane) # Set slice plane as the input  
probe.Update() # Run the probe filter  
return probe.GetOutput()  
kindly help
