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

[General] Batch: Exchange Ensight data

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2016, 10:53
Default Batch: Exchange Ensight data
  #1
Member
 
Martin
Join Date: Nov 2011
Posts: 35
Rep Power: 14
wernsen is on a distinguished road
Hey Guys,

I am having trouble with exchanging Ensight data in batch mode with this macro:

Code:
#### import the simple module from the paraview
from paraview.simple import *
import os

case = "Case_1"
rpm = 5500
start = 270

print "Case: " + case

### load template
servermanager.LoadState("LayOut_cell_check.pvsm")

### change source
eNSICASE = FindSource('ENSI.CASE')
SetActiveSource(eNSICASE)
eNSICASE.CaseFileName = '/.../' + case + '/ENSIGHT/ENSI.CASE'

# update animation scene based on data timesteps
animationScene = GetAnimationScene()
animationScene.UpdateAnimationUsingDataTimeSteps()

#animationScene.GoToFirst()
PlayMode = "Snap To TimeSteps"

for t in range(272, 400, 2):
    print 'CA: ' + str(t)
    animationScene.GoToNext()
If I run this with the gui of paraview everything seams to be ok. But in batch mode with /.../ParaView-5.0.0/bin/pvbatch --use-offscreen-rendering writeScreen_batch.py there will be a problem with the ensight data. I assume there is a problem with the new times which is maybe not refreshed.

Code:
ERROR: In /home/kitware/dashboards/buildbot/paraview-debian6dash-linux-shared-release_opengl2_qt4_superbuild/source-paraview/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 784
vtkCompositeDataPipeline (0x5156bf0): Algorithm vtkEnSightGoldBinaryReader(0x5155310) returned failure for request: vtkInformation (0x77f7370)
  Debug: Off
  Modified Time: 3200325
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA
  FORWARD_DIRECTION: 0
  FROM_OUTPUT_PORT: 0
  ALGORITHM_AFTER_FORWARD: 1
wernsen 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
[OpenFOAM] How to get the coordinates of velocity data at all cells and at all times vidyadhar ParaView 9 May 20, 2020 20:06
studying a valve case mina.basta OpenFOAM 33 August 30, 2013 04:46
Discrepancy ensight slice and full data for parallel decomposed case Japsor OpenFOAM Bugs 0 August 27, 2013 04:47
Ensight data format Tim EnSight 2 December 19, 2012 13:30
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51


All times are GMT -4. The time now is 00:07.