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 <[email protected]> wrote:

> _____________________________
> From: [email protected] [[email protected]] On
> Behalf Of Mohammad Mirzadeh [[email protected]]
> Sent: Wednesday, June 09, 2010 9:47 PM
> To: [email protected]
> 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
>
> ___________
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to