supply more information to extensions about the cylindrical mesh
parent
e362245dd2
commit
ecf8ad6bdd
|
@ -34,7 +34,7 @@ public:
|
||||||
|
|
||||||
virtual Engine_Extension* CreateEngineExtention();
|
virtual Engine_Extension* CreateEngineExtention();
|
||||||
|
|
||||||
virtual bool IsCylinderCoordsSave() const {return true;}
|
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {return true;}
|
||||||
virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return true;}
|
virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return true;}
|
||||||
|
|
||||||
virtual std::string GetExtensionName() const {return std::string("Extension for the Cylinder-Coords Operator");}
|
virtual std::string GetExtensionName() const {return std::string("Extension for the Cylinder-Coords Operator");}
|
||||||
|
|
|
@ -36,7 +36,7 @@ public:
|
||||||
|
|
||||||
virtual Engine_Extension* CreateEngineExtention();
|
virtual Engine_Extension* CreateEngineExtention();
|
||||||
|
|
||||||
virtual bool IsCylinderCoordsSave() const {return true;}
|
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {return true;}
|
||||||
virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return true;}
|
virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return true;}
|
||||||
|
|
||||||
virtual string GetExtensionName() const {return string("Excitation Extension");}
|
virtual string GetExtensionName() const {return string("Excitation Extension");}
|
||||||
|
|
|
@ -32,7 +32,7 @@ public:
|
||||||
|
|
||||||
virtual Engine_Extension* CreateEngineExtention();
|
virtual Engine_Extension* CreateEngineExtention();
|
||||||
|
|
||||||
virtual bool IsCylinderCoordsSave() const {return false;}
|
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {return false;}
|
||||||
|
|
||||||
virtual std::string GetExtensionName() const {return std::string("Lorentz Dispersive Material Extension");}
|
virtual std::string GetExtensionName() const {return std::string("Lorentz Dispersive Material Extension");}
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ Operator_Extension* Operator_Ext_Mur_ABC::Clone(Operator* op)
|
||||||
return new Operator_Ext_Mur_ABC(op, this);
|
return new Operator_Ext_Mur_ABC(op, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Operator_Ext_Mur_ABC::IsCylinderCoordsSave() const
|
bool Operator_Ext_Mur_ABC::IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const
|
||||||
{
|
{
|
||||||
if (m_ny==2)
|
if (m_ny==2)
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
|
|
||||||
virtual Engine_Extension* CreateEngineExtention();
|
virtual Engine_Extension* CreateEngineExtention();
|
||||||
|
|
||||||
virtual bool IsCylinderCoordsSave() const;
|
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const;
|
||||||
virtual bool IsCylindricalMultiGridSave(bool child) const;
|
virtual bool IsCylindricalMultiGridSave(bool child) const;
|
||||||
|
|
||||||
virtual string GetExtensionName() const {return string("Mur ABC Extension");}
|
virtual string GetExtensionName() const {return string("Mur ABC Extension");}
|
||||||
|
|
|
@ -396,7 +396,7 @@ Engine_Extension* Operator_Ext_PML_SF_Plane::CreateEngineExtention()
|
||||||
return eng_ext;
|
return eng_ext;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Operator_Ext_PML_SF_Plane::IsCylinderCoordsSave() const
|
bool Operator_Ext_PML_SF_Plane::IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const
|
||||||
{
|
{
|
||||||
if (m_ny==2)
|
if (m_ny==2)
|
||||||
{
|
{
|
||||||
|
|
|
@ -114,7 +114,7 @@ public:
|
||||||
|
|
||||||
virtual Engine_Extension* CreateEngineExtention();
|
virtual Engine_Extension* CreateEngineExtention();
|
||||||
|
|
||||||
virtual bool IsCylinderCoordsSave() const;
|
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const;
|
||||||
|
|
||||||
virtual string GetExtensionName() const {return string("Split Field PML Plane Extension");}
|
virtual string GetExtensionName() const {return string("Split Field PML Plane Extension");}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ public:
|
||||||
virtual ~Operator_Ext_UPML();
|
virtual ~Operator_Ext_UPML();
|
||||||
|
|
||||||
//! Returns always true, Create_UPML method will take care of creating a valid pml for the cylindrical fdtd
|
//! Returns always true, Create_UPML method will take care of creating a valid pml for the cylindrical fdtd
|
||||||
virtual bool IsCylinderCoordsSave() const {return true;}
|
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {return true;}
|
||||||
|
|
||||||
//! Returns always true if base grid, Create_UPML will create proper child pml extensions.
|
//! Returns always true if base grid, Create_UPML will create proper child pml extensions.
|
||||||
virtual bool IsCylindricalMultiGridSave(bool child) const {if (child) return false; return true;}
|
virtual bool IsCylindricalMultiGridSave(bool child) const {if (child) return false; return true;}
|
||||||
|
|
|
@ -50,7 +50,7 @@ public:
|
||||||
virtual Engine_Extension* CreateEngineExtention() {return 0;}
|
virtual Engine_Extension* CreateEngineExtention() {return 0;}
|
||||||
|
|
||||||
//! The cylindrical operator will check whether the extension is save to use. Default is false. Derive this method to override.
|
//! The cylindrical operator will check whether the extension is save to use. Default is false. Derive this method to override.
|
||||||
virtual bool IsCylinderCoordsSave() const {return false;}
|
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {return false;}
|
||||||
|
|
||||||
//! The cylindrical multi grid operator will check whether the extension is save to use. Default is false. Derive this method to override.
|
//! The cylindrical multi grid operator will check whether the extension is save to use. Default is false. Derive this method to override.
|
||||||
virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return false;}
|
virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return false;}
|
||||||
|
|
|
@ -286,7 +286,7 @@ void Operator_Cylinder::ApplyMagneticBC(bool* dirs)
|
||||||
|
|
||||||
void Operator_Cylinder::AddExtension(Operator_Extension* op_ext)
|
void Operator_Cylinder::AddExtension(Operator_Extension* op_ext)
|
||||||
{
|
{
|
||||||
if (op_ext->IsCylinderCoordsSave())
|
if (op_ext->IsCylinderCoordsSave(CC_closedAlpha, CC_R0_included))
|
||||||
m_Op_exts.push_back(op_ext);
|
m_Op_exts.push_back(op_ext);
|
||||||
else
|
else
|
||||||
cerr << "Operator_Cylinder::AddExtension: Warning: Operator extension \"" << op_ext->GetExtensionName() << "\" is not compatible with cylinder-coords!! skipping...!" << endl;
|
cerr << "Operator_Cylinder::AddExtension: Warning: Operator extension \"" << op_ext->GetExtensionName() << "\" is not compatible with cylinder-coords!! skipping...!" << endl;
|
||||||
|
|
Loading…
Reference in New Issue