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

Record the pressure field along a particular line parallel to y axis. More...

#include <LineSensor.hpp>

Inheritance diagram for LineSensor:
Sensor

Public Member Functions

 LineSensor (const std::string &name, const double y)
virtual void initialize (const Grid &grid, const unsigned nTimeSteps)
virtual void recordPressureField (double **field, const unsigned iStep)
virtual int clear ()
virtual ~LineSensor ()
double ** getData () const
std::vector< unsigned > getDimension () const
std::string getName () const
- Public Member Functions inherited from Sensor
virtual ~Sensor ()

Private Attributes

double y
unsigned y_coord
std::vector< unsigned > dim
double ** sen_p
std::string name

Detailed Description

Record the pressure field along a particular line parallel to y axis.

Constructor & Destructor Documentation

LineSensor::LineSensor ( const std::string &  name,
const double  y 
)
LineSensor::~LineSensor ( )
virtual

Member Function Documentation

int LineSensor::clear ( )
virtual

Implements Sensor.

double ** LineSensor::getData ( ) const
std::vector< unsigned > LineSensor::getDimension ( ) const
std::string LineSensor::getName ( ) const
void LineSensor::initialize ( const Grid grid,
const unsigned  nTimeSteps 
)
virtual
Parameters
grid
nTimeSteps

Implements Sensor.

void LineSensor::recordPressureField ( double **  field,
const unsigned  iStep 
)
virtual

Implements Sensor.

Member Data Documentation

std::vector<unsigned> LineSensor::dim
private
std::string LineSensor::name
private
double** LineSensor::sen_p
private
double LineSensor::y
private
unsigned LineSensor::y_coord
private

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