I have got a question about subtracting slice results. I have two simulation results: results.foam-1 and results.foam-2. And I sliced those results at 1.5m of Z axis for each: Slice1 and Slice2.
I want to have the result that Slice 2 is subtracted by Slice 1. So, I’d visualise the difference of Umagnitudes between them. And I’d represent Umagnitude based on Cells, not points.
Do I have to do with calculator filter or python calculator filter? If so, how can I do that? Can anyone please let me know the fomula for the calculator or python calculater?
If the geometries in Slice1 and Slice2 match exactly, including the order of Cell Id, apply the AppendAttributes filter and then use the Calculator filter to take the difference “U-U_input_1” of the Vectors of the Cell Data.
If only the order of Cell Id is different between Slice 1 and Slice 2, you should take the difference to Point Data instead of Cell Data in the Calculator filter, and then apply the PointDatatoCell Data filter.
Hi,
What is meant by U_input_1? I have 2 slices/surface vectors, if i want to subtract one from another the term sqrt(U_YU_Y+U_ZU_Z) should i write sqrt(U_YU_Y+U_ZU_Z)_SurfaceVectors1-sqrt(U_YU_Y+U_ZU_Z)_SurfaceVectors2?
But this is not working… I have attached the state file. Can some one please help me out. Thanks! paraview_support.pvsm (2.2 MB)