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

[General] How to use caluculator with different case data in paraview

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2023, 05:32
Default How to use caluculator with different case data in paraview
  #1
New Member
 
mo
Join Date: May 2022
Posts: 24
Rep Power: 4
gmori is on a distinguished road
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.
gmori is offline   Reply With Quote

Old   January 16, 2023, 09:05
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 647
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
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']
Or use CellData if you prefer.

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
tomf is offline   Reply With Quote

Old   January 16, 2023, 14:08
Default
  #3
New Member
 
mo
Join Date: May 2022
Posts: 24
Rep Power: 4
gmori is on a distinguished road
Thank you for reply!!

I will try to use python calculator.
gmori is offline   Reply With Quote

Reply


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
[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


All times are GMT -4. The time now is 21:57.