openEMS/FDTD/engine.h
Thorsten Liebig 0a39d32a07 A couple of new features
- ProcessCurrent
- Weighted Excitation and Material
- Testing
2010-03-04 11:53:58 +01:00

32 lines
513 B
C++

#ifndef ENGINE_H
#define ENGINE_H
#include "operator.h"
class Engine
{
friend class ProcessVoltage;
friend class ProcessCurrent;
friend class ProcessFieldsTD;
public:
Engine(Operator* op);
virtual ~Engine();
virtual void Init();
virtual void Reset();
//!Iterate a number of timesteps
virtual bool IterateTS(unsigned int iterTS);
unsigned int GetNumberOfTimesteps() {return numTS;};
protected:
Operator* Op;
FDTD_FLOAT**** volt;
FDTD_FLOAT**** curr;
unsigned int numTS;
};
#endif // ENGINE_H