2010-04-27 21:06:42 +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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OPERATOR_EXT_MUR_ABC_H
|
|
|
|
#define OPERATOR_EXT_MUR_ABC_H
|
|
|
|
|
2010-12-06 14:30:47 +00:00
|
|
|
#include "FDTD/operator.h"
|
2010-04-27 21:06:42 +00:00
|
|
|
#include "operator_extension.h"
|
|
|
|
|
|
|
|
class Operator_Ext_Mur_ABC : public Operator_Extension
|
|
|
|
{
|
|
|
|
friend class Engine_Ext_Mur_ABC;
|
|
|
|
public:
|
|
|
|
Operator_Ext_Mur_ABC(Operator* op);
|
|
|
|
~Operator_Ext_Mur_ABC();
|
|
|
|
|
2010-09-03 09:53:33 +00:00
|
|
|
virtual Operator_Extension* Clone(Operator* op);
|
|
|
|
|
2010-07-16 08:41:12 +00:00
|
|
|
//! Define the direction of this ABC: \a ny=0,1,2 -> x,y,z and if at bottom_ny -> e.g. x=0 or x=end
|
2010-04-27 21:06:42 +00:00
|
|
|
void SetDirection(int ny, bool top_ny);
|
|
|
|
|
2010-08-10 05:50:53 +00:00
|
|
|
//! Set (override) the expected phase velocity of the incoming wave
|
|
|
|
void SetPhaseVelocity(double c_phase) {m_v_phase=c_phase;};
|
|
|
|
|
2010-04-27 21:06:42 +00:00
|
|
|
virtual bool BuildExtension();
|
|
|
|
|
|
|
|
virtual Engine_Extension* CreateEngineExtention();
|
|
|
|
|
2012-02-10 10:55:55 +00:00
|
|
|
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const;
|
2010-09-22 07:58:45 +00:00
|
|
|
virtual bool IsCylindricalMultiGridSave(bool child) const;
|
2012-09-17 14:56:14 +00:00
|
|
|
virtual bool IsMPISave() const {return true;}
|
2010-05-03 20:37:29 +00:00
|
|
|
|
2010-07-11 21:45:41 +00:00
|
|
|
virtual string GetExtensionName() const {return string("Mur ABC Extension");}
|
|
|
|
|
|
|
|
virtual void ShowStat(ostream &ostr) const;
|
2010-05-03 20:37:29 +00:00
|
|
|
|
2010-04-27 21:06:42 +00:00
|
|
|
protected:
|
2010-10-04 14:48:46 +00:00
|
|
|
Operator_Ext_Mur_ABC(Operator* op, Operator_Ext_Mur_ABC* op_ext);
|
2010-09-03 09:53:33 +00:00
|
|
|
void Initialize();
|
2010-04-27 21:06:42 +00:00
|
|
|
int m_ny;
|
|
|
|
int m_nyP,m_nyPP;
|
2010-09-03 09:53:33 +00:00
|
|
|
bool m_top;
|
2010-04-27 21:06:42 +00:00
|
|
|
unsigned int m_LineNr;
|
|
|
|
int m_LineNr_Shift;
|
|
|
|
|
2010-08-10 05:50:53 +00:00
|
|
|
double m_v_phase;
|
|
|
|
|
2010-04-27 21:06:42 +00:00
|
|
|
unsigned int m_numLines[2];
|
|
|
|
|
2010-04-28 19:45:05 +00:00
|
|
|
FDTD_FLOAT** m_Mur_Coeff_nyP;
|
|
|
|
FDTD_FLOAT** m_Mur_Coeff_nyPP;
|
2010-04-27 21:06:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // OPERATOR_EXT_MUR_ABC_H
|