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"
|
2010-12-06 09:44:25 +00:00
|
|
|
#include "FDTD/engine.h"
|
2010-07-16 13:55:35 +00:00
|
|
|
|
|
|
|
/*! \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:
|
2010-12-07 15:47:23 +00:00
|
|
|
ProcessEField(Engine_Interface_Base* eng_if, Engine* eng);
|
2010-07-16 13:55:35 +00:00
|
|
|
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-12-02 13:29:46 +00:00
|
|
|
Engine* Eng;
|
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
|