|
[Sponsors] |
[General] Loading the correct time step with pvpython |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 3, 2015, 09:35 |
Loading the correct time step with pvpython
|
#1 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
PROBLEM SOLVED:
I just needed to do Code:
UpdatePipeline(time = finalTime) Hi all, This should be a simple task but I can't figure it out! I have a myrun.foam file that I can open up with paraview. When I open it I can then press the "play" button and there is an animation of whatever field variable was selected changing with the time steps. After the animation is finished I can now for example do 'Plot over line' filter and that will be extracting data from the latest time step. No problem. However I want to do this with pvpython. I open the case by doing Code:
reader = OpenDataFile('myrun.foam') EDIT: I have tried to do Code:
finalTime = reader.TimestepValues[-1] reader.TimestepValues = [finalTime] Last edited by Jack001; November 3, 2015 at 10:47. |
|
April 4, 2016, 08:14 |
|
#2 |
New Member
|
Hi
Just try this: Code:
reader = OpenDataFile('myrun.foam') time = reader.TimestepValues reader.UpdatePipeline(max(time)) RenderView1 = GetRenderView() RenderView1.ViewTime =max(time) Render() kkk |
|
Tags |
paraview, pvpython, pvpython vtk openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AMI speed performance | danny123 | OpenFOAM | 21 | October 24, 2020 05:13 |
Stuck in a Rut- interDyMFoam! | xoitx | OpenFOAM Running, Solving & CFD | 14 | March 25, 2016 08:09 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
simpleFoam error - "Floating point exception" | mbcx4jc2 | OpenFOAM Running, Solving & CFD | 12 | August 4, 2015 03:20 |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 01:01 |