Paraview for postprocessing, can't read in the dumps.visit

73 views
Skip to first unread message

Yiming Gan

unread,
Oct 20, 2023, 1:35:26 PM10/20/23
to IBAMR Users
Dear all,

I can't read in the dumps.visit file with paraview. Is there a specific reader for that? Thanks.

Best,
Yiming

Boyce Griffith

unread,
Oct 20, 2023, 2:08:54 PM10/20/23
to noreply-spamdigest via IBAMR Users


> On Oct 20, 2023, at 1:35 PM, Yiming Gan <germa...@gmail.com> wrote:
>
> Dear all,
>
> I can't read in the dumps.visit file with paraview. Is there a specific reader for that? Thanks.

At some point, Paraview documentation indicated that there is a SAMRAI data viewer, but I don’t think we have ever gotten it to work — although we also have not tried very hard.

I would recommend using VisIt with these data files.

> Best,
> Yiming

Yiming Gan

unread,
Oct 20, 2023, 2:10:20 PM10/20/23
to IBAMR Users
Thanks! I will try both.

Jonas

unread,
Oct 23, 2023, 5:29:50 AM10/23/23
to IBAMR Users
Reading dumps.visit data in Paraview is easy. Create a text file called paraview.samrai.series with the following format/content:
{
  "file-series-version" : "1.0",
  "files" : [
    { "name" : "./visit_dump.00000/summary.samrai", "time" : 0 },
    { "name" : "./visit_dump.00200/summary.samrai", "time" : 0.01 },
    { "name" : "./visit_dump.00400/summary.samrai", "time" : 0.02 },
    { "name" : "./visit_dump.00600/summary.samrai", "time" : 0.03 },
  ]
}

Make obvious changes for your data, and then do file/open/files of type: all files (*) in Paraview.
/Jonas

Boyce Griffith

unread,
Oct 23, 2023, 11:48:47 AM10/23/23
to ibamr...@googlegroups.com

On Oct 23, 2023, at 4:29 AM, Jonas <jonas...@gmail.com> wrote:

Reading dumps.visit data in Paraview is easy. Create a text file called paraview.samrai.series with the following format/content:
{
  "file-series-version" : "1.0",
  "files" : [
    { "name" : "./visit_dump.00000/summary.samrai", "time" : 0 },
    { "name" : "./visit_dump.00200/summary.samrai", "time" : 0.01 },
    { "name" : "./visit_dump.00400/summary.samrai", "time" : 0.02 },
    { "name" : "./visit_dump.00600/summary.samrai", "time" : 0.03 },
  ]
}

Make obvious changes for your data, and then do file/open/files of type: all files (*) in Paraview.
/Jonas

Great — thanks a lot.

Any chance you might be willing to provide a patch to generate these files automatically? It would be great to have proper support for Paraview!

On Friday, October 20, 2023 at 8:10:20 PM UTC+2 Yiming Gan wrote:
Thanks! I will try both.

On Friday, October 20, 2023 at 2:08:54 PM UTC-4 Boyce Griffith wrote:


> On Oct 20, 2023, at 1:35 PM, Yiming Gan <germa...@gmail.com> wrote:
>
> Dear all,
>
> I can't read in the dumps.visit file with paraview. Is there a specific reader for that? Thanks.

At some point, Paraview documentation indicated that there is a SAMRAI data viewer, but I don’t think we have ever gotten it to work — although we also have not tried very hard.

I would recommend using VisIt with these data files.

> Best,
> Yiming

--
You received this message because you are subscribed to the Google Groups "IBAMR Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ibamr-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-users/f578e6ce-7191-4aa2-961d-dbb47079c6fcn%40googlegroups.com.

Michael Li

unread,
Oct 27, 2023, 11:00:00 AM10/27/23
to IBAMR Users
Hi Jonas,

With your solution, I can read the files into Paraview, but only the mesh can be displayed and all the fluid quantities, such p, U, are not listed in the variable list, hence not able to show.
Here is the content of the JSON file named paraview.samria.series :
{
  "file-series-version" : "1.0",
  "files" : [
    { "name" : "viz_IB2d/visit_dump.00000/summary.0.samrai", "time" : 0 },
    { "name" : "viz_IB2d/visit_dump.00000/summary.1.samrai", "time" : 0.02 }
  ]
}

Then File/Open/All files (*.*)/VisitSAMRAIReader/ load the file. The result looks like the snapshot attached below.

If I use File/Open/SAMRAI series files (*.samrai), the file paraview.samria.series will be filtered out because the extension does not match.

Could you clarify how you make it work?


2023-10-26_172514.jpg
image.png


Jonas

unread,
Oct 30, 2023, 3:27:11 AM10/30/23
to IBAMR Users

@ Michael,

Not sure what’s going on for you, P and U appears to show up as Point Arrays and not as Cell Arrays? You also have a cell array called “P error”. Can you load the data into Visit? I haven’t done any 2D simulations, but you appear to have several summary.samrai files in the visit_dump.00000 folder, correct? Have you tried opening one of the summary.samrai file directly? Also, there is a misspelling of your filename, paraview.samria.series, not sure if that helps. In order for Paraview to load the data with the correct reader, the file ending must be .samrai.series for time resolved data, and that’s why you need to use File/open/all files (*.*).

 

@ Boyce,

Im running a simple bash script at the end of my simulations to get plots and create the file for Paraview. Not sure how to write a patch but I added a simple example of how I do it.

Best

Jonas

create_paraview.sh
Reply all
Reply to author
Forward
0 new messages