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

[General] using calulator filter output as a pythonAnnotation variable

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2014, 14:29
Default using calulator filter output as a pythonAnnotation variable
  #1
New Member
 
Jaap Stolk
Join Date: Nov 2014
Posts: 11
Rep Power: 11
jwstolk is on a distinguished road
I'm using a ProbeLocation filter to select a (point) U value, then use a calculator filter to select the X component and convert this from m/s to knots using: "U_X * 1.94384" This results in a double, that I give the name speed_kn using the "Result Array Name" option in the calculator filter.

I want to render this value using the pythonAnnotation filter, but so far I'm not able to access the result of the calculator filter.

After installing python-dev and pynum, and recompiling paraFoam with python enabled, I do have the pythonAnnotation filter, and it works with variables like t_value.

I searched google and this forum for similar questions, but all solutions end in scripts that export the calculator object to CVS, and then import the CVS file, or other methods that look inappropriate for the pythonAnnotation expression.

I would like to save the result as an animation, so would like to avoid any manual steps for each time step.

Or would it be possible to run a python script for every time step, and doing the probe and conversion in python, instead of using GUI filters?

(Ubuntu 14.04 64-bit, paraFoam 4.1.0 from openFoam ThirdParty-2.3.0.tgz, pythonlib 2.7)
jwstolk is offline   Reply With Quote

Reply

Tags
pythonannotation

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Other] OpenFOAM Installation for navalFoam sachinlb OpenFOAM Community Contributions 22 July 28, 2017 06:26
How to increase the output precision for a variable? ripperjack OpenFOAM 4 April 19, 2013 19:04
lift and drag on ship superstructures vaina74 OpenFOAM Running, Solving & CFD 3 June 8, 2010 13:30
[Other] Output Format of MetaMesh t42 OpenFOAM Meshing & Mesh Conversion 0 August 3, 2007 05:28
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 05:27


All times are GMT -4. The time now is 10:25.