CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Paraview python annotate - get alpha value in the domain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2022, 05:33
Default Paraview python annotate - get alpha value in the domain
  #1
New Member
 
Join Date: Mar 2022
Posts: 24
Rep Power: 4
tRock is on a distinguished road
Hi,


I am conducting a simulation wiht interFoam, and would like to annotate the value of alpha.water in the domain.

How can I do this with a python annotation filter in paraview?

Thanks in advance
tRock is offline   Reply With Quote

Old   April 19, 2022, 06:36
Default
  #2
New Member
 
Join Date: Mar 2022
Posts: 24
Rep Power: 4
tRock is on a distinguished road
Ok..
Code:
sum(volume(inputs[0]) *alphawater ) / sum(volume(inputs[0]) )
tRock 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
Turbomachinery Mass imbalance sheaker CFX 12 September 5, 2019 08:09
Periodic Pressure drop cfd_begin CFX 10 May 25, 2017 07:09
[OpenFOAM.org] set up python path for python in paraview compiled with openfoam seanread OpenFOAM Installation 7 October 31, 2015 20:20
[General] Determining number of cores and/or paraview executable via python aerogt3 ParaView 0 December 9, 2014 05:54
[OpenFOAM] paraview v4 - building with python - OF2.3.0, PVv4, Python 2.7 aylalisa ParaView 4 June 13, 2014 08:52


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