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