DNS 1-3 Storage Format
Storage Format
The data provided is stored in HDF5 format. This can be easily read through the HDF5 library or python's h5py. Any parallel partition has been taken out from the dataset for easier reading both in serial and parallel.
Notes on the HDF5 library
Instantaneous data format
The dataset consists of a master file which links a number of external files, thus creating a tree-like database. Each of these external files contain an array of a certain number of positions (1 if scalar, 3 if vectorial and 6 if tensorial, with the exception of the velocity triple correlation).
Statistical data format
The dataset consists of a master file which links a number of external files, thus creating a tree-like database. Each of these external files contain an array of a certain number of positions (1 if scalar, 3 if vectorial and 6 if tensorial, with the exception of the velocity triple correlation).
Data file structure
This section provides information in how the data is structured for the different external files mentioned above. The list number minus 1 corresponds to the array position on python (since python starts counting on 0).
Inputs
Additional Quantities
- Taylor microscale
- Kolmogorov length scale
- Kolmorogov time scale
Triple Correlation
Pressure Velocity Correlation
Budget Equation Components
The components of the Reynolds stress budget equation come in the following order (for a generic budget component ):
Reading the data with python
The following section provides some examples on how to read the data using the h5py interface of python. A first example on how to open the dataset and read the node data and the inputs would be:
import h5py f = h5py.File('Statistics.h5','r') xyz = np.array( f.get('03_Nodes').get('Nodes') ) inp = np.array( f.get('02_Entries').get('Inputs') ) f.close()
Then, to retrieve the gradients and the Reynolds stress tensor in an array (indices are these of the list above minus 1) would be:
grad_velocity = inp[:,[17,21,25,18,22,26,19,23,27]].astype(np.double) Rij = inp[:,[10,11,13,11,12,14,13,14,15]].astype(np.double)
Contributed by: Oriol Lehmkuhl, Arnau Miro — Barcelona Supercomputing Center (BSC)
© copyright ERCOFTAC 2024