On Thu, May 26, 2011 at 2:11 AM, Fangohr H. wrote:
>
>
> Hi again,
>
> here is my next query: at this point, I would like to modify the value of phi
> at a particular position r=(x,y).
Try this.
>>> from fipy import *
>>> m = Grid2D(nx=3, ny=3)
>>> v = CellVariable(mesh=m)
>>> r = (2.9, 2.9)
>
On May 26, 2011, at 2:11 AM, Fangohr H. wrote:
> here is my next query: at this point, I would like to modify the value of phi
> at a particular position r=(x,y).
>
> To do this, I want to find the mesh cell in which the position r is located.
> Once I have this, for example through the 'inde
On May 26, 2011, at 1:56 AM, Fangohr H. wrote:
> The command doesn't seem to work for a single item:
>
v((2.5,3.2))
> Traceback (most recent call last):
> File "", line 1, in
> File
> "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/FiPy-2.1.1-py2.7.egg/fi
On May 26, 2011, at 8:08 AM, Burak Atakan wrote:
> if a mesh is defined with CylindricalGrid2D()
> is x the radial and y the axial coordinate or vice versa?
Yes.
> Accordingly, where is a a velocity of ((1.,),(0,)) ponting to, in radial
> direction?
Correct.
> mesh.getFacesLeft() or mesh.ge
Dear All,
if a mesh is defined with CylindricalGrid2D()
is x the radial and y the axial coordinate or vice versa?
Accordingly, where is a a velocity of ((1.,),(0,)) ponting to, in radial
direction?
And finally, what is the meaning of:
mesh.getFacesLeft() or mesh.getFacesBottom() in this case