[Paraview] [EXTERNAL] displaying simulation time rather than time step

Phil Amburn phil.amburn at gmail.com
Wed Oct 8 19:53:32 EDT 2014


Hi Sean,

 

Can we talk?  I'm not smart enough to understand your suggestion (hate it
when that happens).  

 

If I get something worked out, even a hack, I'll post the solution back to
this list.

 

Thanks!

Phil

 

From: ParaView [mailto:paraview-bounces at paraview.org] On Behalf Of
Sean.Ziegeler at engilitycorp.com
Sent: Wednesday, October 08, 2014 3:41 PM
To: paraview at paraview.org
Subject: Re: [Paraview] [EXTERNAL] displaying simulation time rather than
time step

 

Hey Phil,
You *might* be able to hack it with a combination of a Programmable Filter
and a Python Annotation Filter.  Use the Programmable Filter to add a
FieldData value to each time step that is a string with the appropriate
date.  Then use the Python Annotation Filter to display the date as an
annotation.

The first part is the hard one.  The Programmable Filter could either (1)
read the file once to get all the dates, or (2) compute the dates using the
starting date, the time step value, and Python's datetime module.

Thanks,
Sean

  _____  

From: ParaView [paraview-bounces at paraview.org] on behalf of Scott, W Alan
[wascott at sandia.gov]
Sent: Wednesday, October 08, 2014 5:17 PM
To: Phil Amburn; paraview at paraview.org
Subject: Re: [Paraview] [EXTERNAL] displaying simulation time rather than
time step

Phil,

I have no idea how to put out what you are asking for, but it is a really
good idea.  If you don't get an answer, be sure to write up a bug report/
feature request.

 

Alan

 

From: ParaView [mailto:paraview-bounces at paraview.org] On Behalf Of Phil
Amburn
Sent: Wednesday, October 08, 2014 3:26 PM
To: paraview at paraview.org
Subject: [EXTERNAL] [Paraview] displaying simulation time rather than time
step

 

I would like to do something similar to the Annotate Time filter, but rather
than displaying the time step number, I need to display simulation date and
time.

 

I have a text file with the actual simulation date and time associated with
each time step.  Here are the first few lines of that file

 

Time step   Time step output, Actual time

0               0.00,           4/1/2013 15:00

1               65.83,          4/1/2013 15:01

2               125.88,         4/1/2013 15:02

3               201.00,         4/1/2013 15:03

4               268.65,         4/1/2013 15:04

5               328.83,         4/1/2013 15:05

6               366.46,         4/1/2013 15:06

 

.

 

So, rather than Time: 0 at the bottom of the 3D window, I'd like to have
4/1/2013 15:00

 

Any thoughts / recommendations on how to accomplish this task will be
greatly appreciated.

 

Thanks,

Phil

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20141008/e6078193/attachment-0001.html>


More information about the ParaView mailing list