On Wed, Apr 29, 2009 at 8:34 AM, david wende <[email protected]> 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 pedantic.

> 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)

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 classes to take care of this. If you want to make a
publication quality figure or customize your figure, you would
probably have to hack our viewers or interface with Mayavi2 directly
anyway.

> 5. mayavi 1.5 not working on my system

What happens? Does it freeze on the screen? Are you using Windows?

> 6. So - could I do a 3D simulation and then slice a cross section and send
> that to a 2D viewer?

Yes, extract the data, create a 2D mesh and a new CellVariable based
on the 2D mesh and initialized with the sliced data.

> 7. The pulse of laser I would (I think) model as a time and spatially
> dependent source - could
> someone send me an example of how to do that?

Here is a code snippet that might be helpful

   t = Variable()
   x, y = mesh.getCellCenters()
   sv = CellVariable(mesh=mesh, x * y)
   eqn = SomeTerms + sv * t
   dt = 1.0

   for step in range(steps):
        eqn.solve(var, dt=dt)
        t.setValue(t + dt)

The important thing is to remember that the time variable needs to be
updated and that the source needs to be a CellVariable object.
Unfortunately, getCellCenters does not return x and y as CellVariables
right now, which adds an additional line of code to this example.
Hopefully, this will change in future releases.

Cheers

-- 
Daniel Wheeler

Reply via email to