[Paraview] AMR and .VTM

Mohammad Mirzadeh mirzadeh at gmail.com
Wed Jun 9 18:04:45 EDT 2010


Thanks Favre,

I am using my own code that creates Cartesian AMR based on Octree
data-structure. Just one question though, what do you mean by "sources" ?
Are you talking about specific example package from FLASH and Enzo or
ParaView demos?

Thanks

On Wed, Jun 9, 2010 at 1:19 PM, Favre Jean <jfavre at cscs.ch> wrote:

> _____________________________
> From: paraview-bounces at paraview.org [paraview-bounces at paraview.org] On
> Behalf Of Mohammad Mirzadeh [mirzadeh at gmail.com]
> Sent: Wednesday, June 09, 2010 9:47 PM
> To: paraview at paraview.org
> Subject: [Paraview] AMR and .VTM
>
> Dear all,
>
> I had a rather quick  question. I am working with adaptive meshes and would
> like to import them into paraview. So far I have been able to that with
> unstructured datasets and .vtk files. The problem is that whenever I use
> slice filter to see a cross-section of mesh, it triangulates the dataset and
> I see triangles instead of blocks (I'm using Cartesian AMR). I was wondering
> if this can be solved by using multiblock datasets and .vtm format. If so,
> can anyone please lead me to a good tutorial on .vtm format? It seems I
> cannot find a good one.
>
> ------------
> I do not know of any tutorial on AMR data for ParaView. But I can confirm
> that the support for patch-based AMR works very well.
> Are you using your own code, or a standard code such as FLASH, Enzo,..,?
>
> You should start by running an example from Sources. Use Hierarchical
> Fractal, save it to disk and look at the output: It will look like that:
>
> <VTKFile type="vtkHierarchicalBoxDataSet" version="1.0"
> byte_order="LittleEndian">
>  <vtkHierarchicalBoxDataSet>
>    <Block level="0" refinement_ratio="0">
>
>    </Block>
>    <Block level="1" refinement_ratio="0">
>      <DataSet index="0" amr_box="0 9 0 9 0 0" dimensionality="2"
> file="foo/foo_0.vti">
>
> etc..
>
> For each level, the patch's index start at 0, the amr_box is the extents of
> the grid in number of cells with respect to the current level.
> There is a VTK API to write ImageFile data (*.vti files). You might want to
> use that, and then write the wrapper code assembling all the patches from
> your own program.
>
> -----------------
> Jean M. Favre
> Swiss National Supercomputing Center
>
> ___________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100609/fce2055c/attachment-0001.htm>


More information about the ParaView mailing list