Acoustic FDTD Solver
Main Page
Classes
Files
File List
File Members
include
LineSensor.hpp
Go to the documentation of this file.
1
#ifndef LINESENSOR_HPP
2
#define LINESENSOR_HPP
3
4
#include "
constant.hpp
"
5
#include "
Sensor.hpp
"
6
7
14
class
LineSensor
:
public
Sensor
{
15
double
y
;
16
unsigned
y_coord
;
17
std::vector<unsigned>
dim
;
18
double
**
sen_p
;
19
std::string
name
;
20
public
:
21
LineSensor
(
const
std::string &
name
,
const
double
y
);
26
virtual
void
initialize
(
const
Grid
&grid,
const
unsigned
nTimeSteps);
27
virtual
void
recordPressureField
(
double
**field,
const
unsigned
iStep);
28
virtual
int
clear
();
29
virtual
~LineSensor
();
30
double
**
getData
()
const
;
31
std::vector<unsigned>
getDimension
()
const
;
32
std::string
getName
()
const
;
33
};
34
35
#endif
Generated on Sun Jun 30 2013 00:04:08 for Acoustic FDTD Solver by
1.8.1.2