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

Record the pressure field at a particular point. More...

#include <PointSensor.hpp>

Inheritance diagram for PointSensor:
Sensor

Public Member Functions

 PointSensor (const std::string &name)
 PointSensor (const std::string &name, const double y, const double z)
 PointSensor (const std::string &name, const CartPosition &pos)
virtual void initialize (const Grid &grid, const unsigned nTimeSteps)
 linear interpolation
virtual void recordPressureField (double **field, const unsigned i)
virtual int clear ()
virtual ~PointSensor ()
const double * getData () const
unsigned getLength () const
std::string getName () const
- Public Member Functions inherited from Sensor
virtual ~Sensor ()

Public Attributes

double y
double z

Private Attributes

double x
std::vector< std::vector
< unsigned > > 
coord
std::vector< double > sen_weight
double * sen_p
unsigned length
std::string name

Detailed Description

Record the pressure field at a particular point.

Constructor & Destructor Documentation

PointSensor::PointSensor ( const std::string &  name)
PointSensor::PointSensor ( const std::string &  name,
const double  y,
const double  z 
)
PointSensor::PointSensor ( const std::string &  name,
const CartPosition pos 
)
PointSensor::~PointSensor ( )
virtual

Member Function Documentation

int PointSensor::clear ( )
virtual

Implements Sensor.

const double * PointSensor::getData ( ) const
unsigned PointSensor::getLength ( ) const
std::string PointSensor::getName ( ) const
void PointSensor::initialize ( const Grid grid,
const unsigned  nTimeSteps 
)
virtual

linear interpolation

Implements Sensor.

void PointSensor::recordPressureField ( double **  field,
const unsigned  i 
)
virtual

Implements Sensor.

Member Data Documentation

std::vector<std::vector<unsigned> > PointSensor::coord
private
unsigned PointSensor::length
private
std::string PointSensor::name
private
double* PointSensor::sen_p
private
std::vector<double> PointSensor::sen_weight
private
double PointSensor::x
private
double PointSensor::y
double PointSensor::z

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