On Apr 1, 2010, at 12:40 PM, Lyla Jim wrote:
Hi, all
i am working on 2D diffusion, i was wondering is there any way to
print the value of time to see how long the diffuison will takes
from one specific region to the onther spefici region on irregural
geometry constructed by Gmsh.
just to clarify i don't meant the time for whole calculation takes,.
what i meant is that when i printed the data by using TSVViewer it
gives the value which is listed at cell centures(x,y, phi), is there
also any way to print the time values which is correspoding to the
"phi" value?
If I understand what you want, you should be able to do:
TSVViewer(vars=var, title="time = %g" % time).plot(fname)
-------
time = 3.14159
x y x y
0.5 0.5 0.25
1.5 0.5 0.75
2.5 0.5 1.25
0.5 1.5 0.75
1.5 1.5 2.25
2.5 1.5 3.75
0.5 2.5 1.25
1.5 2.5 3.75
2.5 2.5 6.25
0.5 3.5 1.75
1.5 3.5 5.25
2.5 3.5 8.75