Saras
Finite Difference Solver for Fluid Dynamics Simulations
|
Class for all the global variables and functions related to reading input data for the solver. More...
#include "lib/reader.h"
Public Member Functions | |
reader (const grid &mesh, std::vector< field > &rFields) | |
Constructor of the reader class. More... | |
real | readData () |
Function to read files in HDF5 format in parallel. More... | |
Class for all the global variables and functions related to reading input data for the solver.
The computational data for the solver can be read from HDF5 file. The class allows for both collocated and staggered grid data to be read from separate input files.
Constructor of the reader class.
The constructor initializes the variables and parameters for parallel file reading through HDF5
mesh | is a const reference to the global data contained in the grid class |
wField | is a vector of fields to be read into |
Initialize the common global and local limits for file writing
real reader::readData | ( | ) |
Function to read files in HDF5 format in parallel.
It opens a file in the output folder and all the processors read in parallel from the file