2010-07-16 13:55:35 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2010 Sebastian Held (sebastian.held@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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PROCESS_EFIELD_H
|
|
|
|
#define PROCESS_EFIELD_H
|
|
|
|
|
|
|
|
#include "processing.h"
|
|
|
|
|
|
|
|
/*! \brief Process E-field at a point
|
|
|
|
|
|
|
|
This class calculates the E-field at a point in the FDTD lattice.
|
|
|
|
Other primitives than \c Point are not supported.
|
|
|
|
*/
|
|
|
|
class ProcessEField : public Processing
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessEField(Operator* op, Engine* eng);
|
|
|
|
virtual ~ProcessEField();
|
|
|
|
|
|
|
|
virtual void InitProcess();
|
|
|
|
virtual void FlushData();
|
2010-09-17 09:07:52 +00:00
|
|
|
void Dump_FD_Data(vector<double_complex> value[3], double factor, string filename);
|
2010-07-16 13:55:35 +00:00
|
|
|
virtual int Process();
|
|
|
|
|
|
|
|
protected:
|
2010-09-17 09:07:52 +00:00
|
|
|
vector<double_complex> FD_Values[3];
|
2010-07-16 13:55:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PROCESS_EFIELD_H
|