CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Annotating parafoam with timestep info

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 19, 2005, 01:37
Default Anybody know whether it's poss
  #1
New Member
 
Ron W Cresswell
Join Date: Mar 2009
Posts: 18
Rep Power: 8
roncresswell is on a distinguished road
Anybody know whether it's possible to annotate a keyframe animation in paraview so that the solution time is on the image and updates as the animation proceeds?

Thanks in advance,

Ron
roncresswell is offline   Reply With Quote

Old   April 21, 2006, 09:46
Default This has been recently discuss
  #2
theof
Guest
 
Posts: n/a
This has been recently discussed into the paraview mailing list, look at the thread Live Annotation
http://public.kitware.com/pipermail/...ead.html#start

Thinking about adding it to the PVFoamReader...
Th
  Reply With Quote

Old   May 18, 2007, 19:09
Default I have similar problem. Basica
  #3
Member
 
rafal zietara
Join Date: Mar 2009
Location: Manchester, UK
Posts: 60
Rep Power: 8
rafal is on a distinguished road
I have similar problem. Basically I just want
to show time (in seconds) in the image. I have
found similar solution on Kitware website,
but it displays frame number and not real time.

the solution was to write this thing (below)
in annotate:
Time: [[[[$Application GetMainWindow] GetAnimationManager] GetAnimationScene] GetAnimationTime]

Is there an easier way to get required time?
Do I really need to write this kind of spells?
and more important what spell to cast in order
to get time in seconds?

I appreciate any help (or where to look for help).
Thanks in advance.
rafal
rafal is offline   Reply With Quote

Old   May 19, 2007, 09:37
Default hey i dunno know how it's d
  #4
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 8
hartinger is on a distinguished road
hey

i dunno know how it's done in paraview, but you could use 'convert' to add it afterwards with a little script

convert -draw "text 25,60 '0.002s'" yourPic.png

'convert' you get from:
http://www.imagemagick.org/
hartinger is offline   Reply With Quote

Old   May 19, 2007, 09:56
Default Thank you Markus for your repl
  #5
Member
 
rafal zietara
Join Date: Mar 2009
Location: Manchester, UK
Posts: 60
Rep Power: 8
rafal is on a distinguished road
Thank you Markus for your replay. It seams
that i will need to come back to old good
imagemagick and convert .

First take pictures from paraview as .jpg.
Than by convert add text (from names of files)
to .jpg files.
and at the end use once again convert to
make a movie.
But the problem is that the last convert
to make a movie uses lots of resources
(temp storage, and takes ages)

Is there a simpler way of doing it from paraview
only?? It should be a trivial thing to include
time on a slide. isnt it?
anyone any idea?
rafal is offline   Reply With Quote

Old   May 19, 2007, 10:07
Default I forgot to mention that i fig
  #6
Member
 
rafal zietara
Join Date: Mar 2009
Location: Manchester, UK
Posts: 60
Rep Power: 8
rafal is on a distinguished road
I forgot to mention that i figured out how to obtain
this effect if we have constant time step. We can
take use of tcl/tk and correct previous command to:

Time: [expr [[[[$Application GetMainWindow] GetAnimationManager] GetAnimationScene] GetAnimationTime]*0.5] s

where 0.5 would be a timeStep. but my time step is not constant so i am still in the same place.
waiting for other suggestions. or maybe... is there a way to get time step in paraview?
or maybe other solution? anyone?
rafal is offline   Reply With Quote

Old   May 21, 2007, 13:10
Default Tecplot if you have the licens
  #7
liu
Senior Member
 
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 8
liu is on a distinguished road
Tecplot if you have the license.
__________________
Xiaofeng Liu, Ph.D., P.E.,
Assistant Professor
Department of Civil and Environmental Engineering
Penn State University
223B Sackett Building
University Park, PA 16802


Web: http://water.engr.psu.edu/liu/
liu is offline   Reply With Quote

Old   May 22, 2007, 03:43
Default Hi Rafal, Maybe you should co
  #8
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
Hi Rafal,
Maybe you should consider OpenDX. OpenFOAM has an excellent writer for it (dxFoam).
It is at least feature rich as paraview, if not more, and definitely it is very easy to add any kind of text to each frame, like the name of the current time directory.

Dragos
dmoroian is offline   Reply With Quote

Old   May 28, 2007, 08:14
Default Xiaofeng, yes if i only have a
  #9
Member
 
rafal zietara
Join Date: Mar 2009
Location: Manchester, UK
Posts: 60
Rep Power: 8
rafal is on a distinguished road
Xiaofeng, yes if i only have a license

Dragos, I spoke with you about OpenDx during SIMDI'06 in Goetheborg. I know you are a big fan of it. I tried some examples than, like you advised me. It seemed to me that i need to learn a lot of things about it to use it. Now I think it is worth to spend 2-3 weeks to learn it and not have such a simple and difficult problems with paraview.

I didnt find solution in paraView. For the recent presentation i had, I just recalculated everything with constant timestep and used annotation method described above. Dummy's solution. I will move to OpenDx once I have some free time to learn it more. Thanks Dragos.

rafal
rafal is offline   Reply With Quote

Old   May 29, 2007, 03:36
Default Hi Rafal, I'm impressed that
  #10
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
Hi Rafal,
I'm impressed that you remembered me. Regarding OpenDX and its easiness of usage, I can make a parallel to OpenFOAM. Wasn't very hard to learn it in the beginning, and maybe it is still? But how great is it now, when you think of its potential?

I hope we can meet again at future OpenFOAM workshops.

Dragos
dmoroian is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
EFD Info Tom FloEFD, FloWorks & FloTHERM 2 January 12, 2009 14:11
some info please andrea Main CFD Forum 2 October 9, 2008 17:10
Info about CFX Dip CFX 2 May 3, 2007 14:33
Where to get these info.. Jas Phoenics 2 January 15, 2004 07:02
info olivier Main CFD Forum 0 November 16, 2001 13:08


All times are GMT -4. The time now is 02:13.