Acoustic FDTD Solver
Public Member Functions | Private Attributes | List of all members
ObservationRegion Class Reference

Represent a rectangular region in which all the field quantities are recorded for post processing. More...

#include <ObservationRegion.hpp>

Public Member Functions

 ObservationRegion ()
 ObservationRegion (double time_elapse, const Grid &grid)
void recordPressureField (const Grid &grid, const double *const *prs_curr, const unsigned &i, const double &dt)
void recordVelcityField (const Grid &grid, const double *const *u_y_curr, const double **u_z_curr, const double &curr_time, const double &dt)
void write (const std::string file_name)
 Write ObservationRegion::prs to the H5 file.
 ~ObservationRegion ()

Private Attributes

double t
std::vector< double > prim_y
std::vector< double > prim_z
std::vector< double > time
 Added dynamically.
std::vector< double ** > prs
 Added dynamically.

Detailed Description

Represent a rectangular region in which all the field quantities are recorded for post processing.

Constructor & Destructor Documentation

ObservationRegion::ObservationRegion ( )
ObservationRegion::ObservationRegion ( double  time_elapse,
const Grid grid 
)
ObservationRegion::~ObservationRegion ( )

Member Function Documentation

void ObservationRegion::recordPressureField ( const Grid grid,
const double *const *  prs_curr,
const unsigned &  i,
const double &  dt 
)
void ObservationRegion::recordVelcityField ( const Grid grid,
const double *const *  u_y_curr,
const double **  u_z_curr,
const double &  curr_time,
const double &  dt 
)
void ObservationRegion::write ( const std::string  file_name)

Write ObservationRegion::prs to the H5 file.

Parameters
file_namename of the H5 file

Member Data Documentation

std::vector<double> ObservationRegion::prim_y
private
std::vector<double> ObservationRegion::prim_z
private
std::vector<double **> ObservationRegion::prs
private

Added dynamically.

Use std::vector.

double ObservationRegion::t
private
std::vector<double> ObservationRegion::time
private

Added dynamically.

Use std::vector.


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