Extracting data from simulations/Visit to view in Matlab

110 views
Skip to first unread message

Keerthi Anand

unread,
Dec 27, 2021, 9:22:12 AM12/27/21
to IBAMR Users
Hello,

I am having a lot of trouble finding documentation on how to extract spatial and time-series data from the simulations to view in another software apart from Visit.

I have a simulation which outputs flow vector, WSS, pressure, etc data for a vessel geometry and I want to extract quantitative time series data along specific planes so I can compare to spatially matched experimental data. I can make an image in Visit along the plane, but to my understanding, there is no easy way to extract the numerical data pointwise from the image or from the .samrai files with Eulerian coordinate labels/indices.

Has anyone attempted this before and succeeded? If so Can someone please share example code? For reference, I am using the IIM branch.


Thank You and Happy Holidays,
Keerthi

Amneet Bhalla

unread,
Jan 7, 2022, 8:40:20 PM1/7/22
to ibamr...@googlegroups.com
Yes, we have done that recently. Basically it involves reading the HDF5 files in MATLAB and then extracting the data. 

Kaustubh can you send some screen shots of the steps involved to achieve this? 

--
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/bfccfa99-254f-4bb7-847f-34c262cab684n%40googlegroups.com.


--
--Amneet 



Kaustubh Khedkar

unread,
Jan 10, 2022, 11:36:03 AM1/10/22
to IBAMR Users

Please find the attached MATLAB script which can be used to read hdf5 file data.

Best regards,
Kaustubh Khedkar
filereadinghdf5.m
Reply all
Reply to author
Forward
0 new messages