On Apr 9, 2010, at 5:23 AM, Lyla Jim wrote:

>  TSVViewer give me numbers about "x.y.phi" but i wanted to have the numbers 
> for time also,
> i have no idea for how to write the code to print the time together with that 
> ,since i am quite new to fipy i couldn't handdle it.
> i also would be happy discuss this more.

If you declare a variable to hold "time" as a function of position:

  myTime = CellVariable(mesh=mesh, name="time")

then

  TSVViewer(vars=phi).plot() 

will plot x, y, and phi and 

  TSVViewer(vars=(phi, myTime)).plot() 

will plot x, y, phi, and myTime.

What values you decide to put into myTime are up to you and doesn't really have 
anything to do with FiPy.



Reply via email to