Re: Help with simulation

2009-05-08 Thread Daniel Wheeler
That looks easy enough. We really need to get on this and write a simple viewer for mayavi2. On Thu, May 7, 2009 at 9:34 AM, david wende david.we...@gmail.com wrote: I managed to export solution variable (phi) from 3D mesh as follows: z=phi.getValue()

Re: Help with simulation

2009-05-07 Thread Jonathan Guyer
On May 6, 2009, at 11:03 AM, david wende wrote: How could I export (write to file) the Cellvariable result as vtk data. The code in mayaviViewer.py is as close as you're going to get to any direct vtk export from FiPy right now. We'd welcome a vtk exporter if you improve on what we have

Re: Help with simulation

2009-05-07 Thread Daniel Wheeler
On Thu, May 7, 2009 at 9:20 AM, Jonathan Guyer gu...@nist.gov wrote: On May 6, 2009, at 11:03 AM, david wende wrote: How could I export (write to file) the Cellvariable result as vtk data. The code in mayaviViewer.py is as close as you're going to get to any direct vtk export from FiPy

Re: Help with simulation

2009-05-07 Thread david wende
I managed to export solution variable (phi) from 3D mesh as follows: z=phi.getValue() pd=pyvtk.PointData(pyvtk.Scalars(z)) grid=pyvtk.StructuredPoints((10,10,10)) data=pyvtk.VtkData(grid,pd) data.tofile(filename) And mayavi2 seems to read the filename

Re: Help with simulation

2009-05-06 Thread david wende
I think I have got mayavi2 working as standalone application. How could I export (write to file) the Cellvariable result as vtk data. I am able to generate my own fictitious data and export/display, but I am missing the connection between the CellVariable object and vtk data format. Thanks for

Re: Help with simulation

2009-05-03 Thread david wende
Thanks Jonothan - this works. On Fri, May 1, 2009 at 4:42 PM, Jonathan Guyer gu...@nist.gov wrote: On May 1, 2009, at 9:01 AM, david wende wrote: In meantime, how do I select a subset of faces from 3D mesh? [1] m3D = Grid3D(nx=nx, ny=ny, nz=nz) [2] x, y, z = m3D.getCellCenters() [3]

Re: Help with simulation

2009-05-01 Thread david wende
Hi Daniel, I am making some small progress, will send update in about a week. In meantime, how do I select a subset of faces from 3D mesh? [1] m3D = Grid3D(nx=nx, ny=ny, nz=nz) [2] x, y, z = m3D.getCellCenters() [3] facesRight = m3D.getFacesRight() [4] facesLeft = (m3D.getFacesLeft() (x 2)

Re: Help with simulation

2009-05-01 Thread Jonathan Guyer
On May 1, 2009, at 9:01 AM, david wende wrote: In meantime, how do I select a subset of faces from 3D mesh? [1] m3D = Grid3D(nx=nx, ny=ny, nz=nz) [2] x, y, z = m3D.getCellCenters() [3] facesRight = m3D.getFacesRight() [4] facesLeft = (m3D.getFacesLeft() (x 2) ) Line 3 is OK. Line 4 I

Re: Help with simulation

2009-04-30 Thread Daniel Wheeler
On Wed, Apr 29, 2009 at 8:34 AM, david wende david.we...@gmail.com wrote: Hi Excuse my list oriented nature. 1 Thanks for what seems to be great software. Thanks for your interest. 2. This is my first forray into F.E. analysis. Good luck! This is an FV code, but the distinction is rather

Re: Help with simulation

2009-04-30 Thread david wende
Hi Dan, thanks for answer I installed opendx but could not find slice function. David On Wed, Apr 29, 2009 at 4:02 PM, Daniel Lewis lewi...@rpi.edu wrote: On Apr 29, 2009, at 8:34 AM, david wende wrote: 6. So - could I do a 3D simulation and then slice a cross section and send that to a

Re: Help with simulation

2009-04-30 Thread Daniel Wheeler
On Thu, Apr 30, 2009 at 3:18 PM, david wende david.we...@gmail.com wrote: Mayavi 2 works, it's just we don't have an interface to it right now. However, you can extract the required data arrays and pass them to mayavi2 like any other numpy arrays, which is the main reason we have wrapper

Help with simulation

2009-04-29 Thread david wende
Hi Excuse my list oriented nature. 1. Thanks for what seems to be great software. 2. This is my first forray into F.E. analysis. 3. Need to simulate pulsed laser directed into thin silicon wafer and the resulting time varying heat gradient. 4. mayavi 2 doesn't work (known problem) 5. mayavi 1.5