Saras
Finite   Difference   Solver   for   Fluid   Dynamics   Simulations
Public Member Functions | List of all members
reader Class Reference

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

Detailed Description

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 & Destructor Documentation

◆ reader()

reader::reader ( const grid mesh,
std::vector< field > &  rFields 
)

Constructor of the reader class.

     The constructor initializes the variables and parameters for parallel file reading through HDF5
Parameters
meshis a const reference to the global data contained in the grid class
wFieldis a vector of fields to be read into

Initialize the common global and local limits for file writing

Member Function Documentation

◆ readData()

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

The documentation for this class was generated from the following files: