2010-09-08 05:36:32 +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_CYLINDERMULTIGRID_H
|
|
|
|
#define OPERATOR_CYLINDERMULTIGRID_H
|
|
|
|
|
|
|
|
#include "operator_cylinder.h"
|
|
|
|
|
|
|
|
//! This is a cylindrical FDTD operator using a simple multi-grid approach.
|
|
|
|
/*!
|
|
|
|
This cylindrical multi-grid operator itself is not calculating any real operator, instead it is hosting two separate "child" operators of type "Operator_Cylinder".
|
|
|
|
This operator class (or the corresponding engine) will perform the interpolation and connection between these two child-operator/engines.
|
|
|
|
One of the child operators itself may be another multi-grid operator to allow for a cascaded multi-grid approach.
|
|
|
|
*/
|
|
|
|
class Operator_CylinderMultiGrid : public Operator_Cylinder
|
|
|
|
{
|
|
|
|
friend class Engine_CylinderMultiGrid;
|
|
|
|
public:
|
|
|
|
static Operator_CylinderMultiGrid* New(vector<double> Split_Radii, unsigned int numThreads = 0);
|
|
|
|
virtual ~Operator_CylinderMultiGrid();
|
|
|
|
|
|
|
|
virtual double GetNumberCells() const;
|
|
|
|
|
|
|
|
virtual Engine* CreateEngine() const;
|
|
|
|
|
|
|
|
virtual bool SetGeometryCSX(ContinuousStructure* geo);
|
|
|
|
|
|
|
|
virtual unsigned int GetSplitPos() const {return m_Split_Pos;}
|
|
|
|
|
2010-10-27 12:49:16 +00:00
|
|
|
virtual int CalcECOperator( DebugFlags debugFlags = None );
|
2010-09-08 05:36:32 +00:00
|
|
|
|
|
|
|
virtual bool SetupExcitation(TiXmlElement* Excite, unsigned int maxTS);
|
|
|
|
|
|
|
|
virtual void SetBoundaryCondition(int* BCs);
|
|
|
|
|
|
|
|
virtual void AddExtension(Operator_Extension* op_ext);
|
|
|
|
|
|
|
|
Operator_Cylinder* GetInnerOperator() const {return m_InnerOp;}
|
|
|
|
|
|
|
|
virtual void ShowStat() const;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
Operator_CylinderMultiGrid(vector<double> Split_Radii);
|
|
|
|
virtual void Init();
|
2011-01-24 10:11:45 +00:00
|
|
|
void Delete();
|
2010-09-08 05:36:32 +00:00
|
|
|
virtual void Reset();
|
|
|
|
|
2011-01-25 09:27:51 +00:00
|
|
|
//! The material data storage in the sub-grid area's will not be filled by the base-operator. Check and do this here!
|
|
|
|
void FillMissingDataStorage();
|
|
|
|
|
2010-09-08 05:36:32 +00:00
|
|
|
double m_Split_Rad;
|
2010-09-08 14:07:28 +00:00
|
|
|
vector<double> m_Split_Radii;
|
2010-09-08 05:36:32 +00:00
|
|
|
unsigned int m_Split_Pos;
|
|
|
|
|
|
|
|
Operator_Cylinder* m_InnerOp;
|
|
|
|
|
|
|
|
virtual void CalcStartStopLines(unsigned int &numThreads, vector<unsigned int> &start, vector<unsigned int> &stop) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // OPERATOR_CYLINDERMULTIGRID_H
|