openEMS/FDTD/engine.h

33 lines
539 B
C
Raw Normal View History

#ifndef ENGINE_H
#define ENGINE_H
#include "operator.h"
class Engine
{
2010-03-11 09:48:00 +00:00
friend class Processing;
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