I defined two Variables in two different meshes,
1, in Polar Coordinate system
Pmesh = PeriodicGrid2DTopBottom(dx=dLnR, dy=dCta, nx=nLnR, ny=nCta)
C_V = CellVariable(name = "Vacancy Concentration", mesh = Pmesh, value =
0.0)
2,The other is in Cartesian Coordinate system
Cmesh = Grid2D(dx=dx, dy=dy, nx=nx, ny=ny)
C_V_xy = CellVariable(name = "C_V in XY plane",mesh=Cmesh,value = 0.0)

When I extract data from two variables using for example, C_V((1.0,1.0))
and C_V_xy((20,20)), I found that the first one is much slower than the
second one.
C_V_xy displays result immediately, but C_V takes 2-3 sec to show the
result.
Why is it? Because I thought both of them are doing interpolation to get
values at certain points, why there is a speed difference.

best,
Zebo
_______________________________________________
fipy mailing list
[email protected]
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to