About the postprocessing in IBAMR

87 views
Skip to first unread message

KK LuLu

unread,
Mar 10, 2025, 1:15:22 PM3/10/25
to IBAMR Users
Hi guys,

I recently used IBAMR to perform some simulations and obtain some results. Taking IBFE and IB as examples, I would like to know what corresponding post-processing modules are available in IBAMR? (For example, outputting the average flow field over a period of time) In other words, is there a tool that allows me to read files in the form of .samrai?

Boyce Griffith

unread,
Mar 12, 2025, 11:38:23 AM3/12/25
to IBAMR Users

On Mar 10, 2025, at 1:15 PM, KK LuLu <kan664...@gmail.com> wrote:

Hi guys,

I recently used IBAMR to perform some simulations and obtain some results. Taking IBFE and IB as examples, I would like to know what corresponding post-processing modules are available in IBAMR? (For example, outputting the average flow field over a period of time) In other words, is there a tool that allows me to read files in the form of .samrai?

You can use VisIt (https://visit-dav.github.io/visit-website/index.html) or ParaView (https://www.paraview.org/) to visualize these files.

I only use VisIt, which handles these files natively. In the past, there were some extra steps needed to get ParaView to read in the SAMRAI output. (David, are there any hoops to jump through to get the SAMRAI viz files into ParaView?)

— Boyce

Amneet Bhalla

unread,
Mar 12, 2025, 11:55:31 AM3/12/25
to ibamr...@googlegroups.com, nites...@unl.edu, kgautam...@huskers.unl.edu
Hi Khemraj,

Can you list the steps you did for plotting IBAMR results in Paraview here? I think you had prepared a document for this purpose. Can you share it with IBAMR users?

Thanks,

--Amneet 





--
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 visit https://groups.google.com/d/msgid/ibamr-users/C10B6EB6-C5C9-49A0-B67E-1CD5143BD845%40gmail.com.

KK LuLu

unread,
Mar 12, 2025, 11:57:53 AM3/12/25
to IBAMR Users
Hi Prof.Boyce,

Thank you for your reply! Do you mean to use visualization software such as Paraview and Visit to output the field data again? 
In fact, what I want to achieve is to directly use python/matlab to read the ASCII or binary field file and do some post-processing :)
Do you have any suggestions on this idea?

-Kan

KK LuLu

unread,
Mar 12, 2025, 11:59:51 AM3/12/25
to IBAMR Users
Of course, I am more familiar with the use of Paraview. It would be even better if there is a method to read it in Paraview! In this way, I can easily draw the Q criterion.

-Kan

Boyce Griffith

unread,
Mar 12, 2025, 12:01:07 PM3/12/25
to IBAMR Users

On Mar 12, 2025, at 11:57 AM, KK LuLu <kan664...@gmail.com> wrote:

Hi Prof.Boyce,

Thank you for your reply! Do you mean to use visualization software such as Paraview and Visit to output the field data again? 
In fact, what I want to achieve is to directly use python/matlab to read the ASCII or binary field file and do some post-processing :)
Do you have any suggestions on this idea?

You might be able to export some data from VisIt or ParaView in a format that you can use in MATLAB or Python. We don’t provide tools to do this directly. I think that you will want to resample your data onto a uniform grid before exporting anything.

— Boyce

-Kan
在2025年3月12日星期三 UTC+8 23:38:23<Boyce Griffith> 写道:

On Mar 10, 2025, at 1:15 PM, KK LuLu <kan664...@gmail.com> wrote:

Hi guys,

I recently used IBAMR to perform some simulations and obtain some results. Taking IBFE and IB as examples, I would like to know what corresponding post-processing modules are available in IBAMR? (For example, outputting the average flow field over a period of time) In other words, is there a tool that allows me to read files in the form of .samrai?

You can use VisIt (https://visit-dav.github.io/visit-website/index.html) or ParaView (https://www.paraview.org/) to visualize these files.

I only use VisIt, which handles these files natively. In the past, there were some extra steps needed to get ParaView to read in the SAMRAI output. (David, are there any hoops to jump through to get the SAMRAI viz files into ParaView?)

— Boyce

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

KK LuLu

unread,
Mar 12, 2025, 1:00:35 PM3/12/25
to IBAMR Users
Oh indeed, thank you very much for your suggestion about the uniform grid. I forgot that the dynamic grid technology we adopted makes the coordinate values ​​change.

Khemraj Gautam Kshetri

unread,
Mar 12, 2025, 1:16:27 PM3/12/25
to Amneet Bhalla, ibamr...@googlegroups.com, Nitesh Nama

Hello,

Sure. I used visit to load ‘.visit’ files and then exported database in ‘.vtk’ format from visit. Please see attached.

Thanks,

 

--

Khemraj

 

From: Amneet Bhalla <mail2...@gmail.com>
Date: Wednesday, March 12, 2025 at 10:55
AM
To: ibamr...@googlegroups.com <ibamr...@googlegroups.com>, Nitesh Nama <nites...@unl.edu>, Khemraj Gautam Kshetri <kgautam...@huskers.unl.edu>
Subject: Re: [ibamr-users] About the postprocessing in IBAMR

Caution: Non-NU Email

IBAMR post processing.pdf

Boyce Griffith

unread,
Mar 12, 2025, 1:44:48 PM3/12/25
to IBAMR Users, Amneet Bhalla, Nitesh Nama
I believe that it is possible to avoid using VisIt altogether, and just to load everything directly in ParaView. If we don’t have instructions on how to do this, then we can try to put something together…

Reply all
Reply to author
Forward
0 new messages