2010-03-01 08:19:39 +00:00
|
|
|
#ifndef ENGINE_H
|
|
|
|
#define ENGINE_H
|
|
|
|
|
2010-03-01 13:56:27 +00:00
|
|
|
#include "operator.h"
|
|
|
|
|
2010-03-01 08:19:39 +00:00
|
|
|
class Engine
|
|
|
|
{
|
2010-03-01 18:35:28 +00:00
|
|
|
friend class ProcessVoltage;
|
2010-03-01 08:19:39 +00:00
|
|
|
public:
|
2010-03-01 13:56:27 +00:00
|
|
|
Engine(Operator* op);
|
2010-03-01 08:19:39 +00:00
|
|
|
virtual ~Engine();
|
|
|
|
|
2010-03-01 13:56:27 +00:00
|
|
|
virtual void Init();
|
|
|
|
virtual void Reset();
|
|
|
|
|
2010-03-01 08:19:39 +00:00
|
|
|
//!Iterate a number of timesteps
|
2010-03-01 13:56:27 +00:00
|
|
|
virtual bool IterateTS(unsigned int iterTS);
|
2010-03-01 08:19:39 +00:00
|
|
|
|
2010-03-01 18:35:28 +00:00
|
|
|
unsigned int GetNumberOfTimesteps() {return numTS;};
|
|
|
|
|
2010-03-01 08:19:39 +00:00
|
|
|
protected:
|
2010-03-01 13:56:27 +00:00
|
|
|
Operator* Op;
|
2010-03-01 08:19:39 +00:00
|
|
|
|
2010-03-01 13:56:27 +00:00
|
|
|
FDTD_FLOAT**** volt;
|
|
|
|
FDTD_FLOAT**** curr;
|
|
|
|
unsigned int numTS;
|
2010-03-01 08:19:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ENGINE_H
|