|
[Sponsors] |
[General] How to use caluculator with different case data in paraview |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 14, 2023, 05:32 |
How to use caluculator with different case data in paraview
|
#1 |
New Member
mo
Join Date: May 2022
Posts: 24
Rep Power: 4 |
Hello all, I have a question.
I am using OpenFOAM to perform an analysis and visualize the results in paraview. What I want to do is to create two cases (case1 and case2) with exactly the same model geometry and mesh geometry, but with different conditions regarding temperature, and output the temperature distribution of case1 minus that of case2. Is it possible to use data from different cases in the paraview calculator? I would like to know if anyone can tell me how to do this. |
|
January 16, 2023, 09:05 |
|
#2 |
Senior Member
|
Hi,
You can use the python calculator for this task. Your expression would look like this: Code:
inputs[0].PointData['T'] - inputs[1].PointData['T'] Where both datasets that you want to work on must be selected as inputs to the filter. I typically always check the fields themselves to know which is input 0 and which input 1, because that may not always be obvious. Good luck, Tom |
|
January 16, 2023, 14:08 |
|
#3 |
New Member
mo
Join Date: May 2022
Posts: 24
Rep Power: 4 |
Thank you for reply!!
I will try to use python calculator. |
|
|
|
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 |
Animation of Fluent data with paraview | Lilly | FLUENT | 1 | June 26, 2016 17:07 |
[General] Cannot access data from case | SarahLee | ParaView | 2 | May 12, 2016 11:00 |
[OpenFOAM] ParaView 4.10 and OpenFOAM 2.3.0 Multiregion and decomposed case | romant | ParaView | 3 | April 7, 2014 16:42 |