1 /* 2 * Copyright (C) 2015 Thorsten Liebig (Thorsten.Liebig@gmx.de) 3 * 4 * This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation, either version 3 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef ENGINE_EXT_STEADYSTATE_H 19 #define ENGINE_EXT_STEADYSTATE_H 20 21 #include "engine_extension.h" 22 #include "FDTD/engine.h" 23 #include "FDTD/operator.h" 24 25 class Operator_Ext_SteadyState; 26 class Engine_Interface_FDTD; 27 28 class Engine_Ext_SteadyState : public Engine_Extension 29 { 30 public: 31 Engine_Ext_SteadyState(Operator_Ext_SteadyState* op_ext); 32 virtual ~Engine_Ext_SteadyState(); 33 34 virtual void Apply2Voltages(); 35 virtual void Apply2Current(); 36 SetEngineInterface(Engine_Interface_FDTD * eng_if)37 void SetEngineInterface(Engine_Interface_FDTD* eng_if) {m_Eng_Interface=eng_if;} GetLastDiff()38 double GetLastDiff() {return m_last_max_diff;} 39 40 protected: 41 Operator_Ext_SteadyState* m_Op_SS; 42 double m_last_max_diff; 43 vector<double*> m_E_records; 44 vector<double*> m_H_records; 45 46 double last_total_energy; 47 Engine_Interface_FDTD* m_Eng_Interface; 48 }; 49 50 51 #endif // ENGINE_EXT_STEADYSTATE_H 52