On Fri, Jul 13, 2012 at 10:10 AM, Ferenc Tasnadi <[email protected]> wrote:

> Dear fipy users,
>
> I hope you can help me to resolve what goes wrong in my script/ fipy
> installation
> or what I do wrong. I just want to calculate the partial derivatives (vs.
> x,y, and z)
> of my "phi". Thank you very much for your help!
>
> Best wishes,
> Ferenc
>
>
Ferenc,

I am not sure why this isn't working on your system. It works for me on the
version-2_1 branch and on trunk. Could you run the tests and report the
results as well?

Cheers

3D case:
> >>> from fipy import *
> >>> grid2D = Grid3D(nx=10, ny=10, nz=10, dx=1.0, dy=1.0, dz=1.0)
> >>> phi = CellVariable(name="phi", mesh=grid2D,value=0.0)
> >>>
> phi.setValue(GaussianNoiseVariable(mesh=grid2D,mean=0.5,variance=0.00001))
> >>> source=phi.getGrad()[1]
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File
> "/home/x_ferta/PYTHON_MODULES/lib/python2.7/site-packages/FiPy-2.1.3-py2.7.egg/fipy/variables/variable.py",
> line 1335, in __getitem__
>


-- 
Daniel Wheeler
_______________________________________________
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