GWU-CFD / FlashKit

A library to assist researchers in using the FLASH code
MIT License
1 stars 1 forks source link

Some tweaks for AMR treatment in xdmf command #70

Closed akashdhruv closed 2 years ago

akashdhruv commented 2 years ago
alentner commented 2 years ago

I have added an alternative modification to the create_xdmf library.

Specifically, the directory will be searched for a grid file matching (or less than) the number of the plot file and working backwards until a valid grid file is identified.

For example,

Directory:

- INS_LidDr_Cavity_hdf5_grd_0000
- INS_LidDr_Cavity_hdf5_grd_0002
- INS_LidDr_Cavity_hdf5_plt_cnt_0000
- INS_LidDr_Cavity_hdf5_plt_cnt_0001
- INS_LidDr_Cavity_hdf5_plt_cnt_0002
- INS_LidDr_Cavity_hdf5_plt_cnt_0003

Result

- INS_LidDr_Cavity_hdf5_plt_cnt_0000  <->  INS_LidDr_Cavity_hdf5_grd_0000
- INS_LidDr_Cavity_hdf5_plt_cnt_0001  <->  INS_LidDr_Cavity_hdf5_grd_0000
- INS_LidDr_Cavity_hdf5_plt_cnt_0002  <->  INS_LidDr_Cavity_hdf5_grd_0002
- INS_LidDr_Cavity_hdf5_plt_cnt_0003  <->  INS_LidDr_Cavity_hdf5_grd_0002
alentner commented 2 years ago

This has been implemented in #69