openEMS/FDTD/process_efield.h

46 lines
1.3 KiB
C
Raw Normal View History

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"
typedef _Complex double complexdouble;
/*! \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();
void Dump_FD_Data(vector<complexdouble> value[3], double factor, string filename);
virtual int Process();
protected:
vector<complexdouble> FD_Values[3];
};
#endif // PROCESS_EFIELD_H