FEMTIC
Forward2DSquareElementEdgeBased.h
Go to the documentation of this file.
1 //-------------------------------------------------------------------------------------------------------
2 // The MIT License (MIT)
3 //
4 // Copyright (c) 2021 Yoshiya Usui
5 //
6 // Permission is hereby granted, free of charge, to any person obtaining a copy
7 // of this software and associated documentation files (the "Software"), to deal
8 // in the Software without restriction, including without limitation the rights
9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 // copies of the Software, and to permit persons to whom the Software is
11 // furnished to do so, subject to the following conditions:
12 //
13 // The above copyright notice and this permission notice shall be included in all
14 // copies or substantial portions of the Software.
15 //
16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 // SOFTWARE.
23 //-------------------------------------------------------------------------------------------------------
24 #ifndef DBLDEF_FORWARD_2D_SQUARE_ELEMENT_EDGE_BASED
25 #define DBLDEF_FORWARD_2D_SQUARE_ELEMENT_EDGE_BASED
26 
27 #include "MeshDataBrickElement.h"
28 #include "Forward2DSquareElement.h"
29 
30 // Class of 2D forward calculation by using square edge element
32 
33 public:
34 
35  // Constructer
36  explicit Forward2DSquareElementEdgeBased( const int planeID, const int iPol );
37 
38  // Destructer
40 
41  // Calculate EM fields of boundary planes by 2D forward calculcation
42  virtual void calcEMFieldsOfBoundaryPlanes( const double freq, const MeshDataBrickElement* const pMeshDataBrickElement ) = 0;
43 
44 protected:
45 
46  // Calculate Ex
47  virtual std::complex<double> calcEx( const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
48 
49  // Calculate Ey
50  virtual std::complex<double> calcEy( const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
51 
52  // Calculate Ez
53  virtual std::complex<double> calcEz( const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
54 
55  // Calculate Hx
56  virtual std::complex<double> calcHx( const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
57 
58  // Calculate Hy
59  virtual std::complex<double> calcHy( const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
60 
61  // Calculate Hz
62  virtual std::complex<double> calcHz( const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
63 
64 private:
65 
66  // Defailt constructer
68 
69  // Copy constructer
71 
72  // Copy assignment operator
74 
75  // Calculate parameter V of Rodi(1976)
76  virtual std::complex<double> calcValueV( const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement* const pMeshDataBrickElement ) const = 0;
77 
78  // Calculate parameter J of Rodi(1976)
79  virtual std::complex<double> calcValueJ( const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement* const pMeshDataBrickElement ) const = 0;
80 
81  // Calculate parameter I of Rodi(1976)
82  virtual std::complex<double> calcValueI( const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement* const pMeshDataBrickElement ) const = 0;
83 
84  // Calculate horizontal electric field
85  virtual std::complex<double> calcValueElectricFieldHorizontal( const int iElem, const double wCoord, const double hCoord ) const = 0;
86 
87  // Calculate vertical electric field
88  virtual std::complex<double> calcValueElectricFieldVertical( const int iElem, const double wCoord, const double hCoord ) const = 0;
89 
90  // Calculate magnetic field perpendicular to the boundary plane
91  virtual std::complex<double> calcValueMagneticFieldPerpendicular( const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement* const pMeshDataBrickElement ) const = 0;
92 
93 };
94 
95 #endif
Definition: Forward2DSquareElementEdgeBased.h:31
~Forward2DSquareElementEdgeBased()
Definition: Forward2DSquareElementEdgeBased.cpp:36
virtual std::complex< double > calcValueElectricFieldHorizontal(const int iElem, const double wCoord, const double hCoord) const =0
Forward2DSquareElementEdgeBased & operator=(const Forward2DSquareElementEdgeBased &rhs)
virtual std::complex< double > calcValueV(const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement *const pMeshDataBrickElement) const =0
virtual std::complex< double > calcEx(const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElementEdgeBased.cpp:40
virtual std::complex< double > calcHx(const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElementEdgeBased.cpp:77
virtual std::complex< double > calcValueMagneticFieldPerpendicular(const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement *const pMeshDataBrickElement) const =0
Forward2DSquareElementEdgeBased(const Forward2DSquareElementEdgeBased &rhs)
virtual std::complex< double > calcEy(const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElementEdgeBased.cpp:55
virtual std::complex< double > calcValueElectricFieldVertical(const int iElem, const double wCoord, const double hCoord) const =0
virtual std::complex< double > calcValueJ(const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement *const pMeshDataBrickElement) const =0
virtual void calcEMFieldsOfBoundaryPlanes(const double freq, const MeshDataBrickElement *const pMeshDataBrickElement)=0
virtual std::complex< double > calcEz(const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElementEdgeBased.cpp:70
virtual std::complex< double > calcValueI(const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement *const pMeshDataBrickElement) const =0
virtual std::complex< double > calcHy(const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElementEdgeBased.cpp:88
virtual std::complex< double > calcHz(const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElementEdgeBased.cpp:99
Definition: Forward2DSquareElement.h:31
Definition: MeshDataBrickElement.h:31