help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tetramesh alternative?


From: c.
Subject: Re: tetramesh alternative?
Date: Tue, 6 Jul 2010 17:59:30 +0200


On 6 Jul 2010, at 16:13, Bart Vandewoestyne wrote:

Hello list,

I have two students working on M*tl*b code where the tetramesh
command is used:

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/tetramesh.html

They would like the code to also run in Octave.  On

http://wiki.octave.org/wiki.pl?MissingMatlabFunctions

I have found that tetramesh is currently still missing in Octave.

Is there a workaround/alternative?  Can they do the visualization
using another command sequence that would lead to about the same
result?

Thanks!
Bart

A possible alternative to process data on a tetrahedral mesh
is to use the function "fpl_vtk_write_field" from the octave-forge package "fpl" <http://octave.sourceforge.net/fpl> to export the data to a .vtu file and then use paraview <http://www.paraview.org/ >
to visualize it.

Using functions from "fpl" and "msh" the example from the tetramesh documentation at the
link above can be reproduced as follows:
msh = msh3m_structured_mesh ([-1 1], [-1 1], [-1 1], 1, 1:6)
f   = 1:columns(msh.t);
fpl_vtk_write_field ('test', msh, {}, {f, 'f'}, true);
the resulting .vtu and the visualizatio produced by paraview are attached.

HTH,
c.

PNG image

Attachment: test.vtu
Description: Binary data






reply via email to

[Prev in Thread] Current Thread [Next in Thread]