Hi Kundar,

I tried this for on "version-1_2" and it's broken; I get the same
problem as you.
It does show something on "trunk", but the face ordering is wrong, so still
needs to be fixed. I have submitted a tracker item for this
<https://www.matforge.org/fipy/ticket/135>. I can't make
any promises about when this will get fixed, but it is fairly imperative that
displaying in 3D becomes functional.

You could always export the data to your own favourite viewer, whatever that is.

Also, if you feel like hacking the viewer and/or the meshing modules to get this
to work, go for it. It'd be very much appreciated. We have had problems getting
cell/face ordering right for mayavi. It requires a very specific ordering.

Cheers

On 9/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Dear Dr. Wheeler,
>
> I am working on 3D model by FiPy. But, I met a problem about 3D viewer.
> Parts of my code are following:
>
> *************************************************
> from fipy.meshes.grid3D import Grid3D
> mesh = Grid3D(dx, dy, dz, nx, ny, nz)
>
> var = CellVariable(mesh = mesh, value = 0.1*random.random(nx * ny *nz))
>
> import fipy.viewers
> viewer = fipy.viewers.make(vars = var, limits = {'datamin': 0.,
> 'datamax': 1.})
>     viewer.plot()
>
> *************************************************
>
> The error shows:
>
> ************************************************
>
> Traceback (most recent call last):
>   File "C:\Python24\FiPy-1.2\regular fiber-.py", line 116, in ?
>     viewer = fipy.viewers.make(vars = var, limits = {'datamin': 0.,
> 'datamax': 1.})
>   File "C:\Python24\Lib\site-packages\fipy\viewers\__init__.py", line
> 112, in make raise ImportError, "Failed to import a viewer: %s" %
> str(errors)
> ImportError: Failed to import a viewer: ['gistViewer: Can only plot 2D
> vector data', 'gnuplotViewer: Gnuplot can only plot 1D and 2D data',
> 'matplotlibViewer: The mesh must be a Grid2D instance', "mayaviViewer:
> sum() got an unexpected keyword argument 'index'", "multiViewer:
> 'module' object has no attribute 'make'", "tsvViewer: 'module' object
> has no attribute 'make'", "viewer: 'module' object has no attribute
> 'make'"]
>
> ***************************************************
> It does't work on MayaVi viewer. I can't find any reference about 3D
> viewer from FiPy "User's Guide" or "Programmer's Reference". How can I
> fix it?
> Thank you so much.
>
> Regards,
> Kundar
>
>
>
>


-- 
Daniel Wheeler

Reply via email to