2010-03-11 15:47:40 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2010 Thorsten Liebig (Thorsten.Liebig@gmx.de)
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2010-03-04 10:53:58 +00:00
|
|
|
#ifndef PROCESSCURRENT_H
|
|
|
|
#define PROCESSCURRENT_H
|
|
|
|
|
|
|
|
#include "processing.h"
|
|
|
|
|
|
|
|
class ProcessCurrent : public Processing
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessCurrent(Operator* op, Engine* eng);
|
|
|
|
virtual ~ProcessCurrent();
|
|
|
|
|
|
|
|
virtual void DefineStartStopCoord(double* dstart, double* dstop);
|
|
|
|
|
2010-06-28 16:27:41 +00:00
|
|
|
virtual void InitProcess();
|
2010-06-28 16:05:03 +00:00
|
|
|
virtual void FlushData();
|
2010-03-10 11:15:14 +00:00
|
|
|
virtual int Process();
|
2010-03-04 10:53:58 +00:00
|
|
|
|
2010-04-19 14:09:41 +00:00
|
|
|
virtual void DumpBox2File( string vtkfilenameprefix, bool dualMesh = false ) const; //!< dump geometry to file
|
2010-03-04 10:53:58 +00:00
|
|
|
protected:
|
|
|
|
vector<FDTD_FLOAT> v_current;
|
2010-06-28 16:05:03 +00:00
|
|
|
|
|
|
|
vector<_Complex double> FD_currents;
|
|
|
|
void WriteFDCurrents();
|
2010-03-04 10:53:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PROCESSCURRENT_H
|