FEMTIC
Forward2DTriangleElementNodeBased.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_TRIANGLE_ELEMENT_NODE_BASED
25 #define DBLDEF_FORWARD_2D_TRIANGLE_ELEMENT_NODE_BASED
26 
28 
29 // Class of 2D forward calculation by using node based element with triangle shape
31 
32 public:
33 
34  // Constructer
35  explicit Forward2DTriangleElementNodeBased( const int planeID, const int iPol );
36 
37  // Destructer
39 
40  // Calculate EM fields of boundary planes by 2D forward calculcation
41  virtual void calcEMFieldsOfBoundaryPlanes( const double freq, const MeshDataTetraElement* const pMeshDataTetraElement ) = 0;
42 
43 protected:
44 
45  // Calculate Ex
46  virtual std::complex<double> calcEx( const int iElem, const double uCoord, const double vCoord, const MeshDataTetraElement* const pMeshDataTetraElement ) const;
47 
48  // Calculate Ey
49  virtual std::complex<double> calcEy( const int iElem, const double uCoord, const double vCoord, const MeshDataTetraElement* const pMeshDataTetraElement ) const;
50 
51  // Calculate Ez
52  virtual std::complex<double> calcEz( const int iElem, const double uCoord, const double vCoord, const MeshDataTetraElement* const pMeshDataTetraElement ) const;
53 
54  // Calculate Hx
55  virtual std::complex<double> calcHx( const double freq, const int iElem, const double uCoord, const double vCoord, const MeshDataTetraElement* const pMeshDataTetraElement ) const;
56 
57  // Calculate Hy
58  virtual std::complex<double> calcHy( const double freq, const int iElem, const double uCoord, const double vCoord, const MeshDataTetraElement* const pMeshDataTetraElement ) const;
59 
60  // Calculate Hz
61  virtual std::complex<double> calcHz( const double freq, const int iElem, const double uCoord, const double vCoord, const MeshDataTetraElement* const pMeshDataTetraElement ) const;
62 
63 private:
64 
65  // Defailt constructer
67 
68  // Copy constructer
70 
71  // Copy assignment operator
73 
74 
75 };
76 
77 #endif
Definition: Forward2DTriangleElementNodeBased.h:30
virtual std::complex< double > calcEx(const int iElem, const double uCoord, const double vCoord, const MeshDataTetraElement *const pMeshDataTetraElement) const
Definition: Forward2DTriangleElementNodeBased.cpp:40
Forward2DTriangleElementNodeBased(const Forward2DTriangleElementNodeBased &rhs)
virtual std::complex< double > calcHx(const double freq, const int iElem, const double uCoord, const double vCoord, const MeshDataTetraElement *const pMeshDataTetraElement) const
Definition: Forward2DTriangleElementNodeBased.cpp:58
virtual void calcEMFieldsOfBoundaryPlanes(const double freq, const MeshDataTetraElement *const pMeshDataTetraElement)=0
virtual std::complex< double > calcHy(const double freq, const int iElem, const double uCoord, const double vCoord, const MeshDataTetraElement *const pMeshDataTetraElement) const
Definition: Forward2DTriangleElementNodeBased.cpp:64
~Forward2DTriangleElementNodeBased()
Definition: Forward2DTriangleElementNodeBased.cpp:36
Forward2DTriangleElementNodeBased & operator=(const Forward2DTriangleElementNodeBased &rhs)
virtual std::complex< double > calcHz(const double freq, const int iElem, const double uCoord, const double vCoord, const MeshDataTetraElement *const pMeshDataTetraElement) const
Definition: Forward2DTriangleElementNodeBased.cpp:70
virtual std::complex< double > calcEz(const int iElem, const double uCoord, const double vCoord, const MeshDataTetraElement *const pMeshDataTetraElement) const
Definition: Forward2DTriangleElementNodeBased.cpp:52
virtual std::complex< double > calcEy(const int iElem, const double uCoord, const double vCoord, const MeshDataTetraElement *const pMeshDataTetraElement) const
Definition: Forward2DTriangleElementNodeBased.cpp:46
Definition: Forward2DTriangleElement.h:33
Definition: MeshDataTetraElement.h:32