Issue with Reading and Storing Data from AMR Simulation Files

Hello,
save_data_paraview.py (2.9 KB)

I am writing to you because I have an issue with reading simulation files containing AMR (Adaptive Mesh Refinement).

I have a series of files representing each stored time step for a 2D domain. I want to store the data along a given line where the mesh changes based on the imposed criterion.

To achieve this, I automate data storage using “pvbatch,” but I only store data based on the initially imposed mesh (Nx), even though it is adaptive.

My question is as follows: Is there a way to store data based on the mesh of each stored time step?

I have attached the Python script.

Thank you in advance for your help.

Welcome @bazharz !

Please share your data. It will be helpful to help you.

Please find in this link the initial case and the case with AMR.

Hello,

I’m still facing this issue. Could someone who is an expert in ParaView help me read this dynamic mesh using pvbatch?

In this link, you will find “plt00000.tar.gz”, which contains data with the initial mesh, and “plt00200.tar.gz”, which includes data with AMR.

Thank you in advance.

Hi @bazharz

I’m able to open your data:

What is not working for you ?

Thank you for your feedback.

The issue I’m facing concerns data storage along a specific line (e.g., at y = Ly/2). I want to retrieve the data using the AMR mesh for the case plt00200.

I had previously automated the storage process, but only for the initial mesh. Now, I would like to store the data for each given mesh (AMR).

Here is the Python script I used to store the data.
save_data_paraview.py (2.9 KB)

Good, so this script does not work ? What does not work ?

This script only works for a uniform mesh with Nx = 1280. However, for plt00200, the mesh is adapted with 3 levels of AMR. My goal is to retrieve Nx as well as the refined mesh structure for each file.